{
	"display": {
		"icon": {
			"id": "minecraft:red_bed"
		},
		"title": {"translate":"Sweet dreams"},
		"description": {"color":"green","translate":"Sleep in a bed to change your respawn point"},
		"announce_to_chat": true
	},
	"parent": "blazeandcave:building/your_door_was_locked",
	"rewards": {
		"function": "bacap_rewards:building/sweet_dreams"
	},		
	"criteria": {
		"slept_in_bed": {
			"trigger": "minecraft:slept_in_bed"
		}
	}
}