Compatibility
Minecraft: Java Edition
Platforms
Links
Creators
Details
Inventory Sync

Latest Data Pack Version
v1.4
Compatible Minecraft Versions
Java Edition 1.20.2 - 1.21.1
What does this data pack do?
Have you ever wanted to play in survival mode and creative mode at the same time? But when you swap to creative mode, and you end up accidentally deleting your hard-earned survival items while grabbing and removing items from the creative invetory?
This data pack fixes that by creating separate inventories for each game mode. Now when you swap from Survival Mode to Creative Mode, you have a brand new clean inventory just for Creative Mode to use. Then when you swap back to survival mode, all your survival items are returned to you as you left them. No more fear of losing those items you worked so hard for.
How do you use it?
Enable/Disable
Once you have installed it, all you need is to run this command:
/function invsync:toggle
-
Operator permissions will be required in order to run the command.
-
You will enable the inventory syncing for your player. No other players will have it enabled until they run the command themselves.
-
Rerunning the command will disable syncing, and you will once again have one inventory that will transfer between game modes rather than staying separated.
⚠️ Warning: If you have items in Survival Mode you want synced to survival, make sure to enable Inventory Syncing in Survival Mode so that the items are not saved to the incorrect game mode.
(i.e The current inventory will be linked to the game mode you are in when enabled, so make sure it is the correct one)
Behavior
- Now if you swap between game modes, your items will be saved for the previous game mode you were in, and your inventory will be cleared and you can now use it.
- Swapping back to the previous game mode will restore the items to the state they were last in. Item data like: durability, enchantments, item names, and even custom data like components will all be restored.
- This will only be enabled for your player only, if any other players wish to have this enabled, they must run the command themselves.
Backups
You are also able to backup a specific inventory configuration in case you want to do something destructive, or just want extra security. You can backup all your inventories by running the command below:
/function invsync:backup
If you ever want to restore the items that you have backed up and override your current inventory, use this command:
/function invsync:restore
Installation
Method 1 (Pre-made world)
- Locate to your .minecraft/saves/<worldname>/datapacks folder.
- Paste the .zip file you installed into this folder.
- Enter your Minecraft world and type /reload.
- A message should pop up that says "Datapack Installed".
Method 2 (Create new world)
- In the Create new world screen, click the "Datapacks" button
- Drag and drop the .zip file you downloaded into the game window.
- Apply the datapack.
- Create new world.
Uninstalling
If you ever wish to uninstall the data pack, then run this command:
/function invsync:z_backend/uninstall
- This will remove internals of the data pack and you can remove the InvSync.zip from the world save.
- Removing file without running this command will keep any data left from the data pack. If you wish to keep the data for future reinstallation or updating to a newer version, do not run command.



