mirror of
https://github.com/JasonTable/vore-mod.git
synced 2024-11-26 23:23:59 -05:00
7 lines
No EOL
15 KiB
JSON
7 lines
No EOL
15 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=\"xx\" type=\"Number\">xx</variable><variable id=\"zz\" type=\"Number\">zz</variable></variables><block type=\"text_binary_ops\" x=\"485\" y=\"-19\"><value name=\"A\"><block type=\"block_nbt_text_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyType</field></block></value><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value></block></value><value name=\"B\"><block type=\"text\"><field name=\"TEXT\">noeat</field></block></value></block><block deletable=\"false\" type=\"event_trigger\" x=\"170\" y=\"43\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><mutation else=\"1\"/><value name=\"IF0\"><block inline=\"false\" type=\"logic_binary_ops\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"block_nbt_logic_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">noEat</field></block></value><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value></block></value></block></value><value name=\"B\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"compare_dimensionids\"><value name=\"a\"><block type=\"world_data_dimensionid\"/></value><value name=\"b\"><block type=\"get_dimensionid\"><field name=\"dimension\">CUSTOM:Belly</field></block></value></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><comment h=\"80\" pinned=\"false\" w=\"160\">only do all this stuff if there is no belly already assigned</comment><value name=\"IF0\"><block type=\"text_is_empty\"><value name=\"text\"><block type=\"block_nbt_text_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyType</field></block></value><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value></block></value></block></value><statement name=\"DO0\"><block type=\"block_nbt_text_set\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyType</field></block></value><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value><value name=\"tagValue\"><block type=\"text\"><field name=\"TEXT\">animal</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:xx</field><value name=\"VAL\"><block type=\"math_dual_ops\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"math_dual_ops\"><field name=\"OP\">MINUS</field><value name=\"A\"><block type=\"math_singular_ops\"><field name=\"OP\">ROUND</field><value name=\"NUM\"><block type=\"math_dual_ops\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"math_java_constants\"><field name=\"CONSTANT\">RANDOM</field></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">100</field></block></value></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">50</field></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:zz</field><value name=\"VAL\"><block type=\"math_dual_ops\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"math_dual_ops\"><field name=\"OP\">MINUS</field><value name=\"A\"><block type=\"math_singular_ops\"><field name=\"OP\">ROUND</field><value name=\"NUM\"><block type=\"math_dual_ops\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"math_java_constants\"><field name=\"CONSTANT\">RANDOM</field></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">100</field></block></value></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">50</field></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">48</field></block></value></block></value><next><block type=\"console_log\"><field name=\"message_type\">info</field><value name=\"message\"><block inline=\"false\" type=\"text_join\"><mutation items=\"4\"/><value name=\"ADD0\"><block type=\"text\"><field name=\"TEXT\">[Vore Mod] The belly origin of the fox block is X: </field></block></value><value name=\"ADD1\"><block type=\"variables_get_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:xx</field></block></value><value name=\"ADD2\"><block type=\"text\"><field name=\"TEXT\">Z: </field></block></value><value name=\"ADD3\"><block type=\"variables_get_number\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:xx</field></block></value></block></value><next><block type=\"block_nbt_num_set\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyX</field></block></value><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value><value name=\"tagValue\"><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:xx</field></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">30</field></block></value></block></value><next><block type=\"block_nbt_num_set\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyY</field></block></value><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value><value name=\"tagValue\"><block type=\"math_number\"><field name=\"NUM\">17</field></block></value><next><block type=\"block_nbt_num_set\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyZ</field></block></value><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value><value name=\"tagValue\"><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:zz</field></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">10</field></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><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\">bellyDest</field></block></value><value name=\"tagValue\"><block type=\"block_nbt_text_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyType</field></block></value><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value></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\">Fox</field></block></value><next><block type=\"entity_nbt_text_set\"><comment h=\"153\" pinned=\"false\" w=\"298\">for the fox block, set the prey exit command to a teleport command since it wont move. normally its set to \"uneat\" which makes the exit block read from the exitX Y Z commands so those dont need to be set here which is why the blocks are off to the side.</comment><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 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=\"procedure_retval_string\"><field name=\"procedure\">GetDimensionTPID</field></block></value><value name=\"ADD2\"><block type=\"text\"><field name=\"TEXT\"> run tp @s </field></block></value><value name=\"ADD3\"><block type=\"entity_pos_x\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></value><value name=\"ADD4\"><block type=\"text\"><field name=\"TEXT\"> </field></block></value><value name=\"ADD5\"><block type=\"entity_pos_y\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></value><value name=\"ADD6\"><block type=\"text\"><field name=\"TEXT\"> </field></block></value><value name=\"ADD7\"><block type=\"entity_pos_z\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></value></block></value><next><block inline=\"false\" type=\"entity_execute_command\"><value name=\"command\"><block type=\"text_join\"><mutation items=\"6\"/><value name=\"ADD0\"><block type=\"text\"><field name=\"TEXT\">execute in vore_mod:belly run tp @s </field></block></value><value name=\"ADD1\"><block type=\"block_nbt_num_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyX</field></block></value><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value></block></value><value name=\"ADD2\"><block type=\"text\"><field name=\"TEXT\"> </field></block></value><value name=\"ADD3\"><block type=\"block_nbt_num_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyY</field></block></value><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value></block></value><value name=\"ADD4\"><block type=\"text\"><field name=\"TEXT\"> </field></block></value><value name=\"ADD5\"><block type=\"block_nbt_num_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyZ</field></block></value><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value></block></value></block></value><value name=\"entity\"><block type=\"entity_from_deps\"/></value><next><block type=\"world_send_chat\"><value name=\"text\"><block type=\"text_join\"><mutation items=\"2\"/><value name=\"ADD0\"><block type=\"entity_name\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></value><value name=\"ADD1\"><block type=\"text\"><field name=\"TEXT\"> got eaten by Fox</field></block></value></block></value><next><block type=\"play_sound\"><field name=\"sound\">entity.fox.eat</field><field name=\"soundcategory\">neutral</field><value name=\"x\"><block type=\"coord_x\"/></value><value name=\"y\"><block type=\"coord_y\"/></value><value name=\"z\"><block type=\"coord_z\"/></value><value name=\"level\"><block type=\"math_number\"><field name=\"NUM\">0.8</field></block></value><value name=\"pitch\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"entity_send_chat\"><value name=\"text\"><block type=\"text\"><field name=\"TEXT\"><Fox> Sorry, but I don't want to eat anyone.</field></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></block></next></block><block type=\"entity_nbt_text_set\" x=\"1539\" y=\"753\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">exitDIM</field></block></value><value name=\"tagValue\"><block inline=\"false\" type=\"text_replace\"><comment h=\"80\" pinned=\"false\" w=\"160\">workaround to get if od dimension from vanilla or any mod</comment><value name=\"what\"><block type=\"text\"><field name=\"TEXT\">ResourceKey[minecraft:dimension / </field></block></value><value name=\"with\"><block type=\"text\"><field name=\"TEXT\"/></block></value><value name=\"text\"><block inline=\"false\" type=\"text_replace\"><value name=\"what\"><block type=\"text\"><field name=\"TEXT\">]</field></block></value><value name=\"with\"><block type=\"text\"><field name=\"TEXT\"/></block></value><value name=\"text\"><block type=\"text_join\"><mutation items=\"1\"/><value name=\"ADD0\"><block type=\"entity_dimension_id\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></value></block></value></block></value></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\">eatenByID</field></block></value><value name=\"tagValue\"><block type=\"math_number\"><field name=\"NUM\">0</field></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\">exitX</field></block></value><value name=\"tagValue\"><block type=\"entity_pos_x\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value></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\">exitY</field></block></value><value name=\"tagValue\"><block type=\"entity_pos_y\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value></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\">exitZ</field></block></value><value name=\"tagValue\"><block type=\"entity_pos_z\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></value></block></next></block></next></block></next></block></next></block></xml>"
|
|
}
|
|
} |