mpeyboun_83492

make a Minecraft plugin name PenDungeon: this plugin has feature ÷ key to join dungeon material = magma cream enchantment mending. name key "&#FF0000&lDUNGEON KEY" default max player teleport = 1 player placeholder that show how many player in the teleport region that have key = %dungeon_player% teleport rejoin when player enter on the teleport that was set on config.yml it will sent message action bar "&7Waiting for player &3%dungeon_player%&7/&3%max_player%" but when player full of %max_player% it will sent title message "&bMatch Starting" and subtitle "&7in %countdown% seconds" when countdown over it will teleport players to the location that was set. when player don't have key and try to join the teleport region it will sent action bar "&cYou need a key to join." sound "ENTITY_VILLAGER_NO" when player teleport to set location it will sent title message "&bGet ready" subtitle "&7Zombie will spawn in %countdown%" when countdown 10 seconds over it will sent title "&2Zombie spawned" subtitle "&fGood luck!" and spawn 200 zombies from location set and bossbar show amount of zombies left. this round is round 1 round 2 after player killed all zombie it will teleport player to teleport location and sent title "&bGet ready" subtitle "&7Piglin Brute will spawn in %countdown% when countdown 10 seconds over it will sent title"&ePiglin Brute spawned" subtitle"&fGood luck!" and spawn 100 piglin brute from location set and bossbar show amount of piglin brute. round 3 after player killed all piglin brute it will teleport player to teleport location and sent title "&bGet ready" subtitle "&7Warden will spawn in %countdown% when countdown 10 seconds over it will sent title "&3Warden spawned" subtitle "&fGood luck!" and spawn 6 warden from location set and bossbar show amount of warden. when player end per round it will make coffee console execute command "crates key give %player% dg 1" after player won 3 round it will teleport player to spawn location. bossbar color "zombie color = &2 name '%amount% zombie left'., piglin brute color = &e name '%amount% piglin brute left'., warden color = &3 name '%amount% warden left. message when player won all rounds = title "&aYon Win" subtitle "&fDungeon challenge complete" with sound "UI_TOAST_CHALLENGE_COMPLETE". message when player lost any round = title"&cYou Lose" subtitle "&fDungeon challenge failed" and teleport player to spawn location. author Kunthean. this plugin when player enter the region and teleport to dungeon location it will remove 1 key from the player. this plugin when player teleport to location set it will remove dungeon key from player. make this plugin has feature when player join dungeon it not allow to use command like "/tpa, /tpaccept, tpahere, etc" can customize in config. make we can customize everything in config like mobs name key and more. command: give key = /dungeon key %player% %amount% set teleport location when enter region and countdown over = /dungeon settp set spawn = /dungeon setspawn set mob spawn = /dungeon setmobspawn reload = /PenDungeon reload. make all commands is show on tab completions. make all command is working with player and console. make all feature or messages is has all sounds can customize. make we can customize enter region teleport in config Also that hook with world edit or fast World edit. make this plugin multiple region support.

Kodari AI
KodariFeb 19 at 12:00 pm 38,205 (v2)

I’ll create a comprehensive dungeon plugin with WorldEdit region support, multiple rounds, boss bars, and full customization.

PenDungeon
A multi-round dungeon challenge plugin with WorldEdit region detection, customizable mob waves, boss bar tracking, and team-based gameplay. Players use special keys to enter regional teleport zones, wait for teams to form, then battle through three rounds of increasingly difficult mobs. Features PlaceholderAPI integration, command blocking during challenges, console reward execution, and full configuration of all aspects including sounds, messages, mob spawns, and rewards.

Now I’ll create the utility classes and complete any remaining functionality:

All files have been created for the PenDungeon plugin with complete functionality including WorldEdit region detection, multi-round dungeon system, boss bar tracking, PlaceholderAPI integration, command blocking, and full customization through config.yml.

mpeyboun_83492

Make it working to 1.21.11, change region to region name instead make it multiple support also. Add max player placeholder to show on hologram, hide enchantment on key.

Kodari AI
KodariFeb 19 at 12:10 pm 21,809 (v2)

I’ll read all the project files to understand the current implementation and make the necessary changes.

I’ll analyze the code and implement the required changes:

Plan:

  • Update API version to 1.21 and dependencies

  • Change region system from coordinates to WorldGuard region names (support multiple)

  • Add max_player placeholder for holograms

  • Hide enchantments on dungeon keys using XItemFlag

Updated PenDungeon to 1.21.11 with multiple WorldGuard region support, added %dungeon_max_player% placeholder, and hidden enchantments on keys using XItemFlag.

mpeyboun_83492

Remake need only one player had key to join and teleport other player don't key to join if the max player is more than 1. And make all mobs is not drop items when die. Add message when player lose on any round.

Kodari AI
KodariFeb 21 at 2:07 pm 12,641 (v2)

I’ll read the relevant files to understand the current implementation and make the necessary changes.

I’ll read the PlayerMoveListener to understand how players can lose/fail.

Now I’ll make the necessary changes:

  1. Modify key requirement - only first player needs key if max players > 1

  2. Clear mob drops for dungeon mobs

  3. Add chat message when players lose

Changes implemented:

  1. Key requirement modified - Only the first player needs a key to create/join the session. If max players > 1, other players can join without keys. Only one key is consumed when the dungeon starts.

  2. Mob drops disabled - All dungeon mobs now drop no items or experience when killed.

  3. Lose message added - Players now receive a chat message showing which round they lost on, in addition to the title/subtitle.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
26 2,237
src/main/java/com/kunthean/pendungeon/PenDungeon.java
package com.kunthean.pendungeon;

import com.kunthean.pendungeon.commands.DungeonCommand;
import com.kunthean.pendungeon.listeners.CommandBlockListener;
import com.kunthean.pendungeon.listeners.EntityDeathListener;
import com.kunthean.pendungeon.listeners.PlayerDeathListener;
import com.kunthean.pendungeon.listeners.PlayerMoveListener;
import com.kunthean.pendungeon.listeners.PlayerQuitListener;
import com.kunthean.pendungeon.managers.*;
import com.kunthean.pendungeon.placeholder.DungeonPlaceholder;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class PenDungeon extends JavaPlugin {
    
    private ConfigManager configManager;
    private KeyManager keyManager;
    private RegionManager regionManager;
    private DungeonManager dungeonManager;
    private BossBarManager bossBarManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.keyManager = new KeyManager(this);
        this.regionManager = new RegionManager(this);
        this.dungeonManager = new DungeonManager(this);
        this.bossBarManager = new BossBarManager(this);
        
        this.configManager.loadConfig();
        
        Bukkit.getPluginManager().registerEvents(new PlayerMoveListener(this), this);
        Bukkit.getPluginManager().registerEvents(new EntityDeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerDeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CommandBlockListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerQuitListener(this), this);
        
        DungeonCommand dungeonCommand = new DungeonCommand(this);
        getCommand("dungeon").setExecutor(dungeonCommand);
        getCommand("dungeon").setTabCompleter(dungeonCommand);
        getCommand("pendungeon").setExecutor(dungeonCommand);
        getCommand("pendungeon").setTabCompleter(dungeonCommand);
        
        new com.kunthean.pendungeon.tasks.WaitingAreaTask(this).runTaskTimer(this, 0L, 20L);
        
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
            new DungeonPlaceholder(this).register();
            getLogger().info("PlaceholderAPI hook enabled!");
        }
        
        getLogger().info("PenDungeon has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (this.dungeonManager != null) {
            this.dungeonManager.cleanup();
        }
        if (this.bossBarManager != null) {
            this.bossBarManager.removeAll();
        }
        getLogger().info("PenDungeon has been disabled!");
    }
}