execute if block ~ ~ ~ torch run tag @s add alreadytorch
execute if block ~ ~ ~ wall_torch run tag @s add alreadytorch
execute unless entity @s[tag=alreadytorch] run playsound minecraft:block.wood.place block @a ~ ~ ~ 1 .9
execute if block ~ ~ ~ #minecraft:air unless block ~ ~ ~.1 #survivalplus:notrap unless block ~ ~ ~.1 #minecraft:slabs run setblock ~ ~ ~ minecraft:wall_torch[facing=north]
execute if block ~ ~ ~ #minecraft:air unless block ~ ~ ~-.1 #survivalplus:notrap unless block ~ ~ ~.1 #minecraft:slabs run setblock ~ ~ ~ minecraft:wall_torch[facing=south]
execute if block ~ ~ ~ #minecraft:air unless block ~-.1 ~ ~ #survivalplus:notrap unless block ~-.1 ~ ~ #minecraft:slabs run setblock ~ ~ ~ minecraft:wall_torch[facing=east]
execute if block ~ ~ ~ #minecraft:air unless block ~.1 ~ ~ #survivalplus:notrap unless block ~.1 ~ ~ #minecraft:slabs run setblock ~ ~ ~ minecraft:wall_torch[facing=west]
execute if block ~ ~ ~ #minecraft:air unless block ~ ~-.1 ~ #survivalplus:notrap unless block ~ ~-.1 ~ #minecraft:slabs run setblock ~ ~ ~ minecraft:torch
function survivalplus:tools/archer/arrow/removetorch