Keeping Inventory is a mod made for modpacks that want the player to progress without the worry of inventory loss on death, and creepers destroying builds. It will automatically disable mobGriefing, and enable keepInventory every time you start a world. Both of these features can be disabled or enabled in the config file.
You can find the source code here, and please post any issues you find here.
Note: I'm semi-abandoning this mod. I don't care for it or use it anymore. I'll still keep it up to date with the newest minecraft version, but no more features will be added.
Downloads
License
You CAN NOT repost, redistribute, or claim you made the mod.
You CAN include this mod in modpacks, as long as you give credit to me.
You CAN use portions of code from this mod in your mod, without giving credit to me.
You CAN NOT copy, use, or redistribute the assets of this mod. Assets include textures, sounds, and models.
Change Log
Version 2.1:
Changed coloration on chat text.
Fixed the bug where people with vanilla minecraft couldn't join worlds with Keeping Inventory installed.
Version 1.6:
Fixed Broken Pipe when used on a server.
Version 1.5:
Updated the mcmod.info file.
If you enter a world where keepInventory is off, then in the chat it says "Your inventory will not be kept on death".
If you enter a world where mobGriefing is on, then in the chat it says "Creepers will destroy blocks".
Version 1.4:
"Creepers will not destroy blocks" is also displayed every time you open a world with Keeping Inventory installed.
Version 1.3:
"Your inventory will now be kept on death" is displayed every time you open a world with Keeping Inventory installed.
Version 1.2:
Fixed a very big bug.
Version 1.1:
Config file added.
Config file located at config/Silly511/KeepingInventory.cfg.
You can type /gamerule keepInventory false if you have cheats on. But the next time you log into the world it will just turn it back on. However you could turn keepInventory off with that command and then unistall the mod. If you don't have cheats on then you could Open to LAN and then you run the command.
I added a config file so now you can just go to config/Silly511/KeepingInventory.cfg and change KeepInventory to true to enable it or false to disable it.
I added a config file so now you can just go to config/Silly511/KeepingInventory.cfg and change KeepInventory to true to enable it or false to disable it.
You seem like a great modder, you update your mod when it needs fixing!
I have a suggestion for this mod, since it seems rather simple at the moment.
Would it be possible to make it so the mod only drops some of your inventory on death. For example depending on how much of a certain item you had it would drop a percentage of it.
Lets say you have these Items in your inventory: 1 Diamond Sword, 1 Diamond Pick, 3 Diamond Axes, 10 cakes, 40 Dirt, 200 cobble, and 60 golden apples.
Then you fall in a lava pool and die a horrible death.
Items that you only have one of do not drop upon your death, (If they are tools they could loose a certain amount of durability) and after that items drop a certain percentage rounded up: (Im gonna say the equation is (#Items-1)*(2) = % (Capping at lets say dropping 40% of your items.))
Your Items after Respawning would be: 1 Diamond Sword, 1 Diamond Pick, 2 Diamond Axes, 8 cakes, 24 Dirt, 120 cobble, and 36 golden apples.
You still loose alot of your items however it is no where near as bad as loosing all of them.
Anyway I hope you consider my suggestion. Have a good day!
It is a nice suggestion, and I would add it if I could. You see, all Keeping Inventory does is turn on the keepInventory gamerule, which is from minecraft itself, not my mod. So I would have to edit base minecraft classes, which is one of the hardest things to do in modding. And I am only a beginner modder.
I would try and do it myself, if I had any knowledge on modding. I will be trying to learn how to code soon enough. Till then, good luck with future mods.
You can. But I tend to turn keepInventory on in all my worlds, so I made this mod to do it for me. But then I thought other people might want to use something like this so I released it to the public.
The Meaning of Life, the Universe, and Everything.
Join Date:
10/28/2011
Posts:
62
Location:
Michigan, USA
Minecraft:
OctavianCloud
Member Details
is there any way to add doFireTick to this mod? Im terrible at remembering to put in gamerules.
I recently spent days building a huge nice town. Have elemental witches mod, was a fire witch not to close to my town but i could see it on journey map, went to kill it came back started working on town again heard fire, my massive 5 story inn was burning down, tried to put it out was already to late so tried to minimize screen and see if i could move my save file and maybe it hadnt saved yet (have a mod that limits how often mincraft saves) it saved at the point right before i started trying to put it out hah. cant find any decent mods that stop fire from burning blocks so guess i need to just turn on the gamerule even though i dont care for it, just dont want my towns burning down, have creepers and tnt explosions off for the same reason didnt think to turn off fire as i didnt expect fire to be a problem stupid me i guess lol.
is there any way to add doFireTick to this mod? Im terrible at remembering to put in gamerules.
I recently spent days building a huge nice town. Have elemental witches mod, was a fire witch not to close to my town but i could see it on journey map, went to kill it came back started working on town again heard fire, my massive 5 story inn was burning down, tried to put it out was already to late so tried to minimize screen and see if i could move my save file and maybe it hadnt saved yet (have a mod that limits how often mincraft saves) it saved at the point right before i started trying to put it out hah. cant find any decent mods that stop fire from burning blocks so guess i need to just turn on the gamerule even though i dont care for it, just dont want my towns burning down, have creepers and tnt explosions off for the same reason didnt think to turn off fire as i didnt expect fire to be a problem stupid me i guess lol.
I could add a doFireTick option to the mod, however you could also consider using AromaBackup which automatically backs up your world every 30 minutes. Either way I'm fine as add another gamerule to the mod would be easy.
Keeping Inventory is a mod made for modpacks that want the player to progress without the worry of inventory loss on death, and creepers destroying builds. It will automatically disable mobGriefing, and enable keepInventory every time you start a world. Both of these features can be disabled or enabled in the config file.
You can find the source code here, and please post any issues you find here.
Note: I'm semi-abandoning this mod. I don't care for it or use it anymore. I'll still keep it up to date with the newest minecraft version, but no more features will be added.
Downloads
License
Change Log
Version 2.1:
Version 1.6:
Version 1.5:
Version 1.4:
Version 1.3:
Version 1.2:
Version 1.1:
Version 1.0:
So, there is NO way to disable keepinventory once it is installed? :c
(insert cringy dubstep minecraft intro here)
You can type /gamerule keepInventory false if you have cheats on. But the next time you log into the world it will just turn it back on. However you could turn keepInventory off with that command and then unistall the mod. If you don't have cheats on then you could Open to LAN and then you run the command.
I added a config file so now you can just go to config/Silly511/KeepingInventory.cfg and change KeepInventory to true to enable it or false to disable it.
You seem like a great modder, you update your mod when it needs fixing!
(insert cringy dubstep minecraft intro here)
Fixed the bug where the entire mod does not work. Next time you find a bug like this in my mods, please report it.
Neat
Does this mod keep exp when you die also? If so is there something in the config to enable exp loss on death but still keep items on death?
All this mod does is enable the keepInventory gamerule, and I think it keeps your xp on death. So yes it does keep your xp.
I have a suggestion for this mod, since it seems rather simple at the moment.
Would it be possible to make it so the mod only drops some of your inventory on death. For example depending on how much of a certain item you had it would drop a percentage of it.
Lets say you have these Items in your inventory: 1 Diamond Sword, 1 Diamond Pick, 3 Diamond Axes, 10 cakes, 40 Dirt, 200 cobble, and 60 golden apples.
Then you fall in a lava pool and die a horrible death.
Items that you only have one of do not drop upon your death, (If they are tools they could loose a certain amount of durability) and after that items drop a certain percentage rounded up: (Im gonna say the equation is (#Items-1)*(2) = % (Capping at lets say dropping 40% of your items.))
Your Items after Respawning would be: 1 Diamond Sword, 1 Diamond Pick, 2 Diamond Axes, 8 cakes, 24 Dirt, 120 cobble, and 36 golden apples.
You still loose alot of your items however it is no where near as bad as loosing all of them.
Anyway I hope you consider my suggestion. Have a good day!
It is a nice suggestion, and I would add it if I could. You see, all Keeping Inventory does is turn on the keepInventory gamerule, which is from minecraft itself, not my mod. So I would have to edit base minecraft classes, which is one of the hardest things to do in modding. And I am only a beginner modder.
I would try and do it myself, if I had any knowledge on modding. I will be trying to learn how to code soon enough. Till then, good luck with future mods.
or you could just do /gamerule keepInventory true
You can. But I tend to turn keepInventory on in all my worlds, so I made this mod to do it for me. But then I thought other people might want to use something like this so I released it to the public.
sounds great, would love an 1.8 update soon though, however if it's too much of a issue (maybe you don't even use 1.8 at all) don't worry about it.
I will look in to updating it to 1.8, however do not expect there to be a 1.8 update any time soon.
Anyway, I don't know how many times I've had to enter in these rules on new worlds. Thanks for releasing this.
Keeping Inventory is out for minecraft 1.8! So expect a 1.9 release SoomTM.
is there any way to add doFireTick to this mod? Im terrible at remembering to put in gamerules.
I recently spent days building a huge nice town. Have elemental witches mod, was a fire witch not to close to my town but i could see it on journey map, went to kill it came back started working on town again heard fire, my massive 5 story inn was burning down, tried to put it out was already to late so tried to minimize screen and see if i could move my save file and maybe it hadnt saved yet (have a mod that limits how often mincraft saves) it saved at the point right before i started trying to put it out hah. cant find any decent mods that stop fire from burning blocks so guess i need to just turn on the gamerule even though i dont care for it, just dont want my towns burning down, have creepers and tnt explosions off for the same reason didnt think to turn off fire as i didnt expect fire to be a problem stupid me i guess lol.
I could add a doFireTick option to the mod, however you could also consider using AromaBackup which automatically backs up your world every 30 minutes. Either way I'm fine as add another gamerule to the mod would be easy.