2026年1月25日小於 1 分鐘
鑄件台/鑄造盆 物品澆鑄
語法
casting_table(result, fluid, cast?, cast_consumed?, cooling_time?, switch_slots?)
casting_basin(result, fluid, cast?, cast_consumed?, cooling_time?, switch_slots?)參數說明
| 參數 | 類型 | 說明 | 預設值 |
|---|---|---|---|
result | ItemStack | 物品輸出 | 必填 |
fluid | FluidStack | 流體輸入 | 必填 |
cast | ItemStack | 鑄模物品 | minecraft:air |
cast_consumed | boolean | 是否消耗鑄模 | false |
cooling_time | number | 冷卻時間(遊戲刻) | 20 |
switch_slots | boolean | 是否將產物放置到輸入欄 | false |
方法說明
| 方法 | 參數 | 說明 |
|---|---|---|
.cast | (cast: ItemStack) | 鑄模物品 |
.cast_consumed | (cast_consumed: boolean) | 是否消耗鑄模 |
.cooling_time | (cooling_time: number) | 冷卻時間(遊戲刻) |
.switch_slots | (switch_slots: boolean) | 是否將產物放置到輸入欄 |
ServerEvents.recipes((event) => {
const { tconstruct } = event.recipes;
tconstruct.casting_table("minecraft:golden_apple", "tconstruct:molten_gold");
tconstruct.casting_table("minecraft:golden_apple", "tconstruct:molten_gold", "minecraft:apple")
.cast_consumed(true)
.cooling_time(20)
.switch_slots(true);
tconstruct.casting_basin("minecraft:gold_block", "tconstruct:molten_gold");
tconstruct.casting_basin("minecraft:gold_block", "tconstruct:molten_gold", "minecraft:gold_ingot")
.cast_consumed(true);
.cooling_time(20);
.switch_slots(true);
});