Repository navigation
Bone Behaviors
A bone gets a behavior from its name. Name a group head in Blockbench and it turns with where
the entity looks. No extra setup is needed.
| Behavior | Name starts with | What it does |
|---|---|---|
| Head | head |
Turns with where a living entity looks |
| Hitbox | hitbox |
A box players hit and click, sized by the bone's own cubes. The cubes are not drawn. |
| Seat | seat |
A spot a player sits on, moving with the bone |
| Name tag | nametag |
Shows the entity's custom name, following the bone |
| Main hand | main_hand |
Shows what the entity holds in its main hand |
| Off hand | off_hand |
Shows what the entity holds in its off hand |
| Ghost | ghost |
Never drawn. For bones that only hold other bones, locators or logic. |
Names are matched by how they start, ignoring case: head, Head_top and head2 are all heads.
If your models come from another engine, add its prefixes instead of renaming every bone:
behaviors:
prefixes:
head: [head, h_]
seat: [seat, p_]Prefixes are read when a model spawns, so a change reaches models spawned after /hy reload.
A head bone turns left and right, and up and down, within limits:
behaviors:
head:
max-yaw: 50
max-pitch: 40Hitboxes decide where players can hit and click a model.
behaviors:
hitboxes:
# bones A hitbox per hitbox bone. A model without hitbox bones gets one box around all of it.
# model One box around the whole model.
# none No hitbox: players click straight through the model.
mode: bones
# Hits on a model on an entity hurt the entity, as if the player hit it.
forward-damage: trueTo make a hitbox, add a group named hitbox (or hitbox_body, hitbox_tail, and so on) and put
a cube in it with the size you want. The cube sets the size of the box and is not drawn.
A hit or click on a model on an entity is passed on to that entity, so damage, reach checks and right-click actions work as if the player touched the entity itself.
A seat is a spot a player can ride.
- Right-clicking a model with a free seat sits the player in it.
- Sneaking gets them off.
behaviors:
seats:
click-to-ride: true
# The player in the first seat steers the entity carrying the model.
steering:
enabled: false
# walking moves like a horse and jumps; flying follows where the rider looks.
mode: walking
speed: 0.25
jump: 0.5
# A choice per entity type that wins over "enabled".
entities:
horse: trueWith steering on, the rider in the first seat controls the entity with their movement keys, and the entity's own AI waits until they get off.
- A
nametagbone shows the entity's custom name where the bone is, instead of above the entity's head. - A
main_handoroff_handbone shows the item the entity holds. While the hand is empty, the bone's own cubes show.
/hy debug hitboxes and /hy debug seats draw them for you alone, and /hy info <model> lists a
model's bones. See Staff Tools.
Head turning, name tags on bones and steering reach Java players only for now. Bedrock players see the model's animations and can ride its entity. See Bedrock Support.
Plugins can read and control these behaviors, and register their own behavior types. See Developer API.
Hyperion is open source under the MIT License. Found a mistake on this page? Open an issue.
Getting started
Features
Reference
Developers