Types

The value types the API uses besides Lua's own.

# Creature

A handle to one creature of the hunt. See world for its fields and methods. Handles compare equal (==) when they are the same creature and can be table keys. A handle goes stale (c.valid == false) when the creature is removed or a new hunt begins; using a stale handle raises an error.

# Color

A colour: "#rgb", "#rrggbb", "#rrggbbaa" (hex), a name (white black red green blue yellow orange gray cyan magenta transparent), or a table {r = 1, g = 0.5, b = 0, a = 1} / {1, 0.5, 0, 1} with values 0-1.

# Species

A species: its id ("trex") or its type number (24). Built-in ids are in the species table on the world page; content packs add their own.

# Filter

Which creatures world.creatures, world.nearest and world.count look at: a species, or a table {species = "trex", radius = 5000, x = ..., z = ..., team = 1, dead = false, all = false} (every field optional).