05-31-2012, 08:24 AM
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)
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)