item.yml

Example Item Configuration File:

This file exists in /core/[yourpackagename]/data

# item.yml
items:
  custom_item:
    name: "Example Item" # Automatically added to the language
    namespace: "coreextensions" # Namespace
    id: "custom_item" # Item ID
    types: "ITEM" # Normal item type
    maxCount: 64 # Maximum stack size (integer, int type)
    properties:
      generate: true
      rarity: "COMMON" # Rarity: Common (other options: UNCOMMON, RARE, EPIC)
  custom_fuel:
    name: "Example Fuel Item" # Automatically added to the language
    namespace: "coreextensions" # Namespace
    id: "coalfuel" # Item ID
    types: "ITEM" # Normal item type
    maxCount: 64 # Maximum stack size (integer, int type)
    properties:
      generate: true
      rarity: "UNCOMMON" # Rarity: Uncommon
  clickable_item:
    name: "Example Clickable Item" # Automatically added to the language
    namespace: "coreextensions" # Namespace
    id: "clickable_item_1" # Item ID
    types: "CLICKITEM" # Clickable item type
    maxCount: 16 # Maximum stack size (integer, int type)
    properties:
      generate: true
  custom_item_ball:
    name: "Example Ball Item" # Automatically added to the language
    namespace: "coreextensions" # Namespace
    id: "ball" # Item ID
    types: "BALL" # Ball item type
    maxCount: 64 # Maximum stack size (integer, int type)
    properties:
      generate: true
  apple:
    name: "Example Apple" # Automatically added to the language
    namespace: "coreextensions" # Namespace
    id: "apple" # Item ID
    types: "FOOD" # Food item type
    maxCount: 64 # Maximum stack size (integer, int type)
    properties:
      generate: true
      hunger: 4 # Hunger value
      saturationModifier: 2.4 # Saturation modifier
      meat: false # Meat (can be fed to wolves)
  bowl_apple:
    name: "Example Bowl Food" # Automatically added to the language
    namespace: "coreextensions" # Namespace
    id: "bowl_apple" # Item ID
    types: "STEWITEM" # Stew item type
    maxCount: 4 # Maximum stack size (integer, int type)
    properties:
      generate: true
      hunger: 4 # Hunger value
      saturationModifier: 2.4 # Saturation modifier
      meat: false # Meat (can be fed to wolves)

Last updated