InventoryPlus

Redefining Player Inventories
Features
- Create a true RPG feeling by remodeling the inventory system through various settings!
- Full control over item pickups, item sorting and item creation!
- Disable/Lock unwanted inventory slots!
- Picked up items are getting forwarded to the next allowed slot!
- Assign items to a slot and blacklist or whitelist them, controlling and restricting its possible contents!
- Define slots as item-bins, deleting all items put in!
- Define slots as slot-switchers, switching the items of two different slots when clicked on! (useful for one-click weapon switching)
- Moving items from/into locked/not allowed slots is not possible!
- Dropping items from disabled slots is not possible!
- Custom /get command which behaves similar to the default /give, now skipping un-allowed slots!
- Custom messages, informing your players when a slot is not allowed for that item or if an item cannot be picked up!
- Fully configurable though detailed and easy-to-use configuration files, disable and enable the features you need!
How it works
Let's assume you want some realism on your Minecraft server, annoyed by players carrying around an inventory full of heavy loot, often multiple times their own weight. You want a change. This change is being brought here!
For instance, you could restrict your players inventories to only carry one sword at a time. It can be done through the included configuration file, in which you can define the behavior of each of the 36 different inventory slots. For each individual inventory slot, you can add items to a list. These items can now either be blacklisted (i.e. every other item than those in the list goes into the slot), or whitelisted (i.e. only the items listed fit into the slot).
Your players inventory is still a bit too big? You can even block a slot from any kind of usage, allowing NO items to be moved into that slot at all! Whether a slot is locked or the item trying to be placed into it is not allowed - Restricted items wont make their way into unwanted areas, no matter what.
Configuration
Config File with explanations: config.yml
Understanding the Slot Grid
The config file is very straight forward. First you are able to change some general settings, but for the most part just leave them on default. Underneath you find 36 different blocks of arguments, starting with "0" up to "35", while each number indicates the slot it is referring to in the inventory system.

Filling the Lists
Depending on what you want to achieve, you can either make the itemlist a blacklist or a whitelist. You need one row for each item you want to allow/forbid. Always use the default formatting: ID:MetaData
Most items don't have additional information, making their metadata value a zero. Some items, like log or dye, have multiple sub-types, defining color and/or type. In that case, you need to specify your needs by submitting the metadata value. Swords and pickaxes for instance have a constantly changing durability. If you just add 272.0 (stone sword) to your whitelist, only a fully repaired stone sword is included. If you want to include all possible sub types and durabilities, use the wildcard *. You do that by placing a * after the dot (example: 272.*).
If you don't know the exact Item ID, you can use the link below or use the command /ivitem while holding the item in your hand. You are going to get a suitable value ready to place inside the config, including durability!
You can get the item ID's (for blocks and items) here: Item ID list
Remember, if you want to have a fully working whitelist, also add air to the slot (0.*).
Help, my config doesn't work
The config will not work and the plugin will eventually break if you delete parts of it, or if you use whitespaces instead of tabs while editing! Please only modify true/false values. You can also add and delete values inside the "items:" lists.
The plugin works, you just have to get the setup right. Updating to a newer version may break your config file as well, some things might have changed. To make sure you can update safely, go to the files section on this page and click on the newest version. Any changes made to the config are listed there, just manually check for differences and correct them. If your config seems to be broken, reinstall the plugin and add your old values to the freshly generated configuration file.
You can also try to use the YAML Phraser, to check for formatting errors inside the config.yml.
Commands and permissions
/ivreload
Reloads the plugin
/ivitem
Prints ID.DURABILITY of the item currently hold in hand into the chat, suitable formatting the config file.
/get <item | item:data> [amount | player] [player]
This may seem a bit confusing, but it is actually way more handy than the default /give command, which, for instance, always asks to enter a player name, even if you are the one receiving the item..
The first argument <item | item:data> stands for the item you want to have. It can either be an ID, or an ID with Metadata attached to it, separated through a colon.
- Examples:
- /get 17 => gives 1x log to yourself
- /get log => gives 1x log to yourself
- /get 17:3 => gives 1x jungle log to yourself
The second argument can now either be the amount of items you want to have/give, or the name of the player you want to give something to. If you only enter a username, the amount will be one.
- Examples:
- /get 17 30 => gives 30x log to yourself
- /get log 30 => gives 30x log to yourself
- /get 17:3 30 => gives 30x jungle log to yourself
- /get 17 badeye => gives 1x log to a player (here: badeye)
- /get log badeye => gives 1x log to a player (here: badeye)
- /get 17:3 badeye => gives 1x jungle log to a player (here: badeye)
The third argument is only relevant when the second argument hasn't already used the username parameter but the item amount instead.
- Examples:
- /get 17 30 badeye => gives 30x log to a player (here: badeye)
- /get log 30 badeye => gives 30x log to a player (here: badeye)
- /get 17:3 30 badeye => gives 30x jungle log to a player (here: badeye)
Bugs
- Shift clicking an item is 'ghosting' it to its original destination for a brief moment. This is not a big deal, it just doesn't look as fancy as it could look. It is caused by the bukkit API and cannot be fixed on my end.
- /get doesnt check for creative mode
- Equiping armor through shift clicking doesn't work yet
Upcoming Features
- Carry weight for specific items => slowness
- Crafting slot management
- In-game inventory restriction editing through a custom gui -> config wont be needed anymore for the slot configuration
- MultiWorld support
-
View User Profile
-
Send Message
Posted Feb 23, 2014@AnAwesomeGuy
Dropping is buggy at the moment, as I said in my reply to 97WaterPolo the next version (1.8) will fix aloooot of bugs, including the dropping mechanism. That one was bugged (alot) and I had alot of trouble correcting it, but it is done now. You will be able to drag stuff out, you will be able to drag everything out of the inventory (no whitelist needed, since it checks for the whitelist when you pick an item up => it is allowed when you have it on the cursor). Just stay patient for the next update.
Edit: Fixed the armor slot thing :)
-
View User Profile
-
Send Message
Posted Feb 23, 2014@97WaterPolo Hey, sure i can do that. Armor slots should be allowed, however. There are multiple ones, indeed. Thats why i had so much trouble coding it :D There are raw slot ID's and Slot ID's. Let's take the normal inventory, which is actually a combination of the player inventory (bottom side) and the crafting inventory (top side). Thats why both start with number 0, which is confising. Raw Slot ID's are unique, no number exists twice.
I'm gonna post the grid later on this day, but for now:
Quickbar starts from the left with number 0, goes to the right til number 8. Player Inventory starts from the top left with number 9, the row continues til number 17, the next row starts at the left side with number 18 and goes on til number 26. Next row begins on the left with 27 and goes on til number 35.
Armor slots and the players crafting slots are not effected by this, thats why the ID doesn't matter. The top inventory when you open a chest isn't effected aswell as other containers are not effected.
Next version (1.8) will be uploaded in a few hours, it will take longer til it is avariable for you, bukkit needs to give approval to make it public. In that version various bugs will be fixed, you will have more config options, dropping works now perfectly and placing / using items out of banned slots can be allowed/disabled in the config.
-
View User Profile
-
Send Message
Posted Feb 22, 2014@xXBadeye
What item slot inventory did you use? There seems to be multiple ones o_O like the first slot is 0, but from some I saw the crafting grid is 0? Also, when I try to equip armor my clicking and switching it says its not allowed. Some inventory grids say 100-103 is the armor and some say 5-8 is the armor. Mind posting the grid you used for this?
-
View User Profile
-
Send Message
Posted Feb 22, 2014@xXBadeye
Hey can you make it so i can drag whitelisted things out of the inventory cause i use crackshot and i can't drop with q.
-
View User Profile
-
Send Message
Posted Feb 18, 2014@x3ndlessfear
There are some other features that have a higher priority such as fixing the last few bugs and making the dropping working, but it is defenetly on my list
-
View User Profile
-
Send Message
Posted Feb 17, 2014Would love to see multi world support
-
View User Profile
-
Send Message
Posted Feb 17, 2014Update: Bukkit takes now realy long at approving the updates, seems like i have released too many versions over a shot period of time :) However, as soon as they are public you can enjoy a (mostly) fully working InventoryPlus system! InventoryPlus_1.7 offers you so many bug fixes and improvements. With 1.8 (upcoming) my last big construction side - the droping mechanism - will be fixed aswell, I already started working on that. In a few days this plugin is going to be a must have for every RPG Server, stay tuned!
If anybody could give me feedback if the new item-ID system also works with modded items, that would be great (Please test it with version 1.7 and above)
-
View User Profile
-
Send Message
Posted Feb 16, 2014@born2troll
Hey, since my moded server will always run on 1.6.4, I am not sure about that. But actually it should work with 1.7.2/4, since not that many changes in the bukkit code were made. Just try it out, if it gives you errors i will look into that.
€dit: But please wait for version 1.6 of this plugin, it is already uploaded and needs approval from the bukkit dev team. Other versions may not guarantee the work with MC 1.7.2 / 1.7.4
-
View User Profile
-
Send Message
Posted Feb 16, 2014Can you update this plugin for 1.7.2 and 1.7.4's version please? Thank you.
-
View User Profile
-
Send Message
Posted Feb 11, 2014@larsxpx
Picking up the development again now. It was my goal aswell to use this on my modded server (forge), so this is going to work after i fixed some bugs. I just have to use some different functions for item storage, that is not going to take very long
-
View User Profile
-
Send Message
Posted Jan 29, 2014Can you make this work with item id's? I would like to use this on a modded server and the names aren't working. Can you make this working with id's or are costum items then not working?
PLZ help
-
View User Profile
-
Send Message
Posted Jan 29, 2014-
View User Profile
-
Send Message
Posted Dec 26, 2013update?
-
View User Profile
-
Send Message
Posted Dec 7, 2013Can you add that you can set a command on an item and that you can make that you can set a preset of blocks met custom item names and lores.
-
View User Profile
-
Send Message
Posted Nov 28, 2013Hello! Any update?? :D
-
View User Profile
-
Send Message
Posted Nov 22, 2013@Nstemp
Okay, gotcha! I'll implement it tomorrow with some other things i had in my mind. Just stay tuned for a couple more hours :)
-
View User Profile
-
Send Message
Posted Nov 20, 2013But what I say is just 1 message per slot, it wouldn't matter blacklisted, locked and non-whitelisted + allowed(?) because it would be only one message to send to the player, now you are free to add in that message if its locked or whatever.
-
View User Profile
-
Send Message
Posted Nov 20, 2013@Nstemp
Okay, thats easy to implement. But it would not be possible, we would have to have 3 to 4 messages for each slot (blacklisted, locked and non-whitelisted + allowed(?)). It's possible but it would increase the file size and mainly the length massively and would may make it a bit unorganized. But yeah, it would be possible... What do you think?
-
View User Profile
-
Send Message
Posted Nov 18, 2013@xXBadeye
Thanks very much! This is useful but I was thinking on a custom message for every slot, for example:
-
View User Profile
-
Send Message
Posted Nov 16, 2013@fungreenfox
Interesting, I'll look into it. I think it's possible, the only downside would be that all the libarys from worldedit/guard are beeing importet into this projhect, which will make the plugin less leightweight and increase the size of the file. But i think it's totaly handable.