🔍概述

将一些向 1.7.10 添加高版本内容的用 CraftTweaker 修改配方的模组的存档/翻译。

❗❗要求

  • Et Futurum Requiem 版本 ≥ 2.4.4 ,CraftTweaker ≥ 3.1.0 / MineTweaker ,Campfire Backport

  • 以下关于 CraftTweaker 语句部分均为简写,请在键入前加上前缀。

    Et Futurum Requiem 为 mods.etfuturum. ,Campfire Backport 为 mods.campfirebackport. 。

  • 解释/注意中,除了模组名称,以及上下标的内容,所有标蓝字均为可选项。

  • 你无法通过 CraftTweaker 来删除营火的配方,如需删除请到配置文件中删除。【配置文件名称及路径:config/campfirebackport.cfg|配方所在行数:116-128(116-124为普通营火的配方,126-128为灵魂营火,Campfire Backport 的 Auto Recipe Discovery 会在普通营火添加配方,配方默认为两种营火都可以,可自行关闭。)】

  • 因为这里是使用 CraftTweaker 来添加营火的配方,所以配置文件不会有过深入的涉及。转到官方Wiki链接

Et Futurum Requiem

来自于 config/etfuturum/blocksitems.cfg

锻造台

添加以及移除锻造台配方。

语句

smithingTable.addRecipe(<ItemStringOutput>, <ItemStringInput@Item>, <ItemStringInput@Material>);  
smithingTable.addRecipeNoNBT(<ItemStringOutput>, <ItemStringInput@Item>, <ItemStringInput@Material>);  
smithingTable.remove(<ItemStringOutput>);

解释

ItemStringOutput 物品输出。

ItemStringInput@Item 第一格物品。

ItemStringInput@Material 第二格材料,即有锭的槽位。

addRecipe将会输出的物品的NBT与第一个槽中的物品的NBT保持一致。

addRecipeNoNBT将会把输出的物品的NBT清空。

不接受以下后缀String

 .noReturn() 
 .anyDamage()
 .onlyDamaged()

但是接受.anyDamage()

remove移除该物品对应的锻造台配方。

例子

smithingTable.addRecipe(<minecraft: netherite_sword>, <minecraft: diamond_sword>, <ore: ingotNetherite>);

原版合成下界合金剑的CraftTweaker 表达。

smithingTable.remove(<minecraft: netherite_chestplate>);

移除原版下界合金胸甲。

堆肥桶

更多的物品将会被堆成骨粉。

语句

composting.addCompostable(<ItemString>, Chance); 
composting.remove(<ItemString>);

ItemString 中为堆肥物品。

Chance是一个整数,0 < Chance < 600 ,

若 Chance < 100 ,则值为有 Chance% 的几率使其的层数增加一层;
若 Chance/100 ≥ 1 ,则所求值的整数部分为填满的层数,小数部分为 Chance-整数×100% 的概率 填满下一层。

例子

composting.addCompostable(<nova_craft: moss>, 50);

NovaCraft中的苔藓将会有50%的机率填满一层。

composting.addCompostable(<minecraft: nether_star>, 350);

原版的下界之星将会填满3层并有50%的几率填满下一层。

composting.remove(<minecraft: leaves: *>);

原版所有的树叶将不可堆肥。

酿造台

添加酿造燃料。

添加删除酿造台配方

brewingFuel.addFuel(<ItemString>, Count); 
brewingFuel.remove(<ItemString>);

ItemString 为提供酿造能量的物品。
Count 是一个整数, Count > 0 ;该物品可以提供酿造几次所需的能量。

remove 移除该物品作为酿造能量提供物品的能力。

addFuel 该物品将作为酿造能量提供物品。

例子

brewingFuel.addFuel(<minecraft: gunpowder>, 10);

原版的火药可以提供酿造10次所需的能量。

brewingFuel.remove(<minecraft: blaze_powder>);

原版的烈焰粉再也无法提供酿造所需的能量。

附魔台

添加附魔能量的物品。

语句

enchantingFuel.addFuel(<ItemString>);
enchantingFuel.removeFuel(<ItemString>);

ItemString 为提供附魔能量的物品。

removeFuel 移除该物品作为附魔能量提供物品的能力。

addFuel 该物品将作为附魔能量提供物品。

例子

enchantingFuel.addFuel(<minecraft: diamond>) ;

原版钻石将会可以附魔。

enchantingFuel.removeFuel(<minecraft: dye: 4>);

原版青金石不可以附魔。

高炉&烟熏炉

添加高炉和烟熏炉配方。

语句

Et Futurum Requiem 版本 < 2.4.4 时,添加高炉和烟熏炉配方。

furnace.addRecipe(<ItemStringOutput>, <ItemStringInput>);
furnace.addRecipe(<ItemStringOutput>, <ItemStringInput>, NumberOFXP);
furnace.remove(<ItemStringOutput>);
furnace.remove(<ItemStringOutput>, <ItemStringInput>);
furnace.remove(<*>, <ItemStringInput>);

通过修改原版熔炉,从而修改高炉和烟熏炉。

ItemStringOutput 物品输出。

ItemStringInput 物品输入。

NumberOFXP 冶炼完成经验值,整数,NumberOFXP > 0。

furnace.addRecipe 原版熔炉添加。

furnace.remove 原版熔炉移除。

Et Futurum Requiem 版本 ≥ 2.4.4 时,添加高炉和烟熏炉配方。

smoker.addRecipe(<ItemStringOutput>, <ItemStringInput>);
smoker.addRecipe(<ItemStringOutput>, <ItemStringInput>, NumberOFXP);
smoker.remove(<ItemStringOutput>);
smoker.remove(<ItemStringOutput>, <ItemStringInput>);
smoker.remove(<*>, <ItemStringInput>);
blastFurnace.addRecipe(<ItemStringOutput>, <ItemStringInput>);
blastFurnace.addRecipe(<ItemStringOutput>, <ItemStringInput>, NumberOFXP);
blastFurnace.remove(<ItemStringOutput>);
blastFurnace.remove(<ItemStringOutput>, <ItemStringInput>);
blastFurnace.remove(<*>, <ItemStringInput>);

ItemStringOutput 物品输出。

ItemStringInput 物品输入。

NumberOFXP 冶炼完成经验值,整数,NumberOFXP > 0。

addRecipe 添加高炉/烟熏炉配方。

remove 移除高炉/烟熏炉配方。

总的来说,就是将 furnace 替换为 smoker/blastFurnace ;并添加了一些前缀。

例子

blastFurnace.addRecipe(<ore: ingotSteel>, <ore: oreIron>, 500);

高炉炼钢,并返还500经验值。

smoker.remove(<*>, <minecraft: chicken>);

仅原版生鸡肉无法熔炼。

blastFurnace.remove(<minecraft: iron_nugget>);

移除熔炼出原版铁粒的配方。

Campfire Backport

一张其在NEI的显示图

一些向后移植(游戏版本1.7.10)内容的模组的 CraftTweaker 修改配方方式-第1张图片NEI的显示

添加配方

语句

addCampfireRecipe(String types, IIngredient input/IIngredient[] input , IItemStack output, 
Integer cookingTime, signalFire, IItemStack byproduct, byproductChance ) ;

解释

  • String Types ,指定营火。有 “regular”(普通营火)“soul”(灵魂营火) “both”(两个都有|默认)。

  • IIngredient input 为物品输入,IIngredient[] input 为物品输入数组。分别对应左上角的输入和四个格子的输入。IItemStack output 为物品输出。

  • Integer cookingTime 为物品熔炼时间,整数,单位是Tick。在NEI中默认为sec,按下LShift转换为Tick,(1sec=20Tick)默认为30sec。

  • signalFire ,是否为信号营火。“信号营火”即为底部为干草块的营火。有 “signal”(信号营火) “notsignal”(非信号营火) “any”(两个都可以|默认)。

  • IItemStack byproduct 为副产品,byproductChance 为副产品输出的几率,在0到1之间,默认为1(100%)。

例子

addCampfireRecipe( "soul" , [<ore:netheriteScrap>, <ore:netheriteScrap>, <ore:ingotGold>, <ore:ingotGold>]
 , <minecraft:netherite_ingot>, "5000", "signal" , <minecraft:diamond> * 4 , 0.5 ) ;

两个下界合金碎片以及两个金锭在灵魂信号营火上,经过5000Tick后,熔炼成一个下界合金锭,并有50%的几率再产出四个钻石。

addCampfireRecipe("both", [<minecraft:brown_mushroom>, <minecraft:red_mushroom>, <minecraft:bowl>],
<minecraft:mushroom_stew>, "noSignal");

1 个棕色蘑菇、1 个红色蘑菇和 1 个碗600Tick后变成蘑菇煲,但只能在非信号营火上。

点火物品/灭火物品

查看所有的点火物品及灭火物品可在NEI中点击营火[原文如此]

语句

addCampfireExtinguisher/Ignitor(String types, IIngredient input, String usageType, int damageOrReduceBy, IItemStack output, 
boolean leftClick); 
 //点火/灭火物品

解释:

  • String Types 同配方。

  • IIngredient input 用于熄灭/点燃篝火的输入物品。

  • String usageType 输入物品是如何用完的。有 "damageable"(该物品耐久度降低|仅工具类) "stackable"(该物品数量减少|仅物品类) "none"(两者都不会发生)

  • int damageOrReduceBy ,减少数量。具体解释请看前述。

  • IItemStack output ,熄灭后返还的物品。默认为 null 。

  • boolean leftClick ,是否用左键单击来扑灭/点燃,设置为 "true" 则代表着用左键熄灭/点燃,若为 "false" 则为用右键熄灭/点燃。默认为 false 。

例子

addCampfireExtinguisher("both", <minecraft: flint_and_steel : * >, "damageable", 5 );

打火石点燃营火,减少五点耐久度。

addCampfireIgnitor("regular", <minecraft: water_bucket>, "none",  <minecraft:bucket>, true);

左键把水桶中的水泼到普通营火上使其熄灭。

设置营火在维度/生物群系中燃烧时间的长度

语句

addBurnOutTimer(String types, Integer biomeId, Integer dimensionId, int timer);

解释

  • String Types 同配方。

  • Integer biomeId 此燃烧时间应应用到的生物群系的 ID。若生物群系对此影响不大,请将其设为null。

  • Integer dimensionId 此燃烧时间应应用到的维度的 ID。若维度对此影响不大,请将其设为null。

  • int timer 燃烧时间长度。整数。单位为Tick。设置为 -1,来防止营火被烧完。

例子

addBurnOutTimer("soul", null, -1, -1);

灵魂营火永远不会在下界燃烧殆尽。

addBurnOutTimer("both", 0, -1, 0);

所有营火在下界海洋生物群系中立即燃烧殆尽。