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

7 lines
7.9 KiB
JSON

{
"_fv": 18,
"_type": "procedure",
"definition": {
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable type=\"Boolean\" id=\"logique\">logique</variable><variable type=\"Number\" id=\"number\">number</variable></variables><block type=\"event_trigger\" deletable=\"false\" x=\"0\" y=\"0\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"variables_set_number\"><field name=\"VAR\">local:number</field><value name=\"VAL\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value><next><block type=\"controls_if\"><mutation else=\"1\"></mutation><comment pinned=\"false\" h=\"68\" w=\"294\">This example will test if the current entity type is the player. If it is true, then it will run whatever you place in the \"do\" section of the if statement.</comment><value name=\"IF0\"><block type=\"logic_binary_ops\" inline=\"false\"><field name=\"OP\">AND</field><comment pinned=\"false\" h=\"86\" w=\"405\">This tests if the item is the same as what is being crafted and if the stack amount is equal to or less than 63. Subtract the number of items you are placing in the slot from 64, and you will get the value you need to set amount to.</comment><value name=\"A\"><block type=\"compare_mcblock_material\"><field name=\"material\">AIR</field><value name=\"a\"><block type=\"world_data_blockat\"><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"math_dual_ops\"><field name=\"OP\">MINUS</field><value name=\"A\"><block type=\"coord_y\"></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">3</field></block></value></block></value><value name=\"z\"><block type=\"coord_z\"></block></value></block></value></block></value><value name=\"B\"><block type=\"logic_entity_compare\"><field name=\"entity\">EntityPlayer</field><value name=\"compareTo\"><block type=\"entity_from_deps\"></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"entity_add_potion_advanced\"><field name=\"potion\">RESISTANCE</field><value name=\"level\"><block type=\"math_number\"><field name=\"NUM\">15</field></block></value><value name=\"duration\"><block type=\"math_number\"><field name=\"NUM\">10</field></block></value><value name=\"ambient\"><block type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></block></value><value name=\"particles\"><block type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><next><block type=\"entity_add_potion_advanced\"><field name=\"potion\">LEVITATION</field><value name=\"level\"><block type=\"math_number\"><field name=\"NUM\">-75</field></block></value><value name=\"duration\"><block type=\"math_number\"><field name=\"NUM\">10</field></block></value><value name=\"ambient\"><block type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></block></value><value name=\"particles\"><block type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><next><block type=\"variables_set_number\"><field name=\"VAR\">local:number</field><value name=\"VAL\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"variables_set_number\"><field name=\"VAR\">local:number</field><value name=\"VAL\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><next><block type=\"controls_if\"><comment pinned=\"false\" h=\"68\" w=\"294\">This example will test if the current entity type is the player. If it is true, then it will run whatever you place in the \"do\" section of the if statement.</comment><value name=\"IF0\"><block type=\"logic_binary_ops\" inline=\"false\"><field name=\"OP\">AND</field><comment pinned=\"false\" h=\"86\" w=\"405\">This tests if the item is the same as what is being crafted and if the stack amount is equal to or less than 63. Subtract the number of items you are placing in the slot from 64, and you will get the value you need to set amount to.</comment><value name=\"A\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"compare_mcblock_material\"><field name=\"material\">AIR</field><value name=\"a\"><block type=\"world_data_blockat\"><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"math_dual_ops\"><field name=\"OP\">MINUS</field><value name=\"A\"><block type=\"coord_y\"></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">2</field></block></value></block></value><value name=\"z\"><block type=\"coord_z\"></block></value></block></value></block></value></block></value><value name=\"B\"><block type=\"logic_binary_ops\" inline=\"false\"><field name=\"OP\">AND</field><comment pinned=\"false\" h=\"86\" w=\"405\">This tests if the item is the same as what is being crafted and if the stack amount is equal to or less than 63. Subtract the number of items you are placing in the 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\">EQ</field><value name=\"A\"><block type=\"variables_get_number\"><field name=\"VAR\">local:number</field></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></value><value name=\"B\"><block type=\"logic_binary_ops\" inline=\"false\"><field name=\"OP\">AND</field><comment pinned=\"false\" h=\"86\" w=\"405\">This tests if the item is the same as what is being crafted and if the stack amount is equal to or less than 63. Subtract the number of items you are placing in the slot from 64, and you will get the value you need to set amount to.</comment><value name=\"A\"><block type=\"logic_entity_compare\"><field name=\"entity\">EntityPlayer</field><value name=\"compareTo\"><block type=\"entity_from_deps\"></block></value></block></value><value name=\"B\"><block type=\"math_binary_ops\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"entity_vel_y\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">-2</field></block></value></block></value></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"explode\"><field name=\"mode\">BREAK</field><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value><value name=\"power\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"math_singular_ops\"><field name=\"OP\">ABS</field><value name=\"NUM\"><block type=\"entity_vel_y\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">0.25</field></block></value></block></value><next><block type=\"entity_send_chat\"><value name=\"text\"><block type=\"text_join\"><mutation items=\"1\"></mutation><value name=\"ADD0\"><block type=\"text\"><field name=\"TEXT\">§l§cEXPLOSION !!!!</field></block></value></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"actbar\"><block type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></block></value><next><block type=\"variables_set_number\"><field name=\"VAR\">local:number</field><value name=\"VAL\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value><next><block type=\"item_damage\"><value name=\"amount\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"item\"><block type=\"itemstack_to_mcitem\"></block></value></block></next></block></next></block></next></block></statement></block></next></block></statement></block></next></block></next></block></xml>"
}
}