Move block with piston physics

Discussion in 'Plugin Development' started by Waif, Feb 20, 2021.

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

    Waif

    Hello.
    I want to program block movement as if they were moved by pistons.
    I am not sure if this is possible, another option is programming pistons themselves, but it comes with many problems, the main one is that sticky piston can only retract one block (2 if it's with a slime block). I have looked through this thread https://www.spigotmc.org/threads/make-piston-move.417551/. I am learning how to work with packets and nms at the moment.
    Any help is much appreciated.
     
  2. Offline

    Kars

    You could remove the block, place it 1 block over and then update every block around it. That should have the desired effect unless the movement animation is what you are after.
     
  3. Offline

    Waif

    I want it to move players and i want players to be able to walk on them
     
  4. Offline

    Kars

    You could always spawn in a piston, power it, and remove it afterward.
    @Waif
     
  5. Offline

    Waif

    @Kars
    as i said this is a second option, but it comes with problems. I want to retract blocks from the same side they were extended.
    Can I do what you tell me with piston being invisible and not collisional? I think it requires some time to move the block so it's gonna exist for a while, i dont need it.
     
  6. Offline

    Kars

    @Waif yeah, this is a pickle. From what i can tell there is no clear-cut way to do it.
    You could look into packets, but i can be of no help really there.
     
Thread Status:
Not open for further replies.

Share This Page