7 lines
No EOL
2.9 KiB
JSON
7 lines
No EOL
2.9 KiB
JSON
{
|
|
"_fv": 57,
|
|
"_type": "procedure",
|
|
"definition": {
|
|
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_trigger\" deletable=\"false\" x=\"358\" y=\"179\"><field name=\"trigger\">entity_dies</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_entity_compare\"><field name=\"entity\">CUSTOM:Target1</field><value name=\"compareTo\"><block type=\"entity_from_deps\"></block></value></block></value><statement name=\"DO0\"><block type=\"entity_set_health\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"health\"><block type=\"entity_health_max\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"compare_entities\"><value name=\"a\"><block type=\"source_entity_from_deps\"></block></value><value name=\"b\"><block type=\"entity_none\"></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"entity_execute_command\"><value name=\"entity\"><block type=\"source_entity_from_deps\"></block></value><value name=\"command\"><block type=\"text\"><field name=\"TEXT\">playsound target:targetdown player @s ~ ~ ~ 100 1</field></block></value><next><block type=\"entity_send_chat\"><value name=\"text\"><block type=\"text_join\" inline=\"true\"><mutation items=\"3\"></mutation><value name=\"ADD0\"><block type=\"text\"><field name=\"TEXT\">Target Down </field></block></value><value name=\"ADD1\"><block type=\"text_format_number\"><value name=\"number\"><block type=\"get_distance_between_vectors\"><value name=\"start\"><block type=\"get_vector_from_entity_position\" collapsed=\"true\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><value name=\"end\"><block type=\"get_vector_from_entity_position\" collapsed=\"true\"><value name=\"entity\"><block type=\"source_entity_from_deps\"></block></value></block></value></block></value><value name=\"format\"><block type=\"text\"><field name=\"TEXT\">##.#</field></block></value></block></value><value name=\"ADD2\"><block type=\"text\"><field name=\"TEXT\">M</field></block></value></block></value><value name=\"entity\"><block type=\"source_entity_from_deps\"></block></value><value name=\"actbar\"><block type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></block></value></block></next></block></statement><next><block type=\"entity_nbt_num_set\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">targetdown</field></block></value><value name=\"tagValue\"><block type=\"math_number\"><field name=\"NUM\">201</field></block></value><next><block type=\"cancel_event\"></block></next></block></next></block></next></block></statement></block></next></block></xml>"
|
|
}
|
|
} |