Skip to content

createItem beta ​

Function of @v12-engine/engine

ts
export declare function createItem(world: World, item: string, charges?: number): ItemInstance;

Makes an instance of an item type with an id of its own, with the charges given or those of the type (0 when it has none)