Skip to content

K.Items ​

Functions ​

K.Items.Define ​

lua
K.Items.Define(id: string, fields: { [string]: any }?)

Adds an item to the game. Ids use letters, numbers and _ and start with a letter.

K.Items.Exists ​

lua
K.Items.Exists(id: string): boolean

K.Items.Ids ​

lua
K.Items.Ids(): { string }

Every item id, in the order they were defined (server) or received (client).

K.Items.Get ​

lua
K.Items.Get(id: string): Definition?

The item's definition. On the client it's nil until the list arrives (see Items.Updated).

Events ​

K.Items.Updated ​

Client: fires when item definitions arrive from the server.

Generated from src/Corode/Items.luau.

Corode 0.13.0 · MIT License