machine_inventory: type: inventory inventory: chest title: Machine inventory debug: true gui: true size: 27 slots: - [] [] [] [] [] [] [] [] [] - [] [] [SHOVEL_PLACE] [] [] [] [] [] [] - [] [] [] [] [] [] [] [] [] SHOVEL_PLACE: type: item debug: false material: paper mechanisms: custom_model_data: 20011 display name: <&r><&6>Digger lore: - <&r><&7>Place a shovel to dig automatically machine_gui_handler: type: world debug: true events: after player right clicks slot:12 in machine_inventory with:wooden_shovel: - stop if:]> - define item - define material <[item].material.name> - if <[material].advanced_matches[wooden_shovel]>: - take cursoritem - inventory set o: d: slot:12 after player clicks wooden_shovel in machine_inventory: - stop if:]> - if && : - give - inventory set o:SHOVEL_PLACE d: slot:12 machine_open: type: command name: mtest debug: false description: Deposit digger usage: /mtest script: - inventory open destination:machine_inventory