Making a map and want to have people start with a specific set of items? Running a server and want to avoid having no trees in a 500 block radius? Do your items store NBT Data? Then you've come to the right place. Unlike most other starting inventory mods, Specific Inventory lets you specify precisely the items you get to start with. Anything from a Bibliocraft Clipboard to a Thermal Expansion Tesseract - you can rest assured that your players will start exactly the way you want them to. Unlike other starting inventory mods, Specific Inventory will give your items exactly with every piece of data you can imagine.
Usage
Simply set up the items you want to start with in your inventory and use '/si save' (without the quotes) to save your inventory to file. To test, you can use '/si load'. You're all set.
To remove the starting inventory completely, navigate into the config folder and delete the savedInv.dat file.
But what happens if the player dies with my specific item? How can they get it back? Well, we have a solution for that too. You can define a simple crafting recipe - 1 to 1 - to get an item with all of it's data back. Place the ingredient on the far left of your hotbar and the result next to it. Then, use '/si addRecipe' and you're all done. Next time you log in, you can craft your item. Want to remove the recipe? Simply delete the savedRecipe.dat file from the config folder.
How do I make sure people don't just dupe with /si load? In the config file there is an option 'edit'. Set this to false and no-one can call the command. True and they can. It's up to you to make sure it's on the right method.
Source Code / License
This project is licensed under the GNU General Public License. It is fully open source. You can view the source here. If you have an addition, feel free to submit a pull request. I'm always open to new ideas.
This also means that you are free to use this mod in any pack that you like. You do not require permission. I would appreciate a PM on MinecraftForums, purely out of my own curiosity, but this is not required.
Bug Reports
If you experience a bug, please submit an Issue on the GitHub page. If you don't include a crash log, I'll get very upset. You don't want that. I'll do my best to track down the issues.
Updates and more information
For any more information or potential updates, check out information on the website and/or follow me on Twitter. Also a massive thank you to tterag1098 for all of his contributions. This mod is as much his as it is mine. Check out the rest of his work here.
Very small update to fix an issue with items not spawning in when other mods that use a Persisted NBT Tag are present. Updated download link in the original post.
OK, Version 1.2 is now available - added a config option to not completely wipe the inventory. This is useful on an already loaded world. Updated link is in the OP.
Making a map and want to have people start with a specific set of items? Running a server and want to avoid having no trees in a 500 block radius? Do your items store NBT Data? Then you've come to the right place. Unlike most other starting inventory mods, Specific Inventory lets you specify precisely the items you get to start with. Anything from a Bibliocraft Clipboard to a Thermal Expansion Tesseract - you can rest assured that your players will start exactly the way you want them to. Unlike other starting inventory mods, Specific Inventory will give your items exactly with every piece of data you can imagine.
Usage
Simply set up the items you want to start with in your inventory and use '/si save' (without the quotes) to save your inventory to file. To test, you can use '/si load'. You're all set.
To remove the starting inventory completely, navigate into the config folder and delete the savedInv.dat file.
But what happens if the player dies with my specific item? How can they get it back? Well, we have a solution for that too. You can define a simple crafting recipe - 1 to 1 - to get an item with all of it's data back. Place the ingredient on the far left of your hotbar and the result next to it. Then, use '/si addRecipe' and you're all done. Next time you log in, you can craft your item. Want to remove the recipe? Simply delete the savedRecipe.dat file from the config folder.
How do I make sure people don't just dupe with /si load? In the config file there is an option 'edit'. Set this to false and no-one can call the command. True and they can. It's up to you to make sure it's on the right method.
Download
Minecraft v1.6.4: Download - Requires Minecraft Forge v965.
Source Code / License
This project is licensed under the GNU General Public License. It is fully open source. You can view the source here. If you have an addition, feel free to submit a pull request. I'm always open to new ideas.
This also means that you are free to use this mod in any pack that you like. You do not require permission. I would appreciate a PM on MinecraftForums, purely out of my own curiosity, but this is not required.
Bug Reports
If you experience a bug, please submit an Issue on the GitHub page. If you don't include a crash log, I'll get very upset. You don't want that. I'll do my best to track down the issues.
Updates and more information
For any more information or potential updates, check out information on the website and/or follow me on Twitter. Also a massive thank you to tterag1098 for all of his contributions. This mod is as much his as it is mine. Check out the rest of his work here.