
execute as @a at @s run function aop1:player
execute as @e[type=area_effect_cloud] at @s run function aop1:are
execute as @e[tag=fly,type=armor_stand] at @s run function aop1:fly
#execute as @e[tag=mob] at @s run function aop1:mob
scoreboard players add @e[tag=fly21] sw 1
kill @e[tag=fly21,scores={sw=5..}]
tag @e[tag=!type1,type=!wither,type=!phantom,type=!#skeletons,type=!zombie,type=!zombie_villager,type=!zombified_piglin,type=!drowned,type=!husk,type=!zoglin,tag=!type2,type=!item,type=!item_frame,type=!experience_orb,type=!armor_stand,type=!arrow,type=!painting,type=!glow_item_frame] add type1
tag @e[tag=!type2,tag=!type1] add type2
execute as @e[type=armor_stand,tag=222222] at @s run tp @s ^3 ^ ^2 facing entity @e[name=wee,limit=1,sort=nearest]
scoreboard players remove @e[scores={sw2=1..}] sw2 1
#execute at @e[scores={damage=1..}] if entity @e[tag=fly,type=armor_stand,distance=..10] run tag @e[scores={damage=1..},nbt={SelectedItem:{tag:{fly:1}}}] add dammmmm
#execute at @e[scores={damage=1..}] if entity @e[tag=fly,type=armor_stand,distance=..10] run scoreboard players set @e[scores={damage=1..}] sw1 60
#scoreboard players remove 



execute at @e[type=item,nbt={Item:{id:"minecraft:diamond_sword"}}] run execute if entity @e[type=item,nbt={Item:{id:"minecraft:diamond_block",Count:64b}},distance=..1.5] run summon area_effect_cloud ^ ^18.5 ^ {Duration:1200,PersistenceRequired:1,CustomName:"\"wee\"",Silent:1,NoAI:1,Invisible:1b,NoBasePlate:1b,NoGravity:1b}
execute at @e[type=item,nbt={Item:{id:"minecraft:diamond_sword"}}] run execute if entity @e[type=item,nbt={Item:{id:"minecraft:diamond_block",Count:64b}},distance=..1.5] run kill @e[type=item,distance=..2]
#execute at @e[type=item,nbt={Item:{id:"minecraft:flint_and_steel"}}] run execute if entity @e[type=item,nbt={Item:{id:"minecraft:netherite_ingot",Count:1b}},distance=..1.5] if entity @e[type=item,nbt={Item:{id:"minecraft:gunpowder",Count:10b}},distance=..1.5] run function aop1:get
scoreboard players reset @e damage 
#execute as @e[type=item,nbt={Item:{tag:{stick:1}}}] at @s run function aop1:ground
#execute as @e[type=item,nbt={Item:{tag:{bow:1}}}] at @s run function aop1:ground99
