{
	"type": "minecraft:entity",
	"pools": [
		{
			"rolls": 1,
			"bonus_rolls": 0,
			"entries": [
				{
					"type": "minecraft:alternatives",
					"children": [
						{
							"type": "minecraft:item",
							"name": "minecraft:ender_pearl",
							"conditions": [
								{
									"condition": "minecraft:location_check",
									"predicate": {
										"dimension": "minecraft:the_nether"
									}
								}
							]
						},
						{
							"type": "minecraft:item",
							"name": "minecraft:chorus_fruit"
						}
					]
				}
			],
			"functions": [
				{
					"function": "minecraft:set_count",
					"count": {
						"min": 0,
						"max": 1
					}
				},
				{
					"function": "minecraft:enchanted_count_increase",
					"enchantment": "minecraft:looting",
					"count": {
						"min": 0,
						"max": 1
					}
				}
			],
			"conditions": [
				{
					"condition": "minecraft:inverted",
					"term": {
						"condition": "minecraft:location_check",
						"predicate": {
							"dimension": "minecraft:the_end"
						}
					}
				}
			]
		},
		{
			"rolls": {
				"min": 0,
				"max": 1
			},
			"entries": [
				{
					"type": "minecraft:alternatives",
					"children": [
						{
							"type": "minecraft:item",
							"name": "minecraft:ender_eye",
							"conditions": [
								{
									"condition": "minecraft:random_chance",
									"chance": 0.2
								}
							]
						},
						{
							"type": "minecraft:item",
							"name": "minecraft:ender_pearl",
							"functions": [
								{
									"function": "minecraft:set_count",
									"count": {
										"min": 0,
										"max": 1
									}
								},
								{
									"function": "minecraft:enchanted_count_increase",
									"enchantment": "minecraft:looting",
									"count": {
										"min": 0,
										"max": 1
									}
								}
							]
						}
					]
				}
			],
			"conditions": [
				{
					"condition": "minecraft:location_check",
					"predicate": {
						"dimension": "minecraft:the_end"
					}
				}
			]
		}
	]
}
