Guide 1 Docs 2 Reference 3

Field of Game

game.entities

The kinds of entity: define a pack's own, amend the game's own, and read a kind of the game: a mob kind by either spelling (game.entities.cow, game.entities.Cow), a kind that is not a mob by its name (game.entities.arrow); nil where the game has none. It iterates every kind, including pack definitions: for name, kind in game.entities do.

game.entities: Entities & { [string]: (EntityKind | EntityDef)? }

Used in