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.
26 lines
781 B
26 lines
781 B
6 years ago
|
|
||
|
//Set icon item
|
||
|
setIcon(<minecraft:beacon>)
|
||
|
|
||
|
//Set title String
|
||
|
setTitle("Better Beacons")
|
||
|
|
||
|
//Set description String
|
||
|
setDescription("Construct a 2 to 4 layer beacon")
|
||
|
|
||
|
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
|
||
|
addParent("triumph:example/root")
|
||
|
|
||
|
//Set the position
|
||
|
setPos(11,65)
|
||
|
|
||
|
//Hide the connection lines, so I can have a pretty shape
|
||
|
hideLines()
|
||
|
|
||
|
//Adds criteria named "beacon" with the trigger type "minecraft:construct_beacon". This function returns the criteria trigger as an object
|
||
|
criteria = addCriteria("beacon", "minecraft:construct_beacon")
|
||
|
|
||
|
//Sets the required beacon levels for the criteria.
|
||
|
criteria.setLevelsMinMax(2, 4)
|
||
|
|
||
|
//By not setting anything about requirements here, all criteria are automatically required
|