
//Set the icon item
setIcon(<minecraft:bed:14>)

//Set the title String
setTitle("Red One Sleeps Snoozier")

//Set the description String
setDescription("Create the red bed and sleep in it")

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

setFrameType("challenge")

//Set the position
setPos(57,17)

hideLines()

criteria = addCriteria("crafted", "triumph:player_crafted_item")

criteria.setItem(<minecraft:bed:14>)

addCriteria("slept_in_bed", "minecraft:slept_in_bed")