Data Packs Game Mechanic

Player-Specific KeepInventory

  • Functions
  • 18,082 views • 1 today
  • 1,489 downloads • 0 today
  • 9
  • 12
  • 1
PBalint817
Level 32 : Artisan System
7
This is just a small utility mod that allows you to set KeepInventory to specific players.

Disclaimer: This datapack overrides the KeepInventory gamerule, forcing it to true, in order for this pack to work.

From here on, all information regarding the datapack can be also found in the "README.txt" file that comes with it.


To enable KeepInventory for a player, use:
/tag <target> <add/remove> KeepInv


To change the configs listed below, use:
/scoreboard players set ki.system <id> <integer>

Configs:

XP Amount:
- Default: 10
- ID: xpamountdrop
- The amount to divide your experience by before dropping it.

Global KeepInventory:
- Either true or false.
- 0 for false, anything else for true.
- Default: false
- ID: keepinvglobal
- When true, this will enable KeepInventory for all players.
- When false, only tagged players will have KeepInventory enabled.
CompatibilityMinecraft 1.16
toMinecraft 1.17
Tags

  Have something to say?

Derzocker39
12/05/2021 4:35 pm
Level 1 : New Miner
Is this Datapack compatible with 1.18?
Thanks in advance!
2

Welcome