Skip to content

Commands

ErrorCraft edited this page Dec 9, 2021 · 2 revisions

entity

The entity command is used to apply entity modifiers to entities.

Syntax

entity modify <targets> <modifier>
Modifies the entities with the specified modifier.

targets: The entities to modify.
modifier: The modifier to apply on the selected entities.

Example

entity modify @s example:modifier

Modifies the current entity using the values in the example:modifier modifier.

summon

The summon command already exists in vanilla Minecraft, but there's an addition to summon an entity with an entity modifier applied to it.

Syntax

summon <entity> <position> <modifier>
Summons an entity and applies the specified modifier.

entity: The entity type to summon.
position: The position to summon the entity at.
modifier: The modifier to apply on the summoned entity.

Example

summon minecraft:creeper ~ ~ ~ example:modifier

Summons a creeper and applies the example:modifier modifier.

Clone this wiki locally