{
	"display": {
		"icon": {
			"id": "minecraft:iron_block"
		},
		"title": {"translate":"Washing Machine"},
		"description": {"color":"#75E1FF","translate":"Use a cauldron to clean leather armor, a banner and a shulker box"},
		"announce_to_chat": true,
		"frame": "goal"
	},
	"parent": "blazeandcave:building/bubble_bubble_toil_and_trouble",
	"rewards": {
		"function": "bacap_rewards:building/washing_machine"
	},
	"criteria": {
		"clean_leather_armor": {
			"trigger": "minecraft:item_used_on_block",
			"conditions": {
				"location": [
					{
						"condition": "minecraft:location_check",
						"predicate": {
							"block": {
								"blocks": "#minecraft:cauldrons"
							}
						}
					},
					{
						"condition": "minecraft:match_tool",
						"predicate": {
							"items": "#blazeandcave:leather_armor"
						}
					}
				]
			}
		},
		"clean_banner": {
			"trigger": "minecraft:item_used_on_block",
			"conditions": {
				"location": [
					{
						"condition": "minecraft:location_check",
						"predicate": {
							"block": {
								"blocks": "#minecraft:cauldrons"
							}
						}
					},
					{
						"condition": "minecraft:match_tool",
						"predicate": {
							"items": "#minecraft:banners"
						}
					}
				]
			}
		},
		"clean_shulker_box": {
			"trigger": "minecraft:item_used_on_block",
			"conditions": {
				"location": [
					{
						"condition": "minecraft:location_check",
						"predicate": {
							"block": {
								"blocks": "#minecraft:cauldrons"
							}
						}
					},
					{
						"condition": "minecraft:match_tool",
						"predicate": {
							"items": "#minecraft:shulker_boxes"
						}
					}
				]
			}
		}
	}
}