
//Set icon item
setIcon(<bhc:wither_bone>)

//Set title String
setTitle("Bones of Black")

//Set description String
setDescription("A Wither Bone is a drop from Wither Skeletons. They are a needed ingredient for heart containers.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:nether/nethercake")

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasWitherBone", "minecraft:inventory_changed")

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<bhc:wither_bone>)

drawDirectLines(true)

//Set the position
setPos(-267,101)

//Rewards
setRewardExperience(4)