crusher_inventory: type: inventory inventory: chest title: Crusher inventory debug: true gui: true size: 27 slots: - [] [] [] [] [] [] [] [] [] - [] [] [GRAVEL_PLACE] [] [] [] [] [] [] - [] [] [] [] [] [] [] [] [] GRAVEL_PLACE: type: item debug: false material: paper mechanisms: custom_model_data: 20011 display name: <&r><&6>Crusher lore: - <&r><&7>Place Gravel to crush crusher_gui_handler: type: world debug: true events: after player left clicks slot:12 in crusher_inventory with:gravel: - stop if:]> - define item - define material <[item].material.name> - if <[material].advanced_matches[gravel]>: - inventory set o: d: slot:12 - take cursoritem after player clicks gravel in crusher_inventory: - stop if:]> - if && : - give - inventory set o:GRAVEL_PLACE d: slot:12 crusher_open: type: command name: mtest debug: false description: Crusher usage: /mtest script: - inventory open destination:crusher_inventory