Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-257528

Horses don't trigger "player_interacted_with_entity" advancement criteria

XMLWordPrintable

    • Community Consensus
    • Advancements, Data Packs
    • Low
    • Platform

      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:[

      {id:"minecraft:marker"}

      ],ArmorItem:{}} to summon the horse that fit's the advancement's criteria.

            Unassigned Unassigned
            ISamAtlas ISamAtlas
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: