Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prevent_shulker_box_recursion:
- type: world
- events:
- on player clicks in inventory:
- - if <context.item.material> == "m@shulker_box" {
- - if <context.is_shift_click> {
- - narrate "Shift-clicking shulker boxes is disabled."
- - determine cancelled
- }
- }
- - if <context.hotbar_button> > 0 && <player.inventory.slot[<context.hotbar_button>].material> == "m@shulker_box" {
- - narrate "Hotbar hotkeys are disabled for shulker boxes."
- - determine cancelled
- }
- on player clicks in chest with shulker_box:
- - if <context.clicked_inventory.inventory_type> == CHEST && !<context.cursor_item.inventory.is_empty> {
- - narrate "The chest isn't big enough for that."
- - determine cancelled
- }
- on player drags shulker_box in chest:
- - if <context.clicked_inventory.inventory_type> == CHEST && !<context.item.inventory.is_empty> {
- - narrate "The chest isn't big enough for that."
- - determine cancelled
- }
- on player clicks in ender_chest with shulker_box:
- - if <context.clicked_inventory.inventory_type> == ENDER_CHEST && !<context.cursor_item.inventory.is_empty> {
- - narrate "The ender chest isn't big enough for that."
- - determine cancelled
- }
- on player drags shulker_box in ender_chest:
- - if <context.clicked_inventory.inventory_type> == ENDER_CHEST && !<context.item.inventory.is_empty> {
- - narrate "The ender chest isn't big enough for that."
- - determine cancelled
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement