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
Command | Permission | Description |
/SpecificTools list | SpecificTools.replacements.list | Shows all current replacements |
/SpecificTools edit | SpecificTools.replacements.edit | Edits a replacements |
/SpecificTools create | SpecificTools.replacements.create | Creates a replacement |
/SpecificTools remove | SpecificTools.replacements.delete | Removes a replacement |
/SpecificToolsAdd | SpecificTools.replacements.create or edit | Adds a tool to a replacement |
/SpecificToolsRemove | SpecificTools.replacements.edit | removes a tool from a replacement |
Here is an example of how you could create some replacements:
- /st create world diamond ore
- /sadd shears
- /sadd diamond spade
- /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:
- /st edit world diamond ore
- /sremove shears
- /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:
- /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
Node | children | description |
SpecificTools.default | Lets the player override the tools in the config | |
SpecificTools.* | everything except SpecificTools.default | All the nodes |
SpecificTools.replacements.* | replacements.create, delete, edit and list | All the node that is needed to create replacements ingame |
SpecificTools.replacements.create | Makes the player able to create replacements | |
SpecificTools.replacements.delete | Makes the player able to delete replacements | |
SpecificTools.replacements.list | Makes the player able to list all the replacements | |
SpecificTools.replacements.edit | Makes the player able to edit replacements |
How to install
- Download specifictools.jar (Top right of this page)
- Stop your server
- Put specifictools.jar in the plugins folder of your server
- Start and stop your server
- Edit plugins/SpecificTools/config.yml after your needs
- 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 supportAdd commands to add replacementsAdd all items as valid tools- Add faster breaking!
Hello, again, in last few days i saw strange error appeared in the console. Is it normal or i can somehow fix it?
@Gridbugkiller
Fixed in version 0.1.9
@Gridbugkiller
Hmm, will look at it. Think it comes because of the events priority
Hi, can you fix that players can break blocks in WorldGuard regions even if the region has a flag "construct = deny"?
Ok, so I have made an example config that I hope suits your needs @Kiak.
For changin the speed of tools, it is not posible as far as I know. But I will do my best to get it working.
Development of new features are currently paused, for me focusing on my server. I will still fix serius bugs, but not develop new features.
LevelTools is probably the plugins that cause this. This plugin uses the XP bar to see if your level is high enough to break the block or use a certain pickaxe.
Yes i wanted to choose, i just imagined even more configurability in my example
What you've done now will still let me do what i want thank you :)
Il report back when it works perfectly or if anything goes wrong ;)
@Kiak
You kinda' speak around yourself. Do you want the option to be for all blocks or be able to choose? The solution I have in my dev build now is like this:
@totokaka
yes this would be a really handy feature
I had similar interaction problems and just used some long winded work arounds, but a priority option would be sexier
@darth2499
Currently no matter how you config this plugin it will cancle the block break event. So if i set the event priority on Low(first) no other plugins would know the block have been broken by a player. Logging plugins will log them as just broken. If i have it on High(last) the other plugins would first dedicide if the block should be broken or not before specificTools could decide. So it is pros and cons on both. Maby I should add an option for that?
@darth2499
which plugin are you having this interference with? (cant fix the problem or recommend a solution without knowing bro)
these plugins are all hooking into the same Block break event, so the first one to trigger it decides what happens.
I think youl find that when my request below is implemented you wont need to worry bout this problem any more
You have to fix it so when another plugin tries to prevent an item from breaking it will drop the block no matter what. That has to be fixed.
@totokaka
Yes sorry i want it for all blocks but i just used sand as an example
I would imagine a second config entry for each block so its like
@Kiak
Yes I could add an option for that, but it would be for the whole plugin and not only sand. I think I'll add it in versino 0.1.9, if you need it to be separate from block to block it will be after 0.2.0
Hey that last thing works fine now thank you
Right now i can
Can you make it so i can do both seperately as below?
I'm making an adventure where things are blocking the path requiring certain tools to pass but i dont want the players to pick up the sand once they dig through it.. because i dont want them building new things with the dropped blocks
@totokaka
Awesome, thanks buddy. I'l check it out in the morning and give you big thumbs up when it works as hoped :)
@Kiak
You probably downloaded rigth before I updated to 0.1.6. Try download again.
Hey mate i entered my worlds as in your example config but it reads them as blocks and says they dont exist.
Is this just because it's still a To be done feature?
or can you post me a copy pasta of a working one because my example:
Doesn't currently work :(
@totokaka
thanks. works perfectly!