[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

    Sany_CZ

    Can you add permisions support?
     
  3. Offline

    Nathan Bowes

    Great plugin thank you very much.
     
  4. Offline

    Solaris765

    this is a great idea! thanks for the plugin
     
  5. Offline

    Valrix

    I sure can. Got a lot to do today, hopefully I can get this in by the end of the day.
     
  6. Offline

    Treksdot

    Hopefully I'm not the only one experiencing the following problem: whenever I have a bucket of water in my inventory and right click on a block, even if the bucket isn't the selected item, it empties the bucket onto said block. For example, when trying to place a lever it just places a block of water instead. This is with AutoReplace 1.9 and b677.
     
  7. Offline

    Valrix

    That's odd, I'll check on that.

    EDIT: Fixed.
     
  8. Offline

    Treksdot

    Fix confirmed, thanks. \o/
     
  9. Offline

    Valrix

    No problem
     
  10. Offline

    newtekie1

    What is the commands for this, I know it is enabled by default, but is there a way to disable it for certain slots, or possibly entirely?

    Also, it doesn't seem like Autoreplace works when placing cake.
     
  11. Offline

    Valrix

    I'm working on setting certain slots to work, possibly with permissions so you can set certain slots for certain groups.

    Cake should act like a block, so I don't know why it wouldn't replace it. I'll check on that.
     
  12. Offline

    newtekie1

    Also, there seems to be a bug with saplings. Say if I'm placing normal saplings and run out, but have birch saplings in my inventory, it will replace the normal saplings with birch saplings, however it will transform the birch saplings into normal.
     
  13. Offline

    Valrix

    Crap...it's always the corner cases that have to pop up. Forgot to take those into consideration. I'll work on that too.
     
  14. Offline

    newtekie1

    Thanks! Love your plug-in. Just switched my server over from QuickBelt, it was a good idea, but your plug-in is better implemented!
     
  15. Offline

    Valrix

    Thank you! Yeah, I didn't know there was already a plugin that did what AutoReplace does, but from what I gathered people seem to prefer mine, so I guess I did something right when making it :) In the future it may automatically replace armor as well when it breaks so you're always fully armored. Though it may take another plugin to do it since the body is handled differently.
     
  16. Offline

    newtekie1

    Not to be a pest, but the problem with the saplings also happens with half blocks/slabs. I was placing some wooden slabs and when I ran out it replaced them with the stone slabs but it converted them to wooden slabs. Just wanted to let you know in case you are not sure if you are aware of this.

    Again, thanks for the plug-in!
     
  17. Offline

    Valrix

    Haha, so it's anything that has more than one kind of the same block type. This will be interesting to work out all the possible variations. Technically it should look only for the same ID, so I guess that means they have the same ID, but different data. The ID must only to be for the client to represent a shape of the item and the data supplied is different. Well...this will be fun.
     
  18. Offline

    newtekie1

    I think it is the damage value that differentiates. A list of things I think will probably be effected by this bug:

    Saplings
    Wood
    Stairs
    Wool
    Slabs
    Coal/Charcoal

    These all have different items with the same ID.
     
  19. Offline

    Valrix

    Coal/Charcoal luckily won't matter since you don't place it. I'll have to use a method similar to how wool is replaced to watch the other items and get the right kind. Thanks for pointing out specific things, it makes things easier on me. I'm thinking the best way for people to point out specific problems is by posting the bug, in the best detail possible, in the github "issues" area so I can get email alerts. Though that's only for people who know exactly what issues are wrong otherwise I'll just get spammed with useless emails. Thanks for your help though.
     
  20. Any luck on fixing the data reset?
    Or permissions, to disable this for non-admins who cannot restore their data-types :)
     
  21. Offline

    tmr

    Any plans on updating this addon? I am having a problem with lava/water buckets. If we use one lava bucket it somehow gets rid of all lava buckets we had in our inventory and leaves us with one empty bucket.
     
  22. Offline

    Valrix

    I didn't want it to work with Lava Buckets because that allows worse griefing, but yeah, I'll have it fixed.
     
    tmr likes this.
  23. Offline

    tmr

    Yeah, I understand not wanting lava/water buckets to just "autoreplace".

    Thanks for looking into it basically eating the other water/lava buckets we have when we use just one.
     
  24. Offline

    Valrix

    Yeah. The water buckets should be fine after the last update, but lava was left "broken" to deter griefing, but I can see how it's a pain for people using it for legitimate reasons.
     
    tmr likes this.
  25. Offline

    tmr

    Actually my water buckets are disappearing too... :(
     
  26. Offline

    Juze

    @Valrix : Please test against latest RB.
     
  27. Offline

    Valrix

    Got ya. Done and updating thread.
     
  28. Offline

    Phaedrus

    @Valrix I've just had a user report the following bug:

    When you have 2 mushroom stews and you eat one of them the other disappears.

    It doesn't seem to effect other foods and I'm not yet sure if it happens consistently. I've asked them to do some more testing. I'm pretty sure I'm running the latest build, but I won't be able to check until tomorrow.
     
  29. Offline

    Valrix

    Damn. You guys sure can find the corner cases. I'll look into it.
     
  30. Offline

    newtekie1

    So any chance this will be updated for 818? Anyone tested with 818, does the latest build work?
     
  31. Offline

    Valrix

    I'm still working on testing my plugins which was slowed due to the loss of my test world (it was corrupted by the last update). Once I've got it re-built and I have the tools and such again and I test it, I'll update the thread.
     

Share This Page