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
891 B
24 lines
891 B
5 years ago
|
|
||
|
//Set icon item
|
||
|
setIcon(<minecraft:stick, nbt:{ench:[{lvl:1s,id:51s}],display:{Name:"The Stick of Truth"}}>)
|
||
|
|
||
|
//Set title String
|
||
|
setTitle("The Stick of Truth")
|
||
|
|
||
|
//Set description String
|
||
|
setDescription("Acquire the The Stick of Truth")
|
||
|
|
||
|
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
|
||
|
addParent("triumph:example/root")
|
||
|
|
||
|
//Set the position
|
||
|
setPos(179,23)
|
||
|
|
||
|
//Hide the connection lines, so I can have a pretty shape
|
||
|
hideLines()
|
||
|
|
||
|
//Adds criteria named "hasStickOfTruth" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
|
||
|
criteria = addCriteria("hasStickOfTruth", "minecraft:inventory_changed")
|
||
|
|
||
|
//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
|
||
|
criteria.addItem(<minecraft:stick, nbt:{ench:[{lvl:1s,id:51s}],display:{Name:"The Stick of Truth"}}>)
|