介绍

现在可以通过另一种方式获得鱼桶:副手拿着水桶钓鱼即可!
这个模组也会自动支持模组添加的鱼,只要它们遵循 Minecraft 的命名规范。
本模组使用动态编写的配方,并兼容 JEI,方便你查看可以通过钓鱼合成的物品!

面向模组开发者的技术说明
只要遵循 Minecraft 的命名规范(”[modid]:[fish]“、”[modid]:[fish]_bucket“),你的鱼就会被自动处理。我还加入了 “[modid]:raw_[fish]” 作为备用方案,以兼容仍在使用旧命名方式的情况。
不过,有些情况下你可能不希望系统为物品自动生成配方。如果任意目录中已存在以下数据路径,就不会为鱼创建配方:”data.tactical_fishing.recipes.inbuilt.fishing_[modid]_[fish]_bucket.json“。
只要你的鱼竿继承自 “net.minecraft.item.FishingRodItem“,它也会被自动处理;只要你的鱼钩弹射物使用 “net.minecraftforge.event.entity.player.ItemFishedEvent” Forge 事件,就应该可以正常工作。
不过,如果你的鱼竿出于某种原因是自定义物品,也可以将它加入 “tactical_fishing:fishing_rods” 物品标签。
如果你想为自己的模组创建新的钓鱼配方,语法如下:
{
"type": "tactical_fishing:fishing",
"group": "", //This is optional like in default recipes; if you want to make this recipe count for the "Advanced Tactics" advancement add "tactical_fishing:fish_buckets" here.
"rod": {}, //Ingredient syntax, this specifies the rod needed for the recipe, if you want any rod to count use the "tactical_fishing:fishing_rods" tag
"ingredient": {}, //Ingredient syntax, this specifies what else you need to hold for the recipe
"catch": {}, //Ingredient syntax, this specifies what needs to be caught to finalize the recipe
"result": {} //ItemStack syntax, this specifies what is created from the recipe
}
以下是自动生成配方的模板:
{
"type": "tactical_fishing:fishing",
"group": "tactical_fishing:fish_buckets",
"rod": {
"tag": "tactical_fishing:fishing_rods"
},
"ingredient": {
"item": "minecraft:water_bucket"
},
"catch": {
"item": "minecraft:cod"
},
"result": {
"item": "minecraft:cod_bucket"
},
"conditions": [
{
"type": "forge:mod_loaded",
"modid": "minecraft"
}
]
}
面向整合包制作者的技术说明
你可以通过配置关闭某些功能,例如完全禁用自动生成的鱼类配方。
如果你想为自己的模组创建新的钓鱼配方,语法如下:
{
"type": "tactical_fishing:fishing",
"group": "", //This is optional like in default recipes; if you want to make this recipe count for the "Advanced Tactics" advancement add "tactical_fishing:fish_buckets" here.
"rod": {}, //Ingredient syntax, this specifies the rod needed for the recipe, if you want any rod to count use the "tactical_fishing:fishing_rods" tag
"ingredient": {}, //Ingredient syntax, this specifies what else you need to hold for the recipe
"catch": {}, //Ingredient syntax, this specifies what needs to be caught to finalize the recipe
"result": {} //ItemStack syntax, this specifies what is created from the recipe
}
以下是自动生成的配方模板
{
"type": "tactical_fishing:fishing",
"group": "tactical_fishing:fish_buckets",
"rod": {
"tag": "tactical_fishing:fishing_rods"
},
"ingredient": {
"item": "minecraft:water_bucket"
},
"catch": {
"item": "minecraft:cod"
},
"result": {
"item": "minecraft:cod_bucket"
},
"conditions": [
{
"type": "forge:mod_loaded",
"modid": "minecraft"
}
]
}
常见问题
Tactical Fishing 支持哪些 Minecraft 版本?
Tactical Fishing 支持 Minecraft Java 版 1.16.4–1.20.1,共 11 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Tactical Fishing 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
fuffles 的其他作品
查看全部 →Ichthyology
Ichthyology is a vanilla styled fish mod aimed at revamping the waters of Minecraft
Copycat
Take your Decorating Skills to the next level
Ichthyology
Ichthyology is a vanilla styled fish mod aimed at revamping the waters of Minecraft
评论
登录后评论和评分