Skip to content

Repository files navigation

BotInventory Carpet

Fabric Carpet addon that lets players view and manage fake player inventories and ender chests via right‑click or commands.

Minecraft Fabric Java License


What is it?

A Carpet extension that allows server operators and players to view and interact with fake player (bot) inventories. Right‑click a fake player to open their inventory, or use /player <name> view inventory|enderchest. Everything is gated by three Carpet rules.

Features

  • Right‑click to open: Right‑click any fake player (spawned with carpet's /player) to instantly open their inventory — works only on fake players, never on real players.
  • Command access: /player <name> view inventory and /player <name> view enderchest for on‑demand access.

Requirements

Installation

  1. Clone the repository:

    git clone https://github.com/froyln/BotInventory-carpet.git
    cd BotInventory-carpet
  2. Build the mod:

    ./gradlew build
  3. Copy the generated .jar file from build/libs/ to your server's mods folder:

    cp build/libs/botinventory-carpet-*.jar /path/to/server/mods/

Configuration

All configuration is done via Carpet rules. Run /carpet setDefault <rule> <value> or per‑world with /carpet <rule> <value>.

Rule Default Description
viewFakePlayerInventoryRightClick false Allow right‑click on fake players to open inventory
viewPlayerInventoryCommand false Allow /player <name> view inventory
viewPlayerEnderchestCommand false Allow /player <name> view enderchest

Permission values: true (everyone), false (nobody), ops (permission level 2+), or 04 (numeric threshold).

Example:

/carpet viewFakePlayerInventoryRightClick ops
/carpet viewPlayerInventoryCommand true

Dependencies

Building from Source

Requires:

  • Gradle 8.x or higher (automatically downloaded via gradlew)
  • Java 21 or higher

Build command:

./gradlew clean build

Generated artifact: build/libs/botinventory-carpet-*.jar

License

MIT © froyln

About

Fabric Carpet addon that lets players view and manage fake player inventories and ender chests via right‑click or commands.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages