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.
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.
@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.
@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.