Horses don't trigger "player_interacted_with_entity" advancement criteria
When coding a datapack with the advancement "player_interacted_with_entity" trigger, the advancement doesn't trigger if the horse has a passenger but still allows you to right click (interact) with it.
The advancement:
{
"criteria": {
"requirement": {
"trigger": "minecraft:player_interacted_with_entity",
"conditions": {
"entity": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"type": "minecraft:horse",
"passenger":
{ "type": "minecraft:marker" }
}
}
]
}
}
},
"rewards": {
"function": "placeholder:placeholder"
}
}
This also applies to the skeleton horse, zombie horse, llama, trader llama, donkey, mule, and boats.
Edit: Run the command
/summon horse ~ ~ ~ {Passengers:[
],ArmorItem:{}} to summon the horse that fit's the advancement's criteria.
Created Issue:
Horses don't trigger "player_interacted_with_entity" advancement criteria
When coding a datapack with the advancement "player_interacted_with_entity" trigger, the advancement doesn't trigger if the horse has a passenger but still allows you to right click (interact) with it.
The advancement:
*{
{ "type": "minecraft:marker" }
"criteria": {
"requirement": {
"trigger": "minecraft:player_interacted_with_entity",
"conditions": {
"entity": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"type": "minecraft:horse",
"passenger":}
}
]
}
}
},
"rewards": {
"function": "placeholder:placeholder"
}
}*This also applies to the skeleton horse, zombie horse, llama, trader llama, donkey, and mule
Environment
Java 8
When coding a datapack with the advancement "player_interacted_with_entity" trigger, the advancement doesn't trigger if the horse has a passenger but still allows you to right click (interact) with it.
The advancement:
*{
{ "type": "minecraft:marker" }
"criteria": {
"requirement": {
"trigger": "minecraft:player_interacted_with_entity",
"conditions": {
"entity": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"type": "minecraft:horse",
"passenger":}
}
]
}
}
},
"rewards": {
"function": "placeholder:placeholder"
}
}*This also applies to the skeleton horse, zombie horse, llama, trader llama, donkey, and mule
When coding a datapack with the advancement "player_interacted_with_entity" trigger, the advancement doesn't trigger if the horse has a passenger but still allows you to right click (interact) with it.
The advancement:
{ "criteria": { "requirement": { "trigger": "minecraft:player_interacted_with_entity", "conditions": { "entity": [ { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "type": "minecraft:horse", "passenger": { "type": "minecraft:marker" } } } ] } } }, "rewards": { "function": "placeholder:placeholder" } }This also applies to the skeleton horse, zombie horse, llama, trader llama, donkey, and mule
When coding a datapack with the advancement "player_interacted_with_entity" trigger, the advancement doesn't trigger if the horse has a passenger but still allows you to right click (interact) with it.
The advancement:
{ "criteria": { "requirement": { "trigger": "minecraft:player_interacted_with_entity", "conditions": { "entity": [ { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "type": "minecraft:horse", "passenger": { "type": "minecraft:marker" } } } ] } } }, "rewards": { "function": "placeholder:placeholder" } }This also applies to the skeleton horse, zombie horse, llama, trader llama, donkey,
andmuleWhen coding a datapack with the advancement "player_interacted_with_entity" trigger, the advancement doesn't trigger if the horse has a passenger but still allows you to right click (interact) with it.
The advancement:
{ "criteria": { "requirement": { "trigger": "minecraft:player_interacted_with_entity", "conditions": { "entity": [ { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "type": "minecraft:horse", "passenger": { "type": "minecraft:marker" } } } ] } } }, "rewards": { "function": "placeholder:placeholder" } }This also applies to the skeleton horse, zombie horse, llama, trader llama, donkey, mule, and boats.
When coding a datapack with the advancement "player_interacted_with_entity" trigger, the advancement doesn't trigger if the horse has a passenger but still allows you to right click (interact) with it.
The advancement:
{ "criteria": { "requirement": { "trigger": "minecraft:player_interacted_with_entity", "conditions": { "entity": [ { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "type": "minecraft:horse", "passenger": { "type": "minecraft:marker" } } } ] } } }, "rewards": { "function": "placeholder:placeholder" } }This also applies to the skeleton horse, zombie horse, llama, trader llama, donkey, mule, and boats.
Edit: Run the command
{id:"minecraft:marker"}
/summon horse ~ ~ ~ {Passengers:[],ArmorItem:{}} to summon the horse that fit's the advancement's criteria.
When coding a datapack with the advancement "player_interacted_with_entity" trigger, the advancement doesn't trigger if the horse has a passenger but still allows you to right click (interact) with it.
The advancement:
{ "criteria": { "requirement": { "trigger": "minecraft:player_interacted_with_entity", "conditions": { "entity": [ { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "type": "minecraft:horse", "passenger": { "type": "minecraft:marker" } } } ] } } }, "rewards": { "function": "placeholder:placeholder" } }This also applies to the skeleton horse, zombie horse, llama, trader llama, donkey, mule, and boats.
Edit: Run the command
{id:"minecraft:marker"}
/summon horse ~ ~ ~ {Passengers:[],ArmorItem:{}} to summon the horse that fit's the advancement's criteria.
Please give me the data pack you use to testing, it's easier than I create the data pack.
Ok, can confirm in 1.19.3 and 23w03a. Related to
MC-254899andMC-258907.Still an issue in 23w05a