Filled ToolStats

Discussion in 'Plugin Requests' started by FireFlies, Apr 30, 2017.

Thread Status:
Not open for further replies.
  1. Offline


    Minecraft version: 1.8.8

    Plugin name: ToolStats

    What I want: It's pretty simple, I need a plugin that will display the amount of broken blocks on tools, killed mobs on weapons etc. This would be for every tool!

    This is exactly what I want: sadly it no longer works and the developer is inactive.

    Permissions: toolstats.use (gives the player permission to keep track of stats on tools)

    Commands: None

    Thank you very much!
    Last edited: Apr 30, 2017
  2. Offline


    I'll check if I can find another version of this, if not I'd be glad to make it.

    Where would you like the stats to show up? In the lore?

    Sent from my iPhone using Tapatalk
  3. Offline


    @Sethburster thank you, and yes it would be in the lore. You can check out the ToolStats plugin that I linked, I just want that but to actually work.
  4. Offline


  5. Offline


    Question. If your tool breaks do those stats disappear with it, or do they appear on any of the same type of tool?
  6. Offline


    @martian3333 the stats disappear if the tool breaks, and they are set to 0 on new tools. :)
  7. Offline


    *bumps thread*
  8. Offline


    *another one*
  9. Offline


  10. I contacted the original author (on a platform where he is still active :)) and will ask him, if he allows me to take over the project and update/re-code the plugin.
    I'll let you know, when I get a response from him.
    FireFlies likes this.
  11. Offline


    Thank you so much!
  12. He said he'll consider it. I'll probably rewrite the plugin, show him the code and if he gives his 'ok', release it.
    FireFlies likes this.
  13. Offline


    Awesome, thanks a lot! If it's not too much of a bother, please give me some regular updates :)
  14. Got the main features working now. Still need to run through the entire code again and clean some things up. Also the 'crafting two items together and combine their lore' feature isn't implemented yet.

    I added two commands: one to clear all stats from the current tool and another one to re-order the stats in the item tooltip to be sorted by the amount (= most mined/killed thing shows up at the top).

    Tracking already works for those tools: pickaxe, axe, shovel, fishing rod, flint and steel, shears, sword, bow and shield
    The only tool I currently still have planned to be tracked, but haven't implemented yet is the Hoe.

    'Preview' of the current config.yml:

    Not entirely sure if I want the "diplay names" of the triggers (blocks you mine, mobs you kill, ...) to be editable. Currently DIAMOND_ORE would always show up as Diamond Ore in the item tooltip; especially for non-english servers that would be quite nice, I guess.

    Haven't had the chance to talk to SmokyMiner again yet though (timezones...).
    FireFlies likes this.
  15. Offline


    Do you think, instead of having to use the 're-order' command to order the highest to lowest values, could it be automatic?
  16. Short answer: sure!
    Longer answer: Well, to be honest I originally didn't want to do it automatically because usually you only take a look at the tool tip once in a while. And re-sorting every lore-entry per block mined/mob killed/.. would be 'unnecessary'. But on the other hand the re-sorting doesn't affect the performance much - it's just a hand full of string comparisons and manipulations.
  17. Offline


    I understand, do what you feel is necessary! It's just better if players don't have to remember to do the command every once in a while.
  18. Offline


    Any updates? :)
  19. I still haven't had the chance to talk to SmokyMiner again - so I'll not release it on bukkit/spigotmc yet.


    Looking back at your starting post, I noticed you're still using 1.8.8!?
    Some features didn't exist back then and thus the plugin probably will not work as is.
    • no sword sweep attack
    • no shields
    • no offhand slot (only mainhand)
    • (technical) no PrepareAnvilEvent to detect when two items are crafted together to combine their lores
  20. Offline


    @Coww So it wouldn't work on 1.8.8?
  21. Offline


    Everything seems to be working just fine! I will do more testing next week. Thank you so much for your help, I will mark the thread as solved. :)
Thread Status:
Not open for further replies.

Share This Page