How do I make an arrow explode if it lands and the player has a custom enchant?
right now I have this: explode.mcfunction summon creeper ~ ~ ~ {Fuse:0, ignited:true, ExplosionRadius:10} kill @s
tick.mcfunction execute as @e[type=arrow,nbt={inGround:1b}] at @s run function pack:explode
and the custom enchant is just { "description": "Explode", "supported_items": "minecraft:bow", "exclusive_set": "minecraft:infinity", "slots": ["mainhand"], "weight": 100, "anvil_cost": 0, "min_cost": { "base": 1, "per_level_above_first": 0 }, "max_cost": { "base": 10, "per_level_above_first": 0 }, "max_level": 1 }