Indomitus 388 Posted August 3, 2019 (edited) If you've ever played Minecraft, you know what an Ender Chest is. For the rest of us, it's a chest that keeps a separate inventory for each player who opens it. That means you can't see or take what other players have stored there, and they can't see or take yours. (The Minecraft version is also able to connect to other Ender Chests, but that feature would take more time and effort to build in Ylands.) I also included code that can spawn in starter items when a player first opens it, making it a great addition to any Welcome Center. Simply edit the "PlayerFirstOpen" block of script. edit: Oops, I forgot to link to the workshop: https://workshop.ylands.com/asset/1236 Edited August 3, 2019 by Indomitus 2 4 Share this post Link to post Share on other sites
Miguel Preguisa 443 Posted August 3, 2019 I can see this being useful on servers a lot! Nice work Share this post Link to post Share on other sites
Indomitus 388 Posted August 3, 2019 (edited) Should probably mention that you should be careful what you store in it. It won't save things like custom colors or names, or text written on notes, or other advanced attributes like that. It could be modified to do that, but this version won't. Edited August 3, 2019 by Indomitus Share this post Link to post Share on other sites
Indomitus 388 Posted August 5, 2019 (edited) I just noticed a potential error in part of the code that could cause it to remove other players' items if the current player doesn't have anything in the list, or error out while trying to do it. I'll fix it after work today. If you already have it downloaded, and want to patch it yourself: In "WipePlayerFromArray" on the IF statement, add: AND IndexNum ≠ -1 update: The uploaded composition is fixed. Edited August 6, 2019 by Indomitus Share this post Link to post Share on other sites
jchob 354 Posted August 10, 2019 @Indomitus that's cool. Never tought about making a central chest. It's like a chest that can be placed in every yland and have access to certain items. I might steal this idea Share this post Link to post Share on other sites
jchob 354 Posted August 10, 2019 (edited) I actually I have a "portable" chest. A special coin in inventory, that when is placed at ground, it spawns the chest. You can remove or add items to it. When you close it, the chest is despawned and items are saved. Then, use the coin wherever you want. Edited August 10, 2019 by jchob Share this post Link to post Share on other sites