Item Serializer
Constructs an item from config
Type
Name
The display name of the item.
Lore
A list of strings to use as the lore of the item.
Unbreakable
Use true
for the item to be unbreakable. Unbreakable items do not show their durability bar, and can never be broken by durability.
Custom_Model_Data
The custom model data of the item. Your server must be in MC 1.14.4 or higher.
Hide_Flags
Hides all item flags (Enchantments, Attributes, Unbreakable, Destroys, Placed on, Potion effects, Dye color).
Max_Stack_Size
Overrides the stack size for this item. Typically either 1
, 16
, or 64
. This can be used to make your items unstackable.
Enchantment_Glint_Override
If true, your item will have the enchantment shine. If false, your item will not have the enchantment shine, regardless of enchantments.
Is_Fire_Resistant
If true, your item will be immune to fire/lava, just like netherite armor is immune to fire/lava.
Damage_Resistant
Let's your item be immune to 1 type of damage. Try:
is_explosion
: Prevent explosions from damaging itemsis_fire
: Prevent fire from damaging items
Enchantments
The following example gives sharpness 5 and smite 5:
Durability
Used to let your items have a durability bar.
Damage
: How much damage is already applied to the item, by defaultMax_Damage
: The total amount of damage the item can take before breaking
The Durability feature cannot be used with the Unbreaking or Max_Stack_Size features due to Minecraft limitations.
Tool
Turns your item into a "tool" which can be used to customize the mining speed on certain blocks.
Default_Mining_Speed
: The "base rate" of your toolTypically you use
1.0
here
Damage_Per_Block
: How much damage your tool takes, ifDurability
is also used.Rules
Follows the format:
<block> <mining speed> <drops item true/false>
For example,
#wool 2.0 true
lets the tool mine all wools at 2x speed
Food
Turns your item into food, which can be eaten by the player for saturation.
Nutrition
: The amount of food bars to restoreSaturation
: The amount of healing to doCan_Always_Eat
: true if the food can always be eaten, like a golden apple
Equippable
Turns your item into an equippable item, like armor. Equippable armor can be worn by entities.
Slot
: The slot to equip to, eitherFEET/LEGS/CHEST/HEAD
You can also use
BODY
for horses/wolves
Equip_Sound
: The minecraft sound to play when the item is equippedModel
: The resource location of the model of the armorCamera_Overlay
: The resource location of the overlay, like the pumpkin overlay when worn on the head.Dispensable
:true
if the item can be equipped by a dispenserSwappable
:true
if the item can be swapped using "right click"Damage_On_Hurt
:true
if the item should be damaged when the user takes damage.Entities
: The entities that can equip the armor
Skull_Owning_Player
The name of the player to use if Type: PLAYER_HEAD
. Want to use custom player heads? Use the format "UUID URL"
.
Potion_Color
The color of the potion bottle if Type: POTION
. Uses Color.
For example, Potion_Color: "255-0-0"
is red.
Attributes
List of attributes to apply to the item. Follows the format attribute value slot operation
. The "slot" argument is optional; leaving it blank will let all slots work for the attribute. The "operation" argument is optional; leaving it blank defaults to ADD_VALUE
.
See a list of all attributes here. See a list of all slots here. See a list of all operations here.
Example:
Leather_Color
The color of your leather armor (Make sure your Type
is a leather armor). Uses Color.
Light_Level
Firework
Sets the firework data of the firework. Make sure to use Type: firework_rocket
or Type: firework
with this depending on your server version.
Power
: <Integer>Defines the power of firework
Effects
: <String List>Format:
<shape> <color> <trail> <flicker> <fadeColor>
shape
:Required value which defines firework type
Available values:
BALL
,BALL_LARGE
,STAR
,BURST
,CREEPER
color
:Required value which defines firework color
For example,
#ff0000
is red.Uses Color
trail
:true or false
Optional value which defines whether firework has trail
flicker
:true or false
Optional value which defines whether firework has flicker (twinkle).
fadeColor
:Optional value which defines firework fade color
For example,
#ffff00
is yellow.Uses Color
Deny_Use_In_Crafting
Use true
to prevent this item from being used in crafting.
This option also disables shift-clicking items. To let players shift-click items, use Deny_Use_In_Crafting: false
or delete the option from your config (Defaults to false).
Recipe
When modifying your recipe config, you must restart your server. Recipes are only refreshed on restarts.
Shape
-> The shape of the crafting recipe. Use single letters.Ingredients
-> The items required to craft.Output_Amount
-> How many items to output (Like 4 arrows). Defaults to 1.
For example, the following recipe creates a recipe like an emerald sword:
Tags
These are custom NBT tags given to your item that have NO EFFECT on the behavior of the item. This is useful for commands, like: /minecraft:clear @p feather{"PublicBukkitValues":{"custom:<your_tag_here>":<your number here>}}
.
Last updated