So basically im trying to make an auto compressor so if you have 64 of a certain item you get on if it and if you have multiple stacks it turns into a few.
here is the code:
here is the code:
every 2 ticks:
loop all players:
if {%loop-player%.enabled} is true:
if loop-player has 64 dirt or 64 oak log or 64 cobblestone or 64 coal or 64 raw iron or 64 raw gold or 64 redstone or 64 lapis or 64 diamond or 64 ancient debris or 64 obsidian or 64 emerald:
replace all 64 dirt in loop-player's inventory with dirt of unbreaking 1 with enchants flag hidden named "&6&lGiga Dirt"
replace all 64 oak log in loop-player's inventory with oak log of unbreaking 1 with enchants flag hidden named "&6&lGiga Wood"
replace all 64 cobblestone in loop-player's inventory with stone of unbreaking 1 with enchants flag hidden named "&6&lGiga Stone"
replace all 64 coal in loop-player's inventory with coal block of unbreaking 1 with enchants flag hidden named "&6&lGiga Coal"
replace all 64 raw iron in loop-player's inventory with iron block of unbreaking 1 with enchants flag hidden named "&6&lGiga Iron"
replace all 64 raw gold in loop-player's inventory with gold block of unbreaking 1 with enchants flag hidden named "&6&lGiga Gold"
replace all 64 redstone in loop-player's inventory with redstone block of unbreaking 1 with enchants flag hidden named "&6&lGiga Redstone"
replace all 64 lapis in loop-player's inventory with lapis block of unbreaking 1 with enchants flag hidden named "&6&lGiga Lapis"
replace all 64 diamond in loop-player's inventory with diamond block of unbreaking 1 with enchants flag hidden named "&6&lGiga Diamond"
replace all 64 ancient debris in loop-player's inventory with netherite block of unbreaking 1 with enchants flag hidden named "&6&lGiga Netherite"
replace all 64 obsidian in loop-player's inventory with obsidian of unbreaking 1 with enchants flag hidden named "&6&lGiga Obsidian"
replace all 64 emerald in loop-player's inventory with emerald block of unbreaking 1 with enchants flag hidden named "&6&lGiga Emerald"
e
loop all players:
if {%loop-player%.enabled} is true:
if loop-player has 64 dirt or 64 oak log or 64 cobblestone or 64 coal or 64 raw iron or 64 raw gold or 64 redstone or 64 lapis or 64 diamond or 64 ancient debris or 64 obsidian or 64 emerald:
replace all 64 dirt in loop-player's inventory with dirt of unbreaking 1 with enchants flag hidden named "&6&lGiga Dirt"
replace all 64 oak log in loop-player's inventory with oak log of unbreaking 1 with enchants flag hidden named "&6&lGiga Wood"
replace all 64 cobblestone in loop-player's inventory with stone of unbreaking 1 with enchants flag hidden named "&6&lGiga Stone"
replace all 64 coal in loop-player's inventory with coal block of unbreaking 1 with enchants flag hidden named "&6&lGiga Coal"
replace all 64 raw iron in loop-player's inventory with iron block of unbreaking 1 with enchants flag hidden named "&6&lGiga Iron"
replace all 64 raw gold in loop-player's inventory with gold block of unbreaking 1 with enchants flag hidden named "&6&lGiga Gold"
replace all 64 redstone in loop-player's inventory with redstone block of unbreaking 1 with enchants flag hidden named "&6&lGiga Redstone"
replace all 64 lapis in loop-player's inventory with lapis block of unbreaking 1 with enchants flag hidden named "&6&lGiga Lapis"
replace all 64 diamond in loop-player's inventory with diamond block of unbreaking 1 with enchants flag hidden named "&6&lGiga Diamond"
replace all 64 ancient debris in loop-player's inventory with netherite block of unbreaking 1 with enchants flag hidden named "&6&lGiga Netherite"
replace all 64 obsidian in loop-player's inventory with obsidian of unbreaking 1 with enchants flag hidden named "&6&lGiga Obsidian"
replace all 64 emerald in loop-player's inventory with emerald block of unbreaking 1 with enchants flag hidden named "&6&lGiga Emerald"
e