ReplaceOnBroken

Replaces the active broken item with a not broken item if in inventory

Total Downloads: 3,280 - First Release: Jun 25, 2015 - Last Update: Feb 16, 2017

5/5, 13 likes
  1. Wulf

    Wulf Community Admin

    Worked last I tested.
     
  2. I just used a Stone Pick Axe against a tree until it broke. I have the replaceonbroken.allow permission. After it breaks, I have a broken Stone Pick Axe, but nothing else happens. I didn't get a new Axe. What could possibly be the issue? This mod seems pretty straight forward.

    I just deleted .cs then .json, removed permissions. Downloaded .cs, uploaded, gave permission. I have the same issue. If this works why could it possibly not work on my server?
     
    Last edited by a moderator: Jul 20, 2017
  3. Did you have another axe in your inventory?
     
  4. Nah. I actually tested it without any other items. No clothes, nothing in inventory, nothing in my action bar.

    I gave myself one pick axe and hit a tree till it broken. It just broke. Nothing happened.
    [DOUBLEPOST=1500694425][/DOUBLEPOST]Also, I notice the .cs says 2.1.1, but the update says 2.1.2.

    Was the version not updated or is the download link wrong?
     
  5. Ok, I just realized I completely misunderstood this mod and what it does. I now understand and realize there is nothing wrong with the mod and how it works. Thanks Wreckless for making me see the problem.
     
  6. Alright so here's my follow up.

    Myself and, many people on my server, expect this mod to work differently and in a more valuable way. Just as I did, they believe if you have an item on your toolbar and it breaks, it replaces it regardless if you have something in your inventory that matches.

    - Can this mod be made to optionally replace the broken item regardless of what you have in inventory?

    I keep getting people telling me the mod doesn't work, just like I thought, and soon, I may simply disable it to save myself trouble lol
     
  7. Wulf

    Wulf Community Admin

    It is possible, but it'd take a bit more code to do that, especially if you want it to replace with a useful item and not junk. Replacing the same item is easiest, and makes the most sense. Replacing with an item from the same category would be next, but chances of replacing with junk. Replacing with other items specified would be more involved.
     
  8. I think replacing it with the same item would be adequate.

    I also think a total separate mod that ensures items never break might be a reasonable solution as well. Does a mod like that exist?
     
  9. Wulf

    Wulf Community Admin

    Which is what it does right now.

    Yes, it's called NeverWear.
     
  10. Hmm, but you require having the item in your inventory now don't you? I'm suggesting you don't need the item in inventory.

    Ty sir. I'll check it out.
     
  11. Wulf

    Wulf Community Admin

    That's the way the plugin has always been. It isn't meant to disable wear, just replace (hence "Replace" in the name :p).
     
  12. Yeah I understand but it doesn't 'replace' it with one you don't have. It just replaces it with one in your inventory. No one expects that's how it works. No one I know. It's kewl, thanks for the mod referral.
     
  13. Wulf

    Wulf Community Admin

    "Replaces the active broken item with a not broken item if in inventory"

    Is there something that isn't clear about the description?
     
  14. You do realize I'm dealing with players right? These people play on the server, see the mod listed as being on the server (BY NAME) and aren't reading the oxide site lmao They keep telling me the mod doesn't work because they expect it to 'replace' it. This isn't replacing the item, it's more like swapping the item for another they have.

    It should be called SwapOnBroken, not ReplaceOnBroken. It gives the wrong impression and when people read the name they get an impression and might not read into it deeper. I didn't honestly. I thought the name said it all, but it's poorly named honestly.
     
  15. Wulf

    Wulf Community Admin

    Mmmm, probably so. I'm not the original author of it, but could consider a rename. :)
     
  16. i have replaced the plugin with a same version just downloaded, is this intended?
    Do you sometimes edit without changing version? I went from 211 to 211.
    Where is 2.12?
     
  17. Wulf

    Wulf Community Admin

    I'm not sure what you're referring to. If an actual update is posted, the version is changed. In this case though, it looks like it may have been missed, but wouldn't affect it.
     
  18. I used the update checker wich is telling i have 2.11 and 2.12 is available. The file for download is 2.11.
     
  19. Wulf

    Wulf Community Admin

    You can change the version in the plugin to 2.12 and it wouldn't alert you anymore. I'll be posting an update to this that would fix that with the other changes planned.
     
  20. Why you are not checking for new items condition? It means that you can get broken item after swap (it was broken)