damage: type: world events: after player left clicks block: - if !: - flag tempstrength:0 - if !: - flag tempstrength:0 - if !: - flag strength:0 - if && = 0: - spawn armor_stand[visible=false;gravity=false] save:aaa - define aaa - playeffect effect:sweep_attack at:<[aaa].location.above[1]> quantity:1 offset:0 - foreach <[aaa].location.find_entities[npc].within[2]> as:monster: - hurt ]>]> <[monster]> source: - wait 0.1s - remove - flag attackcool:1 - wait s - flag attackcool:0 damage2: type: world events: after player damages entity: - if && = 0: - spawn armor_stand[visible=false;gravity=false] save:aaa - define aaa - playeffect effect:sweep_attack at:<[aaa].location.above[1]> quantity:1 offset:0 - foreach <[aaa].location.find_entities[npc].within[2]> as:monster: - hurt ]>]> <[monster]> source: - wait 0.1s - remove - flag attackcool:1 - wait s - flag attackcool:0