Mogrul Economy

模组

· 作者 mogrul.py

一款简单的服务器端经济模组,包含交易、商店和生物奖励!

0 本站下载 0 关注 更新于 1 年前

最新 0.4.1-1.21.1 · 1.21.1 · NeoForge

一键开服(送7天)

描述

一个简单且服务端可配置的经济系统模组,包含怪物击杀奖励、交易和赏金功能,专为无法使用插件的公共/私有 Forge 服务器设计。本项目正是出于这一原因而开发:在 (Forge 0.1-1.20.1) 和 (NeoForge 0.3-1.21.1) 版本中,缺乏高质量的独立经济类模组,且这些版本通常不具备此类组件。

我有一个蒸汽朋克/柴油朋克背景的故事模式多人游戏服务器!

你可以通过以下 Discord 链接申请加入:Discord

指令

货币组件:

模组的核心组件,允许玩家查看自己的货币余额、查看其他玩家的货币余额以及向其他玩家发送货币——拥有 OP(管理员)权限的玩家还可以设置或移除玩家的货币余额。

普通成员指令(等级 0):

  • /currency - 显示执行该指令玩家的货币余额。
  • /currency <target> - 显示目标玩家的货币余额。
  • /currency send <target> <amount> - 向指定玩家发送货币。

Sending Currency Example

OP 指令(等级 4):

  • /currency remove <target> <amount> - 从指定玩家处移除一定数量的货币。
  • /currency set <target> <amount> - 将指定玩家的货币余额设置为特定数量。

交易组件:

模组的次要组件,允许玩家手持物品与其他玩家发起交易。接受、拒绝和取消交易均在聊天窗口中进行,这样玩家无需输入简短指令即可取消交易。

普通成员指令(等级 0):

  • /trade <amount> <target> <price> - 手持物品与指定玩家发起交易。

Trade request sent example trade request example

怪物奖励组件:

模组的次要组件,允许玩家在击杀怪物后获得奖励——OP 可以为特定怪物设置奖励金额,当玩家击杀该类型的怪物时,将获得设定的奖励金额。

OP 指令(等级 4):

  • /mobrewards set <mob> <amount> - 为特定怪物设置奖励金额。
  • /mobrewards remove <mob> - 移除特定怪物的奖励。

赏金组件:

模组的次要组件,允许玩家为其他玩家设置或增加赏金。当被赏金的玩家被其他玩家击杀时,击杀者将获得赏金奖励,且该赏金随即消失。OP 拥有移除玩家赏金的权限。

普通成员指令(等级 0):

  • /bounty add <target> <price> - 为指定玩家设置或增加赏金。

OP 指令(等级 4):

  • /bounty remove <target> - 移除指定玩家的赏金。

商店组件:

模组的次要组件,允许管理员创建商店——玩家右键点击村民即可购买物品!

  • /shops create <entityName> <sellingItem> <amountPerTrade> <pricePerTrade> - 创建一个村民实体用于向玩家出售物品。
  • /shops remove - 移除你当前注视的商店。

Steve - A mighty seller!

配置

本模组的配置文件位于服务器的配置文件夹中,文件名为 "mogruleconomy-common.toml"。你可以在其中设置指令名称、货币名称、符号等,也可以禁用模组的次要组件。

[Currency]
	#Command to use when using the currency component in-game.
	currencyCommandName = "currency"
	#Name to use for singular currency. Example: (Pound)
	currencyNameSingular = "Pound"
	#Name to use for plural currency. Example: (Pounds)
	currencyNamePlural = "Pounds"
	#Symbol to use for the currency.
	currencySymbol = "£"
	#Default starting currency for new players
	# Default: 100
	# Range: > 0
	startingCurrency = 100

[MobRewards]
	#Whether the mob rewards component should be anabled.
	mobRewardsEnabled = true
	#Command to use when using the mob reward component in-game.
	mobRewardsCommandName = "mobreward"

[Trade]
	#Whether the trade component should be enabled.
	tradeEnabled = true
	#Command to use when using the trade component in-game.
	tradeCommandName = "trade"

[Shops]
	#Whether the shop component should be enabled.
	shopsEnabled = true
	#Command to use when using the shops component in-game.
	shopsCommandName = "shops"

数据处理

数据处理已迁移至 .json 文件,消除了依赖关系,并让你能更轻松地编辑它们!

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源