{ "description": { "translate": "enchantment.minecraft.channeling" }, "supported_items": "#minecraft:enchantable/trident", "weight": 1, "max_level": 1, "min_cost": { "base": 25, "per_level_above_first": 0 }, "max_cost": { "base": 50, "per_level_above_first": 0 }, "anvil_cost": 8, "slots": [ "mainhand" ], "effects": { "minecraft:hit_block": [ { "effect": { "effects": [ { "entity": "minecraft:lightning_bolt", "type": "minecraft:summon_entity" }, { "sound": "minecraft:item.trident.thunder", "volume": 5.0, "pitch": 1.0, "type": "minecraft:play_sound" } ], "type": "minecraft:all_of" }, "requirements": { "terms": [ { "thundering": true, "condition": "minecraft:weather_check" }, { "predicate": { "type": "minecraft:trident" }, "entity": "this", "condition": "minecraft:entity_properties" }, { "predicate": { "block": { "blocks": "#minecraft:lightning_rods" }, "can_see_sky": true }, "condition": "minecraft:location_check" } ], "condition": "minecraft:all_of" } } ], "minecraft:post_attack": [ { "enchanted": "attacker", "affected": "victim", "effect": { "effects": [ { "entity": "minecraft:lightning_bolt", "type": "minecraft:summon_entity" }, { "sound": "minecraft:item.trident.thunder", "volume": 5.0, "pitch": 1.0, "type": "minecraft:play_sound" } ], "type": "minecraft:all_of" }, "requirements": { "terms": [ { "thundering": true, "condition": "minecraft:weather_check" }, { "predicate": { "location": { "can_see_sky": true } }, "entity": "this", "condition": "minecraft:entity_properties" }, { "predicate": { "type": "minecraft:trident" }, "entity": "direct_attacker", "condition": "minecraft:entity_properties" } ], "condition": "minecraft:all_of" } } ] } }