Posts: 223
	Threads: 40
	Joined: Aug 2015
	
Thanks: 22
	Given 26 thank(s) in 20 post(s)
	 
	
		
		
 12-28-2015, 04:41 PM
 
		12-28-2015, 04:41 PM 
		
	 
	
		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.
	
	
	
	
	
 
 
	
	
	
		
	Posts: 6,482
	Threads: 176
	Joined: Jan 2012
	
Thanks: 131
	Given 1085 thank(s) in 857 post(s)
	 
	
	
		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.
	
	
	
	
	
 
 
	
	
	
		
	Posts: 223
	Threads: 40
	Joined: Aug 2015
	
Thanks: 22
	Given 26 thank(s) in 20 post(s)
	 
	
	
		So.How can you control moving blocks by piston?
	
	
	
	
	
 
 
	
	
	
		
	Posts: 6,482
	Threads: 176
	Joined: Jan 2012
	
Thanks: 131
	Given 1085 thank(s) in 857 post(s)
	 
	
	
		You can't, currently. What kind of an interface would you suggest?