r/MinecraftCommands • • 2d ago

Help | Java 26.3 Advancement data pack dev help

I'm using the advancement generator on this site but it's very confusing for me, I'm new so I guess that's expected.

I'm trying to make an advancement for killing the warden and I'm using "player killed entity" but when I click on entity and player it doesn't give me an option to just do the entity type thing and do minecraft:warden from there or minecraft:player

Again it's probably something very easy that I'm confused on so yeah

3 Upvotes

2 comments sorted by

1

u/GalSergey Datapack Experienced 2d ago

You need to first select "entity_properties" on the site, and then select the "entity_type" check inside.

{
  "criteria": {
    "kill": {
      "trigger": "minecraft:player_killed_entity",
      "conditions": {
        "entity": {
          "type": "minecraft:entity_properties",
          "entity": "this",
          "predicate": {
            "minecraft:entity_type": "minecraft:warden"
          }
        }
      }
    }
  }
}