Setting motY to 0 on a Falling Block

Discussion in 'Plugin Development' started by maxben34, Feb 16, 2014.

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

    maxben34

    Hey, I recently have been trying to use falling blocks for a gamemode I've been trying to make. I want the block to move horizontally, but as it is a falling block, it can't properly do this due to gravity. Is there some way to set the motion of the falling block to 0?

    I realize that this will require NMS and that's fine, as long as there is a way to do this, I really don't care how far out of my way I have to go.

    An example of where I've seen this is here (Skip to 51 seconds):

    Thanks for your help!
     
  2. Offline

    DarkBladee12

    maxben34 no, there's no way to do that since they will continue falling client-side!
     
  3. Offline

    desht

  4. Offline

    maxben34

  5. Offline

    Garris0n

  6. Offline

    maxben34

    That is a pretty good idea actually.
     
  7. Offline

    DarkBladee12

    Garris0n Sounds like a better solution than putting invisible blocks under the FallingBlock and preventing it from getting solid^^
     
    maxben34 likes this.
  8. Offline

    maxben34

    The bat thing won't work because you can't set it passenger to a custom bat.

    I was able to do it with NBT edited minecarts pretty successfully.
     
Thread Status:
Not open for further replies.

Share This Page