⚙️ Configuration
Creating a Factory Menu
Create a file in plugins/FactoryPlugin/menus/my_factory.yml:
id: my_factory
title: "§6⚔ Weapon Factory"
size: 54
type: weapon_factory
slots:
# Simple item
iron_sword:
inventorySlot: 0
page: 0
exclusiveProduction: false
product:
internalId: iron_sword
name: "Iron Sword"
productionTime: "30s" # Formats: 10s, 5m, 2h, 1d
price: 100.0 # Vault economy
description:
- "§7Strong iron sword"
- "§7For beginner warriors"
ingredients:
- material: IRON_INGOT
amount: 2
- material: STICK
amount: 1
result:
material: IRON_SWORD
amount: 1
timerIcon:
name: "§eForging... §7%percent%"
lore: "§7%progress% §e%time%"
# Item with enchantments
enchanted_sword:
inventorySlot: 1
product:
name: "Enchanted Sword"
productionTime: "1m"
price: 500.0
ingredients:
- material: DIAMOND_SWORD
amount: 1
- material: ENCHANTED_BOOK
amount: 3
result:
material: DIAMOND_SWORD
name: "§b✦ Legendary Blade"
enchantments:
sharpness: 5
unbreaking: 3
fire_aspect: 2
looting: 3
Creating a Zone
# 1. Get selection wand
/factory zone wand
# 2. Left-click and right-click blocks to select area
# 3. Create zone
/factory zone create my_zone my_factory
# 4. Players in zone use /factory to open the menu
Supported Enchantments
Weapons
- sharpness (1-5) — Sharpness
- smite (1-5) — Smite
- bane_of_arthropods (1-5) — Bane of Arthropods
- knockback (1-2) — Knockback
- fire_aspect (1-2) — Fire Aspect
- looting (1-3) — Looting
Armor
- protection (1-4) — Protection
- fire_protection (1-4) — Fire Protection
- blast_protection (1-4) — Blast Protection
- projectile_protection (1-4) — Projectile Protection
- thorns (1-3) — Thorns
- feather_falling (1-4) — Feather Falling
- depth_strider (1-3) — Depth Strider
Tools
- efficiency (1-5) — Efficiency
- fortune (1-3) — Fortune
- silk_touch (1) — Silk Touch
Universal
- unbreaking (1-3) — Unbreaking
- mending (1) — Mending
Usage Examples
Enchanted Armor
god_armor:
product:
name: "Divine Armor"
result:
material: DIAMOND_CHESTPLATE
enchantments:
protection: 4
unbreaking: 3
thorns: 3
mending: 1
Placeholders
Available in names and descriptions:
- %player% — player nickname
- %product% — product name
- %time% — remaining time (1m 23s)
- %progress% — progress bar (████░░░░)
- %percent% — percentage (67%)
File Structure
plugins/FactoryPlugin/
├── config.yml # Main configuration
├── menus/
│ ├── example.yml # Examples of all features
│ ├── weapon_factory.yml # Your factories
│ └── tank_factory.yml
├── data/
│ ├── zones.yml # Created zones
│ ├── state.yml # Production state
│ └── stats.db # Statistics database (SQLite)
Settings
config.yml
# Test mode (instant production)
test-mode:
enabled: false
# Notifications
notifications:
enabled: true
sounds:
production-start:
sound: BLOCK_ANVIL_USE
volume: 0.5
pitch: 1.2
production-complete:
sound: ENTITY_EXPERIENCE_ORB_PICKUP
volume: 1.0
pitch: 1.0
Advanced Features
Exclusive Production
exclusiveProduction: true # Locks other slots during production
Automatic Pagination
# Don't specify inventorySlot — slots will be placed automatically
auto_item_1:
page: 0 # Page 0
product: ...
auto_item_2:
page: 1 # Page 1
product: ...
Debugging
Test Mode
# Enable instant production
/factory testmode
# In config.yml:
test-mode:
enabled: true
Check Logs
# Logs are located in:
logs/latest.log
# Filter by plugin:
grep "FactoryPlugin" logs/latest.log