Skip to main content

config.yml

The configuration file for Nexal Backpacks. Located at plugins/NexalBackpacks/config.yml.

config.yml
# Nexal Backpacks Configuration

# Used by the plugin to update this file. Do not change it.
config-version: 3

# Reload config.yml and messages.yml as soon as they are saved. With false, run
# /backpack admin reload after editing them.
auto-reload: true

# Storage settings
# To move data between JSON and SQL: /backpack admin export, change the type,
# restart the server, then /backpack admin import.
storage:
type: json # json (plugins/NexalBackpacks/data.json) or sql (MySQL/MariaDB)
# Connection used when type is sql
sql:
host: localhost # Database server address
port: 3306 # Database server port
database: minecraft # Database (schema) the tables are created in
username: root # Database user
password: "" # Database password

# Auto-pickup settings
auto-pickup:
# Combine multiple pickup notifications into one
batch-notifications: true
# Delay in ticks before sending batch notification (1 second = 20 ticks)
batch-delay-ticks: 10

# Menu sounds are set in messages.yml (backpack-opened, backpack-closed, ...)

# Backpack types
# Each type defines a unique backpack with specific properties:
# display-name Item name (MiniMessage)
# material Item material
# custom-model-data Optional: custom model data for a resource pack model (0 = none)
# skull Optional, with material PLAYER_HEAD: the head's skin, as a base64
# texture value, an https://textures.minecraft.net URL or a player name
# lore Item lore; %slots% shows the capacity
# slots Capacity, 1 to 540 (menus show 45 slots per page)
# soulbound Kept in the inventory on death
# auto-pickup-default Whether auto-pickup starts enabled on a new backpack
# whitelist If not empty, only these materials are accepted
# blacklist These materials are never accepted
# recipe Crafting recipe (shaped or shapeless)
# gui Optional: the look of this type's menu. Anything left out keeps the default.
# title Menu title (MiniMessage, %type% is the display name);
# without it, gui-backpack-title from messages.yml
# rows 2 to 6, or auto to fit the capacity (9 slots: 2 rows). Every slot
# holding neither a button nor the filler shows the backpack, and a
# bigger backpack gets more pages
# filler The item in the slots that hold neither a button nor the backpack:
# material, name, lore, custom-model-data, glow and the other Utilizer
# item keys, and slots: the list of its slots (numbers, or "row, column"
# in quotes). Without slots it takes the rest of every row holding a
# button; slots: [] leaves no filler. material: AIR leaves its
# slots empty; they still never take an item
# locked-slot The item filling the slots past the capacity, same keys; its text
# comes from gui-locked-slot in messages.yml unless set here.
# material: AIR leaves them empty too
# buttons previous-page, page-info, sort, auto-pickup, quick-deposit and
# next-page, each with:
# enabled false hides the button. With every button hidden there is no
# button row at all
# slot The slot of the menu: 0 is the top left, 8 the top right, 53 the
# bottom right of 6 rows. Or row, column counted from 0: 0, 0 is the
# top left, 5, 8 the bottom right of 6 rows. With rows: auto, rows
# holding a button or the filler at the top stay at the top and the
# others stay at the bottom when the capacity changes
# material, name, lore, custom-model-data, glow and the other Utilizer item keys
# The icon; name and lore replace the text from messages.yml, with
# the same placeholders. auto-pickup also has material-off and
# custom-model-data-off, shown while it is off
types:
# Small backpack - basic starter backpack
small:
display-name: "<green>Small Backpack</green>"
material: LEATHER
lore:
- "<gray>A compact storage solution</gray>"
- "<gray>Capacity:</gray> <white>%slots% slots</white>"
- ""
- "<yellow>Right-click to open</yellow>"
slots: 9
soulbound: false
auto-pickup-default: false
whitelist: [] # Empty = all items allowed
blacklist:
- BEDROCK
- BARRIER
- COMMAND_BLOCK
- CHAIN_COMMAND_BLOCK
- REPEATING_COMMAND_BLOCK
gui:
title: "<gradient:#2ECC71:#52D68A><bold>Small Backpack</bold></gradient>"
rows: auto
filler:
material: LIME_STAINED_GLASS_PANE
slots: [12, 14, 16]
locked-slot:
material: BLACK_STAINED_GLASS_PANE
buttons:
previous-page:
enabled: true
slot: 9
material: ARROW
page-info:
enabled: true
slot: 10
material: PAPER
sort:
enabled: true
slot: 11
material: HOPPER
auto-pickup:
enabled: true
slot: 13
material: LIME_DYE
material-off: RED_DYE
quick-deposit:
enabled: true
slot: 15
material: BARREL
next-page:
enabled: true
slot: 17
material: ARROW
recipe:
enabled: true
type: shaped
shape:
- "LLL"
- "LCL"
- "LLL"
ingredients:
L: LEATHER
C: CHEST

# Medium backpack - standard storage
medium:
display-name: "<gold>Medium Backpack</gold>"
material: CHEST
lore:
- "<gray>A standard backpack</gray>"
- "<gray>Capacity:</gray> <white>%slots% slots</white>"
- ""
- "<yellow>Right-click to open</yellow>"
slots: 27
soulbound: false
auto-pickup-default: false
whitelist: []
blacklist:
- BEDROCK
- BARRIER
gui:
title: "<gradient:#F39C12:#F7C46C><bold>Medium Backpack</bold></gradient>"
rows: auto
filler:
material: ORANGE_STAINED_GLASS_PANE
slots: [30, 32, 34]
locked-slot:
material: BLACK_STAINED_GLASS_PANE
buttons:
previous-page:
enabled: true
slot: 27
material: ARROW
page-info:
enabled: true
slot: 28
material: PAPER
sort:
enabled: true
slot: 29
material: HOPPER
auto-pickup:
enabled: true
slot: 31
material: LIME_DYE
material-off: RED_DYE
quick-deposit:
enabled: true
slot: 33
material: CHEST
next-page:
enabled: true
slot: 35
material: ARROW
recipe:
enabled: true
type: shaped
shape:
- "III"
- "IBI"
- "III"
ingredients:
I: IRON_INGOT
B: CHEST

# Large backpack - advanced storage
large:
display-name: "<aqua><bold>Large Backpack</bold></aqua>"
material: ENDER_CHEST
lore:
- "<gray>A spacious backpack</gray>"
- "<gray>Capacity:</gray> <white>%slots% slots</white>"
- ""
- "<yellow>Right-click to open</yellow>"
slots: 45
soulbound: false
auto-pickup-default: false
whitelist: []
blacklist: []
gui:
title: "<gradient:#3498DB:#85C1E9><bold>Large Backpack</bold></gradient>"
rows: 6
filler:
material: LIGHT_BLUE_STAINED_GLASS_PANE
slots: [48, 50, 52]
locked-slot:
material: BLACK_STAINED_GLASS_PANE
buttons:
previous-page:
enabled: true
slot: 45
material: ARROW
page-info:
enabled: true
slot: 46
material: PAPER
sort:
enabled: true
slot: 47
material: HOPPER
auto-pickup:
enabled: true
slot: 49
material: LIME_DYE
material-off: RED_DYE
quick-deposit:
enabled: true
slot: 51
material: CHEST
next-page:
enabled: true
slot: 53
material: ARROW
recipe:
enabled: true
type: shaped
shape:
- "DDD"
- "DBD"
- "DDD"
ingredients:
D: DIAMOND
B: ENDER_CHEST

# Ender backpack - soulbound premium backpack
ender:
display-name: "<dark_purple><bold>Ender Backpack</bold></dark_purple>"
material: ENDER_EYE
lore:
- "<gray>Bound to your soul</gray>"
- "<gray>Capacity:</gray> <white>%slots% slots</white>"
- ""
- "<light_purple><italic>Soulbound - Kept on death</italic></light_purple>"
- ""
- "<yellow>Right-click to open</yellow>"
slots: 54
soulbound: true
auto-pickup-default: true
whitelist: []
blacklist: []
gui:
title: "<gradient:#8E44AD:#C39BD3><bold>✧ Ender Backpack ✧</bold></gradient>"
rows: 6
filler:
material: PURPLE_STAINED_GLASS_PANE
slots: [48, 50, 52]
locked-slot:
material: BLACK_STAINED_GLASS_PANE
buttons:
previous-page:
enabled: true
slot: 45
material: SPECTRAL_ARROW
page-info:
enabled: true
slot: 46
material: ENDER_EYE
sort:
enabled: true
slot: 47
material: HOPPER
auto-pickup:
enabled: true
slot: 49
material: AMETHYST_SHARD
material-off: COAL
quick-deposit:
enabled: true
slot: 51
material: ENDER_CHEST
next-page:
enabled: true
slot: 53
material: SPECTRAL_ARROW
recipe:
enabled: true
type: shaped
shape:
- "OEO"
- "EBE"
- "OEO"
ingredients:
O: OBSIDIAN
E: ENDER_PEARL
B: ENDER_CHEST

# Mining backpack - specialized for ores
mining:
display-name: "<red><bold>Mining Backpack</bold></red>"
material: DIAMOND_PICKAXE
lore:
- "<gray>Specialized for mining</gray>"
- "<gray>Capacity:</gray> <white>%slots% slots</white>"
- ""
- "<gray>Stores:</gray> <white>Ores, Deepslate, Stone</white>"
- "<green>Auto-pickup enabled by default</green>"
- ""
- "<yellow>Right-click to open</yellow>"
slots: 36
soulbound: false
auto-pickup-default: true
whitelist:
# Ores
- COAL_ORE
- DEEPSLATE_COAL_ORE
- IRON_ORE
- DEEPSLATE_IRON_ORE
- COPPER_ORE
- DEEPSLATE_COPPER_ORE
- GOLD_ORE
- DEEPSLATE_GOLD_ORE
- REDSTONE_ORE
- DEEPSLATE_REDSTONE_ORE
- EMERALD_ORE
- DEEPSLATE_EMERALD_ORE
- LAPIS_ORE
- DEEPSLATE_LAPIS_ORE
- DIAMOND_ORE
- DEEPSLATE_DIAMOND_ORE
- NETHER_GOLD_ORE
- NETHER_QUARTZ_ORE
- ANCIENT_DEBRIS
# Raw materials
- RAW_IRON
- RAW_COPPER
- RAW_GOLD
- COAL
- DIAMOND
- EMERALD
- LAPIS_LAZULI
- REDSTONE
- QUARTZ
# Stone types
- COBBLESTONE
- STONE
- DEEPSLATE
- COBBLED_DEEPSLATE
- GRANITE
- DIORITE
- ANDESITE
- TUFF
- CALCITE
- AMETHYST_SHARD
blacklist: []
gui:
title: "<gradient:#C0392B:#E6735C><bold>⛏ Mining Backpack</bold></gradient>"
rows: auto
filler:
material: BROWN_STAINED_GLASS_PANE
slots: [39, 41, 43]
locked-slot:
material: BLACK_STAINED_GLASS_PANE
buttons:
previous-page:
enabled: true
slot: 36
material: ARROW
page-info:
enabled: true
slot: 37
material: PAPER
sort:
enabled: true
slot: 38
material: HOPPER
auto-pickup:
enabled: true
slot: 40
material: EMERALD
material-off: REDSTONE
quick-deposit:
enabled: true
slot: 42
material: CHEST_MINECART
next-page:
enabled: true
slot: 44
material: ARROW
recipe:
enabled: true
type: shaped
shape:
- "IPI"
- "IBI"
- "III"
ingredients:
I: IRON_INGOT
P: DIAMOND_PICKAXE
B: CHEST

# Farming backpack - specialized for crops
farming:
display-name: "<dark_green><bold>Farming Backpack</bold></dark_green>"
material: GOLDEN_HOE
lore:
- "<gray>Specialized for farming</gray>"
- "<gray>Capacity:</gray> <white>%slots% slots</white>"
- ""
- "<gray>Stores:</gray> <white>Crops & Seeds</white>"
- "<green>Auto-pickup enabled by default</green>"
- ""
- "<yellow>Right-click to open</yellow>"
slots: 36
soulbound: false
auto-pickup-default: true
whitelist:
# Crops
- WHEAT
- CARROT
- POTATO
- BEETROOT
- MELON_SLICE
- PUMPKIN
- SUGAR_CANE
- COCOA_BEANS
- NETHER_WART
- SWEET_BERRIES
- GLOW_BERRIES
- CACTUS
- BAMBOO
- KELP
# Seeds
- WHEAT_SEEDS
- BEETROOT_SEEDS
- MELON_SEEDS
- PUMPKIN_SEEDS
- TORCHFLOWER_SEEDS
- PITCHER_POD
# Flowers
- DANDELION
- POPPY
- BLUE_ORCHID
- ALLIUM
- AZURE_BLUET
- RED_TULIP
- ORANGE_TULIP
- WHITE_TULIP
- PINK_TULIP
- OXEYE_DAISY
- CORNFLOWER
- LILY_OF_THE_VALLEY
- SUNFLOWER
- LILAC
- ROSE_BUSH
- PEONY
blacklist: []
gui:
title: "<gradient:#27AE60:#A9DFBF><bold>❀ Farming Backpack</bold></gradient>"
rows: auto
filler:
material: GREEN_STAINED_GLASS_PANE
slots: [39, 41, 43]
locked-slot:
material: BLACK_STAINED_GLASS_PANE
buttons:
previous-page:
enabled: true
slot: 36
material: ARROW
page-info:
enabled: true
slot: 37
material: PAPER
sort:
enabled: true
slot: 38
material: HOPPER
auto-pickup:
enabled: true
slot: 40
material: WHEAT
material-off: DEAD_BUSH
quick-deposit:
enabled: true
slot: 42
material: COMPOSTER
next-page:
enabled: true
slot: 44
material: ARROW
recipe:
enabled: true
type: shaped
shape:
- "WHW"
- "WBW"
- "WWW"
ingredients:
W: WHEAT
H: GOLDEN_HOE
B: CHEST

# Huge backpack - paginated backpack example
huge:
display-name: "<yellow><bold>Huge Backpack</bold></yellow>"
material: SHULKER_BOX
lore:
- "<gray>Massive storage capacity</gray>"
- "<gray>Capacity:</gray> <white>%slots% slots</white>"
- "<gray>(Uses pagination)</gray>"
- ""
- "<yellow>Right-click to open</yellow>"
slots: 90 # Will use 2 pages
soulbound: false
auto-pickup-default: false
whitelist: []
blacklist: []
gui:
title: "<gradient:#F1C40F:#F7DC6F><bold>Huge Backpack</bold></gradient>"
rows: 6
filler:
material: YELLOW_STAINED_GLASS_PANE
slots: [48, 50, 52]
locked-slot:
material: BLACK_STAINED_GLASS_PANE
buttons:
previous-page:
enabled: true
slot: 45
material: ARROW
page-info:
enabled: true
slot: 46
material: MAP
sort:
enabled: true
slot: 47
material: HOPPER
auto-pickup:
enabled: true
slot: 49
material: LIME_DYE
material-off: RED_DYE
quick-deposit:
enabled: true
slot: 51
material: BARREL
next-page:
enabled: true
slot: 53
material: ARROW
recipe:
enabled: true
type: shaped
shape:
- "SSS"
- "SBS"
- "SSS"
ingredients:
S: SHULKER_SHELL
B: ENDER_CHEST

Configuration Options​

Below is a reference of the main configuration sections:

config-version​

Nexal Backpacks Configuration

Used by the plugin to update this file. Do not change it.

auto-reload​

Reload config.yml and messages.yml as soon as they are saved. With false, run /backpack admin reload after editing them.

storage​

Storage settings To move data between JSON and SQL: /backpack admin export, change the type, restart the server, then /backpack admin import.

auto-pickup​

Auto-pickup settings

types​

Menu sounds are set in messages.yml (backpack-opened, backpack-closed, ...)

Backpack types
Each type defines a unique backpack with specific properties:
display-name Item name (MiniMessage)
material Item material
custom-model-data Optional: custom model data for a resource pack model (0 = none)
skull Optional, with material PLAYER_HEAD: the head's skin, as a base64
texture value, an https://textures.minecraft.net URL or a player name
lore Item lore; %slots% shows the capacity
slots Capacity, 1 to 540 (menus show 45 slots per page)
soulbound Kept in the inventory on death
auto-pickup-default Whether auto-pickup starts enabled on a new backpack
whitelist If not empty, only these materials are accepted
blacklist These materials are never accepted
recipe Crafting recipe (shaped or shapeless)
gui Optional: the look of this type's menu. Anything left out keeps the default.
title Menu title (MiniMessage, %type% is the display name);
without it, gui-backpack-title from messages.yml
rows 2 to 6, or auto to fit the capacity (9 slots: 2 rows). Every slot
holding neither a button nor the filler shows the backpack, and a
bigger backpack gets more pages
filler The item in the slots that hold neither a button nor the backpack:
material, name, lore, custom-model-data, glow and the other Utilizer
item keys, and slots: the list of its slots (numbers, or "row, column"
in quotes). Without slots it takes the rest of every row holding a
button; slots: [] leaves no filler. material: AIR leaves its
slots empty; they still never take an item
locked-slot The item filling the slots past the capacity, same keys; its text
comes from gui-locked-slot in messages.yml unless set here.
material: AIR leaves them empty too
buttons previous-page, page-info, sort, auto-pickup, quick-deposit and
next-page, each with:
enabled false hides the button. With every button hidden there is no
button row at all
slot The slot of the menu: 0 is the top left, 8 the top right, 53 the
bottom right of 6 rows. Or row, column counted from 0: 0, 0 is the
top left, 5, 8 the bottom right of 6 rows. With rows: auto, rows
holding a button or the filler at the top stay at the top and the
others stay at the bottom when the capacity changes
material, name, lore, custom-model-data, glow and the other Utilizer item keys
The icon; name and lore replace the text from messages.yml, with
the same placeholders. auto-pickup also has material-off and
custom-model-data-off, shown while it is off