Minecraft triggers

Kill an entity — kill_entity

Kill a living entity.

Minecraft 1.21.1 · Fabric≈ 1 min read
CobblemonFabric

How to use

Kill a living entity. ENTITY selects the entity, ENTITY_GROUP selects a category and WEAPON filters the main-hand item at the time of the kill. Use player, hostile/monster, passive/animal or boss in entity_group. The boss category covers the Wither and Ender Dragon. For projectiles, the checked weapon can differ from the one used when firing.

Available filters

ALL, ENTITY, ENTITY_GROUP, WEAPON.

Objective example

Add this block under a quest's objectives. Adjust type and target, then activate the quest before performing the activity.

objetivo_kill_entity:
  id: kill_entity
  description: '&7Kill an entity'
  progress: '&7Progress: %progress%/%target%'
  type: 'entity=minecraft:zombie,weapon=minecraft:iron_sword'
  target: 10

See quest configuration and combining filters.