/entity
entity

Prefix for entity related commands

Syntax

/entity [count] [entity] [radius]
RequiredOptional

Parameters

countOptionalinteger

Print the entity count in the world

entityOptionalnumber

The entity to target

radiusOptionalnumber

Optional radius, if not specified will ray-cast and select entity in front

Subcommands

/entity clean

Remove all entities

/entity clone

Clone specified entity

Parameters:

count- The number of clones to create
entity- The entity to clone
/entity dump

Dump the saved data for an entity

Parameters:

entity- The entity to dump
/entity effect

Apply an effect to the specified entities

Parameters:

duration- How long the effect should last
/entity effect.effect

The entity effect to apply

/entity hidefromadventureplayers

Hide selected entities from adventure mode players

/entity hidefromadventureplayers.remove

If specified, will make selected entities visible to adventure mode players

/entity intangible

Add or remove the Intangible component on selected entities

/entity intangible.remove

If specified, will remove the Intangible component

/entity interactable

Enable or disable the Interactable component on selected entities

/entity interactable.disable

If specified, will disable instead of enable the Interactable component

/entity invulnerable

Add or remove the Invulnerable component on selected entities

/entity invulnerable.remove

If specified, will remove the Invulnerable component

/entity lod

Set the entity LOD (Level of Detail) ratio

Parameters:

ratio- The LOD ratio value
/entity lod.default

Reset the entity LOD ratio to default

/entity nameplate

Modify an entity's Nameplate component

Parameters:

entity- The entity to modify the nameplate for
text- The text to set on the nameplate
/entity nameplate.remove

Remove the nameplate from an entity

/entity remove

Remove an entity

Parameters:

entity- The entity to remove
/entity remove.others

Remove all other entities instead of the specified one

/entity resend

Resend all tracked entities to a player

Parameters:

player- The player to resend entities to
/entity snapshot

Commands related to entity snapshots

Parameters:

history- Print snapshot history
/entity snapshot.length

Set length of snapshot history

Parameters:

length- The history length in milliseconds
/entity stats

Prefix for entity stat operation commands

/entity stats.add

Increment (or decrement if negative) the value of a specified stat on an entity

Parameters:

statAmount- The amount to add to the stat
statName- The name of the stat to add to
/entity stats.dump

Dump all statistics of an entity

/entity stats.get

Retrieve the value of a specified stat on an entity

Parameters:

statName- The name of the stat to get
/entity stats.reset

Reset the value of a specified stat on an entity to its initial value

Parameters:

statName- The name of the stat to reset
/entity stats.set

Set the value of a specified stat on an entity to a specified value

Parameters:

statName- The name of the stat to set
statValue- The value to set the stat to
/entity stats.settomax

Set a stat to its max value

Parameters:

statName- The name of the stat to set to max
/entity tracker

Display player entity tracker information

Parameters:

player- The player to check tracker information for

Server Messages

snapshot.lengthSet

Snapshot history length is now {millis, number}ms

dump.noEntityWithUuid

No entity with id {uuid} found!

dump.badArgument

Expected int entity id or UUID but got: '{arg}'

dump.noEntityWithId

No entity with id {id} found!

dump.dumpDone

Dumped entity data to server log!

nameplate.updated

Set Nameplate component on entity.

nameplate.removed

Removed Nameplate component from entity.

clone.cloneFailed

Could not clone entity '{id}'

clone.cloned

Cloned entity

clone.cloned.multiple

Cloned entity {count} times

count.count

Entities: {count, number}

remove.unableToRemove

Unable to remove entity with id {id}!

lod.ratioSet

Set LOD ratio to {ratio, number}

tracker.noViewerComponent

Player missing EntityViewer component

resend.noEntityViewerComponent

Player missing EntityView component

interactable.success.set

Successfully enabled Interactable component on {amount} entities

interactable.success.unset

Successfully disabled Interactable component on {amount} entities

intangible.success.set

Successfully added the Intangible component to {amount} entities

intangible.success.unset

Successfully removed the Intangible component from {amount} entities

invulnerable.success.set

Successfully added the Invulnerable component to {amount} entities

invulnerable.success.unset

Successfully removed the Invulnerable component from {amount} entities

hidefromadventureplayers.success.set

{amount} entities hidden from adventure mode players

hidefromadventureplayers.success.unset

{amount} entities no longer hidden from adventure mode players