跳到正文

Mercantile

作者:3xpl01t

Adds a simple currency system with optional Create 6+ integration

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Title

mc-versions

&nbsp

forge

&nbsp

fabric

🪙 Mercantile

This mod adds a simple currency to Minecraft: copper, silver and gold coins (configurable).
While holding a coin and right-clicking, its value will be stored in your “purse”.
You can get the coins back by clicking the respective buttons in your inventory.

There is no way to get the items (currently), apart from creative mode or commands.
This means, you’ll have to come up with your own economy system for your server. \
Some ideas:

  • Admin shops, exchanging goods (e.g. Wheat) for coins
  • Add coins to chest loot tables using KubeJS + LootJS (this works best with the Lootr mod, so everyone has a chance to loot coins)
  • Coins as quest rewards (using something like FTB Quests)

Create Shopkeeper Integration

If you have Create 6+ installed, this mod will enable you to pay super easily with your stored coins at shopkeepers!
Any coins you have in your inventory will be stored before the purchase. \
Here is how such an interaction might look like ingame:

Create Shopkeeper Integration

Adding your own coins

The mod provides standard textures and item models for copper, silver and gold coins (with different textures depending on the item stack size). \
(I am no artist, so I used existing textures from the Thermal Series mods made by Team CoFH.)

If you add any other coins you need to also provide a resource pack with corresponding textures and item models for these items.
You may also want to add the #mercantile:coin tag to any new coins using a datapack or something like KubeJS.

Example

If you want to add a platinum coin, you first need to declare it and its value in the config/mercantile-common.properties config file.
You can do this by adding this line to the file:

platinum = 10000

Note: The coin definitions in this file need to be the same on client and server.

This creates a mercantile:platinum_coin item with a value of 10,000.

Now you need to provide a resource pack with the corresponding textures and item models. \
An example for such a resource pack is provided for this specific example in the GitHub repository.

Tips for modpacks

  • Include a way to get coins
  • If you use the default textures and have Thermal Series mods installed, you may want to remove the recipes for Thermal’s own coins using something like KubeJS:
  ServerEvents.recipes(event => {
    event.remove({ input: /^thermal:.+_coin$/ });
    event.remove({ output: /^thermal:.+_coin$/ });
    event.remove({ id: /^thermal:machines\/press\/press_.+_to_coin$/ });
  });

常见问题

Mercantile 支持哪些 Minecraft 版本?

Mercantile 支持 Minecraft Java 版 1.20.1,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Mercantile 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

3xpl01t 的其他作品

查看全部 →