免费插件

Item Cost Calculator

项目成本计算器

根据成分自动计算物品成本

costs物品unmaintained

原作者: · 查看 uMod 官方页面 ↗

插件介绍

根据成分自动计算物品成本

Item Cost Calculator will allow administrators to more accurately price items in their shops (e.g. GUI Shop, Server Rewards).

Requires administrator to use these commands

Note: This plugin does NOT add items to the shops. So you will still need to go in and add items to the applicable shops. (Just copy & paste...)

主要用途

主要用于costs、物品、unmaintained等服务端功能。 本插件由 发布,当前目录记录版本为 v2.0.16,uMod 累计下载 16,625 次。

适用场景

  • 需要调整建造、物品、制作或采集体验的服务器

功能分类

costs物品unmaintained
查看 uMod 官方英文简介

Automatically calculates item costs based on ingredients

指令说明

costfile shop [language] -- Create its cost data file for GUIShop. You need to put it in the config of GUIShop. If you want to use the language option, you must load the RustTranslationAPI plugin. e.g. costfile shop zh-cn

costfile reward [language] -- Create its cost data file for ServerRewards. You need to put it in the reward_data.json of ServerRewards. If you want to use the language option, you must load the RustTranslationAPI plugin. e.g. costfile shop zh-cn

costfile ingredients

Create ingredient lists for items.

Requires administrator to use these commands

Note: This plugin does NOT add items to the shops. So you will still need to go in and add items to the applicable shops. (Just copy & paste...)

相关依赖

  • GUI Shop
  • Rust Translation API
  • Server Rewards

配置说明

{ "GUIShop - Recovery rate (Sell / Buy)": 0.5, "GUIShop - Keep decimal": 2, "Gather rate offset": 1.0, "Materials": { "metal.fragments": 1.0, "gunpowder": 1.0, "metalpipe": 1.0, "explosives": 1.0, "metal.refined": 1.0, "wood": 1.0, "riflebody": 1.0, "metalspring": 1.0, "stones": 1.0, "sulfur": 1.0, "lowgradefuel": 1.0, "bone.fragments": 1.0, "cloth": 1.0, "targeting.computer": 1.0, "cctv.camera": 1.0, "metalblade": 1.0, "rope": 1.0, "gears": 1.0, "sewingkit": 1.0, "techparts": 1.0, "crude.oil": 1.0, "glue": 1.0, "grenade.beancan": 1.0, "stash.small": 1.0, "propanetank": 1.0, "ladder.wooden.wall": 1.0, "tarp": 1.0, "fat.animal": 1.0, "scrap": 1.0, "fuse": 1.0, "sheetmetal": 1.0, "leather": 1.0, "roadsigns": 1.0, "charcoal": 1.0, "skull.wolf": 1.0, "pumpkin": 1.0, "syringe.medical": 1.0, "semibody": 1.0, "smgbody": 1.0, "skull.human": 1.0, "spear.wooden": 1.0, "can.tuna.empty": 1.0 }, "Rarity list": { "timed.explosive": 50, "rifle.bolt": 20, "hammer": 0 }, "Workbench level multiplier": { //It is similar to "Rarity list" "0": 0.0, "1": 0.0, "2": 0.0, "3": 0.0 }, "Item ingredients override": { "horse.shoes.basic": { "metal.fragments": 500 } }, "Item displayNames": {} }

官方配置示例

{
  "GUIShop - Recovery rate (Sell / Buy)": 0.5,
  "GUIShop - Keep decimal": 2,
  "Gather rate offset": 1.0,
  "Materials": {
    "metal.fragments": 1.0,
    "gunpowder": 1.0,
    "metalpipe": 1.0,
    "explosives": 1.0,
    "metal.refined": 1.0,
    "wood": 1.0,
    "riflebody": 1.0,
    "metalspring": 1.0,
    "stones": 1.0,
    "sulfur": 1.0,
    "lowgradefuel": 1.0,
    "bone.fragments": 1.0,
    "cloth": 1.0,
    "targeting.computer": 1.0,
    "cctv.camera": 1.0,
    "metalblade": 1.0,
    "rope": 1.0,
    "gears": 1.0,
    "sewingkit": 1.0,
    "techparts": 1.0,
    "crude.oil": 1.0,
    "glue": 1.0,
    "grenade.beancan": 1.0,
    "stash.small": 1.0,
    "propanetank": 1.0,
    "ladder.wooden.wall": 1.0,
    "tarp": 1.0,
    "fat.animal": 1.0,
    "scrap": 1.0,
    "fuse": 1.0,
    "sheetmetal": 1.0,
    "leather": 1.0,
    "roadsigns": 1.0,
    "charcoal": 1.0,
    "skull.wolf": 1.0,
    "pumpkin": 1.0,
    "syringe.medical": 1.0,
    "semibody": 1.0,
    "smgbody": 1.0,
    "skull.human": 1.0,
    "spear.wooden": 1.0,
    "can.tuna.empty": 1.0
  },
  "Rarity list": {
    "timed.explosive": 50,
    "rifle.bolt": 20,
    "hammer": 0
  },
  "Workbench level multiplier": {  //It is similar to "Rarity list"
    "0": 0.0,
    "1": 0.0,
    "2": 0.0,
    "3": 0.0
  },  
  "Item ingredients override": {
    "horse.shoes.basic": {
      "metal.fragments": 500
    }
  },
  "Item displayNames": {}
  }
private double GetItemCost(string shortname)
private double GetItemCost(int itemID)
private double GetItemCost(ItemDefinition itemDefinition)
private Dictionary<string, double> GetItemsCostByShortName()
private Dictionary<int, double> GetItemsCostByID()
private Dictionary<ItemDefinition, double> GetItemsCostByDefinition()

更新日志

最新版本: v2.0.16
最后版本发布:
最后更新(条目): 2026-07-18

本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面

安装方法

  1. 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
  2. 登录本站后点击"下载",由 uMod 官方地址获取作者发布的文件。
  3. 将 .cs 文件放入服务器的 oxide/plugins 目录。
  4. 观察服务端控制台,确认插件编译并成功加载。
  5. 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。

使用前注意

  • Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
  • 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
  • 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
  • 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
来源说明

中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。