本模组仅适用于服务端,实现了一个经济系统,为所有物品分配动态价格,并通过服务器市场供玩家进行买卖。在此基础之上,该模组提供了多种辅助机制,旨在促进玩家互动、竞争和资源流通。
请加入 Discord 以联系我,咨询任何问题或报告故障。
-
自动交易 – 红石工匠方块(Crafter Block)新增了额外功能,允许玩家从市场中自动买卖物品。这使得玩家能够创建工厂,自动购买原材料、制作产品并出售!
-
欢乐时光系统 – 默认情况下,每天下午 5 点至晚上 10 点会触发此每日活动,提供_每日市场_以及在此期间生效的光环加成奖励。此举旨在鼓励玩家在相同时间段上线游戏。
-
光环系统 – AURA(光环)是本模组内的一种额外资源,与游戏时长直接挂钩。在欢乐时光期间,玩家获得光环的速度显著加快。光环可以兑换经验值或现金,但最酷的功能是_光环特效_。这些可购买的粒子特效用于展示玩家的财富和游戏时长。强度会根据玩家当前的_AURA_余额相对于其他在线玩家的比例动态调整。
-
供应合约 – 这是一类合约,允许玩家以固定价格出售一定数量的物品,无论该物品当前市场价格如何。这能在玩家生产产品时提供保护,即使物品价格发生变化也能保证利润。
-
贡献事件 – 这是一种兼具竞争与合作性质的活动,玩家需要贡献一定数量的物品以达到目标。达成目标后,贡献量_最多_的前 3 名玩家将获得物品奖励。任何参与贡献的玩家都将获得现金参与奖。在默认日程下,该事件于周一自动生成,周五公布,并于周日早晨开始。
-
死亡赌注 – 一个轻松幽默的系统,玩家可以对即将到来的玩家死亡事件进行投注以增加娱乐性。
-
税收机制 – 此税收系统是一种每日税制,要求拥有相对较高现金数额的玩家支出金钱,而不一定是永久失去金钱。玩家需要满足一定的支出配额,而非被强制扣除资金。通过要求玩家支出金钱,可以促进财富流通并刺激经济。富裕玩家可能通过购买大量原木来满足其配额,然后将其加工成成品,或者等到价格更有利时再出售。
=========================================================================
总体而言,本模组面向小型服务器设计,主要目标是鼓励玩家增加游戏时间并帮助防止服务器死寂。它为玩家在相近时间游玩、协作以及自动化农场提供了理由。
所有辅助系统默认启用,但可在游戏内及 Craftanomics 配置文件中轻松禁用。许多其他设置以及事件调度均可在配置文件中找到。
技术细节:
- 本模组的所有命令均位于 "/econ" 之下
- 玩家现金余额和 Aura 存储在 Minecraft 的 PlayerData 下的 "Craftanomics" 中,因此若要修改离线玩家的余额,目前这是唯一方法。
- 几乎所有其他数据均可在模组的 "economy_data.json" 中轻松编辑
- 所有物品价格均可在 "econ_items.json" 中轻松编辑,或通过游戏内命令 /econ admin editItems 进行修改
- 物品目前分为三种市场模型:Normal(普通) | Linked(关联) | Static(静态)
- Normal 市场模型是一种非常基础的动态价格模型,具有锚定价格、供给因素和需求因素,共同控制实际购买价格。
- Linked 市场模型允许物品将自己与另一种物品关联。例如,金块的价格始终是一块金锭的 9 倍,出售一个金块对供给和价格的影响与出售 9 个金锭相同。
- Static 市场模型允许你设置不变的买入和卖出价格。如果你想设置货币物品,请使用此模型。
未来计划
- 我打算将大多数辅助系统拆分为独立的模组,首先是从光环特效系统开始。
- 在光环特效系统中,我计划支持管理员在游戏内创建特效,以及允许玩家在严格限制下自行制作自己的“传说级”特效。
- 我将自学数据包,目标是开放/暴露市场模型,以便服务器所有者可以为物品创建自定义的市场模型来控制其定价。
- 目前尚不支持固定的货币物品,但我可能会添加对通过配置文件定义的物品执行 /deposit(存入)/withdraw(取出)的支持。(如果有人请求,我会添加此功能)
最后说明:
我是 Jack,这是我的第一个模组,所以请发送改进建议。这是一个我用来学习 Java 的项目,我非常享受这个过程。我的朋友 Merky 是共同作者,为本项目本身以及我对 Java 和 Minecraft 模组开发环境的学习做出了重大贡献。非常感谢他对我及其 spaghetti 代码的耐心。
This server side only mod implements an economy system that assigns dynamic prices to every item and provides a server market through which players can buy and sell. Around this foundation, the mod offers several supplementary mechanics designed to encourage engagement, competition, and resource circulation.
PLEASE join the discord to contact me and ask any questions or report issues
-
Automated Trading – The redstone Crafter Block has had addtional functionality added to allow players to automatically buy and sell items from the market. This give players the ability to create factories that buy raw ingredients, craft a product, and sell it all automatically!
-
Happy Hour System – By default, from 5pm - 10pm, this daily event offers a Daily Market as well as an aura boost bonus during that time window. This is to help encourage players to play during the same time.
-
Aura System – AURA is an additional resource within this mod that is tied directly to play time. During happy hour, players gain it at a substaionally faster rate. Aura can be traded for exp or cash, but the coolest feature are the Aura Effects. These are purchasable particle effects to show off both player wealth and play time. The intensity of the effect dynamically scales itself relative to a player's AURA balance compared to other players online.
-
Supply Contracts – These are contracts that allow a player to sell a certain amount of an item at a fixed price regardless of that item's current market price. This protects the player while they produce a product, gauranteeing a profit even if the item price changes.
-
Contribution Events – This is a competitive yet cooperative event in which players must contribute a certain amount of items to hit the goal. Upon achieving the goal, the top 3 players who contributed the most will recieve item rewards. Any players who contributed will recieve a participation cash prize. On the default schedule, it is auto generated on Monday, announced on Friday, and starts in the morning on Sunday.
-
Death Betting – A lighthearted system where players can wager on upcoming player deaths for entertainment value.
-
Taxation Mechanic – This taxation system is a daily tax requiring players with relatively high cash amounts to spend money, not neccessarily get rid of it. There is a spend quota they must meet, not a hard tax that takes away their money. By requiring a player to spend money, it circulates wealth and stimulates the economy. A wealthy player might hit their quota by purchasing a bunch of LOGS so that they can then turn them into finished products, or perhaps sell at a later date when the price is more favorable.
=========================================================================
Overall, this mod is aimed at smaller servers with its main goal to encourage play time and help prevent dead servers. It gives a reason for players to play around the same time, work together, and automate farms.
All complementary systems are enabled by default but are easily disablable in game and in the craftanomics config file. Many other settings as well as event scheduling can all be found in the config.
Technical Tid-Bits:
- All commands for this mod are under "/econ"
- Player Cash Balance and Aura are stored in minecrafts PlayerData under "Craftanomics" so to modify a players balance while offline, that is currently the only way.
- Nearly all other data is easily editable inside the mods "economy_data.json"
- All item prices are easily editable inside the "econ_items.json" or in game using commands /econ admin editItems
- Items currently fall under 3 market models: Normal | Linked | Static
- The Normal market model is a very basic dynamic price model that has an anchor price, a supply factor, and a demand factor that control the actual purchase price.
- The Linked market model allows items to link themselves to another item. For example, Gold Blocks are always 9x the price of a Gold Ingot, and selling a Gold Block will affect the supply and pricing the same way that selling 9 Gold Ingots would.
- The Static market model simply allows you to set an unchanging buy and sell price. If you would like to set up a currency item, you would use this.
Future Plans
- I aim to break out most of the complementary systems into their own standalone mods starting with the Aura Effect System.
- Within the aura effect system, I aim to support in game effect creation by admins, as well as "legendary" effects that allow players themselves to make their own effects under strict constraints.
- Will teach my self data packs with the goal of opening / exposing the market models to allow server owners to create their own market model for an item that controls its pricing.
- A set currency item is not yet supported, but I may add support to /depost /withdraw a config defined item. (Ill add this if its requested)
Final note:
I'm Jack and this is my first mod so please send suggestions for improvement. It was a project I took under so that I could teach myself Java and I quite enjoyed it. My friend Merky is the co-author and has contributed significantly to the project itself and to my learning of Java and the minecraft modding environment. So big props to him for his patience with me and my spaghetti coding.
评论 0
登录后参与评分
还没有评论,来抢沙发吧