[INACTIVE][MECH] AutoReplace is being split into separate plugins. AutoReplace has been dropped.

Discussion in 'Inactive/Unsupported Plugins' started by Valrix, Feb 16, 2011.

  1. Offline

    Valrix

    AutoReplace is splitting into two plugins called AutoBlock and AutoItem and will be "cousins" of AutoWeapon, AutoTool, and AutoFood that are being made by @marinating. All these together will make a suite of sorts and will all work together.

    AutoReplace - Moves items from inventory to hand when it runs out:
    Version: v1.9.1

    The plugin watches all of the "hand" slots to watch for when you run out of blocks while placing them or for when a tool breaks and will look in your inventory to see if you have any more to replace it with. If not, you will get a message saying you're out.

    To install just put AutoReplace.jar in the plugins folder and it handles the rest! Enjoy!

    Features:
    • Moves preset tool from inventory to hand when it breaks
    • Moves block stack from inventory to hand when stack runs out
    • Moves items like beds and redstone dust to your hand when you run out
    • Replaces food and empty buckets with full ones
    PLANNED UPDATES (open)

    • Global config to deny certain slots from being watched for everyone.

    DOWNLOADS:
    RB 860:
    Source Code: AutoReplace

    CHANGELOG (open)

    Version 1.9.1
    • Fixed the "always placing water" issue
    Version 1.9
    • Now replaces food when you eat it
    • Now replaces empty buckets with full ones
    Version 1.8
    • Fixes the problem with some items being replaced even though nothing was placed and tools being moved to your hand without being broken.
    Version 1.7
    • Fixes the problem with placing wool.
    Version 1.6
    • Now supports replacement of items like Redstone dust, doors, beds, signs, and paintings.
    • A few code improvements
    • Only a higher build like 600+ can support this since it was between 556 and 602 that interacting with these items was fixed/added.
    Version 1.5
    • Updated to work with RB 602.
    Version 1.4
    • Removed "No more X in inventory" message when you run out of something.
    Version 1.3
    • Removed use of /auto command
    • All "hand" slots are now watched automatically
    • No more .preset files are generated
    Version 1.2
    • Reworked it a bit to make sure it has less chances to break and uses a little less resources.
    Version 1.1
    • Updated the work with the newest plugin build method.
    Version 1.0
    • Release of AutoReplace
     
  2. Offline

    Piercing Goblin

    Well, I would like it so you could just have it watch multiple slots. I hold all my tools in the first 3-4 slots, so I would just want it to watch those ones specifically, and maybe the last one, which holds torches. So I think it would be neat to be able to watch more than one slot.
     
  3. Offline

    Valrix

    It can already watch multiple slots by using the /auto command on each slot. But I'm gonna make it not need commands anyway.
     
  4. Offline

    Piercing Goblin

    Hmm. When I use /auto on 2+ slots, it seems to only resupply the one I first used /auto on.
     
  5. Offline

    Valrix

    I had it working just fine. But like I said I'm gonna update it when I wake up.
     
  6. Offline

    Piercing Goblin

    I figured it out, for some reason, it won't replace redstone.
     
  7. Offline

    Valrix

    Probably because redstone dust doesn't count as a block, so when you place it the BLOCK_PLACED event isn't fired. I might have to see if I can come up with a workaround for this.
     
  8. Offline

    davr

    Yeah same thing for planting crops, I assumed it was because they weren't actually blocks. You would have to probably listen for the specific events for these different actions (assuming they have them) in addition to the block_placed event
     
  9. Offline

    Valrix

    I'm wondering how they're handled exactly and if they call some different kind of event. Ahh, I just had an epiphany! I think I know how to fix this and will get on that when I get the chance.
     
  10. Offline

    ReapKarmah

    Quickbelt plugin is your best bet. However that style of inventory annoys me after a while...very limiting!

    @Valrix
    Are you aware that this plugin can dupe other colors of wool?

    I have 2 white wool in my inventory, in my hand is 2 black wool. Once I run out of black wool, the 2 white wool replace its spot and become black wool! o_o
     
  11. Offline

    Valrix

    Hmm, good catch. I think that's just because it looks through the inventory and tries to find an item with the same ID and all wool must have the same ID or something. I'll have to see how I can fix that.
    [MERGETIME="1300055651"][/MERGETIME]
    Ah, ok so I found out how I can fix it. I'll do a hotfix right now. Watch for updates in a few minutes (~15).
     
  12. Offline

    ReapKarmah

    Wow thanks! Lovin' the fast responses :eek:
     
  13. Offline

    Valrix

    Yeah, I try to reply as quick as I can to people so I often refresh the main forum page to see if I have new alerts then quickly answer any questions, etc. Also, I just did the patch so just re-download the JAR and it'll still grab the first wool it sees, but now it'll be the correct color instead of converting it to the kind that was in your hand.
     
  14. Offline

    ReapKarmah

    Thanks, going to check it out now! Will edit post with results!

    Edit: Definitely works now, thanks!
     
  15. Offline

    Valrix

    Perfect ^^ You're quite welcome.
     
  16. Offline

    Dreadreaver

    Tried it, worked okay, kinda slow sometimes but maybe that was just me. But what annoyed me is the message you get when you run out of an item. Please remove that. I hate any messages or commands that destroy the vanilla minecraft feeling.
     
  17. Offline

    Valrix

    That was mostly set as a courtesy and I had a feeling that would probably annoy some people. What may be best to work for those who may like that message I'll make it a config option called "emptyAlert" which will be false by default and for those who want users to see that message on their server then they just need to change it to true and reload. If enough people would rather just have it gone completely then I'll remove it and the config option completely.
     
  18. Offline

    ReapKarmah

    I forgot about that, but I too don't enjoy it. I think after a few seconds of waiting for more of your item to show up -and it doesn't- the player will know there's none left.

    Definitely best to keep the game as vanilla as possible, I feel!
     
  19. Offline

    Valrix

    Ok, I'll just remove it then. Seems like that's how people want it.
    [MERGETIME="1300066724"][/MERGETIME]
    Done, just update the JAR and the message will no longer show up.
     
    Dreadreaver likes this.
  20. Offline

    ReapKarmah

    Again, works flawlessly, thanks! :)
     
  21. Offline

    Valrix

    Enjoy :)
     
  22. Offline

    Dreadreaver

    nice thank you!
     
  23. Offline

    Valrix

    You're quite welcome! :)
     
  24. Offline

    stoneLeaf

    Thank you for fixing the wool issue and removing the "no more" message.
    Your plugin is *really* a time-saver !

    What's missing is a config file which would enable us to tweak its behavior (like items or blocks we don't want to see automatically replaced).

    Edit : BTW, swords are not replaced, is it intended ?
     
  25. Offline

    ReapKarmah

    It's my impression that Valrix is currently working on figuring out how to add or remove which blocks or items are able to be affected by this plugin. I can't think of anything else this plugin would need otherwise.

    I'm lovin' it! This is far superior to QuickBelt's style!
     
  26. Offline

    Valrix

    There are some items that seem to act rather strangely and since I don't really have the time to just spawn two of everything and see what works and what doesn't I can't really know what's gonna break. Also there are a few bugs with certain things not firing off events at all so they can't be replaced which is a bukkit issue, not a plugin issue. I'll try to see why swords aren't being replaced. If the swords are made of different materials that would be the reason why they wouldn't be replaced since they have different IDs.

    I was thinking about a no.replace file that would have the official names of the items that are first generated by the plugin using a way I figured out not too long ago and there's a special method of possibly loading all that in one command so it would be done really fast. Anyway, the file would just have the names of the items in lowercase and either true/false as the value to show whether that will be allowed to be AutoReplaced or not along with a command (which will currently be for only OP players, unless I have a config with admin=<your_name> where if that's set then only that player can use the command) to allow and deny items from being replaced which would be done immediately and have an effect on everyone. I'll try to get this in sometime soon when I have the free time. I'm also having to juggle another plugin that I just completely remade but it seems like the changes weren't accepted by the community very well and I'm going to have to change everything back to the way it was.

    Also, thanks for letting me know how much you like it! It's great to have some support, especially with the large amounts of work I've been trying to put into making and supporting these. I really appreciate it.
     
  27. Offline

    ReapKarmah

    Definitely like the plugin! Should be adopted by Notch himself actually! It's how the game should be in vanilla.

    Your plans sound right on target to me and I look forward to the development results! :)
     
  28. Offline

    Valrix

    Very good, support makes me work a bit harder because I like when people are happy and enjoy the things I work hard on. First I need to do some testing though and be sure it's well-supported to get rid of the [INACTIVE] tag on my plugins so they don't get tossed out. Then I'll be updating.

    On a more personal note it's Dead Week at school and finals are raining down on me so I will be really busy.
     
  29. Offline

    ReapKarmah

    Understandable, of course. I didn't notice the [INACTIVE] tag before you mentioned it lol. Best of luck to ya!
     
  30. Offline

    Tobei

    I don't know whats wrong, but I can't get it to work.
    It says its enabled in the server startup, but when my players run out of stuff it isn't being replaced.
    Is there permissions or something I need to add?
     
  31. Offline

    Valrix

    When they run out, they're only running out of stuff in their hand right? If they're completely out it won't add more to the inventory, it just pulls more from inventory. Also make sure you're using a good build, what build number are you using?
     

Share This Page