Blueprint Items
Learn how to set up blueprints as items.
Learn how to set up blueprints as items.
config.lua in the resource folder.BlueprintItems section:
enableBlueprintItems to true.blueprint.)To create a more dynamic item system, items can be linked to specific blueprints. This allows items to have unique variations based on their blueprint association.
For example, a Pistol blueprint should be stored as:
This system ensures that blueprints can define item properties dynamically.
In our script, everything before _blueprint acts as a search key. This means when searching for an item, the script will recognize pistol as the base item and match it to the pistol_blueprint. This allows easy categorization and retrieval of blueprint-linked items.
To give the item to a player:
Blueprints are recognized based solely on the metadata and the item name. For example, if you have an item named pistol_blueprint, the resource will identify it as a blueprint for the pistol.
You can use the following image for the item in your inventory:
Blueprint items must include metadata:
Replace UUID with the UUID of the desired blueprint, which can be found in the editor.