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

//Set title String
setTitle("Health Upgrades")

//Set description String
setDescription("Red Heart Canisters are baubles that increase player health when equipped.")

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

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasHeartCanisterRed", "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:red_heart_canister>)

drawDirectLines(true)

//Set the position
setPos(-213,26)

//Rewards
setRewardExperience(4)