Files
Aris-Random-Additions/elements/RuiningProcedure.mod.json
2026-03-22 13:52:36 -07:00

7 lines
2.2 KiB
JSON

{
"_fv": 73,
"_type": "procedure",
"definition": {
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_trigger\" deletable=\"false\" x=\"40\" y=\"40\"><field name=\"trigger\">entity_attacked</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"world_data_isremote\"></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_binary_ops\" inline=\"false\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"damagesource_isequalto\"><field name=\"damagetype\">PLAYER_ATTACK</field><value name=\"damagesource\"><block type=\"damagesource_from_deps\"></block></value></block></value><value name=\"B\"><block type=\"itemstack_has_enchantment\"><field name=\"enhancement\">CUSTOM:RuiningEnchantment</field><value name=\"item\"><block type=\"entity_iteminhand\"><value name=\"entity\"><block type=\"source_entity_from_deps\"></block></value></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"deal_damage\" inline=\"false\"><value name=\"amount\"><block type=\"math_dual_ops\" inline=\"false\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"entity_health\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><value name=\"B\"><block type=\"math_dual_ops\" inline=\"false\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"item_get_enhancement\"><field name=\"enhancement\">CUSTOM:RuiningEnchantment</field><value name=\"item\"><block type=\"entity_iteminhand\"><value name=\"entity\"><block type=\"source_entity_from_deps\"></block></value></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">0.05</field></block></value></block></value></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"damagesource\"><block type=\"damagesource_from_type_cause\"><field name=\"damagetype\">MAGIC</field><value name=\"cause\"><block type=\"source_entity_from_deps\"></block></value></block></value></block></statement></block></statement></block></next></block></xml>"
}
}