Recipe Unlocker Boot Script - northwesttrees-gaming/CCTVCraft-Forge GitHub Wiki
General
This function is linked to the "minecraft:load" function tag.
Its main use is to create the scoreboard objectives for unlocking recipes.
Function Script
# This script will run when the world is loaded or reloaded.
# | Sets up recipe triggers for when a ITEM IS BROKEN | minecraft.broken:namespace.registry
# | Sets up recipe triggers for when CUSTOM TRIGGER HAPPENS | minecraft.custom:namespace.registry
# | Sets up recipe triggers for when a ITEM IS CRAFTED | minecraft.crafted:namespace.registry
scoreboard objectives add cctvcraftRecipe02 minecraft.crafted:cctvcraft.aluminum_ingot
scoreboard objectives add cctvcraftRecipe03 minecraft.crafted:cctvcraft.aluminum_plate
scoreboard objectives add cctvcraftRecipe04 minecraft.crafted:cctvcraft.hand_saw
scoreboard objectives add cctvcraftRecipe05 minecraft.crafted:cctvcraft.wooden_board
scoreboard objectives add cctvcraftRecipe06 minecraft.crafted:cctvcraft.aluminum_wire
scoreboard objectives add cctvcraftRecipe07 minecraft.crafted:cctvcraft.aluminum_nugget
scoreboard objectives add cctvcraftRecipe08 minecraft.crafted:cctvcraft.copper_wire
# | Sets up recipe triggers for when a ITEM IS DROPPED | minecraft.dropped:namespace.registry
# | Sets up recipe triggers for when a ENTITY IS KILLED | minecraft.killed:namespace.registry
# | Sets up recipe triggers for when a ENTITY IS KILLED BY | minecraft.killed_by:namespace.registry
# | Sets up recipe triggers for when a BLOCK IS MINED | minecraft.mined:namespace.registry
scoreboard objectives add cctvcraftRecipe01 minecraft.mined:cctvcraft.aluminum_ore
# | Sets up recipe triggers for when a ITEM IS PICKED UP | minecraft.picked_up:namespace.registry
# | Sets up recipe triggers for when a ITEM IS USED | minecraft.used:namespace.registry
Related Pages
Changes
- 4.8.0
- Added Recipe Unlocker Boot Function Script