RonanPlugins / BetterRTP

Official wiki of the BetterRTP plugin!
https://www.spigotmc.org/resources/36081/
MIT License
111 stars 86 forks source link

[Feature Request] betterrtp biome function optimization #114

Open luoxiawuchen opened 1 year ago

luoxiawuchen commented 1 year ago

Plugin Version:

[BetterRTP] Version #3.5.0

Request:

Refine the function of random transmission of designated biome,

1、Refine the permission node betterrtp.biome,Add Child Node bettertp.biome.biometype For example, players only have the permission betterrtp.biome.Ocean, players cannot specify other biomes with the command /rtp biome <biome1, biome2...>

2、In config, the configuration item CustomWorlds, Biomes: [], make the allowed Biome world limit consistent with /rtp biome <biome1, biome2...>, rather than just acting on /rtp

3、Biome blacklist configuration item Biomes: [], contrary to Biomes: [], after setting, players cannot transfer to the corresponding formation, such as disableBiomes: Badlands. Players can transfer to any place except Badlands.

How/Why:

This helps to precisely control the player's designated biome function.

Sometimes, I want to give players this convenient function to reduce the tedious and repetitive map work of players, but I also want to make players unable to designate specific biomes for teleportation, because this may damage the balance of the game. For example, some special biomes, Badlands is one of them, because Badlands can dig a lot of gold ore. To some extent, it lost the fun of exploration.

Additional Context:

Thank you for your patience in reading, and thank the author for developing and sharing this excellent work

SuperRonanCraft commented 1 year ago

This is a crazy request, especially with the way biome rng works, its not optimized at all and HIGHLY depends on how the world variables are setup. I will need to implement some kind of smart detection or pre-generate the world to have this feature be of any usefulness without taking up possibly multiple minutes or crashes finding a biome. I want to explore ideas to be able to whitelist biomes even more than they are now, but no promises >_<

luoxiawuchen commented 1 year ago

This is a crazy request, especially with the way biome rng works, its not optimized at all and HIGHLY depends on how the world variables are setup. I will need to implement some kind of smart detection or pre-generate the world to have this feature be of any usefulness without taking up possibly multiple minutes or crashes finding a biome. I want to explore ideas to be able to whitelist biomes even more than they are now, but no promises >_<

Oh sorry, I didn't expect this feature to be so complicated to implement. After all, this is just a icing on the cake and does not affect the use of the main functions of the plugin. Thank you for your patience.