setTranslatedTitle("advancements.stage0.chestupgrade.title")

setIcon("primalchests:primal_chest_advanced")

setTranslatedDescription("advancements.stage0.chestupgrade.description")

addParent("triumph:stage0/firstchest")
setRequiresParents()

//Criteria
criteria = addCriteria("hasRock", "minecraft:inventory_changed")
criteria.setItem("primalchests:primal_chest")

//Rewards
setRewardExperience(4)

visibleIf("triumph:stage0/root")