
# -> Modify data
execute if score #or.equation_part_1 OverlyRealistic.General.ArbitraryData matches 1 run \
    data merge entity @s {Tags:["OverlyRealistic.Block.TanningRack_Item","OverlyRealistic.Block.TanningRack_Item_Rot_NorthSouth"],item: {count: 1, id: "minecraft:rabbit_hide"}, transformation: {left_rotation: [0.0f, 0.0f, 0.0f, 1.0f], right_rotation: [0.0f, 0.0f, 0.0f, 1.0f], scale: [0.8124999f, 0.8125001f, 0.8124999f], translation: [0.0f, 0.08f, 0.0f]}}
execute if score #or.equation_part_1 OverlyRealistic.General.ArbitraryData matches 2 run \
    data merge entity @s {Tags:["OverlyRealistic.Block.TanningRack_Item","OverlyRealistic.Block.TanningRack_Item_Rot_EastWest"],item: {count: 1, id: "minecraft:rabbit_hide"}, transformation: {left_rotation: [0.0f, -0.7071068f, 0.0f, 0.7071068f], right_rotation: [0.0f, 0.0f, 0.0f, 1.0f], scale: [0.81249994f, 0.81250006f, 0.81249994f], translation: [0.0f, 0.08f, 0.0f]}}

# -> Set item
execute if score #or.global OverlyRealistic.General.ArbitraryData matches 1 run \
    item replace entity @s contents from entity @p[tag=OverlyRealistic.Player.TempPlayer] weapon.mainhand
execute if score #or.global OverlyRealistic.General.ArbitraryData matches 2 run \
    item replace entity @s contents from entity @p[tag=OverlyRealistic.Player.TempPlayer] weapon.offhand

# -> Reset count
data modify entity @s item.count set value 1
