Skip to content

Serializable ItemΒΆ

We often need to reference an item in Geary, usually through our own SerializableItemStack. The item may inherit from other plugins or be configured in-place (ex referencing another prefab in a recipe, or defining the item itself.)

All properties are optional, setting a property will override the vanilla value, below is an example of all properties:

# You may use a vanilla item or inherit from another item system 
type: stone 
prefab: <string> 
crucibleItem: <string>
oraxenItem: <string>
itemsadderItem: <string>

# Override item properties
amount: 2
customModelData: 42
displayName: "<bold><red>Fancy stone" 
lore:
  - "Lore line 1"
  - "<red>Formatted line 2"
unbreakable: false
damage: 0
enchantments:
  - enchant: minecraft:sharpness 
    level: 3
itemFlags: [ HIDE_ENCHANTS ] 
attributeModifiers:
  - attribute: GENERIC_ATTACK_DAMAGE 
    modifier:
      name: customAttribute
      amount: 1.0
      operation: ADD_NUMBER 
potionData:
  type: REGEN 
  extended: true
  upgraded: true
color: '#fffff' 
knowledgeBookRecipes: [ "minecraft:gold_ingot_from_nuggets" ]