Arrow that keeps exploding
I created an arrow that explodes when shot. The point is that since it explodes and destroys the block where it was placed, it travels again until it touches another block and continues to explode endlessly until a block that cannot explode stops it.
How do I make the arrow explode the blocks once and that's it?
Continue to help postjson { "description": "Explosion", "exclusive_set": "minecraft:flame", "supported_items": [ "minecraft:bow", "minecraft:crossbow" ], "weight": 1, "max_level": 1, "min_cost": { "base": 20, "per_level_above_first": 0 }, "max_cost": { "base": 50, "per_level_above_first": 0 }, "anvil_cost": 6, "slots": [ "mainhand" ], "effects": { "minecraft:post_attack": [ { "enchanted": "attacker", "affected": "victim", "effect": { "type": "minecraft:explode", "damage_type": "minecraft:explosion", "radius": 1, "block_interaction": "none", "small_particle": { "type": "minecraft:explosion_emitter" }, "large_particle": { "type": "minecraft:explosion_emitter" }, "sound": "minecraft:entity.generic.explode", "immune_blocks": "#minecraft:wither_immune" } } ], "minecraft:hit_block": [ { "effect": { "type": "minecraft:explode", "damage_type": "minecraft:explosion", "radius": 0.5, "block_interaction": "mob", "small_particle": { "type": "minecraft:explosion_emitter" }, "large_particle": { "type": "minecraft:explosion_emitter" }, "sound": "minecraft:entity.generic.explode", "immune_blocks": "#minecraft:wither_immune" } } ] } }