Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to block claiming in plots which have too much Ocean or otherwise Unwanted biome in them. #7145

Merged
merged 4 commits into from
Dec 29, 2023

Conversation

LlmDl
Copy link
Member

@LlmDl LlmDl commented Dec 27, 2023

Description:

The amount of allowed ocean is configurable, too much ocean and you don't get to claim it. Uses a predicate so there can be more rules added down the line if needed.

Additionally there is a separate UnwantedBiomes section that will also be able to block a list of biomes by name.


New Nodes/Commands/ConfigOptions:

  - New Config Option: claiming.biome_rules.unwanted_biomes.enabled
    - Default: false
    - When true, unwanted biomes will be tested for when a player is claiming land.
  - New Config Option: claiming.biome_rules.unwanted_biomes.biomes
    - Default: "the_end,end_barrens,end_highlands,end_midlands,small_end_islands"
    - A comma separated list of biome names that will add up towards a townblock's un-claim-ability.
  - New Config Option: claiming.biome_rules.unwanted_biomes.threshold
    - Default: 55
    - The max amount of combined unwanted biomes as a percent, that will be allowed in plots being claimed by towns.
    - For example, if a townblock would be more than X percent ocean it will not be able to be claimed.
  - New Config Option: claiming.biome_rules.ocean_blocking.enabled
    - Default: false
    - When true, any wilderness plot which has more Ocean biome in it than the allowed threshold (see below,) will not be able to be claimed.
  - New Config Option: claiming.biome_rules.ocean_blocking.threshold
    - Default: 55
    - The max amount of combined ocean biomes as a percent, that will be allowed in plots being claimed by towns.
    - For example, if a townblock would be more than X percent ocean it will not be able to be claimed.


Relevant Towny Issue ticket:

Closes #7136.


  • I have tested this pull request for defects on a server.

By making this pull request, I represent that I have the right to waive copyright and related rights to my contribution, and agree that all copyright and related rights in my contributions are waived, and I acknowledge that the TownyAdvanced organization has the copyright to use and modify my contribution under the Towny License for perpetuity.

biome in them.

The amount of allowed ocean is configurable.

Closes #7136.
@LlmDl LlmDl changed the title Add the ability to block claiming in plots which have too much Ocean biome in them. Add the ability to block claiming in plots which have too much Ocean or otherwise Unwanted biome in them. Dec 28, 2023
@LlmDl LlmDl marked this pull request as ready for review December 28, 2023 17:49
@LlmDl LlmDl added this to the 0.100.1.0 milestone Dec 28, 2023
@LlmDl LlmDl merged commit 499208d into master Dec 29, 2023
4 checks passed
@LlmDl LlmDl deleted the feat/ocean_biome_blocking branch December 29, 2023 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggestion: Config option to prevent claiming water chunks
1 participant