jadesungthesuccubus

CREATE ME A EXTENSION FOR WALLPAPER ENGINE

Kodari AI
KodariApr 17 at 3:31 pm 17,844 (v2)

I’ll create a Minecraft plugin inspired by Wallpaper Engine — animated particle-based visual displays, scenic backgrounds, and dynamic ambient effects that players can set and customize in their world.

WallpaperEngine
A Minecraft plugin inspired by Wallpaper Engine that brings animated visual displays to the game. Players can set personal animated "wallpapers" — dynamic particle scenes (aurora, matrix rain, galaxy, fireflies, ocean waves, etc.) that play around them or at fixed locations. Supports per-player wallpaper preferences, location-based scene anchors, custom particle colors, playback speed control, and toggle commands. Admins can create and share wallpaper presets via config.

Let me plan all classes before writing:

  • WallpaperEngine — main plugin, holds all managers

  • WallpaperManager — handles active wallpaper playback per player/location, tick scheduler

  • PresetManager — loads wallpaper presets from config

  • PlayerDataManager — stores per-player preferences (selected wallpaper, color, speed, enabled)

  • WallpaperCommand — /wallpaper command + tab completion

  • PlayerListener — join/quit events

  • WallpaperPreset — data class for a preset (name, type, particles, colors, etc.)

  • PlayerData — data class for player prefs

  • scenes/ — AuroraScene, MatrixScene, GalaxyScene, FirefliesScene, OceanScene, NoneScene all implementing WallpaperScene

  • WallpaperScene — interface with tick(player, step, data)

  • GUIManager — wallpaper selection GUI

  • ColorUtil — hex/RGB particle color helper

New project — creating all files from scratch.


Done! Here’s what was built:

  • 8 animated wallpaper scenes — Aurora, Matrix Rain, Galaxy, Fireflies, Ocean Waves, Sakura Blossoms, Inferno, and Snowfall — all using Particle.DUST with custom DustOptions for full color control

  • /wallpaper command with open, set, toggle, stop, speed, color, list, anchor, and reload subcommands (alias /wp)

  • GUI selector that shows all presets as clickable stained glass items

  • Per-player preferences (selected wallpaper, on/off toggle, playback speed, custom hex color) saved to playerdata.yml

  • Location anchors — admins can place wallpaper animations at fixed world positions visible to nearby players

  • Config-driven presets — all 8 scenes are fully configurable in config.yml (colors, radius, speed, density, etc.)

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
24 1,395
src/main/java/com/ritcat14/wallpaperengine/WallpaperEngine.java
package com.ritcat14.wallpaperengine;

import com.ritcat14.wallpaperengine.commands.WallpaperCommand;
import com.ritcat14.wallpaperengine.listeners.PlayerListener;
import com.ritcat14.wallpaperengine.managers.GUIManager;
import com.ritcat14.wallpaperengine.managers.PlayerDataManager;
import com.ritcat14.wallpaperengine.managers.PresetManager;
import com.ritcat14.wallpaperengine.managers.WallpaperManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public class WallpaperEngine extends JavaPlugin {

    @Getter private static WallpaperEngine instance;

    @Getter private PresetManager presetManager;
    @Getter private PlayerDataManager playerDataManager;
    @Getter private WallpaperManager wallpaperManager;
    @Getter private GUIManager guiManager;

    @Override
    public void onEnable() {
        instance = this;
        saveDefaultConfig();

        this.presetManager = new PresetManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.wallpaperManager = new WallpaperManager(this);
        this.guiManager = new GUIManager(this);

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

        WallpaperCommand cmd = new WallpaperCommand(this);
        getCommand("wallpaper").setExecutor(cmd);
        getCommand("wallpaper").setTabCompleter(cmd);

        getLogger().info("WallpaperEngine enabled!");
    }

    @Override
    public void onDisable() {
        if (wallpaperManager != null) wallpaperManager.shutdown();
        if (playerDataManager != null) playerDataManager.saveAll();
        getLogger().info("WallpaperEngine disabled.");
    }

    public String msg(String key) {
        String prefix = getConfig().getString("messages.prefix", "&8[&bWallpaper&8] ");
        String raw = getConfig().getString("messages." + key, "&cMissing message: " + key);
        return colorize(prefix + raw);
    }

    public String msgRaw(String key) {
        return colorize(getConfig().getString("messages." + key, "&cMissing message: " + key));
    }

    public String colorize(String s) {
        return s.replace("&", "\u00a7");
    }
}