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.
30 lines
1.1 KiB
30 lines
1.1 KiB
|
|
//Set icon item
|
|
setIcon(<minecraft:wool>)
|
|
|
|
//Set title String
|
|
setTitle("How is babby formed?")
|
|
|
|
//Set description String
|
|
setDescription("Breed a sheep, with a sheep, to produce... a sheep.")
|
|
|
|
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
|
|
addParent("triumph:example/root")
|
|
|
|
//Set the position
|
|
setPos(34,89)
|
|
|
|
//Hide the connection lines, so I can have a pretty shape
|
|
hideLines()
|
|
|
|
//Adds criteria named "bred_sheep" with the trigger type "minecraft:bred_animals". This function returns the criteria as an object
|
|
criteria = addCriteria("bred_sheep", "minecraft:bred_animals")
|
|
|
|
//Sets the required parent entity type for the criteria. This is the entity that the player must breed with the partner entity.
|
|
criteria.setParentType("minecraft:sheep")
|
|
|
|
//Sets the required partner entity type for the criteria. This is the entity that the player must breed with the parent entity.
|
|
criteria.setPartnerType("minecraft:sheep")
|
|
|
|
//Sets the required child entity type for the criteria. This is the entity that the player must produce by breeding the parent and partner together.
|
|
criteria.setChildType("minecraft:sheep") |