Entity Commands

Entity commands supports NPCs from Citizens

Mixed Commands

In addition of the following list of commands you can also use:

Mixed Commands (Player & Entity)

These commands can be used in the Player related commands OR Entity related commands.

Custom commands

Sorted by alphabetical order

ANGRY_AT

  • Info: Sets the entity target to a specific UUID

  • Command settings:

    • entityUUID: The entity UUID of the target

  • Example:

- ANGRY_AT entityUUID:%player_uuid%
# To reset the angry set null
- ANGRY_AT entityUUID:null

AWARENESS

  • Info: Sets whether this mob is aware of its surroundings. Unaware mobs will still move if pushed, attacked, etc. but will not move or perform any actions on their own. Unaware mobs may also have other unspecified behaviours disabled, such as drowning.

it only works for 1.16.5+

  • Command settings:

    • value: true or false

  • Example:

- AWARENESS value:true

CHANGE_TO

  • Info: Replaces the mob with an entity of another type. It will keep the current velocity of the current entity.

    • You can specify an EntityType

    • Or an entity definition example: {HasVisualFire:1b,id:"minecraft:bee"} (1.21.+)

    • Or a MythicMob ID

  • Command settings:

    • entity: The entity specification

  • Example:

# With EntityType
- CHANGE_TO entity:CHICKEN
# With EntitySnapshot
- CHANGE_TO entity:{HasVisualFire:1b,id:"minecraft:bee"}
# Or using variable
- CHANGE_TO entity:%var_myvar%
# With MythicMob ID
- CHANGE_TO entity:MyCustomBossID

DROPEXECUTABLEITEM

  • Info: Drops an Executable Item in the entity's location

  • Command: DROPEXECUTABLEITEM {id} {quantity}

    • {id}: Item id of the ExecutableItem

    • {quantity}: The amount of the executable item that will drop

  • Example:

- DROPEXECUTABLEITEM ElytraTrail 1

DROPEXECUTABLEBLOCK

  • Info: Drops an Executable Block in the entity's location

  • Command: DROPEXECUTABLEBLOCK {id} {quantity}

    • {id}: Item id of the ExecutableBlock

    • {quantity}: The amount of the executable block that will drop

  • Example:

- DROPEXECUTABLEBLOCK House 1

DROPITEM

  • Info: Drops an item in the entity's location

  • Command: DROPITEM {material} {quantity}

    • {material}: The item type. Reference (MUST BE AT ALL CAPS)

    • {quantity}: The amount of the item that will drop

  • Example:

- DROPITEM DIAMOND 1

HEAL

  • Info: Heals the entity with a specific amount, if not specified it will full heal the entity.

  • Command settings:

    • amount: The amount of the heal

  • Example:

# Full heal
- HEAL
# Amount specific heal
- HEAL amount:5
# Remove heal
- HEAL amount:-5

KILL

  • Info: Kills the mob without the death animation

  • No command setting

  • Example:

- KILL

PLAYER_RIDE_ENTITY

  • Info: Makes the player to ride the entity targeted.

  • Command settings:

    • control: true/false whether you can manually controll the entity or not

    • speed: how fast the entity can go as you ride it

  • Example:

- PLAYER_RIDE_ON_ENTITY control:true speed:1.0

SET_AI

  • Info: Sets the AI state of the entity

  • Command settings:

    • value: true to enable the AI of the entity and false to disable.

  • Example:

- SET_AI value:false

SET_ADULT

  • Info: Sets the entity in it's "adult" state

  • No command setting

  • Example:

- SET_ADULT
  • Example Situation:

    • If this command is executed on a baby chicken, it will turn into its adult form.

SET_BABY

  • Info: Sets the entity in it's "baby" state

  • No command setting

  • Example:

- SET_BABY
  • Example Situation:

    • If this command is executed on a adult chicken, it will turn into its baby form.

SET_ENTITY_NAME

  • Info: Forcefully sets the entity's name

  • Command settings:

    • name: the new name of the entity

  • Example:

- SET_ENTITY_NAME name:&6Final &cBoss

SHEAR

  • Info: Shear the entity

  • No command setting

  • Example:

- SHEAR

TELEPORT_ENTITY_TO_PLAYER

  • Info: Teleports the entity to the user of the item

  • No command setting

  • Example:

- TELEPORT_ENTITY_TO_PLAYER

TELEPORT_PLAYER_TO_ENTITY

  • Info: Teleports the user of the item to the entity

  • No command setting

  • Example:

- TELEPORT_PLAYER_TO_ENTITY

TELEPORT_POSITION

  • Info: Teleports the entity in a specific location

  • Command settings:

    • x: X-Coordinate

    • y: Y-Coordinate

    • z: Z-Coordinate

  • Example:

- TELEPORT_POSITION x:%target_x% y:%target_y% z:%target_z%

Mixed Commands

In addition of the following list of commands you can also use:

Mixed Commands (Player & Entity)

These commands can be used in the Player related commands OR Entity related commands.

Last updated