EasySurvivalMod/elements/EasyIntakeOnBlockRightClicked.mod.json
2024-03-07 14:10:21 +01:00

7 lines
5.4 KiB
JSON

{
"_fv": 60,
"_type": "procedure",
"definition": {
"procedurexml": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"slotno\" type=\"Number\">slotno</variable><variable id=\"invslot\" type=\"Number\">invslot</variable><variable id=\"freeslot\" type=\"Number\">freeslot</variable><variable id=\"tempstack\" type=\"MCItem\">tempstack</variable></variables><block deletable=\"false\" type=\"event_trigger\" x=\"1315\" y=\"46\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"variables_set_number\"><field name=\"VAR\">local:slotno</field><value name=\"VAL\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value><next><block type=\"entity_open_gui\"><field name=\"guiname\">EasyIntakeGUI</field><value name=\"entity\"><block type=\"entity_from_deps\"/></value><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value><next><block type=\"controls_repeat_ext\"><value name=\"TIMES\"><block type=\"math_number\"><field name=\"NUM\">36</field></block></value><statement name=\"DO\"><block type=\"controls_if\"><value name=\"IF0\"><block type=\"compare_mcitems_oredictionary\"><value name=\"a\"><block type=\"entity_get_slot\"><value name=\"slotid\"><block type=\"variables_get_number\"><field name=\"VAR\">local:slotno</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></value><value name=\"b\"><block type=\"text\"><field name=\"TEXT\">forge:tag_intake</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set_itemstack\"><field name=\"VAR\">local:tempstack</field><value name=\"VAL\"><block type=\"entity_get_slot\"><value name=\"slotid\"><block type=\"variables_get_number\"><field name=\"VAR\">local:slotno</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></value><next><block type=\"variables_set_number\"><field name=\"VAR\">local:invslot</field><value name=\"VAL\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value><next><block type=\"controls_repeat_ext\"><value name=\"TIMES\"><block type=\"math_number\"><field name=\"NUM\">27</field></block></value><statement name=\"DO\"><block type=\"controls_if\"><value name=\"IF0\"><block type=\"compare_mcitems\"><value name=\"a\"><block type=\"block_inv_get_item_inslot\"><value name=\"slotid\"><block type=\"variables_get_number\"><field name=\"VAR\">local:invslot</field></block></value><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value></block></value><value name=\"b\"><block type=\"mcitem_all\"><field name=\"value\">Blocks.AIR</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set_number\"><field name=\"VAR\">local:freeslot</field><value name=\"VAL\"><block type=\"variables_get_number\"><field name=\"VAR\">local:invslot</field></block></value><next><block type=\"controls_flow_statements\"><field name=\"FLOW\">BREAK</field></block></next></block></statement><next><block type=\"variables_set_number\"><field name=\"VAR\">local:invslot</field><value name=\"VAL\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"variables_get_number\"><field name=\"VAR\">local:invslot</field></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></value></block></next></block></statement><next><block type=\"block_inv_set_items\"><value name=\"amount\"><block type=\"itemstack_get_count\"><value name=\"item\"><block type=\"entity_get_slot\"><value name=\"slotid\"><block type=\"variables_get_number\"><field name=\"VAR\">local:slotno</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></value></block></value><value name=\"item\"><block type=\"variables_get_itemstack\"><field name=\"VAR\">local:tempstack</field></block></value><value name=\"slotid\"><block type=\"variables_get_number\"><field name=\"VAR\">local:freeslot</field></block></value><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value><next><block type=\"entity_set_slot\"><value name=\"amount\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"slotitem\"><block type=\"mcitem_all\"><field name=\"value\">Blocks.AIR</field></block></value><value name=\"slotid\"><block type=\"variables_get_number\"><field name=\"VAR\">local:slotno</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></next></block></next></block></next></block></next></block></statement><next><block type=\"variables_set_number\"><field name=\"VAR\">local:slotno</field><value name=\"VAL\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"variables_get_number\"><field name=\"VAR\">local:slotno</field></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></value></block></next></block></statement><next><block type=\"entity_close_gui\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></next></block></next></block></next></block></next></block></xml>"
}
}