Skip to main content

Module entities

Module entities 

Source
Expand description

Mod entities the loader draws: a type registered with a model gets its body model, playing the clip of its state — walk while it walks, else idle, or the state in its entity data yog:state (a string the mod sets on the server) — timed by the world’s clock, alike for everyone.

A hanging entity (kind: hanging) tells the mods how it hangs: its entity data HANGING, read with Hanging.

Structs§

Hanging
How a hanging entity hangs: on which side, how big, and the item it was placed from (what it drops).

Constants§

HANGING
The entity data key a hanging entity’s Hanging goes under — the loader sets it, on the server and for every client that sees it.
STATE
The entity data key a mod’s entity’s state goes under.