Paste #112083: Diff Report Between Paste #112082 and #112081

Date: 2023/07/09 04:39:25 UTC-07:00
Type: Diff Report

View Raw Paste Download This Paste Edit Of Paste 112082
Copy Link


 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:
         on player clicks SHOVEL_PLACE in machine_inventory:
             - determine cancelled
         on player drags wooden_shovel in machine_inventory:
             - if <context.clicked_inventory.script.exists>:
-                - inventory set slot:11 o:wooden_shovel d:machine_inventory
+                - inventory set slot:12 o:wooden_shovel d:machine_inventory
             - else:
                 - determine passively cancelled
         after player clicks air in machine_inventory with:wooden_shovel:
             - if <context.clicked_inventory.script.exists>:
-                - inventory set slot:11 origin:wooden_shovel d:machine_inventory
+                - inventory set slot:12 o:wooden_shovel d:machine_inventory
             - else:
                 - determine passively cancelled
         on player clicks !wooden_shovel|air in machine_inventory:
             - if !<context.clicked_inventory.script.exists>:
                 - determine passively cancelled
 
 machine_open:
     type: command
     name: mtest
     debug: false
     description: Deposit digger
     usage: /mtest
     script:
         - inventory open destination:machine_inventory