Bernard

Create a hard case for Bedrock—the kind used at concerts and events.

Kodari AI
KodariSep 12 at 4:50 pm 1
HardCaseVault
HardCaseVault is a Minecraft Bedrock plugin that introduces durable, high-security storage crates inspired by concert and event equipment cases. Players can craft reinforced hard cases using iron plates and leather straps, offering superior protection against theft and explosion damage compared to standard chests. Each case features a customizable locking mechanism with a 4-digit PIN code, preventing unauthorized access. Cases can be placed on any surface and support up to 64 inventory slots. The plugin includes a visual indicator system showing lock status, and supports multi-player permissions for shared access. Additional features include a tamper-alert system that notifies the owner when someone attempts to break in, and a quick-unlock animation for authorized users. Hard cases are resistant to fire, explosions, and forced entry attempts, making them ideal for storing valuable items in high-traffic or PvP-enabled servers.

Created a complete Paper plugin for a rugged Bedrock Hard Case:

  • /bedrockcase gives the player a unique hard case.

  • /bedrockcase give <player> [amount] distributes cases.

  • Right-clicking a case opens its 27-slot storage inventory.

  • Each case has a unique persistent ID.

  • Contents persist to config.yml.

  • Added permissions, tab completion, and shutdown-safe saving.

  • Uses XSeries for material compatibility.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
9 390
src/main/java/com/kodari/bedrockcase/BedrockHardCasePlugin.java
package com.kodari.bedrockcase;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.Objects;

public final class BedrockHardCasePlugin extends JavaPlugin {
    private CaseManager caseManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.caseManager = new CaseManager(this);
        getServer().getPluginManager().registerEvents(new CaseListener(caseManager), this);

        PluginCommand command = Objects.requireNonNull(getCommand("bedrockcase"));
        CaseCommand caseCommand = new CaseCommand(this, caseManager);
        command.setExecutor(caseCommand);
        command.setTabCompleter(caseCommand);
    }

    @Override
    public void onDisable() {
        if (caseManager != null) {
            caseManager.shutdown();
        }
    }
}