MashKJo
如题,我用ContentTweaker注册了一物品,然后用CraftTweaker添加了其Tooltip,然后试图在resources/contenttweaker/lang/zh_cn.lang中汉化这个tooltip:
  1. item.contenttweaker.物品ID.tooltip=
复制代码
但是游戏内没有效果
是需要在en_us.lang里也添加相关内容吗?
还是有什么别的问题

youyihj
你怎么用 CrT 加 tooltip 的?如果你要使用本地化,你需要使用 game.localize 方法。
game.localize(翻译键)

<contenttweaker:foo>.addTooltip(game.localize("item.contenttweaker.foo.tooltip"));