Where is gravity applied to entity?

Discussion in 'Plugin Development' started by NerdsWBNerds, Jun 11, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    NerdsWBNerds

    Where in the bukkit/craftbukkit code is gravity applied to an entities velocity?
    Could someone give me a link and a function name please?
     
  2. Offline

    xTigerRebornx

    NerdsWBNerds Have you even attempted to look for it yourself?.... It doesn't take much, look at what CB changes for their Velocity, then search through the mc-dev classes for those changes and see where the changed things are used
     
  3. Offline

    NerdsWBNerds


    I looked for about an hour and can't find it...
     
  4. Offline

    xTigerRebornx

    NerdsWBNerds Look at the base tick method for an Entity
     
  5. Offline

    NerdsWBNerds


    There's not exactly a .tick
    They're all like, .b() and shit.
     
  6. Offline

    xTigerRebornx

    NerdsWBNerds Have you heard of the "magical" find function that almost every explorer has? Its usually bound to Ctrl + F, and you can easily search.

    You can't expect things to be handed to you. NMS is obfuscated, and if you want to mess around with it, you need to put in a valid effort to find what you want to mess with.
     
    xTrollxDudex likes this.
  7. Offline

    NerdsWBNerds


    I have put in an effort to find it, and I can't. That's why I came on here to get help. <removed>


    [edit by JaguarJo: please keep this discussion civil. Frustration is no excuse for name-calling.]
     
  8. Offline

    xTigerRebornx

    NerdsWBNerds After using the find function for on the net.minecraft.server.Entity class for a few seconds, I found this:
    https://github.com/Bukkit/mc-dev/blob/master/net/minecraft/server/Entity.java#L183
    Its what appears to be the entity's base tick method (if it isn't, feel free to point out otherwise)
    Edit: Calling those who try to help you "Assholes" and telling them not to help you doesn't exactly make people want to help you. You came here asking for help, and I pointed in you in a direction that you can use to find what you want.
     
    xTrollxDudex likes this.
Thread Status:
Not open for further replies.

Share This Page