#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
#  This Datapack was generated for private distribution only  #
# ----------------------------------------------------------- #
#                         DATAPACK INFO                       #
# ----------------------------------------------------------- #
#     Author: GenMode                                         #
#     Twitter: @DatapackGen                                   #
#     URL: https://github.com/GenMode/Minecraft/wiki          #
#                                                             #
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#


# If Block
execute unless block ~ ~ ~ #data_api:raycast if block ~ ~ ~ minecraft:chiseled_bookshelf run function data_api:item/tags/book/check_rotation

# Close
execute if entity @s[distance=..6] if block ~ ~ ~ #data_api:raycast positioned ^ ^ ^0.1 run function data_api:item/tags/book/raycast
