通过另一种方式获取鱼桶成为可能:在主手使用水桶进行钓鱼即可!
本模组也自动支持模组添加的鱼,只要它们遵循 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": "", //这是可选的,就像默认配方一样;如果您希望此配方计入“高级战术”进度,请在此处添加 "tactical_fishing:fish_buckets"。
"rod": {}, //原料语法,这指定了配方所需的钓竿,如果您希望任何钓竿都算数,请使用 "tactical_fishing:fishing_rods" 标签
"ingredient": {}, //原料语法,这指定了配方还需要手持的其他物品
"catch": {}, //原料语法,这指定了需要捕获什么来完成配方
"result": {} //物品栈语法,这指定了配方产生的结果
}
以下是来自自动生成配方的模板:
{
"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": "", //这是可选的,就像默认配方一样;如果您希望此配方计入“高级战术”进度,请在此处添加 "tactical_fishing:fish_buckets"。
"rod": {}, //原料语法,这指定了配方所需的钓竿,如果您希望任何钓竿都算数,请使用 "tactical_fishing:fishing_rods" 标签
"ingredient": {}, //原料语法,这指定了配方还需要手持的其他物品
"catch": {}, //原料语法,这指定了需要捕获什么来完成配方
"result": {} //物品栈语法,这指定了配方产生的结果
}
以下是来自自动生成配方的模板:
{
"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"
}
]
}
Makes it possible to get Buckets of Fish via a different way; by fishing with a water bucket in your off-hand!
This mod also automatically supports modded fish, as long as they follow the minecraft naming style.
The mod uses dynamically written recipes and is compatible with JEI if you want to see what things you can fishing-craft!
Technical Notes for Modders
Your fish should be handled automatically as long as you follow the minecraft naming style ( "[modid]:[fish]", "[modid]:[fish]_bucket" ), I also included a "[modid]:raw_[fish]" as a fallback in case you are still using old naming.
However there might be cases where you would not want something to be auto-gen'd for your item. Fish recipes won't be created if the following data path already exists in any directory "data.tactical_fishing.recipes.inbuilt.fishing_[modid]_[fish]_bucket.json".
Your rods should also be handled automatically as long as they extend "net.minecraft.item.FishingRodItem", and it should work as long as your fishing hook projectile uses the "net.minecraftforge.event.entity.player.ItemFishedEvent" Forge Event.
However if your rod is a custom item for whichever reason you can include it in the "tactical_fishing:fishing_rods" item tag.
If you wish to create new fishing recipes for your mod here is the syntax:
{
"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
}
Here is a template from the auto-gen'd recipes
{
"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"
}
]
}
Technical Notes for Modpack Makers
You can suppress certain features via the config, like disabling the auto-gen'd fish recipes altogether.
If you wish to create new fishing recipes for your mod here is the syntax:
{
"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
}
Here is a template from the auto-gen'd recipes
{
"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"
}
]
}
评论 0
登录后参与评分
还没有评论,来抢沙发吧