reektorr-dotcom

Vytvoř mi plugin na speciální dimenzi, do které se dostaneš když postavíš jakože lednici v minecraftu v configu změna blocků možná? A otevřou tu lednici a vejdu do ní tak mi do dá do dimenze inspirovaná lednici, speciální struktury a hlavně těžký dungeony! S hodně Moby a spawnery a taky i nějakým dobrým lootem ale furt inspirované lednici a jídlem prostě

Kodari AI
KodariJul 6 at 4:06 pm 16

I’ll build a “Fridge Dimension” plugin: players construct a configurable fridge structure (frame blocks + door), right-click to open a portal into a custom food-themed dimension full of procedurally generated dungeons, mob spawners, and themed loot.

FridgeDimension
Build a fridge in the world (configurable frame + door blocks) and open it to step into a custom food-themed dimension. Features procedurally generated dungeons with themed walls/floors, monster spawners with configurable mobs, loot chests filled with food and treasure loot tables, and a return portal. Fully configurable via config.yml: structure detection, world generation, dungeon count/size/spacing, spawner mob pools, and weighted loot tables. Includes admin commands to reload config, regenerate dungeons, teleport, and leave the dimension.

Plan:

  • FridgeDimension (main), ConfigManager (typed config access)

  • VoidGenerator (flat themed world generator), FridgeWorldManager (world lifecycle)

  • LootEntry (data class), DungeonManager (procedural dungeon/spawner/loot generation)

  • PlayerDataManager (persist return locations)

  • FridgeListener (structure detection + portal/exit interaction)

  • FridgeCommand (admin commands)

  • plugin.yml, config.yml

Fridge structure = right-click an IRON_DOOR (configurable) with IRON_BLOCKs above, below, and on ≥2 horizontal sides. Opens a portal into fridge_dimension, a frozen-white void world seeded with generated dungeon rooms (snow/ice walls, mob spawners, food+treasure loot chests). Interact with PACKED_ICE inside to return. Admin commands: /fridge reload|generate|tp|leave.

Kodari can make mistakes. Review important code before using.
Files
src
Code
11 745
src/main/java/com/fridgedimension/FridgeDimension.java
package com.fridgedimension;

import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class FridgeDimension extends JavaPlugin {

    private ConfigManager configManager;
    private FridgeWorldManager worldManager;
    private DungeonManager dungeonManager;
    private PlayerDataManager playerDataManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.configManager = new ConfigManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.worldManager = new FridgeWorldManager(this);
        this.dungeonManager = new DungeonManager(this);

        this.worldManager.loadOrCreateWorld();
        this.dungeonManager.generateDungeons(worldManager.getFridgeWorld());

        getServer().getPluginManager().registerEvents(new FridgeListener(this), this);

        FridgeCommand command = new FridgeCommand(this);
        getCommand("fridge").setExecutor(command);
        getCommand("fridge").setTabCompleter(command);

        getLogger().info("FridgeDimension enabled! The fridge is open...");
    }

    @Override
    public void onDisable() {
        if (playerDataManager != null) {
            playerDataManager.saveAll();
        }
    }

    public void reload() {
        reloadConfig();
        configManager.reload();
    }
}