-
Notifications
You must be signed in to change notification settings - Fork 71
Entity Data
Entity data is a configuration section with data needed to summon an entity.
Important
This page shows the current configuration for the 4.0 Beta 18 version.
- Entity Data for 4.0 Beta 11 & 12
- Entity Data for 4.0 Beta 13
- Entity Data for 4.0 Beta 14
- Entity Data for 4.0 Beta 15
- Entity Data for 4.0 Beta 16
- Entity Data for 4.0 Beta 17
All options aren't forced to be constants but may be expressions instead - functions for numeric string for other types that should be evaluated into the appropriate type.
| Option | Description |
|---|---|
entity |
String with a case insensitive Entity Type. |
relative-offset |
Vector |
glowing |
Boolean |
visible-by-default |
Boolean |
custom-name-visible |
Boolean |
gravity |
Boolean |
silent |
Boolean |
velocity |
Vector |
yaw |
Angle, ~0 by default. |
pitch |
Angle, ~0 by default. |
scoreboard-tags |
List of string expressions |
delayed-entity-data |
Delayed Modification List |
A list of delayed modifications to the initial entity data. Each entry in the list has the following options:
| Option | Description | Type | Default |
|---|---|---|---|
entity-data |
Entity Data to be applied. | Config | |
interval |
If greater than 0, specifies the interval in ticks between applications of entity-data. |
Long (Int) | 0 |
iterations |
If greater than 0, specifies how many times the effect will appear |
Long (Int) | 0 |
delay |
Specifies a delay in ticks before entity-data is first applied. |
Long (Int) | 1 |
Note: if iterations <= 0 and interval <= 0, the entry will only be applied once.
Item-Display-Example-TMulti:
spell-class: ".TargetedMultiSpell"
spells:
- Item-Display-Example
Item-Display-Example:
spell-class: ".targeted.DummySpell"
effects:
0:
position: target
effect: entity
entity:
entity: item_display
item: golden_sword
glowing: false
silent: true
gravity: true
visible-by-default: true
scoreboard-tags: ""
iterations: 1
duration: 20
velocity: 0,0,0
relative-offset: 0,2,0
billboard: none
transformation:
left-rotation: "0,0,0,1"
right-rotation: "0,0,0,1"
translation: "0,0,0"
scale: "1,1,1"
delayed-entity-data:
- delay: 5
interval: 1
iterations: 1
entity-data:
item: iron_sword
- delay: 10
interval: 1
iterations: 1
entity-data:
item: diamond_swordVanilla item format or Magic Item String (supports string expressions)
Note that Display Entities are documented separately.
| Option | Description |
|---|---|
ai |
Boolean |
potion-effects |
Potion Effect List |
equipment |
Equipment Config |
Items defined in the ItemStack format:
main-handoff-handhelmetchestplateleggingsboots
| Option | Description |
|---|---|
equipment |
Config section containing either of the drop-chance options for the respective equipment slots or body Magic Item String option. |
- Sets the
floatdrop chance of the specified slot's item.- Chance of
0will never drop. - Chance of
1will always drop if killed by a player. - Chance greater than
1will always drop if killed by anything.
- Chance of
- Options:
main-hand-drop-chanceoff-hand-drop-chancehelmet-drop-chancechestplate-drop-chanceleggings-drop-chanceboots-drop-chancebody-drop-chance
| Option | Description |
|---|---|
baby |
Boolean |
age |
Integer |
| Option | Description |
|---|---|
attribute-modifiers |
Attributes |
| Option | Description |
|---|---|
health |
Double |
| Option | Description | Default |
|---|---|---|
tamed |
Boolean | false |
| Option | Description | Default |
|---|---|---|
chested |
Boolean | false |
| Option | Description |
|---|---|
collar-color |
Dye Color |
Horses have this too, but in their own section.
| Option | Description | Default |
|---|---|---|
saddled |
Boolean | false |
| Option | Description |
|---|---|
material or dropped-item
|
ItemStack |
will-age |
Boolean |
pickup-delay |
Integer |
can-mob-pickup |
Boolean |
can-player-pickup |
Boolean |
| Option | Description |
|---|---|
falling-block (old material) |
Block Data |
| Option | Description | Default |
|---|---|---|
small |
Boolean | false |
has-arms |
Boolean | true |
marker |
Boolean | false |
visible |
Boolean | true |
has-base-plate |
Boolean | true |
head-angle |
Vector | |
body-angle |
Vector | |
left-arm-angle |
Vector | |
right-arm-angle |
Vector | |
left-leg-angle |
Vector | |
right-leg-angle |
Vector |
| Option | Description |
|---|---|
carried-block (old material) |
Block Data |
| Option | Description | Default |
|---|---|---|
shulker-color (old color) |
DyeColor |
| Option | Description | Default |
|---|---|---|
sheared |
Boolean | false |
sheep-color (old color) |
DyeColor |
| Option | Description | Default |
|---|---|---|
anrgy |
Boolean | false |
color |
Old name for Collar Colorable entities' collar-color option
|
|
wolf-variant |
Wolf Variant |
| Option | Description |
|---|---|
mooshroom-type (old type) |
Variant |
| Option | Description | Default |
|---|---|---|
saddled |
Boolean | false |
horse-color (old color) |
Horse Color | |
horse-style (old style) |
Horse Style |
| Option | Description |
|---|---|
rabbit-type (old type) |
Rabbit Type |
| Option | Description |
|---|---|
(old color) |
Llama Color |
(old material) |
Case insensitive Material as decor. |
| Option | Description |
|---|---|
parrot-variant (old type) |
Variant |
| Option | Description |
|---|---|
villager-type |
Villager Type |
villager-profession (old `type˙) |
Villager Profession |
While its old color, pattern-color and type base options still work, they have been moved and renamed to be in a tropical-fish section.
| Option | Description |
|---|---|
body-color |
Color |
pattern-color |
Pattern Color |
pattern |
Pattern |
entity: tropical_fish
tropical-fish:
body-color:
pattern:
# . . .| Option | Description |
|---|---|
cat-variant (old type) |
Cat Variant |
| Option | Description |
|---|---|
main-gene |
Panda Gene |
hidden-gene |
Panda Gene |
| Option | Description |
|---|---|
fox-type (old type) |
Fox Type |
| Option | Description |
|---|---|
axolotl-variant (old type) |
Variant |
| Option | Description |
|---|---|
frog-variant (old type) |
Frog Variant |
| Option | Description | Type |
|---|---|---|
interaction-height |
Float | |
interaction-width |
Float | |
responsive |
Sets if this interaction entity should trigger a response when interacted with. | Boolean |
| Option | Description |
|---|---|
transformation |
Config section with options from the Transformation config below. |
teleport-duration |
Integer |
interpolation-duration |
Integer |
interpolation-delay |
Integer |
view-range |
Float |
shadow-radius & shadow-strength
|
Float |
height & width
|
Float |
billboard |
Can be one of these. |
glow-color-override |
ARGB Color |
brightness |
Config section with Integer options block & sky. |
| Option | Description |
|---|---|
left-rotation |
Rotation config |
right-rotation |
Rotation config |
translation |
A string "x,y,z" or a config section with those keys. |
scale |
A string "x,y,z" or a config section with those keys. |
Either in:
-
Angle-axis form: A config section with the following options.
Option Description angleFloat Radian axis3D unit vector; either a string "x,y,z"or a config section with those keys. -
Quaternion form: Accepts a string
"x,y,z,w", a config section with those keys, or a list with 4 items.
| Option | Description |
|---|---|
block |
Block Data |
| Option | Description |
|---|---|
item |
ItemStack |
item-display-transform |
Item Display Transform |
| Option | Description |
|---|---|
text |
Rich Text |
line-width |
Integer |
background |
ARGB Color |
text-opacity |
Integer |
shadow |
Boolean |
see-through |
Boolean |
default-background |
Boolean |
alignment |
Text Alignment |