kunthean_78112

Make a Minecraft plugin name PenSingleBiome. That it will generate world like that photo. This plugin is hook with multiverse core plugin to generate the world. Author Kunthean. Make it highly performance and smooth generating. Make it has reload command also. Config customize. And help message. Color hex and legacy. Make this plugin has feature that allow to enable or disable mobs or structure spawn when generate default off. Make it have void generate also.

1 image attached
Kodari AI
KodariMar 1 at 4:24 am 6,890 (v2)

I’ll create a high-performance single-biome world generator plugin that hooks with Multiverse Core.

PenSingleBiome
A highly optimized single-biome world generator plugin that integrates with Multiverse Core. Allows server administrators to create worlds with a single biome type (Desert, Plains, Badlands, Snow, Mushroom, and more) or void worlds. Features include configurable mob spawning, structure generation control, and full color customization with hex and legacy support. Designed for smooth, lag-free chunk generation with extensive configuration options.
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
10 554
src/main/java/com/kunthean/pensinglebiome/PenSingleBiome.java
package com.kunthean.pensinglebiome;

import com.kunthean.pensinglebiome.commands.MainCommand;
import com.kunthean.pensinglebiome.generator.SingleBiomeGenerator;
import com.kunthean.pensinglebiome.generator.VoidGenerator;
import com.kunthean.pensinglebiome.manager.ConfigManager;
import com.kunthean.pensinglebiome.util.ColorUtil;
import lombok.Getter;
import org.bukkit.generator.ChunkGenerator;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class PenSingleBiome extends JavaPlugin {
    
    private ConfigManager configManager;
    private boolean multiverseCoreEnabled = false;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        configManager.loadConfig();
        
        checkMultiverseCore();
        registerCommands();
        
        getLogger().info("PenSingleBiome v1.0.0 by Kunthean has been enabled!");
        getLogger().info("High-performance single-biome world generator loaded.");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("PenSingleBiome has been disabled!");
    }
    
    @Override
    public ChunkGenerator getDefaultWorldGenerator(String worldName, String id) {
        if (configManager.isVoidGeneration()) {
            getLogger().info("Using Void Generator for world: " + worldName);
            return new VoidGenerator();
        } else {
            getLogger().info("Using Single Biome Generator for world: " + worldName);
            return new SingleBiomeGenerator(this);
        }
    }
    
    private void checkMultiverseCore() {
        if (getServer().getPluginManager().getPlugin("Multiverse-Core") != null) {
            multiverseCoreEnabled = true;
            getLogger().info(ColorUtil.stripColor(configManager.getMessage("multiverse-hooked")));
        } else {
            getLogger().warning(ColorUtil.stripColor(configManager.getMessage("multiverse-not-found")));
            getLogger().warning("The plugin will still work, but Multiverse-Core integration is recommended.");
        }
    }
    
    private void registerCommands() {
        getCommand("pensinglebiome").setExecutor(new MainCommand(this));
    }
    
    public void reload() {
        configManager.loadConfig();
    }
}