Coder-soft

Develop a Minecraft plugin that modifies the blaze rod to serve as a special item that, when left-clicked on a chest, fills it with of stacks of bone blocks to fill it up(or any specified storage block). The plugin should display custom messages to inform the player how many stacks are being added, with options for permissions, block type selection, and configurable stack sizes through a simple command interface.

Kodari AI
KodariJun 17 at 4:03 am 10

I’ll create a chest-filling wand plugin using a blaze rod as the special item.

ChestFiller
A plugin that transforms the blaze rod into a magical chest-filling wand. Left-click any chest to instantly fill it with stacks of configurable blocks. Features include customizable block types, adjustable stack sizes, permission-based access control, and in-game configuration commands. Perfect for quickly stocking storage systems or automating inventory management.

Plugin complete! ChestFiller is ready.

Features:

  • Left-click any chest/container with a blaze rod to fill it

  • Configurable fill material (default: BONE_BLOCK)

  • Adjustable stack sizes (1-64)

  • Permission-based access (chestfiller.use and chestfiller.admin)

  • Commands: /chestfiller material <type>, /chestfiller stacksize <1-64>, /chestfiller reload

  • Custom messages with color support

  • Works with chests, barrels, shulker boxes, and all containers

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
7 375
src/main/java/com/chestfiller/ChestFillerPlugin.java
package com.chestfiller;

import com.chestfiller.commands.ChestFillerCommand;
import com.chestfiller.config.ConfigManager;
import com.chestfiller.listeners.ChestFillListener;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class ChestFillerPlugin extends JavaPlugin {
    
    @Getter
    private ConfigManager configManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        
        Bukkit.getPluginManager().registerEvents(new ChestFillListener(this), this);
        
        getCommand("chestfiller").setExecutor(new ChestFillerCommand(this));
        
        getLogger().info("ChestFiller has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("ChestFiller has been disabled!");
    }
}