vore-mod/elements/ExitBelly.mod.json

7 lines
No EOL
13 KiB
JSON

{
"_fv": 34,
"_type": "procedure",
"definition": {
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable type=\"Number\" id=\"orgx\">orgx</variable><variable type=\"Number\" id=\"orgz\">orgz</variable><variable type=\"Number\" id=\"countmobb\">countmobb</variable><variable type=\"String\" id=\"exitCommandThiny\">exitCommandThiny</variable></variables><block type=\"event_trigger\" deletable=\"false\" x=\"282\" y=\"62\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"text_is_empty\"><value name=\"text\"><block type=\"entity_nbt_text_get\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">preyExitCMD</field></block></value></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:exitCommandThiny</field><comment pinned=\"false\" h=\"80\" w=\"160\">as of 2.0.0 now storing exit command in the mob instead of the block</comment><value name=\"VAL\"><block type=\"entity_nbt_text_get\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">preyExitCMD</field></block></value></block></value><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"text_binary_ops\"><value name=\"A\"><block type=\"variables_get_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:exitCommandThiny</field></block></value><value name=\"B\"><block type=\"text\"><field name=\"TEXT\">uneat</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:exitCommandThiny</field><value name=\"VAL\"><block type=\"text_join\" inline=\"false\"><mutation items=\"8\"></mutation><value name=\"ADD0\"><block type=\"text\"><field name=\"TEXT\">execute in </field></block></value><value name=\"ADD1\"><block type=\"entity_nbt_text_get\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">exitDIM</field></block></value></block></value><value name=\"ADD2\"><block type=\"text\"><field name=\"TEXT\"> run tp @s </field></block></value><value name=\"ADD3\"><block type=\"entity_nbt_num_get\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">exitX</field></block></value></block></value><value name=\"ADD4\"><block type=\"text\"><field name=\"TEXT\"> </field></block></value><value name=\"ADD5\"><block type=\"entity_nbt_num_get\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">exitY</field></block></value></block></value><value name=\"ADD6\"><block type=\"text\"><field name=\"TEXT\"> </field></block></value><value name=\"ADD7\"><block type=\"entity_nbt_num_get\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">exitZ</field></block></value></block></value></block></value></block></statement><next><block type=\"world_entity_inrange_foreach\" inline=\"false\"><comment pinned=\"false\" h=\"80\" w=\"160\">also tp mobs near you to outside the ass</comment><value name=\"_placeholder\"><block type=\"entity_iterator\" deletable=\"false\" movable=\"false\"></block></value><value name=\"x\"><block type=\"entity_pos_x\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><value name=\"y\"><block type=\"entity_pos_y\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><value name=\"z\"><block type=\"entity_pos_z\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><value name=\"range\"><block type=\"math_number\"><field name=\"NUM\">6</field></block></value><statement name=\"foreach\"><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"logic_entity_compare\"><field name=\"entity\">EntityPlayer</field><value name=\"compareTo\"><block type=\"entity_iterator\"></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"entity_nbt_num_set\"><value name=\"entity\"><block type=\"entity_iterator\"></block></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">eatCoolDown</field></block></value><value name=\"tagValue\"><block type=\"math_number\"><field name=\"NUM\">120</field></block></value><next><block type=\"entity_execute_command\" inline=\"false\"><value name=\"command\"><block type=\"variables_get_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:exitCommandThiny</field></block></value><value name=\"entity\"><block type=\"entity_iterator\"></block></value><next><block type=\"entity_despawn\"><value name=\"entity\"><block type=\"entity_iterator\"></block></value><next><block type=\"variables_set_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:countmobb</field><value name=\"VAL\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"variables_get_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:countmobb</field></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></value></block></next></block></next></block></next></block></statement></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"math_binary_ops\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:countmobb</field></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"entity_send_chat\"><value name=\"text\"><block type=\"text_join\"><mutation items=\"2\"></mutation><value name=\"ADD0\"><block type=\"text_format_number\" inline=\"false\"><value name=\"number\"><block type=\"variables_get_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:countmobb</field></block></value><value name=\"format\"><block type=\"text\"><field name=\"TEXT\">#</field></block></value></block></value><value name=\"ADD1\"><block type=\"logic_ternary_op\" inline=\"false\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" mark=\"null\"></mutation><value name=\"condition\"><block type=\"math_binary_ops\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:countmobb</field></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></value><value name=\"THEN\"><block type=\"text\"><field name=\"TEXT\"> mob followed you</field></block></value><value name=\"ELSE\"><block type=\"text\"><field name=\"TEXT\"> mobs followed you</field></block></value></block></value></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"actbar\"><block type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></block></value></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\">eatCoolDown</field></block></value><value name=\"tagValue\"><block type=\"math_number\"><field name=\"NUM\">120</field></block></value><next><block type=\"entity_execute_command\" inline=\"false\"><value name=\"command\"><block type=\"variables_get_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:exitCommandThiny</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><next><block type=\"entity_nbt_text_set\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">preyExitCMD</field></block></value><value name=\"tagValue\"><block type=\"text\"><field name=\"TEXT\"></field></block></value><next><block type=\"entity_nbt_text_set\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">eatenBy</field></block></value><value name=\"tagValue\"><block type=\"text\"><field name=\"TEXT\"></field></block></value><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\">eatCoolDown</field></block></value><value name=\"tagValue\"><block type=\"math_number\"><field name=\"NUM\">120</field></block></value><next><block type=\"variables_set_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:countmobb</field><value name=\"VAL\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block><block type=\"variables_set_number\" x=\"1419\" y=\"264\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:orgx</field><value name=\"VAL\"><block type=\"math_dual_ops\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"math_singular_ops\"><field name=\"OP\">ROUNDDOWN</field><value name=\"NUM\"><block type=\"math_dual_ops\"><field name=\"OP\">DIVIDE</field><value name=\"A\"><block type=\"coord_x\"></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">48</field></block></value></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">48</field></block></value></block></value><next><block type=\"variables_set_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:orgz</field><value name=\"VAL\"><block type=\"math_dual_ops\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"math_singular_ops\"><field name=\"OP\">ROUNDDOWN</field><value name=\"NUM\"><block type=\"math_dual_ops\"><field name=\"OP\">DIVIDE</field><value name=\"A\"><block type=\"coord_z\"></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">48</field></block></value></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">48</field></block></value></block></value><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"compare_mcblocks\"><value name=\"a\"><block type=\"world_data_blockat\"><value name=\"x\"><block type=\"variables_get_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:orgx</field></block></value><value name=\"y\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value><value name=\"z\"><block type=\"variables_get_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:orgz</field></block></value></block></value><value name=\"b\"><block type=\"mcitem_allblocks\"><field name=\"value\">CUSTOM:Bellyorigin</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:exitCommandThiny</field><comment pinned=\"false\" h=\"80\" w=\"160\">old one</comment><value name=\"VAL\"><block type=\"block_nbt_text_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">exitCMD</field></block></value><value name=\"x\"><block type=\"variables_get_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:orgx</field></block></value><value name=\"y\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value><value name=\"z\"><block type=\"variables_get_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" is_player_var=\"false\" has_entity=\"false\"></mutation><field name=\"VAR\">local:orgz</field></block></value></block></value></block></statement></block></next></block></next></block></xml>"
}
}