Posts: 9
Threads: 4
Joined: Jan 2012
Thanks: 0
Given 0 thank(s) in 0 post(s)
Are there any callback that works when player do something with some blockEntity (right click)? For example, when player open the chest or close the door. I want to write plugin, providing private chest , but I can not find any callback on this situation.
P.S. Is wiki plugin API documentation up to date?
Posts: 9
Threads: 4
Joined: Jan 2012
Thanks: 0
Given 0 thank(s) in 0 post(s)
Thanks. Callback name is not good i think. May be onBlockRightClick, or other name will be better?
Posts: 313
Threads: 32
Joined: Feb 2012
Thanks: 98
Given 14 thank(s) in 13 post(s)
Tiny bump:
I want a hook for right-click with an empy hand (or a tool/weapon) on any "static" block (not a chest or something "actable")
Should I use E_PLUGIN_BLOCK_PLACE? If so - how do I "get" what kind of item player was holding while right-click?
There's player link in E_PLUGIN_BLOCK_PLACE, and player has an inventory, but I don't know how to get infro about which item was held by player. Is it possible? (Yes, I'm a maniac and I would like to write a runecraft analog)