| icon | circle-play |
|---|
Creating CustomItems in C# expands the capabilities of your custom content beyond what the UncomplicatedCustomItems (UCI) framework provides out of the box. By implementing your logic in C#, you gain full control over item behavior, interaction, and integration with other plugins or systems.
Use C# to fully control how your custom item behaves on pickup, drop, use, damage, death, etc.
You are no longer limited to predefined CustomFlags.
Implement your own logic by subscribing to Exiled Events and/or LabAPI Events.
To create a C# CustomItem:
- Install Visual Studio or Rider.
- Reference UCI in your plugin project.
- Create a class that implements
APICustomItem. - Add the
PluginCustomItemAttribute.
You can hook into server events (like deaths, shooting, or player joins) using Exiled or LabAPI. This gives you fine-grained control over how your item reacts to gameplay events.
| Examples | Examples to create your first C# CustomItem | examples |