Hook BLOCK_<ACTION> - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: Hook BLOCK_<ACTION> (/thread-2288.html) |
Hook BLOCK_<ACTION> - DrMasik - 12-28-2015 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. RE: Hook BLOCK_<ACTION> - xoft - 12-28-2015 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. RE: Hook BLOCK_<ACTION> - DrMasik - 12-28-2015 So.How can you control moving blocks by piston? RE: Hook BLOCK_<ACTION> - xoft - 12-28-2015 You can't, currently. What kind of an interface would you suggest? RE: Hook BLOCK_<ACTION> - DrMasik - 12-28-2015 I'm do not understand your question |