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
CreateItems object
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 class
ItemConsumable is the base class for items that are consumed, such as food and drinks.
ItemEquipable class
ItemEquipable is the base class for items that take effect while they are equipped, such as weapons and clothing.
ItemThrowable class
ItemThrowable is the base class for weapons that are used up when thrown, such as grenades.
ItemUsable class
ItemUsable is the base class for items that do something when they are used.
ItemWeapon class
ItemWeapon is the base class for items that give the player a weapon while equipped.
ItemWearable class
ItemWearable is the base class for clothing: items that change the model or the bodygroups of the player while equipped.
Items
Test Item item
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.