Skip to content

rq.ModelDef ​

What rq.monster.model takes.

Fields ​

NameTypeDescription
idstringThe text id, such as "mymod:big_roach".
baseintegerThe game model to draw (rq.Monster.model, from rq.monster.models).
scale (optional)numberThe size, above 0 and at most 50. Default: the base's.
x (optional)numberThe offset across. Default: the base's.
y (optional)numberThe offset up. Default: the base's.
z (optional)numberThe offset in depth. Default: the base's.
textures (optional)table<string, string|string[]| rq.TextureColors >Textures of its own: a texture's name in the base's folder (as rq.image.textures(base) lists it) to a PNG inside the mod's folder, a list of PNGs for a texture with frames, or colors (as rq.image.texture takes them). The key "*" takes colors only, for every colour texture of the model; a name given beside it wins.

Used by ​

rq.monster.model