Files
mc/mods/pala/elements/PaladiumFurnaceUpdateTick.mod.json
T

7 lines
7.3 KiB
JSON

{
"_fv": 18,
"_type": "procedure",
"definition": {
"procedurexml": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><xml xmlns=\"https://developers.google.com/blockly/xml\"><block deletable=\"false\" type=\"event_trigger\" x=\"205\" y=\"63\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><value name=\"IF0\"><block inline=\"false\" type=\"logic_binary_ops\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"math_binary_ops\"><field name=\"OP\">LT</field><comment h=\"67\" pinned=\"false\" w=\"226\">This tests if the output slot has less than 64 items in it if it's true than it will run the rest of the conditions.</comment><value name=\"A\"><block type=\"block_inv_get_amount_inslot\"><value name=\"slotid\"><block type=\"math_number\"><field name=\"NUM\">2</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=\"math_number\"><field name=\"NUM\">64</field></block></value></block></value><value name=\"B\"><block inline=\"false\" type=\"logic_binary_ops\"><field name=\"OP\">AND</field><value name=\"A\"><block inline=\"false\" type=\"logic_binary_ops\"><field name=\"OP\">AND</field><comment h=\"52\" pinned=\"false\" w=\"211\">This will test for items in the smelting slot and the fuel slot.</comment><value name=\"A\"><block type=\"compare_mcitems\"><value name=\"a\"><block type=\"block_inv_get_item_inslot\"><value name=\"slotid\"><block type=\"math_number\"><field name=\"NUM\">0</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\">CUSTOM:PaladiumOre</field></block></value></block></value><value name=\"B\"><block type=\"compare_mcitems\"><value name=\"a\"><block type=\"block_inv_get_item_inslot\"><value name=\"slotid\"><block type=\"math_number\"><field name=\"NUM\">1</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\">Items.COAL#0</field></block></value></block></value></block></value><value name=\"B\"><block inline=\"false\" type=\"logic_binary_ops\"><field name=\"OP\">OR</field><comment h=\"68\" pinned=\"false\" w=\"179\">This tests if there is an item in the furnace or if there is an empty slot.</comment><value name=\"A\"><block inline=\"false\" type=\"logic_binary_ops\"><field name=\"OP\">AND</field><comment h=\"86\" pinned=\"false\" w=\"405\">This tests if the item is the same as what is being smelted and if the stack amount is equal to or less than 63. Subtract the number of items you are placing in the output slot from 64, and you will get the value you need to set amount to.</comment><value name=\"A\"><block type=\"math_binary_ops\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"block_inv_get_amount_inslot\"><value name=\"slotid\"><block type=\"math_number\"><field name=\"NUM\">16</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=\"math_number\"><field name=\"NUM\">63</field></block></value></block></value><value name=\"B\"><block type=\"compare_mcitems\"><value name=\"a\"><block type=\"block_inv_get_item_inslot\"><value name=\"slotid\"><block type=\"math_number\"><field name=\"NUM\">2</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\">CUSTOM:PaladiumIngot</field></block></value></block></value></block></value><value name=\"B\"><block type=\"compare_mcitems\"><comment h=\"51\" pinned=\"false\" w=\"151\">This needs to be set to an air block.</comment><value name=\"a\"><block type=\"block_inv_get_item_inslot\"><value name=\"slotid\"><block type=\"math_number\"><field name=\"NUM\">2</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></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"block_inv_remove_items\"><comment h=\"69\" pinned=\"false\" w=\"230\">These procedure blocks remove one item from the fule and smelting slots except for the output slot.</comment><value name=\"amount\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"slotid\"><block type=\"math_number\"><field name=\"NUM\">0</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=\"block_inv_remove_items\"><value name=\"amount\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"slotid\"><block type=\"math_number\"><field name=\"NUM\">1</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=\"block_inv_set_items\"><comment h=\"69\" pinned=\"false\" w=\"351\">This gets the number from the output slot then adds the amount to the output slot. This item should be the smelted result item. Note that +1 is the amount you are smelting.</comment><value name=\"amount\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"block_inv_get_amount_inslot\"><value name=\"slotid\"><block type=\"math_number\"><field name=\"NUM\">2</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=\"math_number\"><field name=\"NUM\">1</field></block></value></block></value><value name=\"item\"><block type=\"mcitem_all\"><field name=\"value\">CUSTOM:PaladiumIngot</field></block></value><value name=\"slotid\"><block type=\"math_number\"><field name=\"NUM\">2</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=\"play_sound\"><field name=\"sound\">block.furnace.fire_crackle</field><comment h=\"51\" pinned=\"false\" w=\"187\">This plays a sound each time the procedure is run.</comment><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value><value name=\"level\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"pitch\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></next></block></next></block></next></block></statement></block></next></block></xml>"
}
}