Due to popular demand, I have finished moving some of my inventory mods to plain old vanilla minecraft, and provide them here along with a modder's resource to work more closely with the inventory. These are:
Where and When, a mod which provides a visible compass and clock as long as they are in your inventory, freeing up quickslots. Auto Refill, a mod which automatically refills your quickslot whenever you empty it with another stack of that item from your inventory (for example, eating a loaf of bread moves another loaf from your inventory into that slot). Inventory Watch, a modder's resource that provides an easy to use API for watching and responding to inventory events.
Added priority to the Inventory Watchers, so individual mods can control when their methods get called in the list.
Added a hook for any IInventory to call on change.
v1.0: Initial release.
Where and When
v1.0: Initial release.
Auto Refill
v1.3:
Solved a problem where this wouldn't notice when you changed quick slots by pressing their hotkey, causing it to sometimes pick the wrong tool to refill with.
Fixed a bug where it would replace items with ones that shared the same id, but not necessarily the same item (any item with subtypes, for example). It now checks item name as well.
Provided a compatibility patch for the Aether. The Aechor plant would cause you to lose two buckets per poison bucket with this mod.
v1.2: Fixed a bug that caused auto refill to fail for some people.
v1.1: Fixed a bug where it would occasionally be looking for the last item you used instead of the current item you used.
v1.0: Initial release.
Description: Where and When:
Adds a visible compass and clock if you have them in your inventory, as seen in the image.
Auto Refill:
Automatically refills your quick slots whenever you use up their contents. It refills by searching your inventory for another stack of that item and moving it into that slot. For example, if you use up a shovel, it will take another shovel from your inventory and move it in there. If you don't have one, nothing will happen. This works for all items that are used up, but is most handy for food, tools and placing blocks.
Inventory Watch:
This is a modder's resource which provides an API to allow close work with the inventory without conflicting with other mods. This is done by adding hooks into key inventory events, and allowing you to add listeners to those events. To make your own, simply make an object that extends InventoryWatcher, override whichever methods you like, and then add that watcher to the Inventory Watch.
Sample:
InventoryWatch.addWatcher(new InventoryWatcher() {
public void onInventoryChange(ix inventory) {
System.out.println("Inventory Changed.");
}
public void onCurrentItemChange(ix inventory) {
System.out.println("Current item Changed.");
}
public Float getStrVsBlock(ix inventory, uu block) {
System.out.println("Getting Str vs Block.");
return null;
}
public sp writeToNBT(ix inventory, sp nbtTagList) {
System.out.println("Writing to NBT.");
return nbtTagList;
}
public void readFromNBT(ix inventory, sp nbtTagList) {
System.out.println("Reading from NBT.");
}
public Integer getDamageVsEntity(ix inventory, sn entity) {
System.out.println("Getting damage.");
return null;
}
public Boolean canHarvestBlock(ix inventory, uu block) {
System.out.println("Checking harvest.");
return null;
}
public int getTotalArmourValue(ix inventory) {
//System.out.println("Getting armour.");
// This'll spam your face off if you try to print! It's called every GUI update.
return 0;
}
public void onArmourDamaged(ix inventory, int damage) {
System.out.println("Armour damaged.");
}
public void dropAllItems(ix inventory) {
System.out.println("Dropping all.");
}
public Boolean canInteractWithPlayer(ix inventory, gs player) {
System.out.println("Can interact with player.");
return null;
}
public void onInventoryCreated(ix inventory, gs player) {
System.out.println("Inventory Created.");
}
});
Conflicts:
Inventory Watch will conflict with any mod that modifies either ix.class or ob.class. It will conflict. That said, Inventory Watch is a modder's resource, so other mods are highly encouraged to try working with it instead.
If there are any particular mods that don't mesh with this that the modder doesn't want to make compatible with Inventory Watch, please contact me. I may be able to provide a compatibility patch that adds the functionality that mod wants using Inventory Watch.
Risugami's Death Chest
This does conflict, but with Risugami's permission I have a rewrite of it that uses Inventory Watch, which you can download here: Death Chest Rewritten v1.2.
Aether
Auto Refill may sometimes use two buckets instead of one when trying to fill them with poison from an aechor plant. This is due to how the aechor plant is coded. To fix the problem, copy this into your minecraft.jar: Fixed EntityAechor.class.
I fixed the bug you mentioned with Auto Refill. I asked Risugami if he'd be alright with me rewriting Death Chest to use Inventory Watch, and he said yes, so I'll have one up in the compatibility section for you shortly. It should be fairly easy to do.
Not sure why, but ever since the split, when i made multiple skyroot buckets to get the poison, about half of them disappear, as in, i fill it, then i take the other one, and fill that, the first one disappears, i should have 6, but i only have 3..
also unsure if this is a bug with normal aether or this, or if it's even a bug, as i have never used them before, but my golden gloves aren't taking damage when i fall.
reposting here incase it's a problem with this half
Not sure why, but ever since the split, when i made multiple skyroot buckets to get the poison, about half of them disappear, as in, i fill it, then i take the other one, and fill that, the first one disappears, i should have 6, but i only have 3..
also unsure if this is a bug with normal aether or this, or if it's even a bug, as i have never used them before, but my golden gloves aren't taking damage when i fall.
reposting here incase it's a problem with this half
That sounds like a bug with auto refill and buckets. I'll get to fixing that.
Gloves not taking damage is another part of the inventory bugs introduced in 1.02. I'll get to fixing that one too. Thanks!
I cant seem to get Auto Refill to work with me, like at all, I've even made a whole new minecraft .jar and only installed Mod loader, Inventory watch, auto refill all in that order, im able to play but nothing happens, no refill no nothing, Is this Multiplayer only? I only tested in Single PLayer.
I cant seem to get Auto Refill to work with me, like at all, I've even made a whole new minecraft .jar and only installed Mod loader, Inventory watch, auto refill all in that order, im able to play but nothing happens, no refill no nothing, Is this Multiplayer only? I only tested in Single PLayer.
I cant seem to get Auto Refill to work with me, like at all, I've even made a whole new minecraft .jar and only installed Mod loader, Inventory watch, auto refill all in that order, im able to play but nothing happens, no refill no nothing, Is this Multiplayer only? I only tested in Single PLayer.
just downloaded 1.2, because 1.1 didn't work at all it seems, anyways, the bug mentioned before is still there (i placed a door, and a skyroot axe took it's place)
The bug with the door being replaced with a pick was actually because Inventory Watch wasn't catching when the user changed quickslots with a hotkey (instead of scrolling with the mouse wheel). Inventory Watch 1.1 does, so make sure you upgrade that too.
The bug with buckets being double used is actually because of how the Aechor plant is coded. It only happens with them. I've provided a fix for the Aechor plants that fixes it, which you can find in the conflicts section of the main post.
I've also made an update to Death Chest to work with alternative inventories, so it will work properly with the Aether 1.02 inventory (and any other inventory an inventory watcher is looking at), so it will actually catch the extra inventory slots (rings, accessories, cape, etc). You'll need my Aether Fix for 1.02 for that to work, however.
Looks like Inventory Watch wasn't actually installed. Try downloading it again and installing it again? For about five minutes I did have a broken link up, you might have been unlucky enough to have caught that.
@Penumber, whats deathchestrewrite v1.1 that i somehow dled?
That'd be me failing at copy and pasting a link, apparently you downloaded during the 5 minutes I had it up too! :sad.gif:
There's a link to it here in this thread though, in the first post in the compatibility section. It's a rewrite of Risugami's Death Chest mod to work with Inventory Watch, for those people who want it. Handy mod in itself, but totally not the link I meant to copy and paste as Inventory Watch v1.1. :sad.gif:
I installed all the new stuff, (and added the aechor plant patch), but aechor plants are still taking two skyroot buckets
With the aechor plant patch this shouldn't happen at all. Are you sure you added the aechor plant patch to your .jar file so that it overwrote the Aether's EntityAechorPlant.class?
Uploaded a fix that prevents a potential crash in the Death Chest rewrite.
Also,
With the aechor plant patch this shouldn't happen at all. Are you sure you added the aechor plant patch to your .jar file so that it overwrote the Aether's EntityAechorPlant.class?
The first time i did not, but before posting, i realized and did that, and it still took both buckets, i can try to repatch it again, but i used both fills from the aecher plant, so i can't test it again right away
Do you think you make an alternative to the 'Where and When' mod; i.e not having to have the compass and clock in your inventory? o_O other than that great mods!
There's already alternatives out there that will show you the time and where you are. This mod is a different type of alternantive that is closer in line with vanilla in that it still uses the clock and compass.
Take a look at Zombe's if you want the time [in numbers] always on the screen. you can also have the constant time off and call it up with F12. Then for compass direction you can't go past Rei's minimap. With that you can also set other Waypoints which will show up on your minimap.
I was using inventory tweeks before I came across this mod and am pleased with the way it performs. It doesn't have auto re-arranging of the inventory and chests but I found that a bit of a pain anyway as it tended to move your items around in a haphazard fashion. It can be configured but again its not ideal. It also sent items into the inventory space and never used the hot slots unless you had a specific item configured to do so or the inventory area was full. It sounds good on the surface but in fact it becomes a pain when you are constantly going into inventory to move something into your hotbar, especially in the beginning of a world.
This auto refill is simple and effective and does the main thing I require of it, replace items into my hotbar when possible without adding rubbish that detracts from the game. Of course it would be nice if one could go into inventory and click the middle button just to have any multiple items that could be stacked together brought together.
One thing that puzzles me however is the addition of Inventory Watch. I've read your examples page about it but am still unsure what its actually meant to be doing. It seems as though its meant to let you know when something changes that isn't meant to but tht's only me taking a wild stab in the dark.
As its a requirement to be installed in order to use Where&When and the magnificent Autorefill I figured I should try and see if I can make some use from it. Any suggestions as to what useful purpose a single player who uses mods that bring new recipes into the game could do?
Due to popular demand, I have finished moving some of my inventory mods to plain old vanilla minecraft, and provide them here along with a modder's resource to work more closely with the inventory. These are:
Where and When, a mod which provides a visible compass and clock as long as they are in your inventory, freeing up quickslots.
Auto Refill, a mod which automatically refills your quickslot whenever you empty it with another stack of that item from your inventory (for example, eating a loaf of bread moves another loaf from your inventory into that slot).
Inventory Watch, a modder's resource that provides an easy to use API for watching and responding to inventory events.
Download:
Inventory Watch v1.1 (Megaupload Mirror) Required for the other mods!
Where and When v1.0 (Megaupload Mirror)
Auto Refill v1.3 (Megaupload Mirror)
Installation Instructions:
Please be sure to read these!
Inventory Watch
1. Open your minecraft.jar in your favourite archiving program and copy the contents of the downloaded zip into it.
Where and When / Auto Refill:
1. Install ModLoader: http://www.minecraftforum.net/topic/75440-v173-risugamis-mods-recipe-book-updated/
2. Install Inventory Watch.
3. Open your minecraft.jar in your favourite archiving program and copy the contents of the downloaded zip into it.
Change Log:
Inventory Watch
Where and When
Auto Refill
Description:
Where and When:
Auto Refill:
Inventory Watch:
This is a modder's resource which provides an API to allow close work with the inventory without conflicting with other mods. This is done by adding hooks into key inventory events, and allowing you to add listeners to those events. To make your own, simply make an object that extends InventoryWatcher, override whichever methods you like, and then add that watcher to the Inventory Watch.
Sample:
Conflicts:
Inventory Watch will conflict with any mod that modifies either ix.class or ob.class. It will conflict. That said, Inventory Watch is a modder's resource, so other mods are highly encouraged to try working with it instead.
If there are any particular mods that don't mesh with this that the modder doesn't want to make compatible with Inventory Watch, please contact me. I may be able to provide a compatibility patch that adds the functionality that mod wants using Inventory Watch.
Risugami's Death Chest
This does conflict, but with Risugami's permission I have a rewrite of it that uses Inventory Watch, which you can download here: Death Chest Rewritten v1.2.
Aether
Auto Refill may sometimes use two buckets instead of one when trying to fill them with poison from an aechor plant. This is due to how the aechor plant is coded. To fix the problem, copy this into your minecraft.jar: Fixed EntityAechor.class.
Search for my name for inventory mods (visible compass, auto refill, and an inventory API for modders)!
Search for my name for inventory mods (visible compass, auto refill, and an inventory API for modders)!
also unsure if this is a bug with normal aether or this, or if it's even a bug, as i have never used them before, but my golden gloves aren't taking damage when i fall.
reposting here incase it's a problem with this half
That sounds like a bug with auto refill and buckets. I'll get to fixing that.
Gloves not taking damage is another part of the inventory bugs introduced in 1.02. I'll get to fixing that one too. Thanks!
Search for my name for inventory mods (visible compass, auto refill, and an inventory API for modders)!
Hi i like MINECRAFT!!!!!!!!!!!!!!!!!!
hey dude im having the same problem
Hi i like MINECRAFT!!!!!!!!!!!!!!!!!!
There was a bug that was causing it to not work for some people on vanilla Minecraft. That's fixed now! Sorry about that.
Search for my name for inventory mods (visible compass, auto refill, and an inventory API for modders)!
The bug with the door being replaced with a pick was actually because Inventory Watch wasn't catching when the user changed quickslots with a hotkey (instead of scrolling with the mouse wheel). Inventory Watch 1.1 does, so make sure you upgrade that too.
The bug with buckets being double used is actually because of how the Aechor plant is coded. It only happens with them. I've provided a fix for the Aechor plants that fixes it, which you can find in the conflicts section of the main post.
I've also made an update to Death Chest to work with alternative inventories, so it will work properly with the Aether 1.02 inventory (and any other inventory an inventory watcher is looking at), so it will actually catch the extra inventory slots (rings, accessories, cape, etc). You'll need my Aether Fix for 1.02 for that to work, however.
Search for my name for inventory mods (visible compass, auto refill, and an inventory API for modders)!
Search for my name for inventory mods (visible compass, auto refill, and an inventory API for modders)!
whats deathchestrewrite v1.1 that i somehow dled?scratch that- i assume thats the broken link you were talking about
Report obvious spam threads, don't bump them- thats exactly what a spam bot is for.
That'd be me failing at copy and pasting a link, apparently you downloaded during the 5 minutes I had it up too! :sad.gif:
There's a link to it here in this thread though, in the first post in the compatibility section. It's a rewrite of Risugami's Death Chest mod to work with Inventory Watch, for those people who want it. Handy mod in itself, but totally not the link I meant to copy and paste as Inventory Watch v1.1. :sad.gif:
Search for my name for inventory mods (visible compass, auto refill, and an inventory API for modders)!
Also,
With the aechor plant patch this shouldn't happen at all. Are you sure you added the aechor plant patch to your .jar file so that it overwrote the Aether's EntityAechorPlant.class?
Search for my name for inventory mods (visible compass, auto refill, and an inventory API for modders)!
The first time i did not, but before posting, i realized and did that, and it still took both buckets, i can try to repatch it again, but i used both fills from the aecher plant, so i can't test it again right away
(deleted post)
There's already alternatives out there that will show you the time and where you are. This mod is a different type of alternantive that is closer in line with vanilla in that it still uses the clock and compass.
Take a look at Zombe's if you want the time [in numbers] always on the screen. you can also have the constant time off and call it up with F12. Then for compass direction you can't go past Rei's minimap. With that you can also set other Waypoints which will show up on your minimap.
This auto refill is simple and effective and does the main thing I require of it, replace items into my hotbar when possible without adding rubbish that detracts from the game. Of course it would be nice if one could go into inventory and click the middle button just to have any multiple items that could be stacked together brought together.
One thing that puzzles me however is the addition of Inventory Watch. I've read your examples page about it but am still unsure what its actually meant to be doing. It seems as though its meant to let you know when something changes that isn't meant to but tht's only me taking a wild stab in the dark.
As its a requirement to be installed in order to use Where&When and the magnificent Autorefill I figured I should try and see if I can make some use from it. Any suggestions as to what useful purpose a single player who uses mods that bring new recipes into the game could do?
Cheers.........