scoreboard players add @e[distance=..3,type=marker,tag=MagnetManiaEvent] KyuDummy 1
scoreboard players add @e[distance=..3,type=marker,tag=MagnetManiaEvent] KyuDummy2 1
#execute as @e[distance=..20,type=armor_stand,name=DayQ] run execute as @a[tag=K,gamemode=!spectator] run execute at @s run execute unless entity @a[gamemode=!spectator,distance=..75,nbt={Inventory:[{tag:{kyunaturegift:1b}}]}] run execute as @e[type=item,distance=..20,tag=!KyuMagnetLaunch,tag=!NetherShopText,tag=!DoNotMagnet] run function zzzzdonotuse:randomevent/magnetmania/movemobs
#bandaid fix
execute at @e[type=armor_stand,name=LavD] positioned ~46 5 ~1 run tag @e[type=item,distance=..25] add DoNotMagnet

execute if entity @e[distance=..3,type=marker,tag=MagnetManiaEvent,scores={KyuDummy=200..}] run execute as @e[distance=..20,type=armor_stand,name=DayQ] run function zzzzdonotuse:randomevent/magnetmania/movemobs1
tag @e remove KyuMagnetLaunch




execute if entity @e[distance=..3,type=marker,tag=MagnetManiaEvent,scores={KyuDummy=1400..}] run execute in overworld run data merge block 999982 128 999973 {auto:0b}
execute if entity @e[distance=..3,type=marker,tag=MagnetManiaEvent,scores={KyuDummy=1400..}] run tellraw @a[team=P] ["",{"text":"You feel that sticky feeling fade away.","color":"gray","italic":true}]
execute if entity @e[distance=..3,type=marker,tag=MagnetManiaEvent,scores={KyuDummy=1400..}] run kill @e[distance=..3,type=marker,tag=MagnetManiaEvent,scores={KyuDummy=1400..}]

execute unless entity @e[distance=..3,type=marker,tag=MagnetManiaEvent] run execute in overworld run data merge block 999982 128 999973 {auto:0b}
