Aside from some internal changes, this update adds a few new ways to prevent players from using items you don't want them to.
Added mixins to listen for the following events:
- PlayerInventory.insertStack
- ScreenHandler.onSlotClick (TAIL/HEAD)
- Slot.onTakeItem
Aside from some internal changes, this update adds a few new ways to prevent players from using items you don't want them to.
Added mixins to listen for the following events:
- PlayerInventory.insertStack
- ScreenHandler.onSlotClick (TAIL/HEAD)
- Slot.onTakeItem
Added basic server-side checks.
Attaches a check function to the following events:
- AttackBlockCallback.EVENT: Called when left-clicking (“attacking”) a block.
- AttackEntityCallback.EVENT: Called when left-clicking (“attacking”) an entity.
- UseBlockCallback.EVENT: Called when right-clicking (“using”) a block.
- UseEntityCallback.EVENT: Called when right-clicking (“using”) an entity.
- UseItemCallback.EVENT: Called when right-clicking (“using”) an item.
If any of these events show a player has a 'blacklisted' item, their inventory will be cleared (via dropping or deleting) of any items that also fail this check.



