📎
1 file
12,268 chars
📄
pasted-code-1786848215161.txt
txt
380 lines
▶
pasted-code-1786848215161.txt
txt
380 lines
Introduction:
BiomeGen is an advanced plugin used for making custom single biome worlds, perfect for PvP and Practice servers and FFA arenas. Below are some information about BiomeGen plugin.
Version: 26.2 folia
Server Software Support:
* Spigot
* Paper
* Bukkit
* Folia
Compatibility:
* Multiverse
* Worlds
Features:
* Single biome world generator
* Fully customizable terrain generation settings
* World-specific terrain generation settingsj
* Multiple world support
* Support for Nether and End dimension
* Chunk pre-loader
* Easily customizable biome decorations (trees, grass, cactus etc density)
* Easy to use configuration file
* 24/7 Support
* Supports 6 biomes
Configuration Preivew:
Spoiler: config.yml
Code (YAML):
# BiomeGen Plugin Configuration
# ========================================
# TERRAIN GENERATION SETTINGS
# ========================================
terrain:
# Base height for terrain generation (default: 67)
# This is the center point around which terrain varies
base_height: 67
# Advanced terrain parameters
# You can modify these to override preset values
advanced:
# Maximum height variation from base_height (default: 18 blocks for preset 4)
# Current terrain varies from 49 to 85 blocks (67 ± 18)
max_variation: 18
# Noise generation multipliers for terrain variation
# Higher values = more dramatic terrain changes
noise_multiplier: 0.9 # Overall noise intensity (default: 0.9)
amplitude_multiplier: 1.8 # Height amplitude multiplier (default: 1.8)
# Noise generation parameters for topographic terrain
# These create the current "contour map" aesthetic - DO NOT CHANGE unless you know what you're doing
noise_settings:
primary_frequency: 0.0025 # Main terrain frequency
secondary_frequency: 0.005 # Secondary detail frequency
tertiary_frequency: 0.01 # Fine detail frequency
valley_frequency: 0.002 # Valley formation frequency
amplitude_blocks: 18.0 # How dramatic the height changes are
hills_influence: 0.6 # Influence of hills vs valleys (0.0-1.0)
valley_influence: 0.25 # Influence of valleys vs hills (0.0-1.0)
# Number of bedrock layers at the bottom (default: 5)
bedrock_layers: 5
# ========================================
# GAMEPLAY SETTINGS
# ========================================
gameplay:
# Enable/disable mob spawning in generated worlds (default: true)
# Set to false to prevent all mobs from spawning naturally
# NOTE: Ender dragon will stil spawn in the end generator if you create it in THE_END environment
mobs_enabled: true
# ========================================
# VEGETATION AND FEATURES SETTINGS
# ========================================
vegetation:
# Global vegetation settings
global:
# Enable/disable all trees and large vegetation (default: true)
trees_enabled: true
# Enable/disable flowers (default: true)
flowers_enabled: true
# Grass settings
grass:
# Enable/disable regular grass (default: true)
enabled: true
# Enable/disable tall grass (default: true)
tall_grass_enabled: true
# Grass density multiplier (0.0 = none, 1.0 = default, 2.0 = double)
density: 1.0
# ========================================
# BIOME-SPECIFIC GENERATOR SETTINGS
# ========================================
generators:
# Desert biome configuration
desert:
# Enable/disable this generator (default: true)
enabled: true
# Sand layer depth settings
sand_depth:
min: 2 # Minimum sand depth
max: 4 # Maximum sand depth
# Sandstone layer depth (default: 6)
sandstone_depth: 6
# Desert-specific vegetation
vegetation:
# Enable/disable cactus generation (default: true)
cactus_enabled: true
# Cactus spawn chance (0.0 = never, 1.0 = always try)
# Increased for more natural desert appearance
cactus_chance: 0.002
# Enable/disable dead bush generation (default: true)
dead_bush_enabled: true
# Dead bush spawn chance (0.0 = never, 1.0 = always try)
# Increased for more natural desert appearance
dead_bush_chance: 0.002
# Plains biome configuration
plains:
# Enable/disable this generator (default: true)
enabled: true
# Dirt layer depth settings
dirt_depth:
min: 3 # Minimum dirt depth
max: 6 # Maximum dirt depth
# Plains-specific vegetation
vegetation:
# Enable/disable oak tree generation (default: true)
tree_enabled: true
# Oak tree spawn chance (0.0 = never, 1.0 = always try)
# Increased for more natural plains appearance
tree_chance: 0.001
# Enable/disable tall grass (default: true)
tall_grass_enabled: true
# Tall grass spawn chance (0.0 = never, 1.0 = always try)
# Increased for more natural plains appearance
tall_grass_chance: 0.005
# Snowy Plains biome configuration
snowyplains:
# Enable/disable this generator (default: true)
enabled: true
# Dirt layer depth settings
dirt_depth:
min: 3 # Minimum dirt depth
max: 6 # Maximum dirt depth
# Snow layer settings
snow:
# Enable/disable snow layer on surface (default: true)
enabled: true
# Snow layer thickness (1 = thin layer, 8 = full block)
thickness: 1
# Snowy Plains-specific vegetation
vegetation:
# Enable/disable spruce tree generation (default: true)
tree_enabled: true
# Spruce tree spawn chance (0.0 = never, 1.0 = always try)
# Increased for more natural snowy plains appearance
tree_chance: 0.001
# Pumpkin patch settings
pumpkin_patch_enabled: true
pumpkin_patch_chance: 0.0008
# Min/max pumpkins attempted per patch
pumpkin_patch_min_count: 3
pumpkin_patch_max_count: 5
# Required placed pumpkins to keep a patch (avoid scattered singles)
pumpkin_patch_min_cluster_size: 2
# Allow carved pumpkins in snowy plains
pumpkin_patch_allow_carved: false
# Chance that a pumpkin is carved when allowed (0.0-1.0)
pumpkin_patch_carved_chance: 0.0
# Place snow layer on top of pumpkins when air above
pumpkin_patch_snow_on_top: true
# Badlands biome configuration
badlands:
# Enable/disable this generator (default: true)
enabled: true
# Terracotta layer depth (default: 10)
terracotta_depth: 10
# Badlands-specific vegetation
vegetation:
# Enable/disable cactus generation (default: true)
cactus_enabled: true
# Cactus spawn chance (0.0 = never, 1.0 = always try)
# Increased for more natural badlands appearance
cactus_chance: 0.008
# Enable/disable dead bush generation (default: true)
dead_bush_enabled: true
# Dead bush spawn chance (0.0 = never, 1.0 = always try)
# Increased for more natural badlands appearance
dead_bush_chance: 0.005
# Mushroom Fields biome configuration
mushroom:
# Enable/disable this generator (default: true)
enabled: true
# Dirt layer depth settings (under mycelium)
dirt_depth:
min: 3 # Minimum dirt depth
max: 6 # Maximum dirt depth
# Mushroom-specific vegetation
vegetation:
# Enable/disable giant mushroom tree generation (default: true)
giant_mushroom_enabled: true
# Giant mushroom spawn chance (0.0 = never, 1.0 = always try)
# Lower chance as they are large structures
giant_mushroom_chance: 0.0005
# Enable/disable red mushroom generation (default: true)
red_mushroom_enabled: true
# Red mushroom spawn chance (0.0 = never, 1.0 = always try)
# Increased for more natural mushroom fields appearance
red_mushroom_chance: 0.002
# Enable/disable brown mushroom generation (default: true)
brown_mushroom_enabled: true
# Brown mushroom spawn chance (0.0 = never, 1.0 = always try)
# Increased for more natural mushroom fields appearance
brown_mushroom_chance: 0.002
# End biome configuration
end:
# Enable/disable this generator (default: true)
enabled: true
# Platform height (default: 64)
platform_height: 64
# Layer thickness for each material (default: 1)
layer_thickness: 1
# End-specific mob spawning control
# Note: End biome has special mob spawning rules in Minecraft
# These settings help control mob generation but may not prevent all mobs
mobs:
# Enable/disable Endermen spawning (default: true)
endermen_enabled: true
# Enable/disable Ender Dragon spawning (default: true)
# Note: Ender Dragon is a boss mob with special spawning rules
ender_dragon_enabled: true
# End-specific vegetation
vegetation:
# Enable/disable chorus plant generation (default: true - now enabled)
chorus_plant_enabled: true
# Chorus plant spawn chance (0.0 = never, 1.0 = always try)
# Increased for more natural end appearance
chorus_plant_chance: 0.001
# ========================================
# PERFORMANCE AND DEBUG SETTINGS
# ========================================
performance:
# Enable chunk preloading for better performance (default: false)
chunk_preloading: false
preload:
# Number of chunks to preload per tick when using /bg preload or similar features
# Higher values speed up preloading but may increase server load. Minimum 1.
chunks_per_tick: 4
# Memory optimization settings
memory:
# Enable noise generator caching (default: true)
cache_noise_generators: true
# Cache size limit (number of generators to keep in memory)
cache_size: 100
debug:
# Enable verbose logging (default: false)
verbose_logging: false
# Enable performance monitoring (default: false)
performance_monitoring: false
# Log terrain generation statistics (default: false)
log_terrain_stats: false
# ========================================
# WORLD-SPECIFIC SETTINGS
# ========================================
# You can override any global setting per world by creating sections like below.
# World-specific settings take priority over global settings.
# Any setting not specified for a world will use the global default.
# How to use world-specific settings:
# 1. Add a section under 'worlds:' with your world name (use quotes for names with spaces)
# 2. Override any setting you want to customize for that world
# 3. Settings not specified will use the global defaults above
# 4. Create a world with a BiomeGen generator: /mv create myworld normal -g biomeGen:plains or /bg world create myworld plains
# Available world-specific overrides:
# - terrain.preset (0-10)
# - terrain.base_height
# - terrain.advanced.* (all advanced terrain settings)
# - vegetation.global.* (all global vegetation settings)
# - gameplay.mobs_enabled
# - generators.{biome}.* (all biome-specific settings)
# Examples of specific overrides:
# worlds:
# "my_world":
# terrain:
# preset: 5
# advanced:
# max_variation: 25
# noise_multiplier: 1.2
# generators:
# desert:
# vegetation:
# cactus_chance: 0.01
# snowyplains:
# snow:
# enabled: false
NOTE: These are only a FEW screenshots of SOME of the generators with the default preset. You can customize all terrain generation settings.






Commands:
* /biomegen or bg - the base command
* /bg help - shows list of all available commands.
* /bg world create [worldname] [biome] - creates a new single biome world.
* /bg world config [worldname] - shows world specific config/settings.
* /bg world list - shows the list of all worlds.
* /bg world tp [worldname] - teleports you to the specified world spawn.
* /bg info - shows global world settings.
* /bg preset [0-10] - sets terrain elevation preset levels.
* /bg preload [chunk radius] [worldname] - preloads the specified chunk amount in the specified world.
* /bg reload - reloads the plugins configuration file.
* /bg list - shows you all the available biome.
* /bg applysettings - applies world settings.
* /bg debug - enables/disabled debugging mode
KodariAug 16 at 2:46 am 15
BiomeGen
BiomeGen is an advanced single-biome world generator plugin for Spigot, Paper, Bukkit, and Folia servers. It creates custom single-biome worlds perfect for PvP, Practice, and FFA arenas. Features include fully customizable terrain generation with adjustable base height, noise multipliers, and amplitude settings, plus biome-specific configurations for Desert, Plains, Snowy Plains, Badlands, Mushroom Fields, and End dimensions. The plugin supports multiple worlds, Nether and End dimensions, chunk pre-loading, and customizable vegetation density including trees, cacti, flowers, and grass. World-specific settings override global defaults, and a comprehensive command system manages world creation, teleportation, presets, and configuration reloading. Includes performance optimizations like noise generator caching and debug logging options.
Core generator, configurable terrain, and single-biome world registry are in place.
I’m adding the command suite and Folia-safe chunk preloader.
Implemented BiomeGen 26.2 with:
Configurable single-biome terrain generation for Desert, Plains, Snowy Plains, Badlands, Mushroom Fields, and End.
Per-world configuration overrides and managed-world registry.
/biomegen//bgcommand suite: world creation, teleporting, settings, presets, reload, debug, biome list, and chunk preloading.Mob spawning control in generated worlds.
Folia support via FoliaLib, including safe teleportation and location-based chunk preloading.
Gradle build, plugin metadata, manifest, and comprehensive default configuration.
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
13 740
src/main/java/com/kodari/biomegen/BiomeGenPlugin.java
package com.kodari.biomegen;
import com.kodari.biomegen.command.BiomeGenCommand;
import com.kodari.biomegen.listener.MobSpawnListener;
import com.kodari.biomegen.world.BiomeWorldManager;
import com.kodari.biomegen.world.GenerationSettings;
import com.kodari.biomegen.world.SingleBiomeGenerator;
import com.tcoded.folialib.FoliaLib;
import lombok.Getter;
import org.bukkit.command.PluginCommand;
import org.bukkit.generator.ChunkGenerator;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public final class BiomeGenPlugin extends JavaPlugin {
private GenerationSettings generationSettings;
private BiomeWorldManager worldManager;
private FoliaLib foliaLib;
@Override
public void onLoad() {
saveDefaultConfig();
generationSettings = new GenerationSettings(this);
worldManager = new BiomeWorldManager(this);
}
@Override
public void onEnable() {
foliaLib = new FoliaLib(this);
PluginCommand command = getCommand("biomegen");
if (command != null) {
BiomeGenCommand executor = new BiomeGenCommand(this);
command.setExecutor(executor);
command.setTabCompleter(executor);
}
getServer().getPluginManager().registerEvents(new MobSpawnListener(worldManager, generationSettings), this);
}
@Override
public void onDisable() {
if (foliaLib != null) {
foliaLib.getScheduler().cancelAllTasks();
}
}
@Override
public ChunkGenerator getDefaultWorldGenerator(String worldName, String id) {
return worldManager.getBiomeType(worldName)
.map(type -> new SingleBiomeGenerator(type, generationSettings, worldName))
.orElse(null);
}
}