{
	"rewards": {
		"function": "blazeandcave:advancement/riddle/seventh_line"
	},
	"criteria": {
		"seventh_line": {
			"trigger": "minecraft:thrown_item_picked_up_by_entity",
			"conditions": {
				"item": {
					"items": "#minecraft:piglin_loved"
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"predicate": {
							"entity_type": "minecraft:piglin",
							"flags": {
								"is_baby": true
							}
						},
						"entity": "this"
					}
				],
				"player":  {
					"minecraft:type_specific/player": {

						"advancements": {
							"blazeandcave:technical/riddle_sixth_line": true
						}
					}
				}
			}
		},
		"seventh_line_directly": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": "#minecraft:piglin_loved"
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"predicate": {
							"entity_type": "minecraft:piglin",
							"flags": {
								"is_baby": true
							}
						},
						"entity": "this"
					}
				],
				"player":  {
					"minecraft:type_specific/player": {

						"advancements": {
							"blazeandcave:technical/riddle_sixth_line": true
						}
					}
				}
			}
		}
	},
	"requirements": [
		[
			"seventh_line",
			"seventh_line_directly"
		]
	]
}
