Description
Emerald: Simple Economy
A lightweight economy library developed for Minecraft Bedrock addons, allowing different projects to share a single economy system.
Emerald provides a simple and accessible API for developers to integrate economy features into their addons.
✨ Features
- Shared economy across multiple addons.
- Player balance management.
- Deposits, withdrawals and transfers.
- Offline player account support.
- Persistent storage using Dynamic Properties.
- Scoreboard integration.
- Transaction history.
- Addon communication through Script Events.
API
Emerald provides the following methods:
- "getBalance(target)"
- "has(target, amount)"
- "deposit(target, amount)"
- "withdraw(target, amount)"
- "transfer(from, to, amount)"
- "isAvailable()"
📦 Installation
1. Import the Emerald Behavior Pack.
2. Enable the Beta APIs experiment.
3. Copy "EmeraldBridge.js" into your addon's directory.
4. Import the library and start using its methods.
Administrative Commands
- "/emerald:info" — Displays library information and statistics.
- "/emerald:reload" — Reloads Emerald's internal state.
Requirements
- Minecraft Bedrock Edition.
- "@minecraft/server" Beta module.
- Beta APIs experiment enabled.
License
Distributed under the MIT License.
Developer: asinxyz
