Item credits
A Fabric (Minecraft) mod that adds a credit mechanic — chests with a deadline and in-game consequences for overdue payments.
What it is
A player creates a "credit" chest with the /credit command. The chest appears in front of the player and becomes an active credit with a 24-hour deadline. To close the credit, the player must put an item into the chest and take it back, leaving at least 4 items — 3 of them are deducted as "interest". If the credit is not closed in time or the chest is broken — 11 withers spawn above the player, and a threatening message appears in chat.
Features
/creditcommand — creates a credit chest in front of the player.- 24-hour deadline — the credit is tracked automatically; when the deadline expires, punishment triggers.
- Closing a credit — on interacting with the chest: if it contains the required item in an amount ≥ 4, 3 items are deducted and the credit is closed.
- Integrity check — if the chest is broken or removed, the credit is considered overdue.
- Punishment — spawns 11 withers above the player and sends a system message.
- Auto-cleanup — withers are removed if the player is dead or has left the server.
Installation
- Install Fabric Loader and Fabric API.
- Place the
.jarof the mod into themodsfolder. - Launch the game/server.
Usage
/credit
Creates a credit chest in front of the player. Then — put an item into the chest and close it, leaving the required amount to pay off the credit. If you fail — that's on you.