BlackSpigot
Custom Item Definitions for Rust

ULTRA Custom Item Definitions for Rust 2.1.1


Overview of Custom Item Definitions Rust Plugin​

This plugin does not have its own functionality. This plugin is only used as a library for other plugins.
This library allows developers to create their own ItemDefinitions, which will allow them to create custom items with their own unique values.
What is an ItemDefinition created with the library? It is a full-fledged ItemDefinition just like the other ones created by Rust developers, a new item definition is created based on an existing one with modified settings. It has its own shortname and itemid, and can also have its own itemMods created by the developer, which is very convenient. You can use the give command, item.info.[anything], and any other way you want.
A simple example of item creation:
What are some things to keep in mind?
Always register new item definitions in the Init hook! This is important!
You must take care to register unique shortnames and item ids.
ItemId should never be changed in your plugin, as items created with an old itemId will break if they don’t have their definition.
After your plugin is unloaded, all items created with your item definitions will lose interaction, as all ItemMods will be removed. This is done for safety, don’t worry, after loading the plugin back in, all items will work again as before.
CustomItemDefinition class structure:
ItemMods details: ItemMods are overwritten , this means the new item definition will not include the itemMods of the parent. If you need to import an item mod from the parent, you can use
if you need to import everything ItemMods
Custom itemMods are added using the method of creating a new class, i.e.
Here you can also specify the fields you want, example:
Quick answers to questions:
Items have become coal, what does that mean? This is a fallback ItemDefinition in case the plugin providing this item is no longer available. The items will be restored if the plugin is returned.
seller-gallery-1.webp
Author
Wifi
Downloads
0
Views
1
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Wifi

Top