hor or not stuff
This commit is contained in:
parent
0a5e36f21e
commit
1ec4051d0d
5 changed files with 53 additions and 17 deletions
7
kubejs/server_scripts/hotornot/recipes.js
Normal file
7
kubejs/server_scripts/hotornot/recipes.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
// priority: 0
|
||||
|
||||
const registerHotOrNotRecipes = (event) => {
|
||||
|
||||
event.remove({ id: 'tfchotornot/anvil/tong_part/cast_iron' })
|
||||
event.remove({ id: 'tfchotornot:crafting/tongs/cast_iron' })
|
||||
}
|
||||
18
kubejs/server_scripts/hotornot/tags.js
Normal file
18
kubejs/server_scripts/hotornot/tags.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// priority: 0
|
||||
|
||||
const registerHotOrNotItemTags = (event) => {
|
||||
|
||||
// Удаление тегов у отключенных предметов
|
||||
global.HOT_OR_NOT_DISABLED_ITEMS.forEach(item => {
|
||||
event.removeAllTagsFrom(item)
|
||||
event.add('c:hidden_from_recipe_viewers', item)
|
||||
})
|
||||
}
|
||||
|
||||
const registerHotOrNotBlockTags = (event) => {
|
||||
|
||||
// Удаление тегов у отключенных предметов
|
||||
global.HOT_OR_NOT_DISABLED_ITEMS.forEach(item => {
|
||||
event.removeAllTagsFrom(item)
|
||||
})
|
||||
}
|
||||
|
|
@ -16,6 +16,7 @@ ServerEvents.tags('item', event => {
|
|||
registerGTCEUItemTags(event)
|
||||
registerMinecraftItemTags(event)
|
||||
registerMoreRedItemTags(event)
|
||||
registerHotOrNotItemTags(event)
|
||||
registerRailWaysItemTags(event)
|
||||
registerSophisticatedBackpacksItemTags(event)
|
||||
registerTFCItemTags(event)
|
||||
|
|
@ -37,6 +38,7 @@ ServerEvents.tags('block', event => {
|
|||
registerGTCEUBlockTags(event)
|
||||
registerMinecraftBlockTags(event)
|
||||
registerMoreRedBlockTags(event)
|
||||
registerHotOrNotBlockTags(event)
|
||||
registerRailWaysBlockTags(event)
|
||||
registerSophisticatedBackpacksBlockTags(event)
|
||||
registerTFCBlockTags(event)
|
||||
|
|
@ -115,6 +117,7 @@ ServerEvents.recipes(event => {
|
|||
registerFTBQuestsRecipes(event)
|
||||
registerGTCEURecipes(event)
|
||||
registerHandGliderRecipes(event)
|
||||
registerHotOrNotRecipes(event)
|
||||
registerMinecraftRecipes(event)
|
||||
registerMoreRedRecipes(event)
|
||||
registerRailWaysRecipes(event)
|
||||
|
|
|
|||
|
|
@ -1053,7 +1053,6 @@ const registerTFCRecipes = (event) => {
|
|||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1116,23 +1115,25 @@ const registerTFCRecipes = (event) => {
|
|||
event.recipes.tfc.heating(`tfc:metal/anvil/${material.getName()}`, tfcProperty.getMeltTemp())
|
||||
.resultFluid(Fluid.of(outputMaterial.getFluid(), 2016))
|
||||
.id(`tfc:heating/metal/${material.getName()}_anvil`)
|
||||
|
||||
// // Наковальня из слитков
|
||||
// event.recipes.gtceu.alloy_smelter(`ingots_to_${material.getName()}_anvil`)
|
||||
// .itemInputs(`14x #forge:ingots/${material.getName()}`)
|
||||
// .notConsumable('gtceu:anvil_casting_mold')
|
||||
// .itemOutputs(`tfc:metal/anvil/${material.getName()}`)
|
||||
// .duration(1680)
|
||||
// .EUt(16)
|
||||
|
||||
// // Наковальня из жидкости
|
||||
// event.recipes.gtceu.fluid_solidifier(`solidify_${material.getName()}_anvil`)
|
||||
// .inputFluids(Fluid.of(outputMaterial.getFluid(), 2016))
|
||||
// .notConsumable('gtceu:anvil_casting_mold')
|
||||
// .itemOutputs(`tfc:metal/anvil/${material.getName()}`)
|
||||
// .duration(1680)
|
||||
// .EUt(16)
|
||||
}
|
||||
|
||||
//#region Щипцы
|
||||
let tongsStack = Item.of(`tfchotornot:tongs/${material.getName()}`)
|
||||
let tongPartStack = Item.of(`tfchotornot:tong_part/${material.getName()}`)
|
||||
|
||||
if (!tongsStack.isEmpty() && !tongPartStack.isEmpty()) {
|
||||
// Ручка щипцов
|
||||
event.recipes.tfc.heating(tongPartStack, tfcProperty.getMeltTemp())
|
||||
.resultFluid(Fluid.of(outputMaterial.getFluid(), 144))
|
||||
.id(`tfchotornot:heating/tong_part/${material.getName()}`)
|
||||
|
||||
// Щипцы
|
||||
event.recipes.tfc.heating(tongsStack, tfcProperty.getMeltTemp())
|
||||
.resultFluid(Fluid.of(outputMaterial.getFluid(), 288))
|
||||
.useDurability(true)
|
||||
.id(`tfchotornot:heating/tongs/${material.getName()}`)
|
||||
}
|
||||
//#endregion
|
||||
|
||||
// Small TFC Ores
|
||||
if (material.hasFlag(TFGMaterialFlags.HAS_SMALL_TFC_ORE)) {
|
||||
|
|
|
|||
7
kubejs/startup_scripts/horornot/constants.js
Normal file
7
kubejs/startup_scripts/horornot/constants.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
// priority: 0
|
||||
|
||||
global.HOT_OR_NOT_DISABLED_ITEMS = [
|
||||
'tfchotornot:tong_part/cast_iron',
|
||||
'tfchotornot:tongs/cast_iron'
|
||||
];
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue