execute if entity @s[hasitem={item=minecraft:dark_oak_log}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:dark_oak_log}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:stripped_dark_oak_log
execute if entity @s[hasitem={item=minecraft:birch_log}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:birch_log}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:stripped_birch_log
execute if entity @s[hasitem={item=minecraft:spruce_log}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:spruce_log}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:stripped_spruce_log
execute if entity @s[hasitem={item=minecraft:dark_oak_door}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 5
execute if entity @s[hasitem={item=minecraft:crimson_hyphae}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:stripped_crimson_hyphae
execute if entity @s[hasitem={item=minecraft:mangrove_log}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:stripped_mangrove_log
execute if entity @s[hasitem={item=minecraft:dark_oak_sign}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 5
execute if entity @s[hasitem={item=minecraft:spruce_sign}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 1
execute if entity @s[hasitem={item=minecraft:trapdoor}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 0
execute if entity @s[hasitem={item=minecraft:spruce_trapdoor}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 1
execute if entity @s[hasitem={item=minecraft:mangrove_sign}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:mangrove_planks
execute if entity @s[hasitem={item=minecraft:warped_stem}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:warped_stem}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:stripped_warped_stem
execute if entity @s[hasitem={item=minecraft:warped_sign}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:warped_sign}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:warped_planks
execute if entity @s[hasitem={item=minecraft:mangrove_door}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:mangrove_planks
execute if entity @s[hasitem={item=minecraft:birch_door}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 2
execute if entity @s[hasitem={item=minecraft:warped_door}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:warped_planks
execute if entity @s[hasitem={item=minecraft:oak_log}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:oak_log}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:stripped_oak_log
execute if entity @s[hasitem={item=minecraft:acacia_log}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:acacia_log}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:stripped_acacia_log
execute if entity @s[hasitem={item=minecraft:jungle_log}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:jungle_log}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:stripped_jungle_log
execute if entity @s[hasitem={item=minecraft:birch_trapdoor}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 2
execute if entity @s[hasitem={item=minecraft:acacia_sign}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 4
execute if entity @s[hasitem={item=minecraft:crimson_door}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:crimson_planks
execute if entity @s[hasitem={item=minecraft:acacia_door}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 4
execute if entity @s[hasitem={item=minecraft:crimson_sign}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:crimson_planks
execute if entity @s[hasitem={item=minecraft:crimson_stem}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:crimson_stem}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:stripped_crimson_stem
execute if entity @s[hasitem={item=minecraft:jungle_trapdoor}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 3
execute if entity @s[hasitem={item=minecraft:crimson_trapdoor}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:crimson_planks
execute if entity @s[hasitem={item=minecraft:warped_trapdoor}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:warped_planks
execute if entity @s[hasitem={item=minecraft:birch_sign}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 2
execute if entity @s[hasitem={item=minecraft:oak_sign}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 0
execute if entity @s[hasitem={item=minecraft:acacia_trapdoor}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 4
execute if entity @s[hasitem={item=minecraft:stripped_warped_hyphae}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:stripped_warped_hyphae}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:stripped_warped_hyphae
execute if entity @s[hasitem={item=minecraft:jungle_sign}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 3
execute if entity @s[hasitem={item=minecraft:mangrove_trapdoor}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:mangrove_planks
execute if entity @s[hasitem={item=minecraft:wooden_door}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 0
execute if entity @s[hasitem={item=minecraft:jungle_door}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 3
execute if entity @s[hasitem={item=minecraft:spruce_door}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 1
execute if entity @s[hasitem={item=minecraft:dark_oak_door}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:planks 1 5
execute if entity @s[hasitem={item=minecraft:wood,data=1}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:wood,data=1}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:wood 1 9
execute if entity @s[hasitem={item=minecraft:mangrove_wood}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:mangrove_wood}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:stripped_mangrove_wood
execute if entity @s[hasitem={item=minecraft:wood,data=2}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:wood,data=2}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:wood 1 10
execute if entity @s[hasitem={item=minecraft:wood,data=4}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:wood,data=4}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:wood 1 12
execute if entity @s[hasitem={item=minecraft:wood,data=5}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:wood,data=5}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:wood 1 13
execute if entity @s[hasitem={item=minecraft:wood,data=2}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:wood,data=2}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:wood 1 10
execute if entity @s[hasitem={item=minecraft:wood,data=0}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:wood,data=0}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:wood 1 8
execute if entity @s[hasitem={item=minecraft:wood,data=3}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tree_bark
execute if entity @s[hasitem={item=minecraft:wood,data=3}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:wood 1 11
execute positioned as @s run playsound use.wood @a[r=6]