You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
757 B
24 lines
757 B
|
|
//Set icon item
|
|
setIcon(<minecraft:crafting_table>)
|
|
|
|
//Set title String
|
|
setTitle("Recipe Unlocked!")
|
|
|
|
//Set description String
|
|
setDescription("Unlock the recipe for diamonds")
|
|
|
|
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
|
|
addParent("triumph:example/root")
|
|
|
|
//Set the position
|
|
setPos(149,89)
|
|
|
|
//Hide the connection lines, so I can have a pretty shape
|
|
hideLines()
|
|
|
|
//Adds criteria named "unlocked_recipe" with the trigger type "minecraft:recipe_unlocked". This function returns the criteria as an object
|
|
criteria = addCriteria("unlocked_recipe", "minecraft:recipe_unlocked")
|
|
|
|
//Sets the required recipe for the criteria. This is the recipe that the player must unlock.
|
|
criteria.setRecipe("minecraft:diamond") |