- Supported Minecraft Versions
- 1.12
- 1.13
- 1.14
- 1.15
- 1.16
- 1.17
- 1.18
- 1.19
- 1.20
SIMPLE BACKPACKS v1.0
Simple, customizable backpacks in just 10 lines (when compressed)!
Compressed? Remove all notes, options, line breaks, and permissions for 10-lines of backpacking beauty!
Download the file above, or copy the code from below.
Simple, customizable backpacks in just 10 lines (when compressed)!
Compressed? Remove all notes, options, line breaks, and permissions for 10-lines of backpacking beauty!
Download the file above, or copy the code from below.
Code:
# SIMPLE BACKPACKS v1.0
# Please do not delete these credits, unless you plan on fully overhauling this system.
# ---------------------------------------------------------
# Created by Eyzk - 08/15/2023
# Distrubution and modified usage allowed with credit
#
# Socials: https://linktr.ee/eyzk_
# ---------------------------------------------------------
options:
name: &fBackpack # The name for your backpack
size: 1 # The amount of rows in your backpack
perm: backpack.use # The required permission to use this backpack (delete if unwanted)
command backpack: # Opens the player's backpack
permission: {@perm}
trigger:
set {_bp} to chest inventory with {@size} rows named "{@name}"
loop {@size}*9 times:
set slot (loop-value)-1 of {_bp} to {bp::%player's uuid%::%loop-value%}
open {_bp} to player
on inventory close: # Sets the items within the backpack (this system can be improved)
if event-inventory's name = "{@name}":
loop {@size}*9 times:
set {bp::%player's uuid%::%loop-value%} to slot (loop-value)-1 of event-inventory