Project home for New Alterlite - A new locaria community pack focused on a different approach of minecrafting.
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.
 
 
 
 
 
 
NewAlterlite/config/triumph/_example_script_/example_enchanted_item.txt

24 lines
738 B

//Set the icon item
setIcon(<minecraft:enchanted_book>)
//Set the title String
setTitle("Enchanting")
//Set the description String
setDescription("Enchant a golden sword")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(80,41)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "enchanted" with the trigger type "minecraft:enchanted_item". This function returns the criteria as an object
criteria = addCriteria("enchanted", "minecraft:enchanted_item")
//Sets the required item for the criteria. This is the item that needs to be enchanted.
criteria.setItem(<minecraft:golden_sword>)