Items System

Provides items that can be instantiated.

By TeslaCloud Studios

Modules

Hooks hooks
Items plugin
Items are the objects that players carry, use, equip and drop.
Globals globals
Migration that creates the items table, which holds every item instance, and the item_id_blocks table, which the instance ids are reserved from.
Item library
The Item library keeps track of item templates and item instances.
ItemAmmo class
ItemAmmo is the base class for boxes of ammunition.
ItemBase class
ItemBase is the class of every item: item templates and item instances are both ItemBase objects, and the item base classes extend it.
ItemConsumable is the base class for items that are consumed, such as food and drinks.
ItemEquipable is the base class for items that take effect while they are equipped, such as weapons and clothing.
ItemThrowable is the base class for weapons that are used up when thrown, such as grenades.
ItemUsable is the base class for items that do something when they are used.
ItemWeapon is the base class for items that give the player a weapon while equipped.
ItemWearable is the base class for clothing: items that change the model or the bodygroups of the player while equipped.

Items

Test item that shows what a minimal item file looks like: a stackable 2x1 item with a custom camera setup for its inventory icon and an on_use callback.

Entities

Item entity
The entity that represents an item instance lying in the world.