Specified Break
Specified Break - A plugin that realizes minecraft!
What is specified break?
SB is a bukkit server plugin that will allow server admins to block the breaking of a certain block with a certain item. For example, making it so that logs can only be broken by axes. Or pickaxes can only mine stone. The possibilities are endless!
How to use?
Simple:
- Download latest version
- Put into plugins folder
- Reload/start server
- Edit config to your needs
- Note: If you are going to change a value in the config, shut down the server first, change the config, then start the server back up.
Making blocks be able to be broken by certain item(s)
EASY WAY(S)
- Option 1:
- Add a block to the config. Do /sb addblock <block_name> <type>
- Note: Type can be "only" or "but"
- Add an item to that blocks list. Do /sb additem <block_name> <item_name>
- Option 2:
- Do /sb additem hand. What ever you are looking at will be the block, and the item you are holding will become the item. Default type will be only. This command can also be used to add an item to an already existing block in the configuration. Example: I am holding an Apple and I look at dirt. I run the command. Now dirt has been put in the config and Apple is the item it can be broken by.
ADVANCED WAY
The unedited config file looks like this:
data: COBBLESTONE: type: only items: - IRON_AXE IRON_ORE: type: but items: - DIAMOND_PICKAXE - IRON_PICKAXE msgEnabled: true cannotBreakMessage: '&bYou cannot break %b with %h silly!'
Let me explain on how to edit/add blocks to configure. In this example, we have two blocks in the config: COBBLESTONE and IRON_ORE. Cobblestone is the type "only". This means that any items listed under cobblestone are the items you MUST use to break cobblestone. In this case, cobblestone can ONLY be broken by an IRON_AXE.
IRON_ORE is the type "but". This means that any items listed under iron ore are items that cannot be used to break IRON_ORE. In this case, IRON_ORE can be broken by any item BUT a diamond or iron pickaxe.
data: STONE: type: only items: - WOODEN_PICKAXE
Simple huh? The above config setup allows STONE to ONLY be broken by a Wooden Pickaxe.
Block Types
You may have noticed that under each block in the config, there is a value called type. This value can either be "only" or "but". Here is how it works. The type "only" means that any item listed under that block can ONLY break that block. The type "but" means that any item can break that block BUT the items listed.
Config Values
The "cannotBreakMessage" value can contain color codes, such as "&4" in the value. The values '%b' and '%h' will be automatically replaced with the block the player is trying to break and the item in their hand respectively.
Features
- Block certain tools from breaking certain things
- Enable creative mode bypass
- Option for enabling/disabling cannot break message
- Easily remove/add tools with command
- Suggest More!
Commands
- /sb getname - This will get the full name of a block you are looking at.
- /sb additem hand - Add the item you are holding, to the item list of the block you are looking at
- /sb additem <block_name> <item_name> - Add an item to the item list of a block
- /sb addblock <block_name> <type(only/but)> - Add a block to the configuration and set its type
- /sb settype <block_name> <type> - Set the type of a block
- /sb removeitem <block_name> <item_name> - Remove an item from the block
- /sb removeblock <block_name> - Remove a block from the config
- /sb updateconfig - Updates config with hashed information
- /checkitems - Shows the restrictions of the block you are looking at
Permissions
- specifiedbreak.admin - All commands
- specifiedbreak.bypass - Bypass checks
- specifiedbreak.check - Allows usage of checkitems command
Future?
- Requiring players to have a certain amount of EXP to mine a certain thing(toggle-able)
Please upgrade this for 1.10. Great plug, in a category that has few alternatives.
Is there any way someone just could post a config file that already made it so you could only break anything with the proper tool?
What would be the chances of making a config such that the item has a specific data value? For example a diamond pick that has been customized with a data value by another plugin be the only item that can mine netherrack?
example:
in this case netherrack only breakable by diamond pick with the lore on it "NetherPick"
Hello,
Is it possible to prevent players to break things with their fists?
If now, could you add that feature?! That would be amazing, for I am trying to get the feeling of the old Adventure mode, (not that I don't like the new changes to Adventure mode) however, now that you can't place anything it won't work with servers, so this is a perfect substitute! (Although I am having a hard time figuring it out still, I can still break iron_ore with everything with the default config.
I hope that feature is in/can be added! 'twould be great!
EDIT: Actually the plugin doesn't seem to be working at all, is there a problem with the 1.8 version? It installed properly, with the config and everything, no error messages, but I can break iron_ore and cobblestone with the default config, with anything.
EDIT AGAIN: Sorry it was cause I was op XD Everything works, scratch out everything. Great plugin! I love it, now just have to figure out how to restrict this for ops...
you will be add: i can made region with worlgguard and you will be add cmd, which add permissions from confing to specified area and when admin wanna over whole world admin set to cmd region name _global_ - world guard regions have more similar flag :) cmd will be: /rg flag NAME(or _gobal_ for whole world) specified-break allow :)
thanks
Does it work for Cauldron 1.7.10?
Edit: I tried and it SEEMS to work but not as it should. So, I tried to prevent mining dirt and sometimes it works, sometimes it does not.
@UnwrittenPaper
Thanks. If you have any suggestions I could add, please let me know! I am open to anything!
Updated for Minecraft 1.8! New configuration, please delete old config!
May take 1-4 days for the upload to be accepted.
@domkalan @Mavhill @Sinuce
Recreating for 1.8 now. Should be very soon.
add the ability to make a custom message. :)
Any update news?
"/gamemode 2"
@HeyAwesomePeople
Nice. I'm looking forward to the next Specified Break update :)
@Tellus30
Working on updating the plugin now, but the 1.6 version works on 1.7.9
@Sinuce
Yes, working on that now.
Plugin works perfect with 1.7.9.
Would you be interested in maybe including the possibilty to post e.g. item names instead of IDs in the message the players receive? :)
What is the command for disabling cannor break message
This plugin will update in 1.7.x ? or not ?
@Dad_Yoshi
I have not gotten use to using the worldedit API yet, so that may come sometime in the future.
But great Idea.
How about region (Worldedit) and world specific settings?
@Dan7heMan
Fix is being uploaded. Please allow the Bukkit team to accept the file. (24-48 hours)