Inactive [MECH] CK AutoReplace #5 - Moves items from inventory to hand when it runs out [1.2.5-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by Kirsch, Mar 13, 2012.

  1. Offline

    Kirsch

    CK AutoReplace - Moves items from inventory to hand when it runs out
    (BukkitDev: http://dev.bukkit.org/server-mods/ck-autoreplace/)

    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.

    Features:
    moves preset tool from inventory to hand when it breaks
    moves block stacks from inventory to hand when stack runs out
    moves item stacks, like doors, signs, redstone dust and so on, from inventory to hand when stack runs out
    moves food stacks from inventory to hand when stack runs out

    Commands:
    No Commands needed, Plugin works automatically

    Permissions:
    "autoreplace": Enable AutoReplace for this User/Group

    Configuration:
    No configuration needed

    Download:
    [1.2.5-R1.0]
    CK AutoReplace 2012-04-14-a (Build 5) [mirror]

    Changelog / old versions
    • 2012-04-14-a (Build 5) [1.2.5-R1.0]
      Fix a Bug when break a Block with Non-Block-Item
    • 2012-03-22-b (Build 4) [1.1-R8 | 1.2.3-R0.2 | 1.2.4-R1.0 | 1.2.5-R1.0]
      Add permission node "autoreplace". This permission is required to enable AutoReplace for this User/Group
    • 2012-03-22-a (Build 3) [1.1-R8 | 1.2.3-R0.2]
      Switch from Java 1.7 back to Java 1.6 to prevent "java.lang.UnsupportedClassVersionError" when Server runs on Java 1.6
    • 2012-03-13-b (Build 2) [1.1-R8 | 1.2.3-R0.2]
      Fix isuse by enchanted Tools
    • 2012-03-13-a (Build 1) [1.1-R8 | 1.2.3-R0.2]
      First release
     
    _LB likes this.
  2. Offline

    SavageCore

    Can you make this replace just before an item breaks for later repairing?
     
  3. Offline

    md_5

    Just one release in the title
     
  4. Offline

    Kirsch

    No, this is not planned
     
  5. Offline

    BronzeByte

    Very good idea!
    md_5 be soft, it's a good idea <3
     
  6. Offline

    Kirsch

    UPDATE
    CK AutoReplace 2012-03-22-a (Build 3) [1.1-R8 | 1.2.3-R0.2]

    Switch from Java 1.7 back to Java 1.6 to prevent "java.lang.UnsupportedClassVersionError" when Server runs on Java 1.6
     
  7. Offline

    Chaznuts

    Oooo.. looks amazing! Wish I had this back in the day when I used hundred of stacks of materials creating 1 building, several different times. >.<

    Anyhow, my players will be grateful! Thanks for the awesome contribution and keep up the great work! :D

    EDIT: Oh and @SavageCore. Just use a tool breaking notification plugin with this one, such as the forked ToolNotifier (http://dev.bukkit.org/server-mods/toolnotifier/). It won't switch out the item before it breaks, but it will give you multiple warnings!
     
  8. Offline

    pjrueda

    Could you add permissions please? At least one node so I can give this to Vips
    Good Work ;D
     
  9. Offline

    douglas_srs

    Thanks for this! :D, please add permissions or the source :p
     
  10. Offline

    Kirsch

    UPDATE
    CK AutoReplace 2012-03-22-b (Build 4) [1.1-R8 | 1.2.3-R0.2]

    Add permission node "autoreplace". This permission is required to enable AutoReplace for this User/Group
     
    aritturlt likes this.
  11. Offline

    Chaznuts

    I see you said that the node is required to enable the plugin.. this means that with the required permissions, the plugin isn't on by default (ie, when the server starts and the player hasn't typed in any command)?

    In that case, is there any way you could make it on by default? Whether it be always or toggleable in a config file (OnByDefault: TRUE, or something to that effect). Let me know what you think! I love the plugin, but I would just like to keep the list of commands as low as possible for my users. Thanks!
     
  12. Offline

    Kirsch

    Yes the permission is required. Use a Permission-Plugin like PermissionsBukkit and give the Default-Group the permission "autoreplace".
     
  13. Offline

    Dodge34

    Your bukkitdev link seems to be 403 error for me, I need the bukkitdev link to install your plugin on my server (the console needs the bukkitdev link to install it quickly without having to mess around with loads of files)
     
  14. Offline

    Ametz

  15. Offline

    SavageCore

    Cool thanks :)

    Kirsch Have found a bug in creative and survival. Placing slabs ignores data type so they always get replaced in inventory as stone. Have made a video to show it which I will edit in here later after it renders!

     
  16. Offline

    Kirsch

    Okay, i will fix that after easter holidays
     
  17. Offline

    Dracasis

    I have found a odd little bug with the mod.
    Occasionally when picking up non-block entities off the ground with a full stack in your inventory it can occasionally cause the the full stack to 'merge' and disappear with a newly created stack of the same item in your inventory bar. This has occurred with redstone wire, spider string and most notably with sugar cane.


    The occurances of it happening are not definate, I have tried to narrow down the exact cause and been unsuccessful nor have I been able to statically reproduce it but I have a good method of showing what occurs.

    - Create about 10-20 rows of 3-high sugar cane in a straight line.
    - Have in your hot bar only one full stack of 64 sugar cane.
    - Begin harvesting the row by holding down left click and walking foward.

    Be observant of your hotbar, you may notice a full stack of sugar cane suddenly switch from 64 to a fresh stack of 4 and begin recollecting from that number. The replaced sugar cane is apparently lost.

    I have seen the issue with redstone as well but less frequently (though likely because redstone is used less frequently as well). Users have reported stacks of items 'disappearing' from their inventory and removal of the mod seems to fix the issue. One user reported a sword disappearing when he picked one up from a mob drop as well.

    This could be a conflict of mods as I have not tested it by itself but I have no other mods that manipulate player inventory and the issue has not cropped up again since removing this one.

    Hope this helps ^_^
    If the issue gets resolved i'll be happy to re-acquire the mod.
     
  18. Offline

    Kirsch

    I am now back from holidays.
    And I looked at the thing. But I could not reproduce this behavior.
    I have all 6 different Slabs-Stones in the same order in the inventory. The slab-stones were not duplicated, or have their data value changed.

    I was able to reproduce the problem. It occurs when the selected slot is the number of elements equal to one, a block is break and simultaneously the same item is collected as in the slot.

    I will fix that soon

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  19. Offline

    Kirsch

    Update
    CK AutoReplace 2012-04-14-a (Build 5) [1.2.5-R1.0]

    Fix a Bug when break a Block with Non-Block-Item
     
  20. Offline

    D1G1T4L3CH0

    Great. This is nice.

    It doesn't work with Eggs though, or Water/Lava Buckets, but I wouldn't expect it to work with any sort of bucket since that would require removing an item from the hand and replacing it with another.

    Thanks.
     
  21. Offline

    Dodge34

    I can relate to a bug with creative mode if you have more than 1 type of for exemple wool colors and you have only 1 in your stack of each (you don't need 64 since you can place them unlimited in creative mode anyway), there will be an autoreplace with the next one and it will be deleted from your bar, pretty annoying to have to replace them each time from the creative inventory menu...
     
  22. Offline

    Kirsch

    I will check this.

    I will added a test. If the Player in a World with Creative-Mode, my plugin will do nothing.
     
  23. Offline

    D1G1T4L3CH0

    Speaking about colors... Wood colors. The plugins doesn't differentiate between them. I would imagine that's because the game doesn't either, but maybe it does internally? Also saplings of different types. It's annoying to accidentally put the wrong sapling in your farm or place the wrong color of wood. But maybe those should be optional in the config file since I'm sure not everyone would agree with that...

    But those are small issues. Great plugin anyway. Thanks a lot.
     
  24. Offline

    John_Schmidt_

    I agree with D1G1T4L3CH0. Please add egg and bucket support if possible. Thanks. Here, free cake. [cake] :)
     

Share This Page