Cuberite Forum

Full Version: Hook BLOCK_<ACTION>
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to add hook on block moving and on block destroyed (dig)?
HOOK_BLOCK_MOVING - such as "HOOK_PLAYER_MOVING" but only for blocks.
HOOK_BLOCK_DIG - Coordinates and who is dig.
I don't think there's a "moving block" action at all. Blocks can be placed and dug, that's it.
There's already HOOK_PLAYER_BREAKING_BLOCK, HOOK_PLAYER_BROKEN_BLOCK, HOOK_PLAYER_PLACING_BLOCK and HOOK_PLAYER_PLACED_BLOCK, is that enough for your purposes?
We don't have hooks for other entities placing and digging blocks yet, because endermen weren't considered and still aren't implemented anyway.
So.How can you control moving blocks by piston?
You can't, currently. What kind of an interface would you suggest?
I'm do not understand your question Sad