介绍
我想为 TConstruct 工具添加药水效果,并希望尽可能灵活地进行配置,于是我制作了这个模组。
SuperTic 会为每种 TConstruct 工具材料添加一个额外特性,其效果可在一个 xml 文件中配置。目前有三种不同的效果触发方式:
– 击中实体时施加效果
– 格挡伤害时施加效果
– 挖掘方块时施加效果
很快还会有更多内容,欢迎提出合理的建议 🙂
配置文件的用法如下:
<effects>
<material name=”cobalt”> // The specified material
//When attacking has a 1 in 5 chance to apply haste I for a duration of 200 ticks to the player
<attack id=”minecraft:haste” amp=”1″ dur=”200″, chance=”5″ player=”true”>
//When blocking has a 1 in 7 chance to apply regeneration IV for a duration of 50 ticks to the attacking entity
<block id=”minecraft:regeneration” amp=”4″ dur=”50″, chance=”7″ player=”false”>
//When mining has a 1 in 10 chance to apply speed II for a duration of 1000 ticks to the player
<mine id=”minecraft:speed” amp=”2″ dur=”1000″, chance=”10″ >
</material>
<material name=”ardite”>
…
</material>
</effects>
你也可以使用命令 /supertic reload 重新加载配置文件,并使用 /supertic materials. 查看所有材料名称。
欢迎在你的整合包中使用,祝你玩得开心 🙂
常见问题
SuperTiC 支持哪些 Minecraft 版本?
SuperTiC 支持 Minecraft Java 版 1.7.10–1.12.2,共 2 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
SuperTiC 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分