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)
When ever I set ShowCannotBreakNotification to false, it's as if it doesnt even listen to the item whitelist anymore, and players are able to break blocks as normal.
@DahDuff
It should.
@HeyAwesomePeople
If I list the item but not include any tool ID will it make it unbreakable?
@Waester
Update for just that is being uploaded. Bukkit just needs to accept the file.(1-2 days)
Awesome plugin!
But is it possible to add an option to disable notification when trying too break a block without right tool.
Nice!
@BlockWar
The first version of Specified Break is uploaded! Please allow 12-24 hours for the bukkit dev team to accept the file.
@Saadus But with this plugin you can make block collecting even more hardcore...like i requested this plugin because i want my server be realistic in mining aspect i want just iron and diamond pickaxes mine stone and ores same with wood because is "possible" chop wood with wood axe but the axe should break so is more reallistic with stone axes and better for realistic and hardcore servers, and i think this plugin is very useful :)
I thought Adventure Mode covered this, making it where you can only mine with pickaxes, break dirt with shovels, axes to wood, ect ect.
@BlockWar
Description error. It's sp.reload. Also, the plugin should be done and on here within a few days without trouble.
Thanks for making my request!! :) the permission isnt sp.reload?