ay_u.k
📎 1 file 6,354 chars
📄
pasted-code-1786634280642.txt
txt 244 lines
▶
Create a Minecraft Paper plugin called WardenLoadingScreen that provides a fully customizable Warden-themed loading/join screen when players join the server.

Main Goal

When a player joins the server, show a custom loading screen similar to the provided reference image, with a dark Deep Dark / Warden theme. It must work for both Java Edition and Bedrock Edition players connected through GeyserMC.

Compatibility

- Paper Minecraft 1.21.6 / 26.2+ compatible
- Java Edition clients
- Bedrock Edition clients through GeyserMC
- Must not require separate plugins for Java and Bedrock
- Support modern Java versions required by Paper 26.2+
- Avoid deprecated or version-specific NMS code wherever possible

Loading Screen Design

Create a loading screen inspired by the reference image:

- Dark Deep Dark background
- Warden-themed atmosphere
- Sculk blocks and vegetation
- Warden particles / soul-like effects where possible
- Large customizable server logo/title
- Centered loading panel
- Animated loading/progress indicator
- Custom loading text such as:
  - "Connecting..."
  - "Loading World..."
  - "Preparing Your Adventure..."
  - "Entering the Deep Dark..."
- Optional animated dots:
  - "Loading."
  - "Loading.."
  - "Loading..."

Java Edition

For Java players, create the loading experience using the best possible modern Paper-compatible method.

The screen should:

1. Appear immediately after the player connects.
2. Display the custom Warden-themed loading interface.
3. Prevent the player from interacting with the world while loading.
4. Hide unnecessary HUD elements if possible.
5. Show the loading/progress state.
6. Automatically disappear when the server finishes preparing the player.
7. Return the player to normal gameplay without requiring a relog.

Bedrock Edition

Because Bedrock players connect through GeyserMC, detect Bedrock players automatically.

Provide a Bedrock-compatible implementation using:

- Geyser-compatible UI/forms/resource-pack functionality where appropriate.
- A custom Bedrock resource pack if required.
- Do NOT show a Java-only INVENTORY GUI that Bedrock players cannot see.
- Make the loading screen visually as similar as possible on both platforms.

Resource Pack

Include support for a custom resource pack:

- Warden/Deep Dark themed background
- Server logo
- Custom loading graphics
- Custom fonts if possible
- Animated loading graphics if supported
- Automatically send the resource pack to players when they join.
- Allow resource-pack URL/hash/configuration in "config.yml".
- Allow the server owner to disable the resource pack requirement.

Configuration

Create a detailed "config.yml" with options such as:

enabled: true

loading-time:
  minimum: 3
  maximum: 15

messages:
  connecting: "&5Connecting..."
  loading: "&5Loading..."
  preparing: "&5Entering the Deep Dark..."
  complete: "&aWelcome!"

animation:
  enabled: true
  interval: 5

warden-theme:
  enabled: true
  particles: true
  sounds: true

resource-pack:
  enabled: true
  url: ""
  sha1: ""
  required: false

bedrock:
  enabled: true
  use-form-ui: true

java:
  enabled: true

bypass-permission: "wardenloading.bypass"
reload-permission: "wardenloading.reload"

Commands

Add:

"/wardenloading reload"

Reload all configuration without restarting the server.

"/wardenloading test "

Show the loading screen to a selected player for testing.

"/wardenloading enable"

Enable the loading screen.

"/wardenloading disable"

Disable the loading screen.

Permissions

Add:

- "wardenloading.admin"
- "wardenloading.reload"
- "wardenloading.test"
- "wardenloading.bypass"

Performance

The plugin must be extremely lightweight:

- No constant heavy tasks.
- Do not repeatedly load/unload chunks.
- Do not create unnecessary entities.
- Avoid NMS unless absolutely required.
- Properly cancel tasks when players disconnect.
- Support multiple players joining simultaneously.
- Do not cause TPS drops or noticeable lag.

Important Join Handling

The plugin must correctly handle:

- Java player joining
- Bedrock player joining
- Player reconnecting
- Player disconnecting during loading
- Server restart
- Resource-pack acceptance/rejection
- Slow Bedrock connections
- Multiple players joining simultaneously

Never permanently trap a player on the loading screen.

If a resource pack fails or times out, provide a configurable fallback so the player can still enter the server.

Warden Effects

Add optional atmospheric effects:

- Sculk particles
- Warden heartbeat-like sound
- Deep Dark ambience
- Darkness effect only if appropriate
- Subtle screen effects
- No effects that interfere with normal gameplay after loading.

All effects must be configurable.

Customization

Make the following configurable:

- Server name
- Logo
- Background
- Loading text
- Text colors
- Animation speed
- Loading duration
- Sounds
- Particles
- Resource pack
- Java UI
- Bedrock UI
- Whether the player can move during loading
- Whether commands are blocked during loading

API / Hooks

Provide events/API hooks such as:

"LoadingScreenStartEvent"

"LoadingScreenCompleteEvent"

Other plugins should be able to detect when a player's loading screen starts and finishes.

Project Structure

Generate a complete buildable Maven/Gradle project containing:

- "plugin.yml"
- Java source code
- "config.yml"
- Required resource-pack files/placeholders
- README
- Proper dependency configuration
- No missing classes
- No pseudocode
- No TODO placeholders for required functionality

Build the final plugin as:

WardenLoadingScreen-1.0.0.jar

Before building, verify that the plugin compiles successfully and that all dependencies are correctly declared.

Critical Requirement

Do NOT simply create a normal Minecraft title/action-bar message and call it a loading screen.

The result should provide the closest practical implementation to the reference Warden-themed loading screen, while maintaining compatibility with both Java and Bedrock/Geyser players.

If a true client-side loading screen is technically impossible through a normal Paper plugin alone, implement the closest reliable solution using Paper + Geyser-compatible UI/resource-pack functionality, clearly separating Java and Bedrock handling internally.

Use the uploaded reference image as the visual design inspiration for the Warden-themed loading screen.
Kodari AI
KodariAug 13 at 3:20 pm 2
WardenLoadingScreen
A Paper 1.21.6 plugin that displays a customizable Warden-themed loading screen to players upon joining, supporting both Java and Bedrock clients via Geyser. Uses a resource-pack-driven overlay with dark Deep Dark aesthetics, animated progress indicators, configurable Warden particles and sounds, plus a configurable minimum loading duration. Provides separate Java HUD-based and Bedrock form-based implementations, commands for reload/test/enable/disable, permissions, and API events for start/complete hooks. Features configurable messages, animation speed, resource-pack URL/hash, bypass permission, and fallback handling to prevent permanently trapping players. Lightweight task scheduling, proper disconnect cleanup, and multi-player concurrency support.
  1. Create the Gradle project and Paper plugin metadata for Java 21 / Paper 1.21.6.

  2. Implement the join-session manager with Java and Geyser/Floodgate-aware Bedrock paths, resource-pack fallback, effects, cleanup, and hooks.

  3. Add the interactive Java loading panel, commands, permissions, configuration, README, and resource-pack placeholders.

Implemented the complete WardenLoadingScreen Paper plugin project.

Included:

  • Gradle Java 21 project targeting Paper 1.21.6

  • Warden-themed Java loading inventory with animated progress

  • Bedrock-safe Geyser/Floodgate detection without opening Java-only GUIs

  • Boss bars, titles, action bars, particles, sounds, and optional darkness

  • Resource-pack URL, SHA-1, prompt, required/fallback configuration

  • Join, reconnect, disconnect, timeout, and resource-pack failure handling

  • Movement, interaction, damage, inventory, and command blocking

  • /wardenloading reload

  • /wardenloading test <player>

  • /wardenloading enable

  • /wardenloading disable

  • Configurable permissions

  • LoadingScreenStartEvent

  • LoadingScreenCompleteEvent

  • Resource-pack placeholder structure

  • README with installation and platform behavior documentation

  • Output jar name: WardenLoadingScreen-1.0.0.jar

I did not run a build command because the project environment does not provide build tools.

Kodari can make mistakes. Review important code before using.
Files
resource-pack
src
build.gradle
README.md
settings.gradle
Code
14 937
src/main/java/com/kodari/wardenloading/WardenLoadingScreen.java
package com.kodari.wardenloading;

import com.kodari.wardenloading.command.WardenCommand;
import com.kodari.wardenloading.loading.LoadingManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class WardenLoadingScreen extends JavaPlugin {
    private LoadingManager loadingManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        loadingManager = new LoadingManager(this);
        Bukkit.getPluginManager().registerEvents(loadingManager, this);

        WardenCommand command = new WardenCommand(this);
        if (getCommand("wardenloading") != null) {
            getCommand("wardenloading").setExecutor(command);
            getCommand("wardenloading").setTabCompleter(command);
        }
    }

    @Override
    public void onDisable() {
        if (loadingManager != null) {
            loadingManager.cancelAll();
        }
    }

    public LoadingManager getLoadingManager() {
        return loadingManager;
    }
}