Get started with zItems in 5 minutes! This guide will walk you through creating your first custom item with effects.
Prerequisites
Before starting, ensure you have:
✅ zItems installed and running
✅ zMenu plugin installed
✅ Server running Paper/Spigot 1.21+
If you haven't installed zItems yet, see the Installation Guide.
Step 1: Understanding the File Structure
After installation, zItems creates this structure:
plugins/zItems/
├── config.yml # Plugin settings
├── messages.yml # Customizable messages
├── items/ # Your custom items go here
└── effects/ # Your effect definitions go here
Key Concept:
Effects are reusable abilities (like Hammer, Vein Mining)
Items are actual items that use those effects
Step 2: Create Your First Effect
Let's create a simple Hammer effect that mines in a 3x3 area.
Create: plugins/zItems/effects/my_hammer.yml
Save the file and reload:
You should see: §aItems plugin reloaded successfully.
Step 3: Create Your First Item
Now let's create a pickaxe that uses your hammer effect.
Create: plugins/zItems/items/super_pickaxe.yml
Save and reload:
Step 4: Get Your Item
Give yourself the item:
You should receive your Super Pickaxe with the Hammer effect!
Step 5: Test It Out
Find some stone blocks
Mine a block with your Super Pickaxe
Watch it break a 3x3 area! ⚒️
What's happening:
The Hammer effect detects when you break a block
It finds all blocks in a 3x3x1 area
It breaks them all and collects the drops
Your pickaxe takes 1 durability damage per block
Step 6: View Effect Details
Want to see what effects are on your item?
This shows:
All effects on the item in your hand
Effect IDs and display names
Handler types and priorities
What's Next?
Add More Effects
Let's add Auto-Sell to automatically sell mined blocks!
Create: plugins/zItems/effects/auto_sell.yml
Update your pickaxe: plugins/zItems/items/super_pickaxe.yml
Reload and give yourself a new pickaxe - it now mines AND sells automatically!
Note: Requires a shop plugin (EconomyShopGUI, ShopGUIPlus, or ZShop).
Create an Effect Item (Smithing Table)
You can create items that represent effects and apply them in smithing tables!
Create: plugins/zItems/effects/hammer_stone.yml
Give yourself the stone:
Use it in a smithing table:
Place Netherite Upgrade Template
Place your pickaxe
Place the Hammer Stone
Take out your enhanced pickaxe!
Common Customizations
Change Effect Display
Control how effects appear on items:
Prevent Adding More Effects
Create Recipes
Add a crafting recipe:
Troubleshooting
Effect Not Working
Problem: "I added the effect but it's not working!"
Checklist:
Did you reload after creating the effect? /zitems reload
Is the effect ID spelled correctly in your item config?
Check console for errors when loading effects
Use /zitems effect view to confirm the effect is on the item
Item Not Showing Effect Lore
Problem: "The effect doesn't appear in the lore!"
Causes:
nb-effects-view: 0 hides all effects
base-effects-visible: false hides base effects
Effect doesn't have a display-name set
Solution:
Can't Give Item
Problem: "/zitems item give doesn't work!"
Solutions:
Check permission: items.command.item.give
Check item ID spelling
Check console for errors
Try: /zitems item give <player_name> super_pickaxe 1
Example: Complete Mining Tool
Here's a complete example of a powerful mining tool:
# My First Hammer Effect
id: "my_hammer"
type: "HAMMER"
display-name: "<gold><bold>⚒ My Hammer</bold></gold>"
# What blocks can be broken
materials:
- STONE
- COBBLESTONE
- DEEPSLATE
- ANDESITE
- DIORITE
- GRANITE
# Mining area
width: 3
height: 3
depth: 1
# Durability cost
damage: 1
/zitems reload
# Super Pickaxe with Hammer Effect
id: "super_pickaxe"
material: DIAMOND_PICKAXE
# Display
display-name: "<gradient:#00FFFF:#0080FF><bold>💎 Super Pickaxe</bold></gradient>"
lore:
- ""
- "<gray>A powerful pickaxe that mines"
- "<gray>in a <yellow>3x3</yellow> area!"
- ""
# Add the effect
effects:
- my_hammer
# Optional: Make it unbreakable
unbreakable: false
# Optional: Custom model data for resource packs
# custom-model-data: 1001
/zitems reload
/zitems item give @s super_pickaxe
/zitems effect view
id: "auto_sell_mining"
type: "AUTO_SELL"
display-name: "<green><bold>💰 Auto Sell</bold></green>"
multiplier: 1.0 # Normal sell price
effects:
- my_hammer
- auto_sell_mining # Add this line
id: "hammer_stone"
type: "HAMMER"
display-name: "<gold><bold>⚒ Hammer Stone</bold></gold>"
# Effect item representation
representation:
material: GOLDEN_PICKAXE
display-name: "<yellow><bold>⚒ Hammer Enhancement</bold></yellow>"
lore:
- ""
- "<gray>Apply to a pickaxe in a"
- "<gray>smithing table to add the"
- "<gold>Hammer</gold><gray> effect!"
- ""
custom-model-data: 100
applicator-type: SMITHING_TABLE
template:
item: "item:NETHERITE_UPGRADE_SMITHING_TEMPLATE"
# Hammer settings
materials:
- STONE
- COBBLESTONE
width: 3
height: 3
depth: 1
# Can only apply to pickaxes
applicable-materials:
- WOODEN_PICKAXE
- STONE_PICKAXE
- IRON_PICKAXE
- GOLDEN_PICKAXE
- DIAMOND_PICKAXE
- NETHERITE_PICKAXE
/zitems effect give @s hammer_stone
# In your item configuration
id: "super_pickaxe"
material: DIAMOND_PICKAXE
effects:
- my_hammer
- auto_sell_mining
# Effect display settings
nb-effects-view: -1 # -1 = show all, 0 = hide all, >0 = limit
base-effects-visible: true # Show base effects
additional-effects-visible: true # Show effects added later
# Don't allow players to add more effects
allow-additional-effects: false
# Or disable specific effects
disabled-effects:
- "vein_miner"
- "silk_spawner"
id: "super_pickaxe"
material: DIAMOND_PICKAXE
# ... other settings ...
recipe:
type: CRAFTING_SHAPED
shape:
- "DDD"
- " S "
- " S "
ingredients:
D: "item:DIAMOND"
S: "item:STICK"
# In your effect configuration
display-name: "<gold>⚒ HAMMER</gold>" # Add this!
# In your item configuration
nb-effects-view: -1 # Show all effects