event.load("projectile_hit"); @wait wait(); if(loc_hit != null){ flame = enchantment.getLevel(enchantment.get("flame"), living.getEquip(shooter, "hand")); if(flame > 0){ if(plot.check(loc_hit, shooter, 3, true)){ loc = entity.getLocation(projectile); if(block.isAir(loc_hit)){ block.set(loc_hit,"minecraft:fire"); } if(block.isAir(loc)){ fire_ring(loc,"minecraft:fire",0); } } } } goto("wait"); function fire_ring(location,block,radius){ loc_x = loc.getX(location); loc_y = loc.getY(location); loc_z = loc.getZ(location); for(a = -radius; a < radius+1; a++){ loc.setX(location, loc_x + a); for(b = -radius; b < radius+1; b++){ loc.setY(location, loc_y + b); for(c = -radius; c < radius+1; c++){ loc.setZ(location, loc_z + c); if(block.isAir(location)){ block.set(location,block); } } } } }