Mechanic
displaytransformation
Sets the display entity's transformations
Aliases
settransformationtransformation
Configuration Fields (3)
| Name | Type | Default | Description |
|---|---|---|---|
| action a | Action | SET | The action to perform for the display entity's transformations. SET/ADD/MULTIPLY/DIVIDE |
| transformationType transformation, type, tt | TransformationType | TRANSLATION | The type of transformation to apply to the display entity. TRANSLATION/SCALE/RIGHT_ROTATION/LEFT_ROTATION |
| values value, val | List<PlaceholderFloat> | 0,0,0 | The values for the transformation. |
Examples & Notes
Examples
ExampleDisplayEntity:
Type: block_display
Skills:
# sets the translation transform to `0,0,1` after 10 seconds the entity spawns
- displaytransformation{action=set;transformation=translation;value=0,0,1;delay=200} @self ~onSpawn
# rotates the item display along the y-axis (similar to a dropped item)
- displaytransformation{action=MULTIPLY;transformation=LEFT_ROTATION;val=0,0.707,0,0.707} @self ~onTimer:10
