Skip to content

Entity Data for 4.0 Beta 14

JasperLorelai edited this page Jun 13, 2024 · 2 revisions

Description:

Entity data is a configuration section with data needed to summon an entity.

Mutual Configuration:

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
gravity Boolean
silent Boolean
velocity Vector
scoreboard-tags List of string expressions
delayed-entity-data Delayed Modification List

Delayed Modification:

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.

Example:

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_sword

Entity-Specific Configuration:

Note that Display Entities are documented separately.

Living Entity
Option Description
ai Boolean
equipment Equipment Config

Equipment Config:

Magic Item String options:

  • main-hand
  • off-hand
  • helmet
  • chestplate
  • leggings
  • boots
Mob
Option Description
equipment Drop-Chance Config

Drop-Chance Config:

  • Sets the float drop chance of specified slot's item.
    • Chance of 0 will never drop.
    • Chance of 1 will always drop if killed by a player.
    • Chance greater than 1 will always drop if killed by anything.
  • Options:
    • main-hand-drop-chance
    • off-hand-drop-chance
    • helmet-drop-chance
    • chestplate-drop-chance
    • leggings-drop-chance
    • boots-drop-chance
Ageable
Option Description
baby Boolean
age Integer
Tameable
Option Description Default
tamed Boolean false
Chested "Horse"
Option Description Default
chested Boolean false
Steerable

Horses have this too, but in their own section.

Option Description Default
saddled Boolean false
dropped_item
Option Description
material Case insensitive Material
will-age Boolean
pickup-delay Integer
can-mob-pickup Boolean
can-player-pickup Boolean
falling_block
Option Description
material Block Data
armor_stand
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
creeper
Option Description Default
powered Boolean false
slime
Option Description Default
size Integer 0
enderman
Option Description
material Block Data
shulker
Option Description Default
color DyeColor
sheep
Option Description Default
sheared Boolean false
color DyeColor
wolf
Option Description Default
anrgy Boolean false
color DyeColor
mushroom_cow
Option Description
type Variant
horse
Option Description Default
saddled Boolean false
color Horse Color
style Horse Style
rabbit
Option Description
type Rabbit Type
llama
Option Description
color Llama Color
material Case insensitive Material as decor.
parrot
Option Description
type Variant
villager
Option Description
type Villager Profession
phantom
Option Description Default
size Integer 0
pufferfish
Option Description Default
size Integer 0
tropical_fish
Option Description
color Color
pattern-color Pattern Color
type Pattern
cat
Option Description
type Cat Type
panda
Option Description
main-gene Panda Gene
hidden-gene Panda Gene
fox
Option Description
type Fox Type
axolotl
Option Description
type Variant
frog
Option Description
type Variant
interaction
Option Description Type
interaction-height Float
interaction-width Float
responsive Sets if this interaction entity should trigger a response when interacted with. Boolean

Display Entities

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.

Transformation config:

Option Description
left-rotation Config section with options from the Rotation Matrix config below.
right-rotation Config section with options from the Rotation Matrix config below.
translation Either a string "x,y,z" or a config section with those keys.
scale Either a string "x,y,z" or a config section with those keys.

Rotation Matrix config:

Either in:

  • Angle-axis form:
Option Description
angle Float
axis Either a string "x,y,z" or a config section with those keys.
  • Quaternion form, which accepts either a string "x,y,z,w", a config section with those keys, or a list with 4 items.
# Config
...-rotation:
  x: #x
  y: #y
  z: #z
  w: #w
# List
...-rotation:
  - #x
  - #y
  - #z
  - #w

Display Specific Options:

block_display
Option Description
block Block Data
item_display
Option Description
item Magic Item String
item-display-transform Item Display Transform
text_display
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
Clone this wiki locally