Hook BLOCK_<ACTION>
#1
Lightbulb 
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.
Reply
Thanks given by:
#2
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.
Reply
Thanks given by:
#3
So.How can you control moving blocks by piston?
Reply
Thanks given by:
#4
You can't, currently. What kind of an interface would you suggest?
Reply
Thanks given by:
#5
I'm do not understand your question Sad
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)