#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
#                      DATAPACK INFO                     #
# ------------------------------------------------------ #
#     Author: GenMode                                    #
#     URL: https://github.com/GenMode/Minecraft/wiki     #
#                                                        #
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#

# Initialize
scoreboard objectives add data_api dummy
scoreboard objectives add recipes_plus dummy

# Function
execute unless score *update recipes_plus matches 10710 run function recipes_plus:load_main {update: 10710}

# Close
execute unless score *update data_api matches 0.. \
    run tellraw @a {\
        color: "yellow", \
        fallback: "%s has been reloaded", \
        translate: "dataPack.minecraft.reload", \
        with: [{fallback: "Recipes Plus", translate: "pack.recipes_plus"}]}