Change Log 1.6.3
The most pointless thing I ever type is "no more feature updates until.." as I tend to ignore my own rules.
This update has a new flag and mechanic, plus a couple of minor bug fixes.
Bug Fixes:
Clicking to make a field an Admin block will no longer just tell you it is already an Admin block when it isn't.
locked_to code in the blocks is now more robust (less chance of a null error popping up if not set)
New Flag/Mechanic: PREVENT_BUILD_EXCEPT_DOMAINBLOCK
This flag allows you to prevent building in a field UNLESS what you're placing is a Domain block. This is intended and supported ONLY for admin fields and overrides PREVENT_BUILD.
The most obvious use for this would be to allow players to place their own field (for example, a shop field) down inside of a larger protected area (for example, your shopping district).
Example:
Create a shopping district field with a key of "shopping_district" that you do not want preset shop fields in. Right click the block, go to Edit, then Admin commands and select Admin block - this will convert the shopping district into an admin field. Add PREVENT_BUILD_EXCEPT_DOMAINBLOCK: true to the field, this will prevent players from building in the shopping district, but will allow them to place a Domain field.
Players can now be given or buy a shop Domain block - in the config for this block, set the locked_to: "shopping_district" and set the field_order to a higher number than the shopping district (if the shopping district field_order = 3, then you must choose a field order > 3).
This shop field can now ONLY be placed inside a shopping_district field. As the players place this field, they'll be able to build inside of their shopping field, but will still not be able to build outside of that.
Modify your files (if not a new install):
Add the following to flags.yml
Code (YAML):
PREVENT_BUILD_EXCEPT_DOMAINBLOCK:
name
:
"&bPrevent Build Except Domain Block"
lore
:
"&fPrevents Non-Allowed players from building|But allows them to place Domain fields"
icon_on
: LIME_STAINED_GLASS_PANE
icon_off
: RED_STAINED_GLASS_PANE
locked
: false