Note: This mod utilizes Searge's Mod System (MCPMF v1), detailed information can be found here.
Introduction
I don't know about you, but I play a fair amount of survival / adventure maps ranging from challenge maps to super hostiles. I found in my adventures that I was spending a surprising amount of time performing secondary tasks (organizing inventory, placing torches, etc.) rather than enjoying the map, so I decided to do something about it and this is the result. I chose to use MCPMF as the mod framework because of the advantages it provides over comparable frameworks or mod loaders. More information on that can be read in Searge's thread; look for a link at the top of this thread!
Features
[Config] Customizable Keybinds - All one-touch and quick-action keybinds are customizable. They can be found at /.minecraft/magicInventory.txt
_
[Config] Customizable Rules - Configurable rules on a per inventory slot basis allow you to provide a list of items you want auto-sorted into a particular column. This sorting only occurs when one of the items in the list are found in the inventory. Rules follow a simple, easily understood pattern and even include a left-to right decreasing precedence:
Rule D1 Diamond Pickaxe, Iron Pickaxe, Pickaxe
Which allows for a diamond pickaxe to be preferred over iron, which is preferred over any other type. At present, rule matching only works on item names. Types and easily referenced groups (like blocks) are in the works!
_
[SSP] [SMP] Main Bar Swap - On keypress (` by default), swaps the main bar's contents with the bottom-most row of your main inventory. This provides quick access to a second bar of items, making building and adventuring less tedious and time-wasting.
_
[SSP] [SMP] Main Bar Auto-Refill - Building a large something-or-other? Placing a ton of signs for some reason? When an inventory slot is emptied (whether it is a tool, weapon, stack of blocks, food...really, anything!) magicInventory will search your main inventory for another stack of the same material and move it into the current slot, making survival construction a breeze (Creating mob traps, anyone?).
_
[SSP] [SMP] One-Touch Torch Placement - At the touch of a key (r by default), places a torch through normal Minecraft Mechanics (whatever block you're aiming at, subject to distance, yadda yadda yadda), and since I'm a stickler for balance and mods that make Minecraft too easy, torches must reside on your main bar (though they do not have to be selected as the current item).
_
[SSP] [SMP] Smart Food Selection - In case you're ever carrying more than one type of food on you, Smart Food Selection will - on keypress (f) look for a food item in your main inventory and ensure that it is the least wasteful food based on your current hunger conditions. It follows the following rules, in the following order:
Selects a food that will bring you closest to full hunger (if you're at 2.5 empty hunger with bread and several watermelon, the mod will pick the bread, since its single value (3 Food) will get you closest to full than the watermelon (1 Food) in a single use).
If there are multiple equal-food-value items available that match the above condition, pick the one with the smaller stack size
If same stack size, perform no action (to minimize packet transmission and unnecessary mod action).
[SSP] [SMP] Customizable Auto-Organizer - The features of a normal on-button (Middle Mouse or o by default) inventory organizer with more customizable results. Instead of having to organize by ID, like most organizers, you'll be able to organize by other characteristics without negatively affecting other magicInventory functionality (Main Bar Swap, for example).
_
[SSP] [SMP] Quick-Stack Deposit - (z by default) Taking a queue from Terraria, you'll be able to open a container and deposit into the box only things that already exist and have room in their stacks for more items (so using this in a chest full of cobblestone stacks will move all the cobblestone in your inventory to the chest [so long as there is room in the chest and stacks]).
_
[SSP] [SMP] Quick-Unstack Withdrawal - (left shift + z by defualt) Exactly like the quick-stack deposit, but in reversal, pulling items from your open chest to max out any un-maxed stacks in your inventory. If a "priming threshold" is set and the max stack size of the stack in question meets or exceeds that threshold, 1 block is left behind to maintain the chest's "Primed" state.
Planned Features
[NF] Rule Enhancements - Implementation of item groups (Blocks, Lighting, etc.), as well as the ability to specify items by ID. In general, functional improvements to the rules system based on feedback I receive in the immediate future!
_
[OTH] One-Touch Eating - Following the same rules as One-Touch torch placement (item must be on the main bar), users will be able to hold a button down on their keyboard to eat, without needing to start out with the food item being your current item. When the eating is finished (either through success and user at full food, or by interrupting the eating), the current item selection will be restored back to what it was before the eating began (making eating safer and less interrupting to work flow).
_
[OTH] Loot All / Deposit All - Most RPGs feature the ability to quickly loot or deposit into a chest. This feature being missing is just an oddity of Minecraft, IMO...so we'll plan on adding it...do I really need to explain what it does?
Installation
(Optional - Do you want to be able to use this in SMP?) Go here, click on "Show All Platforms" and download the Linux Version (Its just a .jar file) and place it in your .minecraft directory.
Download magicInventory and extract the contents to your /.minecraft folder
Double-click on "mcpms_1811_mc_181.jar" that's now present in your /.minecraft folder
Check in your base ./minecraft directory for a file named "magicInventory.txt"
Can I change the key bindings for each functionality?
Sure! Check the config file!
What is MCPMF and why do you use it?
MCPMF is a modding framework by Searge - a well respected modder that has contributed a ton to the Minecraft scene, particularly through his hard work with MCP, which decompiles and deobfuscates the minecraft source. MCPMF allows modders to do more with less code (through the use of various API hooks and other neat tricks) and keeps us from stepping on each others' toes, so to speak (MCPMF treats each mod separately, so even if multiple mods make changes or additions to the same files, they won't conflict with one another. More information on MCPMF can be found in Searge's thread, linked at the top of this post.
Wait, I didn't have to open /.minecraft/bin/minecraft.jar with winRar or anything, delete META-INF, or do any of that nonsense...what's up!?
That's one of the advantages to MCPMF: Messing with the minecraft.jar is not necessary. All the MCPMF mods you want to use, just stick their .jar into /.minecraft/mods and you're done!
Are there security risks associated with using MCPMF?
Nope! The source of the MCPMF is open to anyone and a wide variety of modders have verified how it works. We wouldn't use or promote a framework which utilized malicious code to do anything nasty. In fact, because MCPMF doesn't modify the Minecraft source directly, but instead "Wraps" it in its own code, one could argue that - as a framework - MCPMF poses fewer security risks than mods or mod loaders which require you to edit the minecraft.jar. More information on this can be found in Searge's thread, linked at the top of this post.
Do you take suggestions on stuff to add to MagicInventory?
Sure! Suggest away and I'll discuss with you - if I see your reply, which I should - the feasibility and functionality of your suggestion.
Changelog
0.5
Implementation of Rules
Modification of bar-swap code to facilitate Rules
Bug fix for sorting / stacking of items with damage values (saplings, wool, etc.)
0.4.2
Update MCPMS jar to fix SSP world-creation bug
0.4.1
Bug fix for SMP chest-sorting
Bug fix for chat-dialog actions (depressing a shortcut key while the Chat GUI was open)
0.4.0
Updated to MCPMS for 1.0.0
0.3.1
Bug fixes for inventory sorting
Bug fixes for bar-swapping in certain screens
Bug fixes for quick-stack and quick-unstack
More bug fixes
Confirmation of SMP auto-replace bug (not fixed yet, will do that next and either put it in 0.3.2 or a quick 0.4 release)
0.3
Config file expansion (to support new features)
Implementation of Unstack
Implementation of Unstack priming
Expansion of keybinding customization by adding in modifier keys (Shift, Meta, and Control only)
If this post helped, please click the little green plus in the bottom-right corner of this post, to give me a bit more of a reputation. I am not just asking for it unfairly, only click it if I helped.
I got home last night, but cleaning with the wife and taking care of my daughter kept me off the computer most of the night...I barely had time to check my e-mail :sad.gif:
Anyways, main thread is updated with features, installation instructions, and download link. I'll be adding to the thread here in the next few minutes....I would <3 if a mod could move this out of WIP and into the main "Minecraft Mods" forum!
nice job whit this, But i think i will stick whit invtweak but i voted the post 1 up for the effort :wink.gif:
Yeah InvTweak is rather nice, but I wanted to add some other stuff that wasn't included in his mod. I'm not a big fan of modloader either, so with those in mind, I decided to start off on my own! Thanks for your comment!
Note: This mod utilizes Searge's Mod System (MCPMF v1), detailed information can be found here.
Introduction
I don't know about you, but I play a fair amount of survival / adventure maps ranging from challenge maps to super hostiles. I found in my adventures that I was spending a surprising amount of time performing secondary tasks (organizing inventory, placing torches, etc.) rather than enjoying the map, so I decided to do something about it and this is the result. I chose to use MCPMF as the mod framework because of the advantages it provides over comparable frameworks or mod loaders. More information on that can be read in Searge's thread; look for a link at the top of this thread!
This is truly awesome. Features
[SSP] [SMP] Main Bar Swap - On keypress (tilde by default), swaps the main bar's contents with the bottom-most row of your main inventory. This provides quick access to a second bar of items, making building and adventuring less tedious and time-wasting.
_________
[SSP] [SMP] Main Bar Auto-Refill - Building a large something-or-other? Placing a ton of signs for some reason? When an inventory slot is emptied (whether it is a tool, weapon, stack of blocks, food...really, anything!) magicInventory will search your main inventory for another stack of the same material and move it into the current slot, making survival construction a breeze (Creating mob traps, anyone?).
_________
[SSP] [SMP] One-Touch Torch Placement - At the touch of a key (R by default), places a torch through normal Minecraft Mechanics (whatever block you're aiming at, subject to distance, yadda yadda yadda), and since I'm a stickler for balance and mods that make Minecraft too easy, torches must reside on your main bar (though they do not have to be selected as the current item).
_________
[SSP] [SMP] Smart Food Selection - In case you're ever carrying more than one type of food on you, Smart Food Selection will - on keypress (F) look for a food item in your main inventory and ensure that it is the least wasteful food based on your current hunger conditions. It follows the following rules, in the following order:
Selects a food that will bring you closest to full hunger (if you're at 2.5 empty hunger with bread and several watermelon, the mod will pick the bread, since its single value (3 Food) will get you closest to full than the watermelon (1 Food) in a single use).
If there are multiple equal-food-value items available that match the above condition, pick the one with the smaller stack size
If same stack size, perform no action (to minimize packet transmission and unnecessary mod action).
[Config] Customizable Keybinds - All one-touch and quick-action keybinds are customizable. They can be found at /.minecraft/magicInventory.txt
____
[WIP] Customizable Auto-Organizer - The features of a normal on-button (Middle Mouse) inventory organizer with more customizable results. Instead of having to organize by ID, like most organizers, you'll be able to organize by other characteristics without negatively affecting other magicInventory functionality (Main Bar Swap, for example).
____
[OTH] One-Touch Eating - Following the same rules as One-Touch torch placement (item must be on the main bar), users will be able to hold a button down on their keyboard to eat, without needing to start out with the food item being your current item. When the eating is finished (either through success and user at full food, or by interrupting the eating), the current item selection will be restored back to what it was before the eating began (making eating safer and less interrupting to work flow).
____
[OTH] Quick-Stack Deposit - Taking a queue from Terraria, you'll be able to open a container and deposit into the box only things that already exist and have room in their stacks for more items (so using this in a chest full of cobblestone stacks will move all the cobblestone in your inventory to the chest [so long as there is room in the chest and stacks]).
____
[OTH] Loot All / Deposit All - Most RPGs feature the ability to quickly loot or deposit into a chest. This feature being missing is just an oddity of Minecraft, IMO...so we'll plan on adding it...do I really need to explain what it does?
Installation
(Optional - Do you want to be able to use this in SMP?) Go here, click on "Show All Platforms" and download the Linux Version (Its just a .jar file) and place it in your .minecraft directory.
Download magicInventory and extract the contents to your /.minecraft folder
Double-click on "mcpms_1811_mc_181.jar" that's now present in your /.minecraft folder
MCPMF is a modding framework by Searge - a well respected modder that has contributed a ton to the Minecraft scene, particularly through his hard work with MCP, which decompiles and deobfuscates the minecraft source. MCPMF allows modders to do more with less code (through the use of various API hooks and other neat tricks) and keeps us from stepping on each others' toes, so to speak (MCPMF treats each mod separately, so even if multiple mods make changes or additions to the same files, they won't conflict with one another. More information on MCPMF can be found in Searge's thread, linked at the top of this post.
Wait, I didn't have to open /.minecraft/bin/minecraft.jar with winRar or anything, delete META-INF, or do any of that nonsense...what's up!?
That's one of the advantages to MCPMF: Messing with the minecraft.jar is not necessary. All the MCPMF mods you want to use, just stick their .jar into /.minecraft/mods and you're done!
Are there security risks associated with using MCPMF?
Nope! The source of the MCPMF is open to anyone and a wide variety of modders have verified how it works. We wouldn't use or promote a framework which utilized malicious code to do anything nasty. In fact, because MCPMF doesn't modify the Minecraft source directly, but instead "Wraps" it in its own code, one could argue that - as a framework - MCPMF poses fewer security risks than mods or mod loaders which require you to edit the minecraft.jar. More information on this can be found in Searge's thread, linked at the top of this post.
Do you take suggestions on stuff to add to MagicInventory?
Sure! Suggest away and I'll discuss with you - if I see your reply, which I should - the feasibility and functionality of your suggestion.
Cant you make it mp for windows ?
I'd use it then, and also wtf we have to run a jar file to use it?
I can see this as being one of my favorite mods, if only it would work in mp, with windows
It does work in Multiplayer...in Windows. That's where I've done the majority of my development and testing in, actually, ranging from W7 to XP.
Also, read Searge's post about running the jar file, it wraps minecraft without actually modifying any of the jars...making the system more user friendly and more secure.
Yes, the .minecraft folder :smile.gif: That's what the instructions say!
Installed your mod. The auto replace works so clearly the mod is working. I can't recall the auto replace being a feature of the other inventory mods out there apart from one that hasn't been updated to 1.81 so I think you have a winner here.
One thing though is that it hasn't created the magicInventory.txt file in the minecraft folder where I put the mcpms_1811_mc_181.jar. I checked for it everywhere [including the mods folder where I put your mod] just in case and still couldn't find it.
Wonder what I should be doing to get it to appear?
I can't map the other features without it.
Also the middle button doesn't 'stack' up or organise anything, so I imagine it needs the magingInventory.txt file before it'll work.
The Meaning of Life, the Universe, and Everything.
Join Date:
3/19/2011
Posts:
62
Member Details
very well done!!! i think the yogscast should do a video for you seriously this is the best inventory tweak i have ever seen. it takes all the good stuff from the existing inv tweaks and then you added your own stuff too!! i am thoroughly impressed +1 rep for you sir!!!
Hey, does MCPMF edit any of the base files edited by Minecraft Forge? If it does, that means we are forced to choose between mods that use the Forge API and mods that use MCPMF. That choice is not even a contest for 99% of players : Forge mods include the biggest, most sweeping mods available for the entire game. (Industrial Craft 2, Redstone Power, Better than Wolves, and Buildcraft). Altogether, those mods add about 1000 new recipes and dozens of new gameplay possibilities. They also require lots and lots of crafting if you are playing legit, making an inventory mod like this one pretty darn handy.
Also, Forge is open source and accepts submissions. If you need to access something to adjust inventory, you can probably already do so with Forge or submit the hooks you need.
magicInventory has now been updated to v0.2! This includes the quick-stack and auto-sort functionality.
The auto-sorter can use ID or ALPHA mode (ID is by item ID, ALPHA is alphabetical, based on item name). To change between the two modes, edit the magicInventory.txt file (which is now getting correctly created!).
I'm leaving work and in a rush, I'll check back on this later on this afternoon and as always, thanks for checking out my mod and please report any and all bugs you can find. I imagine the auto-sorter may act up when you do it in chests....
The download provided is a manual install, perhaps I'm misunderstanding what it is you mean by manual installation. If you mean having individual class files, the mod requires mcpmf. The . Jar file that ships in the mod is the actual source for the mod, which is obviously what normally ships in the class files.
By CrypticZerg
Features
Which allows for a diamond pickaxe to be preferred over iron, which is preferred over any other type. At present, rule matching only works on item names. Types and easily referenced groups (like blocks) are in the works!
Planned Features
Installation
Download
FAQ
Changelog
Yeah!
If this post helped, please click the little green plus in the bottom-right corner of this post, to give me a bit more of a reputation. I am not just asking for it unfairly, only click it if I helped.
Hehe. Make sure your boss doesnt notice! Unless you work for Notch...
Click to try my Wooden Armour + mod, feedback is awesome
I got home last night, but cleaning with the wife and taking care of my daughter kept me off the computer most of the night...I barely had time to check my e-mail :sad.gif:
Anyways, main thread is updated with features, installation instructions, and download link. I'll be adding to the thread here in the next few minutes....I would <3 if a mod could move this out of WIP and into the main "Minecraft Mods" forum!
haha, yeah :smile.gif: I was getting ready to leave and wanted to go ahead and get it typed up :smile.gif: I was technically off the clock anyways
Yeah InvTweak is rather nice, but I wanted to add some other stuff that wasn't included in his mod. I'm not a big fan of modloader either, so with those in mind, I decided to start off on my own! Thanks for your comment!
Edit: whoops...forgive the double post!
It does work in Multiplayer...in Windows. That's where I've done the majority of my development and testing in, actually, ranging from W7 to XP.
Also, read Searge's post about running the jar file, it wraps minecraft without actually modifying any of the jars...making the system more user friendly and more secure.
Check out the directions :smile.gif: Step 1 is for you!
I've not tried it with those in particular, AFAIK, it should be compatible.
Yes, the .minecraft folder :smile.gif: That's what the instructions say!
Loljk, love ya bro.
(no homo)
Yup. Charles died.
Installed your mod. The auto replace works so clearly the mod is working. I can't recall the auto replace being a feature of the other inventory mods out there apart from one that hasn't been updated to 1.81 so I think you have a winner here.
One thing though is that it hasn't created the magicInventory.txt file in the minecraft folder where I put the mcpms_1811_mc_181.jar. I checked for it everywhere [including the mods folder where I put your mod] just in case and still couldn't find it.
Wonder what I should be doing to get it to appear?
I can't map the other features without it.
Also the middle button doesn't 'stack' up or organise anything, so I imagine it needs the magingInventory.txt file before it'll work.
cheers..........
edit: i claim page 2 for england! *plants flag*
Also, Forge is open source and accepts submissions. If you need to access something to adjust inventory, you can probably already do so with Forge or submit the hooks you need.
The auto-sorter can use ID or ALPHA mode (ID is by item ID, ALPHA is alphabetical, based on item name). To change between the two modes, edit the magicInventory.txt file (which is now getting correctly created!).
I'm leaving work and in a rush, I'll check back on this later on this afternoon and as always, thanks for checking out my mod and please report any and all bugs you can find. I imagine the auto-sorter may act up when you do it in chests....
The download provided is a manual install, perhaps I'm misunderstanding what it is you mean by manual installation. If you mean having individual class files, the mod requires mcpmf. The . Jar file that ships in the mod is the actual source for the mod, which is obviously what normally ships in the class files.