shusssJP

Develop a painting plugin that allows players to decorate walls and floors using 30 unique paint items, each represented by custom sprites. Include a user-friendly INVENTORY GUI for selecting paint colors, the ability to apply different textures to surfaces, and a permission system for managing who can use the painting features.

Kodari AI
KodariJan 20 at 12:02 am 13,215 (v2)

I’ll create a comprehensive painting plugin with a GUI-based paint selection system and surface decoration mechanics.

SurfacePainter
A comprehensive painting plugin that allows players to decorate walls and floors using 30 unique paint items with custom sprites. Features an intuitive inventory GUI for paint selection, multiple texture options for different surfaces, and a granular permission system. Players can apply paint to blocks by right-clicking, preview colors in an organized menu, and customize their builds with vibrant decorative options.

SurfacePainter Plugin Created Successfully!

This comprehensive painting plugin includes:

✅ 30 Unique Paint Colors - White, Gray, Black, all rainbow colors, metallics (Gold, Silver, Bronze), gems (Ruby, Sapphire, Emerald), neon variants, and special Rainbow/Transparent paints

✅ Custom Sprite Support - Each paint uses CustomModelData (1001-1030) for resource pack integration

✅ Interactive GUI System - Beautiful 54-slot paint selection menu with:

  • Color-coded paint items

  • Permission-based locks (shows barrier for locked paints)

  • Info panel explaining usage

  • Click-to-receive mechanics (64 items per click)

✅ Surface Painting Mechanics - Right-click walls/floors to apply paint with:

  • Distance checks (configurable)

  • Surface validation

  • Paint consumption system

  • Repainting toggle

  • Persistent data storage for painted blocks

✅ Granular Permission System:

  • surfacepainter.use - Use paint items

  • surfacepainter.gui - Open paint GUI

  • surfacepainter.command - Admin commands

  • surfacepainter.paint.* - Per-color permissions

  • surfacepainter.unlimited - Infinite paint

✅ Commands:

  • /paint - Open GUI

  • /paint gui - Open GUI

  • /paint <color> - Get specific paint

  • /paint give <player> <color> [amount] - Give paint to others

  • /paint reload - Reload configuration

✅ Configurable Settings - Toggle paint consumption, repainting, permission requirements, and paint distance

Note: This plugin uses CustomModelData for paint items. You’ll need a resource pack with custom models for the 30 paint types (CMD 1001-1030) to see visual differences!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
15 1,058
src/main/java/com/surfacepainter/SurfacePainter.java
package com.surfacepainter;

import com.surfacepainter.command.PaintCommand;
import com.surfacepainter.inventory.gui.GUIListener;
import com.surfacepainter.inventory.gui.GUIManager;
import com.surfacepainter.listener.PaintListener;
import com.surfacepainter.manager.ConfigManager;
import com.surfacepainter.manager.PaintManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SurfacePainter extends JavaPlugin {
    private ConfigManager configManager;
    private PaintManager paintManager;
    private GUIManager guiManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.paintManager = new PaintManager(this);
        this.guiManager = new GUIManager();
        
        registerCommands();
        registerListeners();
        
        getLogger().info("SurfacePainter has been enabled!");
        getLogger().info("Loaded " + paintManager.getPaintCount() + " paint colors.");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("SurfacePainter has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("paint").setExecutor(new PaintCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new PaintListener(this), this);
    }
    
    public void reload() {
        configManager.reload();
        paintManager.reload();
    }
}