Simple Backpack

Xeane

Member
Oct 21, 2019
7
0
0
This is a simple backpack system, that is relatively easy to add new backpacks, of different sizes.

script: https://one.denizenscript.com/haste/62356
 

mcmonkey

Administrator
Staff member
Helper
- use "- inventory adjust ..." or the "item.with[...]" tag, not adjust+save+inventory set
- You forgot to disable debug on one of the scripts
- Don't use player flags to track data for an inventory script. Just make a generic inventory script (or straight up use "generic") and apply the dynamic bits later via mechanisms.
- Don't blindly set an item into the player's held item slot. What if they moved an item into that slot while the inventory was open?
 

Xeane

Member
Oct 21, 2019
7
0
0
"- You forgot to disable debug on one of the scripts" Whoops.
"- Don't blindly set an item into the player's held item slot. What if they moved an item into that slot while the inventory was open?" They can't change their held item while it's open.