
# -> Remove temp tag
tag @s remove OverlyRealistic.Block.GoryHide_Temp

# -> Set rotation of the hide
execute on passengers \
    facing entity @p[tag=OverlyRealistic.Player.PlacedCustomBlock,distance=..64] feet run \
        rotate @s ~ 0

# -> Get data
data modify entity @s data.or_hide_type set from storage overly_realistic:blocks block_type_globalized

# -> Set item
$execute on passengers run \
    loot replace entity @s contents loot overly_realistic:animal_corpses/gory_hides/$(block_type_globalized)_hide
