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

7 lines
No EOL
19 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=\"dimid\" type=\"String\">dimid</variable><variable id=\"eat_text_coolhuh\" type=\"String\">eat_text_coolhuh</variable></variables><block deletable=\"false\" type=\"event_trigger\" x=\"238\" y=\"86\"><field name=\"trigger\">player_right_click_entity</field><next><block type=\"controls_if\"><mutation elseif=\"1\"/><value name=\"IF0\"><block type=\"compare_mcitems\"><value name=\"a\"><block type=\"entity_iteminhand\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value></block></value><value name=\"b\"><block type=\"mcitem_all\"><field name=\"value\">CUSTOM:ShrinkGun</field></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><value name=\"IF0\"><block type=\"world_data_logic_getgamerule\"><field name=\"gamerulesboolean\">CUSTOM:Vorebose</field></block></value><statement name=\"DO0\"><block type=\"console_log\"><field name=\"message_type\">info</field><value name=\"message\"><block type=\"text_join\"><mutation items=\"3\"/><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\"> was right clicked on with shrink gun by </field></block></value><value name=\"ADD2\"><block type=\"entity_name\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value></block></value></block></value></block></statement><next><block type=\"call_procedure\"><field name=\"procedure\">GetABelly</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=\"entity_nbt_logic_get\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">noEat</field></block></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=\"cancel_event\"><comment h=\"71\" pinned=\"false\" w=\"415\">this cancel makes it override whatever action was originally gonna happen upon right clicking such as viliger trade popups or horse ride or wolf sit toggle. </comment><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"entity_checkgamemode\"><field name=\"gamemode\">CREATIVE</field><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value></block></value></block></value><statement name=\"DO0\"><block type=\"item_damage\"><value name=\"amount\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"item\"><block type=\"entity_iteminhand\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value></block></value></block></statement><next><block type=\"entity_nbt_text_set\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyDest</field></block></value><value name=\"tagValue\"><block type=\"entity_nbt_text_get\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyType</field></block></value></block></value><next><block type=\"entity_nbt_text_set\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">preyExitCMD</field></block></value><value name=\"tagValue\"><block type=\"entity_nbt_text_get\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">predExitCMD</field></block></value></block></value><next><block type=\"entity_nbt_text_set\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">eatenBy</field></block></value><value name=\"tagValue\"><block type=\"entity_name\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></value><next><block type=\"entity_nbt_num_set\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">eatenByID</field></block></value><value name=\"tagValue\"><block type=\"entity_nbt_num_get\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">voreID</field></block></value></block></value><next><block type=\"entity_nbt_num_set\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">exitX</field></block></value><value name=\"tagValue\"><block type=\"coord_x\"/></value><next><block type=\"entity_nbt_num_set\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">exitY</field></block></value><value name=\"tagValue\"><block type=\"coord_y\"/></value><next><block type=\"entity_nbt_num_set\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">exitZ</field></block></value><value name=\"tagValue\"><block type=\"coord_z\"/></value><next><block type=\"entity_nbt_text_set\"><value name=\"entity\"><block type=\"source_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=\"world_data_dimensionid\"/></value></block></value></block></value></block></value><next><block type=\"controls_if\"><mutation else=\"1\"/><comment h=\"80\" pinned=\"false\" w=\"160\">play eat noise or fox eat noise if its a fox.</comment><value name=\"IF0\"><block type=\"logic_entity_compare\"><field name=\"entity\">EntityFox</field><value name=\"compareTo\"><block type=\"entity_from_deps\"/></value></block></value><statement name=\"DO0\"><block type=\"play_sound\"><field name=\"sound\">entity.fox.eat</field><field name=\"soundcategory\">neutral</field><comment h=\"80\" pinned=\"false\" w=\"160\">this is suooised ti be fox eat but keeps getting reset to cave noise cause of mcreator bug</comment><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\">1</field></block></value><value name=\"pitch\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></statement><statement name=\"ELSE\"><block type=\"play_sound\"><field name=\"sound\">entity.generic.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\">1</field></block></value><value name=\"pitch\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></statement><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 inline=\"false\" type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"entity_nbt_num_get\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyOriginX</field></block></value></block></value><value name=\"B\"><block type=\"entity_nbt_num_get\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyOffsetX</field></block></value></block></value></block></value><value name=\"ADD2\"><block type=\"text\"><field name=\"TEXT\"> </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\">bellyOffsetY</field></block></value></block></value><value name=\"ADD4\"><block type=\"text\"><field name=\"TEXT\"> </field></block></value><value name=\"ADD5\"><block inline=\"false\" type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"entity_nbt_num_get\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyOriginZ</field></block></value></block></value><value name=\"B\"><block type=\"entity_nbt_num_get\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">bellyOffsetZ</field></block></value></block></value></block></value></block></value><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value><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\">eatText</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:eat_text_coolhuh</field><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\">eatText</field></block></value></block></value><next><block type=\"variables_set_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:eat_text_coolhuh</field><value name=\"VAL\"><block inline=\"false\" type=\"text_replace\"><value name=\"what\"><block type=\"text\"><field name=\"TEXT\">[pred]</field></block></value><value name=\"with\"><block type=\"entity_name\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></value><value name=\"text\"><block type=\"variables_get_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:eat_text_coolhuh</field></block></value></block></value><next><block type=\"variables_set_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:eat_text_coolhuh</field><value name=\"VAL\"><block inline=\"false\" type=\"text_replace\"><value name=\"what\"><block type=\"text\"><field name=\"TEXT\">[prey]</field></block></value><value name=\"with\"><block type=\"entity_name\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value></block></value><value name=\"text\"><block type=\"variables_get_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:eat_text_coolhuh</field></block></value></block></value><next><block type=\"variables_set_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:eat_text_coolhuh</field><value name=\"VAL\"><block inline=\"false\" type=\"text_replace\"><value name=\"what\"><block type=\"text\"><field name=\"TEXT\">[eater]</field></block></value><value name=\"with\"><block type=\"entity_name\"><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></value><value name=\"text\"><block type=\"variables_get_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:eat_text_coolhuh</field></block></value></block></value><next><block type=\"variables_set_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:eat_text_coolhuh</field><value name=\"VAL\"><block inline=\"false\" type=\"text_replace\"><value name=\"what\"><block type=\"text\"><field name=\"TEXT\">[eatee]</field></block></value><value name=\"with\"><block type=\"entity_name\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value></block></value><value name=\"text\"><block type=\"variables_get_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:eat_text_coolhuh</field></block></value></block></value><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"world_data_logic_getgamerule\"><field name=\"gamerulesboolean\">CUSTOM:RuleNoChat</field></block></value></block></value><statement name=\"DO0\"><block type=\"world_send_chat\"><value name=\"text\"><block type=\"variables_get_string\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_entity=\"false\" is_player_var=\"false\"/><field name=\"VAR\">local:eat_text_coolhuh</field></block></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block inline=\"false\" type=\"entity_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\"> will not eat you.</field></block></value></block></value><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value><value name=\"actbar\"><block type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></block></value></block></statement></block></next></block></next></block></statement><value name=\"IF1\"><block inline=\"false\" type=\"logic_binary_ops\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"compare_mcitems\"><value name=\"a\"><block type=\"entity_iteminhand\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value></block></value><value name=\"b\"><block type=\"mcitem_all\"><field name=\"value\">Items.NAME_TAG</field></block></value></block></value><value name=\"B\"><block type=\"text_binary_ops\"><value name=\"A\"><block type=\"item_name\"><value name=\"item\"><block type=\"entity_iteminhand\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value></block></value></block></value><value name=\"B\"><block type=\"text\"><field name=\"TEXT\">[AV]</field></block></value></block></value></block></value><statement name=\"DO1\"><block type=\"controls_if\"><mutation else=\"1\"/><value name=\"IF0\"><block type=\"procedure_retval_logic\"><field name=\"procedure\">ChangeToAV</field></block></value><statement name=\"DO0\"><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"entity_checkgamemode\"><field name=\"gamemode\">CREATIVE</field><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value></block></value></block></value><statement name=\"DO0\"><block type=\"itemstack_shrink\"><value name=\"item\"><block type=\"entity_iteminhand\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value></block></value><value name=\"amount\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></statement><next><block inline=\"false\" type=\"entity_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\"> will anal vore you now.</field></block></value></block></value><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value><value name=\"actbar\"><block type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></block></value></block></next></block></statement><statement name=\"ELSE\"><block inline=\"false\" type=\"entity_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\"> cannot anal vore you.</field></block></value></block></value><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value><value name=\"actbar\"><block type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></block></value></block></statement><next><block type=\"cancel_event\"/></next></block></statement></block></next></block><block type=\"entity_nbt_text_set\" x=\"1521\" y=\"792\"><value name=\"entity\"><block type=\"source_entity_from_deps\"/></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">exitCMD</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=\"coord_x\"/></value><value name=\"ADD4\"><block type=\"text\"><field name=\"TEXT\"> </field></block></value><value name=\"ADD5\"><block type=\"coord_y\"/></value><value name=\"ADD6\"><block type=\"text\"><field name=\"TEXT\"> </field></block></value><value name=\"ADD7\"><block type=\"coord_z\"/></value></block></value></block></xml>"
}
}