cawezs_expanded_world/elements/DimChangerFloor.mod.json
2024-04-28 11:00:35 -04:00

7 lines
12 KiB
JSON

{
"_fv": 47,
"_type": "procedure",
"definition": {
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable type=\"File\" id=\"configfile\">configfile</variable><variable type=\"JsonObject\" id=\"dimsTable\">dimsTable</variable><variable type=\"JsonObject\" id=\"propsTable\">propsTable</variable><variable type=\"JsonObject\" id=\"tmpNextDim\">tmpNextDim</variable></variables><block type=\"event_trigger\" deletable=\"false\" x=\"40\" y=\"40\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"entity_haspotioneffect\"><field name=\"potion\">NAUSEA</field><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set_file\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:configfile</field><value name=\"VAL\"><block type=\"file_variable\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:configfile</field><value name=\"name\"><block type=\"text\"><field name=\"TEXT\">CMS_dims.json</field></block></value><value name=\"location\"><block type=\"text_join\"><mutation items=\"2\"></mutation><value name=\"ADD0\"><block type=\"get_game_directory\"></block></value><value name=\"ADD1\"><block type=\"text\"><field name=\"TEXT\">/config/</field></block></value></block></value></block></value><next><block type=\"read_json\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:configfile</field><field name=\"JOBJVAR\">local:dimsTable</field><statement name=\"values\"><block type=\"controls_if\"><value name=\"IF0\"><block type=\"json_property_exists\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:dimsTable</field><value name=\"name\"><block type=\"text_substring\"><value name=\"text\"><block type=\"text_join\"><mutation items=\"1\"></mutation><value name=\"ADD0\"><block type=\"entity_dimension_id\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value></block></value><value name=\"from\"><block type=\"math_number\"><field name=\"NUM\">34</field></block></value><value name=\"to\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"math_number\"><field name=\"NUM\">-1</field></block></value><value name=\"B\"><block type=\"text_length\"><value name=\"VALUE\"><block type=\"text_join\"><mutation items=\"1\"></mutation><value name=\"ADD0\"><block type=\"entity_dimension_id\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value></block></value></block></value></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set_jsonobject\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:propsTable</field><value name=\"VAL\"><block type=\"get_json_object\"><field name=\"JOBJVAR\">local:dimsTable</field><value name=\"name\"><block type=\"text_substring\"><value name=\"text\"><block type=\"text_join\"><mutation items=\"1\"></mutation><value name=\"ADD0\"><block type=\"entity_dimension_id\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value></block></value><value name=\"from\"><block type=\"math_number\"><field name=\"NUM\">34</field></block></value><value name=\"to\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"math_number\"><field name=\"NUM\">-1</field></block></value><value name=\"B\"><block type=\"text_length\"><value name=\"VALUE\"><block type=\"text_join\"><mutation items=\"1\"></mutation><value name=\"ADD0\"><block type=\"entity_dimension_id\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value></block></value></block></value></block></value></block></value></block></value><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"math_binary_ops\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"coord_y\"></block></value><value name=\"B\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"math_number\"><field name=\"NUM\">-3</field></block></value><value name=\"B\"><block type=\"get_json_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:propsTable</field><value name=\"name\"><block type=\"text\"><field name=\"TEXT\">height</field></block></value></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set_jsonobject\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:tmpNextDim</field><value name=\"VAL\"><block type=\"get_json_object\"><field name=\"JOBJVAR\">local:dimsTable</field><value name=\"name\"><block type=\"get_json_text\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:propsTable</field><value name=\"name\"><block type=\"text\"><field name=\"TEXT\">dimabove</field></block></value></block></value></block></value><next><block type=\"entity_execute_command\"><value name=\"command\"><block type=\"text_join\"><mutation items=\"5\"></mutation><value name=\"ADD0\"><block type=\"text\"><field name=\"TEXT\">execute as @s at @s in </field></block></value><value name=\"ADD1\"><block type=\"get_json_text\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:propsTable</field><value name=\"name\"><block type=\"text\"><field name=\"TEXT\">dimabove</field></block></value></block></value><value name=\"ADD2\"><block type=\"text\"><field name=\"TEXT\"> positioned as @s run tp @s ~ </field></block></value><value name=\"ADD3\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"math_number\"><field name=\"NUM\">2</field></block></value><value name=\"B\"><block type=\"get_json_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:tmpNextDim</field><value name=\"name\"><block type=\"text\"><field name=\"TEXT\">depth</field></block></value></block></value></block></value><value name=\"ADD4\"><block type=\"text\"><field name=\"TEXT\"> ~</field></block></value></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><next><block type=\"entity_add_potion\"><field name=\"potion\">NAUSEA</field><value name=\"level\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"duration\"><block type=\"math_number\"><field name=\"NUM\">60</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><next><block type=\"entity_add_potion\"><field name=\"potion\">LEVITATION</field><value name=\"level\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"duration\"><block type=\"math_number\"><field name=\"NUM\">60</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"get_json_logic\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:propsTable</field><value name=\"name\"><block type=\"text\"><field name=\"TEXT\">floor</field></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><value name=\"IF0\"><block type=\"math_binary_ops\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"coord_y\"></block></value><value name=\"B\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"math_number\"><field name=\"NUM\">3</field></block></value><value name=\"B\"><block type=\"get_json_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:propsTable</field><value name=\"name\"><block type=\"text\"><field name=\"TEXT\">depth</field></block></value></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set_jsonobject\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:tmpNextDim</field><value name=\"VAL\"><block type=\"get_json_object\"><field name=\"JOBJVAR\">local:dimsTable</field><value name=\"name\"><block type=\"get_json_text\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:propsTable</field><value name=\"name\"><block type=\"text\"><field name=\"TEXT\">dimbelow</field></block></value></block></value></block></value><next><block type=\"entity_execute_command\"><value name=\"command\"><block type=\"text_join\"><mutation items=\"5\"></mutation><value name=\"ADD0\"><block type=\"text\"><field name=\"TEXT\">execute as @s at @s in </field></block></value><value name=\"ADD1\"><block type=\"get_json_text\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:propsTable</field><value name=\"name\"><block type=\"text\"><field name=\"TEXT\">dimbelow</field></block></value></block></value><value name=\"ADD2\"><block type=\"text\"><field name=\"TEXT\"> positioned as @s run tp @s ~ </field></block></value><value name=\"ADD3\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"math_number\"><field name=\"NUM\">-2</field></block></value><value name=\"B\"><block type=\"get_json_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:tmpNextDim</field><value name=\"name\"><block type=\"text\"><field name=\"TEXT\">height</field></block></value></block></value></block></value><value name=\"ADD4\"><block type=\"text\"><field name=\"TEXT\"> ~</field></block></value></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><next><block type=\"entity_add_potion\"><field name=\"potion\">NAUSEA</field><value name=\"level\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"duration\"><block type=\"math_number\"><field name=\"NUM\">60</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><next><block type=\"entity_add_potion\"><field name=\"potion\">SLOW_FALLING</field><value name=\"level\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"duration\"><block type=\"math_number\"><field name=\"NUM\">60</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></next></block></next></block></next></block></statement></block></statement></block></next></block></next></block></statement></block></statement></block></next></block></statement></block></next></block><block type=\"controls_if\" x=\"759\" y=\"1291\"><value name=\"IF0\"><block type=\"logic_negate\"></block></value></block><block type=\"text\" x=\"899\" y=\"1327\"><field name=\"TEXT\">none!!</field></block></xml>"
}
}