Only break blocks with the proper tool

Discussion in 'Archived: Plugin Requests' started by Delirious Doctor, Apr 8, 2011.

  1. After searching and looking over tons of plugins in hopes that it was already released, I have yet to see a plugin that only allows players to break a block with the proper tool. For example you would not be able to break anything with no tools (sorry, no more punching trees :p), the only way to cut down a tree is with an ax, the only way to dig dirt is with a shovel, and the only way to mine anything is with a pickax. Simple, right?

    If this could be done while working with permissions, I'd be very thankful.

    If this already has been done and I'm just an idiot who wastes hours looking for something that's painfully obvious, then please just post the plugin and lock the thread.

    Thanks a ton for at least looking! :)
     
  2. Offline

    MrChick

    So you can't go out and dig arount dirt with your bare hands? :p

    Sounds fairly doable, too.
     
  3. Exactly! I'm looking at making a server where you have to earn your first set of tools that you can later upgrade either by purchasing them through a shop (after a quest) or just crafting it.

    You, sir, have made my day! I wasn't sure if it was doable or not, especially when it's such a simple concept that has yet to be done! :)
     
  4. Offline

    MrChick

    I meant you in person can't go out in real life and can't dig through the dirt with your bare hands? ;)

    But yeah, I'm sure it is very doable. I just don't have the time to do it right now, sorry. But I'm sure you'll find someone willing to do it :)
     
  5. OH! :p Such a jokester, you are. It takes much more than a few seconds to dig up a 1 cubic meter of dirt with your hands. ;)

    It's fine if you're too busy, at least I now have hope. :)
     
  6. Offline

    Falvern

    So, how exactly would you get tools to do anything with in the first place? If you can't punch a tree down, you can't get wood to make any tools.

    Not saying I don't like the idea, but you'd have to keep that in mind when making it.
     
  7. Well, if this gets made into a plugin I will be installing some kind of quest plugin that would give you your first ax or set of tools as a reward (and if it's possible, have the quest auto-promote you to make sure that you can't just have a friend drop you some tools!)

    I can figure out the rest of the logistics for it if this gets implemented.
     
  8. Offline

    Joeyy

    So you actually want some kind of RPG plugin which lets you do quest to upgrade your tools?
     
  9. Offline

    MrChick

    No, he wants a plugin that makes editing the world more realistic.
     
  10. This.

    I can integrate the RPG plugins as necessary (if I even go that route). If anything, I could just have a dispenser that only gives out a wood axe -- thus allowing you to craft any other tools and upgrade. Getting the tools to the players is something that I will have to work out, what I need this plugin to do is what MrChick was saying: just make it so unless you have a tool, you cannot do squat.
     
  11. Offline

    McSpazzy

    What kind of permissions would you want?
     
  12. One per tool, if possible. Like you have to be granted permission to use a shovel, another for the addition of the use of an ax, and yet another for the addition of a pickax.

    Added bonus if you can make it by the quality of the items, tool (wood<stone<iron, etc.) Only be able to use a wood shovel, then added a wood ax, then pickaxe, followed by a stone set.

    Not sure how clear this is. :/
     
  13. Offline

    McSpazzy

    Well the basic mechanics will be easy. Basic checks. Complex permissions are meh!
     
  14. Offline

    Zackj191

    So, I have been talking with Doctor over skype for a couple days and this idea was for an Adventure type server idea I had. What he is just looking for (and me lol) is that you can only break blocks with specific tools for the block I think. Unless he came up with a different idea for the server lol :p
     
  15. Offline

    McSpazzy

    Yeh, that code is well under way. Its the permissions that will be...permissiony. I'll have a non permissions version done soon...unless i fall asleep. Which i probly will, and youll have to wait till tomorrow for a complete version.
     
  16. Offline

    Ninja

    This sounds awesome
    i might use it for my server
     
  17. Offline

    McSpazzy

    What about blocks like flowers, wool, leaves, glass. The non tool specific blocks.
     
  18. Offline

    Zackj191

    Let them be killable with just hands. Anything that is not a block. Like dirt, cobble, ect. Leaves can be broken with hands in real life so I guess those too.
     
  19. Offline

    McSpazzy

    Actually, what will be better, is config file! So people can define what they can and cant break with tools.
     
  20. Offline

    Zackj191

    Good idea! That was if I want, per say, to block people from killing dirt just at all, I can just make it so that nothing can kill it?
     
  21. Offline

    McSpazzy

    pretty much.
     
  22. Adding a config is perfect! Not only will it keep me from coming back to you (or someone else) for trivial updates, but it's also perfect for what Zackj191 wants to do. (disable the destruction of specific blocks):p

    Mad props already! :D
     
  23. Offline

    McSpazzy

    Code is all but done. Without permissions though. Getting sleepy. Just adding all the wrong tool messages, then the config. I'll try stay awake long enough to get you a prerelease testing version before i goto sleep, then you can report the bugs by tomorrow night...430am!
     
    Delirious Doctor likes this.
  24. Sounds good! Even without permissions support, it will still be worth it. :)
     
  25. Offline

    McSpazzy

    About 10 mins away from a version!​

    Done and done. I don't think there are any bugs. But that is what you guys are for! I'll check back after about 6 or 8 hours sleep and see if anyone has had any problems!

    Thank you and good night!

    Also, I want my plugin developer title!

    http://www.mcspazzy.com/minecraft/plugins/RealTools/RealTools.zip

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  26. THANK YOU! :D

    And I second that! This man deserves a plugin dev title! :)
     
  27. Offline

    Zackj191

    McSpazzy you need a plugin dev title! You made this in an insanely quick time and it's PERFECT for what we wanted to do. Thank you so much! You sir, are amazing!!
     
  28. :) It works exactly how I had hoped! I cannot wait to see if you can get permissions to work with this!!! :D

    The only thing that I would like to add to it (as of right now) is to customize the errors in the config file. :)

    Flawless victory!
     
  29. Offline

    McSpazzy

    Last edited by a moderator: May 13, 2016
  30. If you could make it so I can limit like what set they could use. A wood set would be granted to starters, with a sub-group for the tools, allowing me to enable or disable them individually (to make it so you have to 'learn' how to use the items at first). Then Stone, Iron, Gold, etc.

    Let me know if you'd like a better description.

    Sorry it took me so long to get back to you, I just got off of work and was sleeping when you posted. :p
     

Share This Page