
//Set icon item
setIcon(<iceandfire:dragonforge_ice_core_disabled>)

//Set title String
setTitle("Metal from Ice Dragons")

//Set description String
setDescription("The Ice Dragon forge is a 3x3x3 multiblock structure that creates Ice Dragonsteel Ingots using iron and Ice Dragon Blood. It is powered by a stage 2+ Ice dragon that can be obtained from a dragon egg. The bottom and top layers have Dragon Bone blocks in all four corners, with the other 5 blocks being Dragonforge Ice Bricks. The center layer consists of all Dragonforge Ice Bricks, except for the center block which is a Dragonforge Ice Core, and 1 of the four blocks next to it on the same layer being a Dragonforge Ice Aperture.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:islandparadisepart6/dragonbone")
addParent("triumph:islandparadisepart6/icedragonblood")
addParent("triumph:islandparadisepart6/dragoneggred")
addParent("triumph:islandparadisepart6/dragonegggreen")
addParent("triumph:islandparadisepart6/dragoneggbronze")
addParent("triumph:islandparadisepart6/dragoneggblue")
addParent("triumph:islandparadisepart6/dragoneggwhite")
addParent("triumph:islandparadisepart6/dragoneggsapphire")
addParent("triumph:islandparadisepart6/dragoneggsilver")
addParent("triumph:islandparadisepart6/dragonegggray")
addParent("triumph:islandparadisepart6/reddragonscale")
addParent("triumph:islandparadisepart6/greendragonscale")
addParent("triumph:islandparadisepart6/bronzedragonscale")
addParent("triumph:islandparadisepart6/bluedragonscale")
addParent("triumph:islandparadisepart6/whitedragonscale")
addParent("triumph:islandparadisepart6/sapphiredragonscale")
addParent("triumph:islandparadisepart6/silverdragonscale")
addParent("triumph:islandparadisepart6/graydragonscale")

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

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

drawDirectLines(true)

//Set the position
setPos(-331,-45)

//Rewards
setRewardExperience(4)