#####execute positioned ~ ~15000 ~ run kill @e[type=falling_block,sort=nearest,tag=LanternSand,tag=ReplaceMe,distance=..4]
#####execute positioned ~ ~15000 ~ run kill @e[sort=nearest,type=armor_stand,tag=LanternEventStands,tag=ReplaceMe,distance=..4]

execute at @s[tag=!DoNoEffect] run effect give @p[gamemode=!spectator] speed 15 0
execute at @s[tag=!DoNoEffect] run effect give @p[gamemode=!spectator] absorption 15 0
execute at @s[tag=!DoNoEffect] run effect give @p[gamemode=!spectator] resistance 15 0
execute at @s[tag=!DoNoEffect] run effect give @p[gamemode=!spectator] strength 15 0
execute at @s[tag=!DoNoEffect] run scoreboard players add @p[gamemode=!spectator] KyuLanternLuck 1
execute at @s[tag=!DoNoEffect] run execute if predicate suhc:25percent run effect give @p[gamemode=!spectator] regeneration 1 2
#execute at @s[tag=!DoNoEffect] run particle minecraft:witch ~ ~1.65 ~ 0.2 0.65 0.2 1 20 force
execute at @s[tag=!DoNoEffect] run particle minecraft:scrape ~ ~1.4 ~ 0.25 .2 0.25 25.05 50 force
execute at @s[tag=!DoNoEffect] run playsound minecraft:block.amethyst_block.chime block @a[distance=..10] ~ ~1 ~ 15 1 1
execute at @s[tag=!DoNoEffect] run tellraw @p[gamemode=!spectator] ["",{"text":"As you approach the lantern, it transfers its luck to you, and then vanishes.","color":"dark_aqua","italic":true}]

#execute at @s[tag=!DoNoEffect] run setblock ~ ~1 ~ lantern
execute at @s positioned ~ ~1 ~ run kill @e[type=falling_block,tag=LanternSand,distance=..1]
execute at @s[tag=!DoNoEffect] run fill ~1 ~1 ~1 ~-1 ~2 ~-1 air replace light
execute at @s[tag=!DoNoEffect] run fill ~ ~1 ~ ~ ~ ~ air replace lantern
#execute at @s[tag=!DoNoEffect] run execute at @s run summon armor_stand ~ ~ ~ {Invisible:1,NoGravity:1b,Small:1b,Tags:["LanternEventStandsBlock"],DisabledSlots:4144959}
execute at @s run tp @s ~ ~-150 ~
execute at @s run kill @e[type=falling_block,sort=nearest,tag=LanternSand,distance=..4]
execute at @s run kill @s