SpecificTools

SpecificTools

SpecificTools is an easy to use and customize plugin that allows you to decide what tools are needed to break different blocks. When configured, wood sword could be the only tool that can break diamond blocks. Or diamond hoe the only one to destroy leaves.

Features

  • Works with any place able block
  • Everything can be done ingame
  • All items can be used as tools
  • Hand can be used as a tool
  • Easy to customize
  • Aprox. 37600 possible customizations!!

How to change/add replacements

It's preferred to add/edit/remove replacements from ingame via the commands, not via the config.

Commands

CommandPermissionDescription
/SpecificTools listSpecificTools.replacements.listShows all current replacements
/SpecificTools editSpecificTools.replacements.editEdits a replacements
/SpecificTools createSpecificTools.replacements.createCreates a replacement
/SpecificTools removeSpecificTools.replacements.deleteRemoves a replacement
/SpecificToolsAddSpecificTools.replacements.create or editAdds a tool to a replacement
/SpecificToolsRemoveSpecificTools.replacements.editremoves a tool from a replacement

Here is an example of how you could create some replacements:

  1. /st create world diamond ore
  2. /sadd shears
  3. /sadd diamond spade
  4. /sadd finished

That would make Shears and diamond spades the only tools that could break diamond ore in world. If you then find out diamond spades should be the only tools and not shears you would do:

  1. /st edit world diamond ore
  2. /sremove shears
  3. /sremove finished

that would remove shears from the replacement for diamond ore in world. If you later don't want that replacement at all you could do:

  1. /st remove world diamond ore

A list of every block/tool is here.

If you want to create/remove/edit replacements from the config remember to shut down your server first and read below:

How the config works

The format for the configuration is like this:

Replacements:
    [world]:
        [block]:
           - [tool]
           - [tool]

The list of blocks and tools is here. But remember to have uppercase and use _ and not spaces in the tools/blocks!

Here is an example configuration:

Replacements:
    world:
        DIRT:
           - HAND
           - IRON_SWORD
        GOLD_BLOCK:
           - GOLD_HOE
    world_nether:
        DIRT:
           - HAND
           - IRON_SWORD
        GOLD_BLOCK:
           - GOLD_HOE
        NETHERRACK:
           - HAND

With this config an empty hand or an iron sword are the only tools that can break dirt, and golden hoe is the only tool to break gold blocks in world. And in nether it is the same except netherrack can be destroyed by hand(and only hand!).

Additionally there is one more thing you may want to change:

NoDrop: true

If it is set to true the blocks that are being tried to destroy using wrong tools would get destroyed, but not drop anything. Else if it is set to false; the blocks just won't break.

Permissions

Nodechildrendescription
SpecificTools.defaultLets the player override the tools in the config
SpecificTools.*everything except SpecificTools.defaultAll the nodes
SpecificTools.replacements.*replacements.create, delete, edit and listAll the node that is needed to create replacements ingame
SpecificTools.replacements.createMakes the player able to create replacements
SpecificTools.replacements.deleteMakes the player able to delete replacements
SpecificTools.replacements.listMakes the player able to list all the replacements
SpecificTools.replacements.editMakes the player able to edit replacements

How to install

  1. Download specifictools.jar (Top right of this page)
  2. Stop your server
  3. Put specifictools.jar in the plugins folder of your server
  4. Start and stop your server
  5. Edit plugins/SpecificTools/config.yml after your needs
  6. Enjoy!

To do

  • Remove bugs
    • If you use a tool that is normally not valid, the block wont drop anything.
    • Hand can not be used as a tool from ingame
    • If NoDrop is set to true (which is default) the broken blocks will not be logged by LogBlock, Guardian, Hawkeye...
  • Improve!
    • make so things do not need to be uppercase when using commands and space can be used insted of underscore
    • Change how settings works in the config
  • Add per world support
  • Add commands to add replacements
  • Add all items as valid tools
  • Add faster breaking!

Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files