promotional bannermobile promotional banner
header
keepinventory-command avatar

keepinventory-command

Install

Runs using Fabric and Fabric API. Mod is not required client-side if installed on a server.

Two forms of the command exist:

/keepinventory [value]

  • sets the per-user keepinventory value for yourself
  • all players have access to this form

/keepinventory [targets] [value]

  • sets the per-user keepinventory value for all specified targets (using standard Minecraft selectors)
  • only operators have access to this form

Valid values are true, false, and default. true and false override the gamerule; default obeys it.

I wrote this in about four hours so if it breaks and you lose your items, I'm sorry. Please don't yell at me. Please do submit an issue on the GitHub though.

:)