❌ Disable items

Function Tag

#simpledrawer:disabled_input

Allow datapack creators to disable items from being inserted in a drawer.

Inputs

Input Name

Input Type

Input Source

Input Objective/Path

Success

score

#good_item

simpledrawer.math

The item

storage

input

simpledrawer:io

Example

This is the default function in the datapack. It will disable all shulker boxes, bundles, air and drawers from being inserted in a drawer.

execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:bundle"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:air"} run scoreboard players set #good_item simpledrawer.math 0

execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:white_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:orange_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:magenta_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:light_blue_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:yellow_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:lime_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:pink_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:gray_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:light_gray_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:cyan_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:purple_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:blue_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:brown_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:green_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:red_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{id:"minecraft:black_shulker_box"} run scoreboard players set #good_item simpledrawer.math 0

execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{components:{"minecraft:custom_data":{ctc:{id:"drawer",from:"airdox_:simpledrawer"}}}} run scoreboard players set #good_item simpledrawer.math 0
execute if score #good_item simpledrawer.math matches 1 if data storage simpledrawer:io input{components:{"minecraft:custom_data":{ctc:{id:"new_drawer",from:"airdox_:simpledrawer"}}}} run scoreboard players set #good_item simpledrawer.math 0