Pumpkin/assets/datapack/data/minecraft/advancement/nether/distract_piglin.json

163 lines
4.4 KiB
JSON

{
"parent": "minecraft:nether/root",
"criteria": {
"distract_piglin": {
"conditions": {
"entity": {
"type": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"minecraft:entity_type": "minecraft:piglin",
"minecraft:flags": {
"is_baby": false
}
}
},
"item": {
"items": "#minecraft:piglin_loved"
},
"player": {
"type": "minecraft:inverted",
"term": {
"type": "minecraft:any_of",
"terms": [
{
"type": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"minecraft:equipment": {
"head": {
"items": "#minecraft:piglin_safe_armor"
}
}
}
},
{
"type": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"minecraft:equipment": {
"chest": {
"items": "#minecraft:piglin_safe_armor"
}
}
}
},
{
"type": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"minecraft:equipment": {
"legs": {
"items": "#minecraft:piglin_safe_armor"
}
}
}
},
{
"type": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"minecraft:equipment": {
"feet": {
"items": "#minecraft:piglin_safe_armor"
}
}
}
}
]
}
}
},
"trigger": "minecraft:thrown_item_picked_up_by_entity"
},
"distract_piglin_directly": {
"conditions": {
"entity": {
"type": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"minecraft:entity_type": "minecraft:piglin",
"minecraft:flags": {
"is_baby": false
}
}
},
"item": {
"items": "minecraft:gold_ingot"
},
"player": {
"type": "minecraft:inverted",
"term": {
"type": "minecraft:any_of",
"terms": [
{
"type": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"minecraft:equipment": {
"head": {
"items": "#minecraft:piglin_safe_armor"
}
}
}
},
{
"type": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"minecraft:equipment": {
"chest": {
"items": "#minecraft:piglin_safe_armor"
}
}
}
},
{
"type": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"minecraft:equipment": {
"legs": {
"items": "#minecraft:piglin_safe_armor"
}
}
}
},
{
"type": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"minecraft:equipment": {
"feet": {
"items": "#minecraft:piglin_safe_armor"
}
}
}
}
]
}
}
},
"trigger": "minecraft:player_interacted_with_entity"
}
},
"display": {
"description": {
"translate": "advancements.nether.distract_piglin.description"
},
"icon": {
"id": "minecraft:gold_ingot"
},
"title": {
"translate": "advancements.nether.distract_piglin.title"
}
},
"requirements": [
[
"distract_piglin",
"distract_piglin_directly"
]
],
"sends_telemetry_event": true
}