Floating FallingSand entity

Discussion in 'Plugin Development' started by mcat95, Jul 15, 2013.

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


    I'm developing a plugin which needs a falling sand "disguised" as another block.
    I want that entity to have name, but I think is not possible so I spawned an invisible chicken with name and set him as passenger.

    My problem comes when I try to keep the falling sand floating without moving or moving slowly up and down. I've tried with setVelocity and a timer but I can't get it working

    Do you know of any solution to this?
    Thanks, Mcat.


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jun 3, 2016
  2. Offline


    Bump ;).
  3. Offline


    Necropost much? It's okay i guess since this issue was never solved.
  4. Offline


    I had a go at this a while back, and hit the same problem. Even with a repeating task which sets the "floating" block's velocity to 0, the client still thinks it's a falling block and continually updates its position downwards, so it ends up jittering around. Never did find an ideal solution, sadly.
  5. Offline


    Instead of a zero velocity, have you tried setting a velocity with a negative y so it counteracts gravity? I'm guessing it'll still jitter no matter what you do, though.
  6. Offline


    Yeah, tried a few different things - no luck in getting the client to keep it still, though. I suspect it may not be possible without a client mod, though I'd love to be proved wrong.
  7. Offline


    I believe block 36 (Material.PISTON_MOVING_PIECE) has some interesting effects with FallingBlock entities.

    If you have a FallingBlock hit the ground, with a solid block beneath so that the FallingBlock would normally turn into its solid form, if the block that it would replace is Block 36 instead of air, it will stay in its FallingBlock form.

    This does only work if there is a solid block beneath, however. If you want it 'hovering,' you might be able to use one of the door bottom blocks (when they are placed alone, they have a hitbox but they do not render, and are see-through) to act as a solid block, and place Block 36 ontop of that door part, and then spawn the FallingBlock above that.
Thread Status:
Not open for further replies.

Share This Page