Resource icon

Script skBackpacks NBT | A better way to store your stuff! 3.3 release

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

EWS

Member
Jan 26, 2017
49
27
18
23
Brazil
9
9
9

i found bug. The Backpack can replace in inventory backpack.
and i send that 3 picture.
i try reload the skript and i found the like arguments
/skript reload all < like have error maybe... and arguments>
/skript reload backpack.sk < no have error and no show arguments>

sry my english so badddd :emoji_frowning:
ele3qg.jpg
30cqgds.jpg
2v0nxi8.jpg



9
 
Last edited by a moderator:
EWS updated skBackpacks | A better way to store your stuff! with a new update entry:

Bug fix update

Three bugs have been fixed:
o)
You could put your own backpack into itself. Thanks to @DHStyle for reporting it.
o) The character to split at has been changed to " ; " to prevent any conflicts with NBT. So now items with big NBTs (like heads) are completely supported.

Other changes:
o)
Backpack limit has been removed until I find a (good) way to limit to 1 the amount of backpacks in player's inventory....

Read the rest of this update entry...
[doublepost=1485907754,1485907556][/doublepost]
9
9
9

i found bug. The Backpack can replace in inventory backpack.
and i send that 3 picture.
i try reload the skript and i found the like arguments
/skript reload all < like have error maybe... and arguments>
/skript reload backpack.sk < no have error and no show arguments>

sry my english so badddd :emoji_frowning:
ele3qg.jpg
30cqgds.jpg
2v0nxi8.jpg



9
Thanks for the report! The bug has been fixed and while I've been tried to fix you bug, I've found others and fixed them too.
 
still can... if u using fast replace not work replace. but if u using cursor for drop backpack item still can drop in inventory backpack.
my english so bad sry man :/
I couldn't reproduce it using any kind of inventory move.
Please, tell me the keyboard keys you're using and make sure you are using Bensku's Skript.
 
I couldn't reproduce it using any kind of inventory move.
Please, tell me the keyboard keys you're using and make sure you are using Bensku's Skript.
button 1 2 3 4 5 6 7 8 9
[doublepost=1485961107,1485960581][/doublepost]and i using version 1.11.2
 
Everything is in the script page with downloads.
hmmmm. but u try chat /sk reload all get the arguments code ? like error. but if u /sk relobe ad backpack.sk = reload is perfect no arguments code show....pl
dunno maybe i miss some plugins. but no skriptaddons
 
Hello i just added
code_language.skript:
if lore of clicked item is "{@backpack.lore}":
    cancel event
to inventory click section to prevent puting backpack into backpack :emoji_grinning:
[doublepost=1493916970,1491474096][/doublepost]BUG / IDEA
Bug:
Players can repair their tools and armores in backpacks.
IDEA: Add data values support to prevent this issue.

For tempomary solution i added this code:
code_language.skript:
on inventory click:
    if inventory name of current inventory of player contains "{@backpack.inventoryname} |":
        if clicked item is axe, sword, shovel, hoe, pickaxe, helmet, chestplate, leggings, fishing_rod, bow, flint and steel, shears or boots:
            cancel event
            drop clicked item
            set clicked item to air
            message "&cYou can't put tools and armores to batpacks for now!"

Thanks :emoji_slight_smile: MachisCZ
 
Hello i just added
code_language.skript:
if lore of clicked item is "{@backpack.lore}":
    cancel event
to inventory click section to prevent puting backpack into backpack :emoji_grinning:
[doublepost=1493916970,1491474096][/doublepost]BUG / IDEA
Bug:
Players can repair their tools and armores in backpacks.
IDEA: Add data values support to prevent this issue.

For tempomary solution i added this code:
code_language.skript:
on inventory click:
    if inventory name of current inventory of player contains "{@backpack.inventoryname} |":
        if clicked item is axe, sword, shovel, hoe, pickaxe, helmet, chestplate, leggings, fishing_rod, bow, flint and steel, shears or boots:
            cancel event
            drop clicked item
            set clicked item to air
            message "&cYou can't put tools and armores to batpacks for now!"

Thanks :emoji_slight_smile: MachisCZ
I totally forgot the data value.
Hello i just added
code_language.skript:
if lore of clicked item is "{@backpack.lore}":
    cancel event
to inventory click section to prevent puting backpack into backpack :emoji_grinning:
[doublepost=1493916970,1491474096][/doublepost]BUG / IDEA
Bug:
Players can repair their tools and armores in backpacks.
IDEA: Add data values support to prevent this issue.

For tempomary solution i added this code:
code_language.skript:
on inventory click:
    if inventory name of current inventory of player contains "{@backpack.inventoryname} |":
        if clicked item is axe, sword, shovel, hoe, pickaxe, helmet, chestplate, leggings, fishing_rod, bow, flint and steel, shears or boots:
            cancel event
            drop clicked item
            set clicked item to air
            message "&cYou can't put tools and armores to batpacks for now!"

Thanks :emoji_slight_smile: MachisCZ

The backpack into backpack prevention is already made using NBT (so no lore is required), and is supposed to work. It also blocks item swap because in my last tests I was being able to move it without script detecting it.

I'm fixing the repair bug now, probably will be finished and posted until tomorrow.
Thanks!
 
EWS updated skBackpacks NBT | A better way to store your stuff! with a new update entry:

Fixed item repair bug & easier message translation

Updates in this version:
  • The item data values are now saved and added to items, so they won't "repair" automatically when you open your backpack.
  • Updated the version correctly in the script.
  • Full translation added in the configuration.
This is a pre-release because the way I fixed the bug is not the best one. I should post the final version as soon as I find out how to do it in a better way.
Special thanks to...

Read the rest of this update entry...
[doublepost=1494029489,1494026098][/doublepost]
It wasnt worked for me thats why i added lores :emoji_slight_smile:
Are you using Bensku's Skript? The "inventory action" expression is one of his new updates.
Also, thanks for reporting your bug, I added you in the credits.
 
Last edited by a moderator: