https://paste.denizenscript.com/View/119992 - Relevant script
Trying to look into how this is currently possible to do, at the moment I'm using on block dispenses item to check the distance between players and grabbing the closest player, but I'm not sure if I can do better than this? It's not the perfect distance, and I wonder if there is a better way of being able to check when the player is going to be equipped from a dispenser or not since the equipment events are unreliable or cannot be cancelled.
The entire goal of this is to block the player from equipping items if they have specified flags on said items, such as itemtags inside of the itemtag ( Slotted gems, etc. ) primarily but perhaps down the road I'll want other flags to completely block the player from equipping an item. This may also apply to entities as well.
Content of Denizen Script Paste #119992: Unnamed Denizen Script Paste... pasted 2024/02/05 14:31:39 UTC-08:00, Paste length: 1709 characters across 31 lines, Content: equip_hooks: type: world