BitByLogic's Resources
  • Home
  • 🖥️Resources
    • Item Actions
      • ⛏️Interact Item
      • 🪖Armor Item
      • ⚙️Item Options
      • ♟️Actions
      • 🖱️Commands
Powered by GitBook
On this page
  • Item Configuration
  • Basic Options
  • Custom Data
  • Leather Armor Color
  • Player Head Skins
  • Potion Data
  • Tipped Arrow
  • Enchantments
  • Item Flags
  • Equippable Options
  • Food Options
  • Tool Options
  • Glider
  1. Resources
  2. Item Actions

Item Options

View all the configuration options Item Actions supports for Item Stacks!

PreviousArmor ItemNextActions

Last updated 25 days ago

Item Configuration

This page outlines all available configuration options for creating custom ItemStacks via the config.

Basic Options

Material: DIAMOND_SWORD # The Bukkit material of the item.
Amount: 1               # Stack size.
Name: "&bEpic Sword"    # Item display name.
Lore:                   # List of strings shown as item lore.
  - "&7Sharp and shiny"
  - "&eUse with care"
Glow: true              # Makes item glow (applies a hidden enchant).
Hide-Tooltip: true      # Hides item tooltip.
Max-Stack-Size: 64      # Custom max stack size.
Model-Data: 123456      # Custom model data (for resource packs).
Item-Model: mypack:katana # Custom item model via namespaced key.
Tooltip-Style: custom:glow # Custom tooltip style via namespaced key.

Material values must match those listed in the . They are case-sensitive.

Glow: true adds an UNBREAKING enchantment with a high level and hides it using item flags.


Custom Data

Custom-Data:
  - myplugin:key1:value1
  - myplugin:key2:value2

Leather Armor Color

Dye-Color: "FF00FF"

Only applies to materials starting with LEATHER_. Must be a valid hex color string (RRGGBB).


Player Head Skins

Skull-Name: Notch
Skull-URL: "http://textures.minecraft.net/texture/..."

Works only for PLAYER_HEAD. Skull-URL will override the skin texture.


Potion Data

Potion-Data:
  Vanilla: true
  Type: HEAL
  Color: "FF0000"
  Duration: 200
  Amplifier: 2

Tipped Arrow

Arrow-Type: POISON

Enchantments

Enchantments:
  - sharpness:5
  - unbreaking:3

Each entry must be in the format enchant_name:level.


Item Flags

Flags:
  - HIDE_ATTRIBUTES
  - HIDE_ENCHANTS

Equippable Options

Equippable-Options:
  Slot: HEAD
  Model: custompack:helmet
  Camera-Overlay: mypack:overlay
  Equip-Sound: ITEM_ARMOR_EQUIP_LEATHER
  Allowed-Entities:
    - ZOMBIE
    - PLAYER
  Dispensable: true
  Swappable: true
  Damage-On-Hurt: false

Food Options

Food-Options:
  Can-Always-Eat: true
  Nutrition: 5
  Saturation: 2

Tool Options

Tool-Options:
  Damage-Per-Block: 1
  Rules:
    - STONE:1.0:true
    - DIRT:0.5:false
  Default-Mining-Speed: 2

Glider

Glider: true

Let us know if you run into any issues with a specific field!

Sets values on the item using namespaced keys.

Vanilla: true uses like POISON, HEAL, etc. When Vanilla is false, custom effects are added using .

Used for TIPPED_ARROW items. Accepts .

Refer to for valid names.

Flags must match the values from the .

Defines behavior.

Slot uses . Equip-Sound uses .

Modifies the .

Customizes the .

Each Rules entry must be in format: MATERIAL:speed:correctTool Material must match

Applies Elytra-style gliding behavior to the item (uses ).

🖥️
⚙️
Spigot Material enum
PersistentDataContainer
PotionType
PotionEffectType
PotionType
Enchantment enum
ItemFlag enum
EquippableComponent
EquipmentSlot
Sound enum
FoodComponent
ToolComponent
Material enum
setGlider