7 lines
No EOL
2.2 KiB
JSON
7 lines
No EOL
2.2 KiB
JSON
{
|
|
"_fv": 57,
|
|
"_type": "procedure",
|
|
"definition": {
|
|
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable type=\"Entity\" id=\"mortar\">mortar</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=\"compare_entities\"><value name=\"a\"><block type=\"entity_do_raycast\"><value name=\"player\"><block type=\"entity_from_deps\"></block></value><value name=\"distance\"><block type=\"math_number\"><field name=\"NUM\">6</field></block></value></block></value><value name=\"b\"><block type=\"entity_none\"></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set_entity\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:mortar</field><value name=\"VAL\"><block type=\"entity_do_raycast\"><value name=\"player\"><block type=\"entity_from_deps\"></block></value><value name=\"distance\"><block type=\"math_number\"><field name=\"NUM\">6</field></block></value></block></value><next><block type=\"return_string\"><value name=\"return\"><block type=\"text_join\" inline=\"true\"><mutation items=\"2\"></mutation><value name=\"ADD0\"><block type=\"text\"><field name=\"TEXT\">Angle: </field></block></value><value name=\"ADD1\"><block type=\"text_format_number\"><value name=\"number\"><block type=\"negative\"><value name=\"value\"><block type=\"entity_pitch\"><value name=\"entity\"><block type=\"variables_get_entity\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:mortar</field></block></value></block></value></block></value><value name=\"format\"><block type=\"text\"><field name=\"TEXT\">##.#</field></block></value></block></value></block></value></block></next></block></statement><next><block type=\"return_string\"><value name=\"return\"><block type=\"text\"><field name=\"TEXT\"></field></block></value></block></next></block></next></block></xml>"
|
|
}
|
|
} |