How can you remove the gravity effect of a falling block? I want to make the falling block float in mid air, but can't seem to do it. I tried using a timer and constantly moving it up by the difference every tick but it just looked awkward. Bump. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Da_Co0k1eZ I think EntityChangeBlockEvent is triggered when blocks fall. Try that, and just cancel the event.
Im_Zeus Ok, but how to I grab the EntityChangeBlockEvent class and cancel for just the block falling?
Im_Zeus I believe that's fired when the falling block turns into a solid block. Da_Co0k1eZ "You can't just ignore gravity"
Gater12 Da_Co0k1eZ Meh, it was worth a try. Try BlockPhysicsEvent, and cancel that. If that doesn't work, then listen to BlockEvents, and print(event.getEventName()) and drop a physics-bound blocks(sand, gravel, etc)
If you cancelled ALL BlockPhysicsEvents, then yes no blocks will fall. It will not cancel PlayerMoveEvents, if that's what you're asking?
Im_Zeus No, I know that it won't cancel the player move event. I was saying that wouldn't it cancel movement on the x and z axis as well.
I don't imagine it would, since it is a BlockPhysicsEvent. Should only affect the y axis. I DO NOT know this for sure, as I've never used the event.
Im_Zeus Hmm, It's worth a try. How would I get the physics event for just the block? I tried setting all BlockPhysicsEvent to canceled so that they would stop falling, but it didn't seem to work. Any ideas? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Da_Co0k1eZ Here's the trick. You need to use NBT data edited minecarts. I'm not even kidding. It's the only way to do it sorry.