WorldGuard Block Restricter
Description
WorldGuard Block Restricter adds two (six) flags to WorldGuard regions:
- deny-blocks: a list of blocks that are not allowed to be placed or destroyed in this region
- allow-blocks: a list of blocks that are allowed to be placed and destroyed (overwrites deny-blocks)
- from 2.0 on these flags will be available too:
- deny-place: only deny placing the specified blocks, but not breaking them
- allow-place: overwrite blocks specified by "deny-place"
- deny-break: only deny breaking the specified blocks, but not placing them
- allow-break: overwrite blocks specified by "deny-break"
It requires WorldGuard Custom Flags.
Usage
Simply use these flag as any other WorldGuard flag:
/region flag restriction deny-blocks obsidian, cobblestone
You can also use "any" to block any block placement/destruction. This is usefull for whitelisting, because allow-blocks will overwrite this.
/region flag only-dirt deny-blocks any
/region flag only-dirt allow-blocks dirt
From version 1.7 on you can also use block/item ids.
Click here for some other plugins using WorldGuard Custom Flags.
Permissions
- wgblockrestricter.ignore:
- allows players to ignore block restrictions
Problems ?
If you have problems with this plugin read the F.A.Q.. If this did not help you, you can receive help here.
@3ptO
Try typing /region flag <region name> deny-blocks ENDER_CHEST
How to block enderchests?
@quiacko
It should also deny the breaking of these blocks, I just forgot to update the description :D
I completely agree with @laboyteaux ; there should most definitely be a way to restrict certain block breaking as well. While this plugin is extremely helpful, I would love it even more if it added this feature.
@Slothynator
it may be because it insta-breaks? tried stuff like wheat?
I can't get this to work with the latest World Guard....am I missing something?
Is there a opposite of this? like a deny mining of certain blocks? that would be amazing!
Hi, I can't seem to find sugarcane as a valid block? I even tried using the block ID with no success. Could you please add this? Or a feature that allows users to add block id's?
@jaimecamara
I found the bug... I don't know why but the allow-blocks is saving in newline....
instead of inline which would be yml valid :D
To temp fix, just change the region.yml accordingly .. i need a bugfix in the plugin cause i am generating plots automatic! ty ;)
Hello the flags set to lock the blocks, when the server restart they disappear this and normal?
@romenas
If you took a look at the forum you could have found this. Next time please look there first.
The plugin does not work very well with me, every time the server reload the flag that put disappears something abnormal?
when you allow sign block to be builded, it does not let you build a sign.
/rg flag market_1 deny-blocks any /rg flag market_1 allow-blocks sign
It still does deny sign building :)
Please add Sign blocks: Free-standing dec: 63 hex: 3F Wall-mounted dec: 68 hex: 44 Inventory dec: 323 hex: 143
@dancehound
1. Please post your problems here.
2. If it says it could not find the region it is not my plugin. Maybe you should check the server log for errors.
@gecko16300
Minecarts are not blocks :O . But thats a nice idea for another plugin :D .
I NEED HELP!!!
when ever i type /region flag restriction deny-blocks stonebrick,ect..
it says could not find region ID
@der_mewin Minecarts ! You know, to place on rails ! I want to my players can use min écarts in my city but only minecarts ! (Sorry for my english, I'm french !)
@jp694
If you mean the quarry block of BuildCraft: blocks that are added with mods are not supported yet, but it should block it if you set the deny-blocks flag to "any".
@gecko16300
What is a minecart block? :O
Minecarts blocs aren't listed in BlockMaterial class ...