Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by Dramatically, Jun 3, 2017.
How would I force an entity to break a block? Packets? If so what packet and how?
You can't force an entity to break a block, that is client side! You can however replace the block and throw an block break event yourself, if that is what you want.
You see, zombies can break blocks like doors, I want that to happen but with a different block I swear you can do that ;'( or atleast make it so it swings at the item or something like that
When a zombie breaks a door, the server replaces the door with air, drops the item and throws an event. That is exaclty the same as i said you could do.
How would I correctly time the breakage of the block, like the marks that go into the block until it breaks? And it depends on the item the entity is holding?
The server has to tell the client that the zombie is breaking the door, though. Entity AI isn't handled clientside.
There is a packet for animation (walking but alse breaking animation) and there is a packet for particles.
How do I make it so the block is cracking?
There is a block break animation packet