economymod 图标

economymod

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.1.0-beat.2
本资源为搬运资源,原资源地址: https://modrinth.com/mod/economymod
资源信息

Minecraft 版本: 1.21.1

平台: neoforge

标签: economy

资源介绍

EconomyMod

Overview

EconomyMod is a NeoForge-based Minecraft mod designed to introduce a lightweight in-game economy system, using emeralds as the primary currency. It enables players to manage virtual balances through intuitive commands, with persistent data storage to maintain progress across server restarts or player sessions. The mod is compatible with Minecraft 1.21.1 and integrates seamlessly with NeoForge's modding ecosystem.

Core Features

1. Currency & Balance Management

  • Emeralds as Currency: Uses Minecraft's vanilla emeralds (Items.EMERALD) as the base currency, bridging in-game items with virtual balances.
  • Virtual Balance: Players can store emeralds in a persistent virtual balance, separate from their inventory, to avoid inventory clutter.

2. In-Game Commands

All interactions with the economy system are handled via chat commands:

Command Syntax Description
Deposit /deposit <amount> Converts <amount> emeralds from the player’s inventory to virtual balance. Fails if the player has insufficient emeralds.
Withdraw /withdraw <amount> Converts <amount> emeralds from virtual balance to the player’s inventory. Fails if balance is insufficient or inventory is full.
Check Balance /balance Shows the player’s current virtual balance.
Check Others’ Balance /balance <player> (Admin-only, requires permission level 2) Shows the virtual balance of a specified player.
Transfer /pay <target> <amount> Transfers <amount> emeralds from the sender’s virtual balance to the target player’s balance. Fails if the sender’s balance is insufficient.
Settings /setbalance <player> <amount> command to set a player's emerald amount (admin)

3. Persistent Data Storage

  • Player balances are saved locally in the economy_data/ directory (created automatically) as .dat files, using Minecraft’s NBT (Named Binary Tag) format for reliable serialization.
  • Data is loaded when a player logs in and saved when they log out, ensuring balances persist across server restarts or player sessions.
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
ParticleLib

价格:0 墨喵币
下载量:0

查看详情
Enor Pearl

价格:0 墨喵币
下载量:0

查看详情
JourneyMap

价格:0 墨喵币
下载量:0

查看详情
Energetic Industries: Adventure and Innovation

价格:0 墨喵币
下载量:0

查看详情