星露谷物语v0.1.42026年10月11日 更新

自定义矿车蒸汽

为矿车位置被更改的地点调整蒸汽效果的位置,也可配置动画效果或加载自定义纹理制作临时动画精灵。需要 SMAPI,并可与 Mod Updater 配合自动更新。

这是一个小型模组,主要用于在公交站等地点的矿车位置被更改时,将蒸汽效果绘制在合适的位置。

使用方法

通过 Content Patcher 设置自定义蒸汽。以下示例将公交站的蒸汽向右移动 64 像素:

{
  "Format": "1.23.0",
  "Changes": [
    {
      "Action": "EditData",
      "Target": "aedenthorn.CustomMineCartSteam/dictionary",
      "Entries": {
        "aedenthorn.CMCSExampleCP/1": {
          "location": "BusStop",
          "replaceSteam": "true",
          "position": {
            "X": 456,
            "Y": 144
          }
        }
      }
    }
  ]
}

还可以通过增加其他字段调整蒸汽效果,或添加临时动画精灵。例如:

{
  "Format": "1.23.0",
  "Changes": [
    {
      "Action": "EditData",
      "Target": "aedenthorn.CustomMineCartSteam/dictionary",
      "Entries": {
        "aedenthorn.CMCSExampleCP/2": {
          "location": "BusStop",
          "replaceSteam": "true",
          "position": {
            "X": 520,
            "Y": 208
          },
          "animationRow": 27,
          "color": {
            "R": 255,
            "G": 255,
            "B": 255
          },
          "animationLength": 8,
          "flipped": "true",
          "animationInterval": 60,
          "animationLoops": 999999,
          "sourceRectWidth": -1,
          "layerDepth": 1,
          "sourceRectHeight": -1,
          "delay": 0
        }
      }
    }
  ]
}

也可以加载任意纹理,制作临时动画精灵:

{
  "Format": "1.23.0",
  "Changes": [
    {
      "Action": "EditData",
      "Target": "aedenthorn.CustomMineCartSteam/dictionary",
      "Entries": {
        "aedenthorn.CMCSExampleCP/3": {
          "location": "BusStop",
          "replaceSteam": "false",
          "position": {
            "X": 520,
            "Y": 208
          },
          "texturePath": "Characters\\Junimo",
          "sourceRect": {
            "X": 0,
            "Y": 109,
            "Width": 16,
            "Height": 19
          },
          "animationLength": 8,
          "animationInterval": 40,
          "animationLoops": 999999,
          "color": {
            "R": 255,
            "G": 255,
            "B": 255,
            "A": 255
          },
          "flipped": "false",
          "flicker": "false",
          "alphaFade": 0,
          "scale": 4,
          "scaleChange": 0,
          "rotation": 0,
          "rotationChange": 0.1,
          "motion": {
            "X": 0.22,
            "Y": -2
          },
          "acceleration": {
            "X": 0,
            "Y": 0.01
          },
          "local": "false",
          "layerDepth": 1
        }
      }
    }
  ]
}

技术信息

需要 SMAPI。兼容 Mod Updater,可自动更新。

代码:GitHub。

如需反馈、求助或协助测试,可加入作者的 Discord 服务器。

作者的《星露谷物语》模组列表。

来源与文件

文件说明

Changes:

Fix for multiple sprites

前往 N 网打开所选文件。安装与下载要求以原作者及平台说明为准。

<!-- aoe-mods-source:nexusmods:stardewvalley:14508 -->

下载模块

共 1 个来源
立即下载推荐来源
前往下载