Hello Guys
I'm currently developing a mod for forge, and I would like to execute some code whenever a block gets changed in the world (blockBreak, blockPlace, but also TileEntityChange etc.)
I have found out that there is a packet sent to the client if there is a blockUpdate.
(net.minecraft.network.packet.Packet53BlockChange.java)
Can I use/make a hook that executes my code when the packet is sent, or is there a better way to do this?
Also, will it execute if a TileEntity changes (e.g. the player takes something out of a chest)?
It would also be very nice, if this could be done server-side. (My code won't render anything)