Fabric Carpet addon that lets players view and manage fake player inventories and ender chests via right‑click or commands.
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.
- 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 inventoryand/player <name> view enderchestfor on‑demand access.
- Java 21 or higher
- Minecraft 1.21.11 server with Fabric loader
- Fabric Loader 0.18.6 or higher
- Fabric Carpet 1.21.11-1.4.194 or compatible
-
Clone the repository:
git clone https://github.com/froyln/BotInventory-carpet.git cd BotInventory-carpet -
Build the mod:
./gradlew build
-
Copy the generated
.jarfile frombuild/libs/to your server'smodsfolder:cp build/libs/botinventory-carpet-*.jar /path/to/server/mods/
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 0–4 (numeric threshold).
Example:
/carpet viewFakePlayerInventoryRightClick ops
/carpet viewPlayerInventoryCommand true
- Fabric Loader
- Fabric Carpet
- sgui (bundled — no separate download needed)
Requires:
- Gradle 8.x or higher (automatically downloaded via gradlew)
- Java 21 or higher
Build command:
./gradlew clean buildGenerated artifact: build/libs/botinventory-carpet-*.jar
MIT © froyln