cawezs_expanded_world/elements/OrbOfSatietyItemInHandTick.mod.json
COW_ILLUMINATI ea3188c2f7 1.3.2
2024-06-01 07:40:53 -04:00

7 lines
3.3 KiB
JSON
Executable File

{
"_fv": 60,
"_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=\"40\" y=\"40\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><mutation else=\"1\"/><value name=\"IF0\"><block type=\"math_binary_ops\"><field name=\"OP\">NEQ</field><value name=\"A\"><block type=\"math_number\"><field name=\"NUM\">20</field></block></value><value name=\"B\"><block type=\"entity_foodlevel\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><comment h=\"85\" pinned=\"false\" w=\"293\">This example will test if the random number is less than 0.7 (70%). Random numbers range between (0.0 and 1.0). If it is true, then it will run what is in the \"do\" section of the if statement.</comment><value name=\"IF0\"><block type=\"math_binary_ops\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"math_java_constants\"><field name=\"CONSTANT\">RANDOM</field></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">0.075</field></block></value></block></value><statement name=\"DO0\"><block type=\"entity_add_potion_advanced\"><field name=\"potion\">SATURATION</field><value name=\"level\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value><value name=\"duration\"><block type=\"math_number\"><field name=\"NUM\">1</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\"/></value></block></statement><next><block type=\"entity_add_potion_advanced\"><field name=\"potion\">SLOWNESS</field><value name=\"level\"><block type=\"math_number\"><field name=\"NUM\">10</field></block></value><value name=\"duration\"><block type=\"math_number\"><field name=\"NUM\">1</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\"/></value><next><block type=\"entity_add_potion_advanced\"><field name=\"potion\">WEAKNESS</field><value name=\"level\"><block type=\"math_number\"><field name=\"NUM\">10</field></block></value><value name=\"duration\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"ambient\"><block type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></block></value><value name=\"particles\"><block type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"entity_send_chat\"><value name=\"text\"><block type=\"text\"><field name=\"TEXT\">You are full</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"/></value><value name=\"actbar\"><block type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></block></value></block></statement></block></next></block></xml>"
}
}