Skip to main content

Item Modifiers

Item Modifiers are technical JSON files that can be created inside data packs and are used to apply loot table functions into existing item stacks by either using the /item command, or the Modify (Item Action Type). Item Modifiers are stored inside the data/<namespace>/item_modifier folder.

origins:add_power

Adds a power to an item stack that will only be applied to the player if the item is held/equipped in the specified equipment slot.

FieldTypeDefaultDescription
powerIdentifierThe namespace and ID of the power that will be added to the entity.
slotEquipment Slot GroupDetermines if the item should add the power to the entity if held/equipped in the specified slot. Accepts head, chest, legs, feet, mainhand, offhand, any, hand, or armor.
hiddenBooleanfalseDetermines if the tooltip for the power should be hidden or not.
negativeBooleanfalseDetermines if the color of the tooltip should be blue (false) or red (true).
Example
{
"function": "origins:add_power",
"power": "origins:arcane_skin",
"slot": "chest",
"negative": true
}

This example will add the origins:arcane_skin power to the entity if the entity were to wear the item that this item modifier has been applied to on their chest equipment slot.

origins:remove_power

FieldTypeDefaultDescription
powerIdentifierThe namespace and ID of the power that will be removed from the item.
slotEquipment Slot GroupThe equipment slot to remove the power from. Accepts head, chest, legs, feet, mainhand, offhand, any, hand, or armor.
Example
{
"function": "origins:remove_power",
"power": "origins:arcane_skin",
"slot": "chest"
}

This example will remove the origins:arcane_skin power from the item if it's applicable to the chest equipment slot.