execute if items entity @e[type=minecraft:item_frame,limit=1,sort=nearest] container.0 minecraft:redstone_torch positioned as @s positioned ~1 ~2 ~1 run return run place template ws:redstone_torch ~ ~ ~
execute if items entity @e[type=minecraft:item_frame,limit=1,sort=nearest] container.0 minecraft:torch positioned as @s positioned ~1 ~2 ~1 run return run place template ws:torch ~ ~ ~
execute if items entity @e[type=minecraft:item_frame,limit=1,sort=nearest] container.0 minecraft:lantern positioned as @s positioned ~1 ~2 ~1 run return run place template ws:lantern ~ ~ ~
execute if items entity @e[type=minecraft:item_frame,limit=1,sort=nearest] container.0 minecraft:jack_o_lantern positioned as @s positioned ~1 ~2 ~1 run return run place template ws:jack_o_lantern ~ ~ ~
execute positioned as @s positioned ~1 ~2 ~1 run place template ws:default_light ~ ~ ~