vore-mod/elements/ExitBelly.mod.json
2024-03-13 00:29:55 -04:00

7 lines
No EOL
13 KiB
JSON

{
"_fv": 57,
"_type": "procedure",
"definition": {
"procedurexml": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"orgx\" type=\"Number\">orgx</variable><variable id=\"orgz\" type=\"Number\">orgz</variable><variable id=\"countmobb\" type=\"Number\">countmobb</variable><variable id=\"exitCommandThiny\" type=\"String\">exitCommandThiny</variable></variables><block deletable=\"false\" type=\"event_trigger\" 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\"/></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\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:exitCommandThiny</field><comment h=\"80\" pinned=\"false\" 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\"/></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\" has_entity=\"false\" is_player_var=\"false\"/><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\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:exitCommandThiny</field><value name=\"VAL\"><block inline=\"false\" type=\"text_join\"><mutation items=\"8\"/><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\"/></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\"/></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\"/></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\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">exitZ</field></block></value></block></value></block></value></block></statement><next><block inline=\"false\" type=\"world_entity_inrange_foreach\"><comment h=\"80\" pinned=\"false\" w=\"160\">also tp mobs near you to outside the ass</comment><value name=\"_placeholder\"><block deletable=\"false\" movable=\"false\" type=\"entity_iterator\"/></value><value name=\"x\"><block type=\"entity_pos_x\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></value><value name=\"y\"><block type=\"entity_pos_y\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></value><value name=\"z\"><block type=\"entity_pos_z\"><value name=\"entity\"><block type=\"entity_from_deps\"/></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\"/></value></block></value></block></value><statement name=\"DO0\"><block type=\"entity_nbt_num_set\"><value name=\"entity\"><block type=\"entity_iterator\"/></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 inline=\"false\" type=\"entity_execute_command\"><value name=\"command\"><block type=\"variables_get_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:exitCommandThiny</field></block></value><value name=\"entity\"><block type=\"entity_iterator\"/></value><next><block type=\"entity_despawn\"><value name=\"entity\"><block type=\"entity_iterator\"/></value><next><block type=\"variables_set_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_entity=\"false\" is_player_var=\"false\"/><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\" has_entity=\"false\" is_player_var=\"false\"/><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 inline=\"false\" type=\"logic_binary_ops\"><field name=\"OP\">AND</field><value name=\"A\"><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\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:countmobb</field></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value></block></value><value name=\"B\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"world_data_logic_getgamerule\"><field name=\"gamerulesboolean\">CUSTOM:RuleNoChat</field></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"entity_send_chat\"><value name=\"text\"><block type=\"text_join\"><mutation items=\"2\"/><value name=\"ADD0\"><block inline=\"false\" type=\"text_format_number\"><value name=\"number\"><block type=\"variables_get_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_entity=\"false\" is_player_var=\"false\"/><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 inline=\"false\" type=\"logic_ternary_op\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" mark=\"null\"/><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\" has_entity=\"false\" is_player_var=\"false\"/><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\"/></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\"/></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 inline=\"false\" type=\"entity_execute_command\"><value name=\"command\"><block type=\"variables_get_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:exitCommandThiny</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"/></value><next><block type=\"entity_nbt_text_set\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">preyExitCMD</field></block></value><value name=\"tagValue\"><block type=\"text\"><field name=\"TEXT\"/></block></value><next><block type=\"entity_nbt_text_set\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">eatenBy</field></block></value><value name=\"tagValue\"><block type=\"text\"><field name=\"TEXT\"/></block></value><next><block type=\"entity_nbt_num_set\"><value name=\"entity\"><block type=\"entity_from_deps\"/></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\" has_entity=\"false\" is_player_var=\"false\"/><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\" has_entity=\"false\" is_player_var=\"false\"/><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\"/></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\" has_entity=\"false\" is_player_var=\"false\"/><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\"/></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\" has_entity=\"false\" is_player_var=\"false\"/><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\" has_entity=\"false\" is_player_var=\"false\"/><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\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:exitCommandThiny</field><comment h=\"80\" pinned=\"false\" 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\" has_entity=\"false\" is_player_var=\"false\"/><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\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:orgz</field></block></value></block></value></block></statement></block></next></block></next></block></xml>"
}
}