on consume of steak:
if name of player's tool is "&6Infinite Steak":
set player's tool to steak named "&6Infinite Steak"
on rightclick:
if player's tool is firework named "&6Infinite Rocket":
wait 1 tick
set player's held item to firework named "&6Infinite Rocket"
on mine:
if player has 1 of brown dye named "&6Dirt AutoCompressor":
set {_a} to amount of dirt in player's inventory
if {_a} >= 64:
set {_b} to round({_a} / 64)
loop {_b} times:
player has 64 dirt
remove 64 dirt from player
give 1 grass block to player