Minecraft Data Packs / Server Utility

barden's Inventory Saver (v1) [SMP-FRIENDLY]

  • check_circle Functions
  • check_circle Predicates
  • 577 views, 2 today
  • 17 downloads, 0 today
  • 1
  • 1
officialbarden's Avatar officialbarden
Level 3 : Apprentice Miner
0

Features

Infinite Cloud Storage

Inventories are stored in "vaults" and theoretically the number of "vaults" possible in minecraft is infinite! You can also change your vault's name from default ("<player>'s vault #<vault-id>" to whatever you want!)


Multiplayer-Friendly, SMP-Friendly!

You can use this datapack in your private servers. Each player can only access their own inventory. This datapack should work in any and all dimensions so you should be able to pair them with other datapacks.



Performance-Efficient!

This datapack only uses its tick.mcfunction looping files to configure the /trigger commands. All in all, it shouldn't consume memory and ticks.



Commands

The datapack has four commands for three functionalities.
  • bniv-saveInventory
  • bniv-fetchInventory
  • bniv-help
  • bniv-credits

bniv-saveInventory

/trigger bniv-saveInventory

This command takes your current inventory, and stores it in a vault having unique "vault-id" and a "vault-name" that is defaulted to the player's name. This vault-name can be changed by clicking on the tellraw text "change name?" that is sent to the player when their inventory is successfully saved. The player will then be given a name-tag which they can rename (with anvil), then crouch+drop to set the name of the vault.



bniv-fetchInventory

/trigger bniv-fetchInventory

This command will dig through the database to find vaults owned by the player who ran this command. It will present them in form of a list to the player in the chat, with the options to withdraw and change the vault's name. If the player chooses to withdraw, that vault will be deleted and it's contents will be transferred to the player.
NOTE: IF THE PLAYER ALREADY HAS SOME ITEMS, THEY WILL GET STORED IN ANOTHER VAULT BEFORE THEY RECEIVE THE WITHDRAWN VAULT. If the player decides to change the name, then they will be given a name-tag which they can rename (with anvil), then crouch+drop to set the name of the vault.



bniv-help

/trigger bniv-help
This command summarizes the above texts with less words in-game.


bniv-credits

/trigger bniv-credits
This command will @ my accounts on discord, twitter and my email if you wish to contact me.


bniv.commands:unin

/function bniv.commands:__unin__
This command will delete all the scoreboards & storages WITHOUT WARNING. This command must be administered responsibly. Once executed, the datapack will also get disabled. To enable the datapack, you would have to use the command:
/datapack enable
CompatibilityMinecraft 1.20
Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome