一个适用于 1.12.2 的简单模组,添加了高度可自定义的火堆!
本模组会自动从所有与食物相关的熔炉合成表中生成火堆合成表,以确保与几乎所有食物类模组的开箱即用兼容性!配置文件可用于添加自定义合成表,或移除内置的合成表。
供整合包开发者查看的合成表配置详情
config/campfire/recipes.json 文件包含两个主要部分:添加合成表或删除合成表。以下是一些示例:
{
"add":[
//将泥土转化为钻石的合成表,无经验值输出,耗时400刻(默认值)
{"inputs":[{"id":"minecraft:dirt"}],"output":{"id":"minecraft:diamond"}},
//将粗制泥土转化为绿宝石的合成表,此合成表仅适用于橡木原木火堆
{"inputs":[{"id":"minecraft:dirt","Damage":1}],"output":{"id":"minecraft:emerald"},"campfireTypes":[{"id":"minecraft:log"}]},
//将羊毛(任意伤害值)转化为石块的合成表,耗时500刻并给出1点经验值
{"inputs":[{"id":"minecraft:wool","Damage":32767}],"output":{"id":"minecraft:stone"},"experience":1,"cookTime":500},
//NBT特定合成表:将蓝色染色的皮革胸甲转化为不死图腾
{"inputs":[{"id":"minecraft:leather_chestplate","tag":{"display":{"color":3949738}}}],"output":{"id":"minecraft:totem_of_undying"}},
//OreDict合成表:将任何logWood物品转化为木炭
{"inputs":[{"oreid":"logWood"}],"output":{"id":"minecraft:coal","Damage":1}}
],
"remove":[
//“input”标签会移除任何使用该提供的 ItemStack 作为输入的合成表
{"input":{"id":"minecraft:porkchop"}},
//“output”标签会移除任何使用该提供的 ItemStack 作为输出的合成表
{"output":{"id":"minecraft:cooked_fish","Damage":1}}
]
}
config/campfire.cfg 文件中还有一个设置项,用于切换是否从食物熔炉合成表中自动生成火堆合成表,如果你希望对合成表进行更多自定义操作的话!

本模组添加的火堆提供了与村庄与掠夺更新中实现的功能相同的效果,并且功能更强大!你可能立刻注意到的第一个区别是,这些火堆可以使用任何“logWood”物品制作(不仅仅是橡木),这意味着所有原版和模组制作的木材类型都得到动态支持!配置文件还可以用来添加或删除木材类型(所以如果你真的想的话,甚至可以添加钻石火堆)。
前面提到的火堆合成表可以选择性地指定有效的木材类型。例如,你可以制作一个需要特定木材类型的合成表,或者仅适用于少数几种木材类型的合成表(如果你在合成表中不指定木材类型,则接受任何木材)。

火堆也可以染色!其染色方式与在合成台中对皮革装甲染色相同。染色后,烟雾粒子的颜色也会随之改变(左图中没有烟雾粒子,以便更清晰地看到后面的火堆,火堆烟雾可以在配置文件中切换开关)。

除了添加火堆之外,本模组还添加了一个装饰性的火把台(Brazier)方块!它会像火堆一样产生烟雾,并且也可以染色!(创意和笼状纹理归功于 Foreck1)

一些较小的改动包括:火堆一次可烹饪的物品数量从 4 个增加到 8 个,并且走进火堆或火把台会受到火焰伤害!这些改动都可以在配置文件中还原。
当处于激活状态时,火堆(和火把台)的烟雾颜色会与下方方块的地图着色保持一致。这一功能深受 Colorful Campfire 模组的启发。如果你不喜欢这个功能,可以通过配置文件将激活状态下的行为设置为以下三种之一:COLOR(执行上述描述的着色效果)、DISABLE(激活状态下禁用烟雾粒子)或 IGNORE(移除任何激活状态下的功能)。
如果你是希望将此模组添加到 CurseForge 独占整合包的整合包开发者,请使用 File Director。
本模组不会移植到其他版本
A simple mod for 1.12.2 that adds campfires with high levels of customizability!
This mod automatically creates campfire recipes from all food-related furnace recipes to ensure compatibility with pretty much every food mod right out of the box! The config file can be used to add custom recipes, or be used to remove builtin ones.
Recipe config details for modpack developers
The config/campfire/recipes.json file has two main parts, it can either add recipes or remove them. Some examples are below:
{
"add":[
//recipe that turns a dirt into a diamond, with no exp output and that takes 400 ticks (default value)
{"inputs":[{"id":"minecraft:dirt"}],"output":{"id":"minecraft:diamond"}},
//recipe that turns a course dirt into an emerald, the recipe is set to only work on oak log campfires
{"inputs":[{"id":"minecraft:dirt","Damage":1}],"output":{"id":"minecraft:emerald"},"campfireTypes":[{"id":"minecraft:log"}]},
//recipe that turns wool (with any damage value) into a stone block, takes 500 ticks and gives 1 xp
{"inputs":[{"id":"minecraft:wool","Damage":32767}],"output":{"id":"minecraft:stone"},"experience":1,"cookTime":500},
//nbt-specific recipe turns a blue-dyed leather tunic into a totem of undying
{"inputs":[{"id":"minecraft:leather_chestplate","tag":{"display":{"color":3949738}}}],"output":{"id":"minecraft:totem_of_undying"}},
//oredict recipe that turns any logWood item into charcoal
{"inputs":[{"oreid":"logWood"}],"output":{"id":"minecraft:coal","Damage":1}}
],
"remove":[
//the "input" tag removes any recipes that use the provided ItemStack as an input
{"input":{"id":"minecraft:porkchop"}},
//the "output" tag removes any recipes that use the provided ItemStack as an output
{"output":{"id":"minecraft:cooked_fish","Damage":1}}
]
}
The config/campfire.cfg file also has a setting to toggle the auto-generation of campfire recipes from food furnace recipes, if you want even more customization over the recipes!

The campfires added by this mod offer the same functionality of what you'd expect from the Village and Pillage Update's implementation, and much more! The first difference you may notice right off the bat is that these campfires can be made with any "logWood" item (not just oak), which means that all vanilla and modded wood types are dynamically supported! The config can also be used to add or remove wood types (so you can add diamond campfires if you really want lol).
The previously mentioned campfire recipes can optionally specify valid wood types. For example, you could make a recipe that requires a specific wood type, or that only works with a small handful of wood types (if you decide not to specify wood types in your recipes, any will be accepted).

Campfires are also dyeable! They're dyed the same way as leather armor in a crafting table. When dyed, the smoke particles will be the same color (there are no smoke particles in the left image so the campfires in the back can be seen more clearly, campfire smoke can be toggled in the config).

Along with adding Campfires, this mod also adds a decorative Brazier block! It emits smoke the same as a campfire and can be dyed too! (credit goes to Foreck1 for the idea and cage texture)

Some smaller changes are that the amount of items campfires can cook at once is increased from 4 to 8, and that walking into campfires or braziers will deal fire damage! Either of these changes can be reverted in the config.
While powered, campfires (and braziers) will tint their smoke color the same as the block's map color below. This functionality was heavily inspired by the Colorful Campfire mod. If you don't like this functionality, you can set the powered action via the config to either: COLOR, DISABLE, or IGNORE. COLOR does what I just described, DISABLE simply disables the smoke particles while powered, and IGNORE removes any kind of powered functionality.
If you're a modpack developer wanting to add this mod to a CurseForge exclusive modpack, use File Director.
This mod will not be ported
评论 0
登录后参与评分
还没有评论,来抢沙发吧