chorus/lightbloom stuff
This commit is contained in:
parent
55a27896c4
commit
a830260b71
8 changed files with 109 additions and 36 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
{
|
{
|
||||||
"type": "minecraft:item",
|
"type": "minecraft:item",
|
||||||
"name": "minecraft:chorus_fruit",
|
"name": "minecraft:chorus_fruit",
|
||||||
"conditions": [
|
"functions": [
|
||||||
{
|
{
|
||||||
"function": "minecraft:set_count",
|
"function": "minecraft:set_count",
|
||||||
"count": {
|
"count": {
|
||||||
|
|
@ -23,6 +23,11 @@
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"condition": "minecraft:survives_explosion"
|
"condition": "minecraft:survives_explosion"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "minecraft:entity_properties",
|
||||||
|
"entity": "this",
|
||||||
|
"predicate": {}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -44,6 +49,11 @@
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"condition": "minecraft:survives_explosion"
|
"condition": "minecraft:survives_explosion"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "minecraft:entity_properties",
|
||||||
|
"entity": "this",
|
||||||
|
"predicate": {}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -444,12 +444,12 @@ const registerFirmaLifeRecipes = (event) => {
|
||||||
|
|
||||||
// Семена фруктов
|
// Семена фруктов
|
||||||
global.FIRMALIFE_GREENHOUSE_FRUIT_RECIPE_COMPONENTS.forEach(element => {
|
global.FIRMALIFE_GREENHOUSE_FRUIT_RECIPE_COMPONENTS.forEach(element => {
|
||||||
generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, true)
|
generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, 'minecraft:overworld')
|
||||||
})
|
})
|
||||||
|
|
||||||
// Семена ягод
|
// Семена ягод
|
||||||
global.FIRMALIFE_GREENHOUSE_BERRY_RECIPE_COMPONENTS.forEach(element => {
|
global.FIRMALIFE_GREENHOUSE_BERRY_RECIPE_COMPONENTS.forEach(element => {
|
||||||
generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, false)
|
generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, null)
|
||||||
})
|
})
|
||||||
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ const generateCutterRecipe = (event, input, output, duration, EUt, id) => {
|
||||||
.EUt(EUt)
|
.EUt(EUt)
|
||||||
}
|
}
|
||||||
|
|
||||||
const generateGreenHouseRecipe = (event, input, fluid_amount, output, id, overworldExclusive) => {
|
const generateGreenHouseRecipe = (event, input, fluid_amount, output, id, dimension) => {
|
||||||
|
|
||||||
// Без удобрения
|
// Без удобрения
|
||||||
let r = event.recipes.gtceu.greenhouse(id)
|
let r = event.recipes.gtceu.greenhouse(id)
|
||||||
|
|
@ -36,8 +36,8 @@ const generateGreenHouseRecipe = (event, input, fluid_amount, output, id, overwo
|
||||||
.duration(36000) // 30 mins
|
.duration(36000) // 30 mins
|
||||||
.EUt(GTValues.VA[GTValues.LV])
|
.EUt(GTValues.VA[GTValues.LV])
|
||||||
|
|
||||||
if (overworldExclusive)
|
if (dimension != null)
|
||||||
r.dimension('minecraft:overworld')
|
r.dimension(dimension)
|
||||||
|
|
||||||
// С удобрением
|
// С удобрением
|
||||||
r = event.recipes.gtceu.greenhouse(`${id}_fertilized`)
|
r = event.recipes.gtceu.greenhouse(`${id}_fertilized`)
|
||||||
|
|
@ -51,8 +51,8 @@ const generateGreenHouseRecipe = (event, input, fluid_amount, output, id, overwo
|
||||||
.duration(12000) // 10 mins
|
.duration(12000) // 10 mins
|
||||||
.EUt(GTValues.VA[GTValues.LV])
|
.EUt(GTValues.VA[GTValues.LV])
|
||||||
|
|
||||||
if (overworldExclusive)
|
if (dimension != null)
|
||||||
r.dimension('minecraft:overworld')
|
r.dimension(dimension)
|
||||||
}
|
}
|
||||||
|
|
||||||
const getFillingNBT = (material, amount) => {
|
const getFillingNBT = (material, amount) => {
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,10 @@ const registerMinecraftItemTags = (event) => {
|
||||||
|
|
||||||
event.add('tfc:compost_greens_high', 'minecraft:red_mushroom_block')
|
event.add('tfc:compost_greens_high', 'minecraft:red_mushroom_block')
|
||||||
event.add('tfc:compost_greens_high', 'minecraft:brown_mushroom_block')
|
event.add('tfc:compost_greens_high', 'minecraft:brown_mushroom_block')
|
||||||
|
event.add('tfc:compost_greens_high', 'minecraft:twisting_vines')
|
||||||
|
event.add('tfc:compost_greens_high', 'minecraft:pearlescent_froglight')
|
||||||
|
event.add('tfc:compost_greens_high', 'minecraft:verdant_froglight')
|
||||||
|
event.add('tfc:compost_greens_high', 'minecraft:ochre_froglight')
|
||||||
|
|
||||||
event.add('tfc:colored_terracotta', 'minecraft:white_terracotta')
|
event.add('tfc:colored_terracotta', 'minecraft:white_terracotta')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -94,26 +94,26 @@ const registerTFCRecipes = (event) => {
|
||||||
|
|
||||||
// Дерево
|
// Дерево
|
||||||
global.TFC_WOOD_TYPES.forEach(wood => {
|
global.TFC_WOOD_TYPES.forEach(wood => {
|
||||||
generateGreenHouseRecipe(event, `8x tfc:wood/sapling/${wood}`, 16000, `64x tfc:wood/log/${wood}`, `tfg:greenhouse/${wood}`, true)
|
generateGreenHouseRecipe(event, `8x tfc:wood/sapling/${wood}`, 16000, `64x tfc:wood/log/${wood}`, `tfg:greenhouse/${wood}`, 'minecraft:overworld')
|
||||||
})
|
})
|
||||||
|
|
||||||
global.AFC_SAPLINGS.forEach(x => {
|
global.AFC_SAPLINGS.forEach(x => {
|
||||||
generateGreenHouseRecipe(event, `8x afc:wood/sapling/${x.sapling}`, 16000, `64x ${x.log}`, `tfg:greenhouse/${x.sapling}`, true)
|
generateGreenHouseRecipe(event, `8x afc:wood/sapling/${x.sapling}`, 16000, `64x ${x.log}`, `tfg:greenhouse/${x.sapling}`, 'minecraft:overworld')
|
||||||
})
|
})
|
||||||
|
|
||||||
// Семена фруктов
|
// Семена фруктов
|
||||||
global.TFC_GREENHOUSE_FRUIT_RECIPE_COMPONENTS.forEach(element => {
|
global.TFC_GREENHOUSE_FRUIT_RECIPE_COMPONENTS.forEach(element => {
|
||||||
generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, true)
|
generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, 'minecraft:overworld')
|
||||||
})
|
})
|
||||||
|
|
||||||
// Семена овощей
|
// Семена овощей
|
||||||
global.TFC_GREENHOUSE_VEGETABLE_RECIPE_COMPONENTS.forEach(element => {
|
global.TFC_GREENHOUSE_VEGETABLE_RECIPE_COMPONENTS.forEach(element => {
|
||||||
generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, false)
|
generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, null)
|
||||||
})
|
})
|
||||||
|
|
||||||
// Семена ягод
|
// Семена ягод
|
||||||
global.TFC_GREENHOUSE_BERRY_RECIPE_COMPONENTS.forEach(element => {
|
global.TFC_GREENHOUSE_BERRY_RECIPE_COMPONENTS.forEach(element => {
|
||||||
generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, false)
|
generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, null)
|
||||||
})
|
})
|
||||||
|
|
||||||
// Растения
|
// Растения
|
||||||
|
|
@ -121,7 +121,7 @@ const registerTFCRecipes = (event) => {
|
||||||
const itemId = element.id;
|
const itemId = element.id;
|
||||||
const recipeId = `greenhouse_${itemId.replace(':', '_')}`;
|
const recipeId = `greenhouse_${itemId.replace(':', '_')}`;
|
||||||
|
|
||||||
generateGreenHouseRecipe(event, itemId, 8000, `8x ${itemId}`, recipeId, false);
|
generateGreenHouseRecipe(event, itemId, 8000, `8x ${itemId}`, recipeId, null);
|
||||||
});
|
});
|
||||||
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,10 @@ function registerTFGSpaceRecipes(event) {
|
||||||
|
|
||||||
// Aqueous accumulator
|
// Aqueous accumulator
|
||||||
|
|
||||||
|
let aaCircuit = 1;
|
||||||
|
|
||||||
event.recipes.gtceu.aqueous_accumulator('water_overworld')
|
event.recipes.gtceu.aqueous_accumulator('water_overworld')
|
||||||
.circuit(1)
|
.circuit(aaCircuit++)
|
||||||
.dimension('minecraft:overworld')
|
.dimension('minecraft:overworld')
|
||||||
.duration(20)
|
.duration(20)
|
||||||
.EUt(GTValues.VHA[GTValues.ULV])
|
.EUt(GTValues.VHA[GTValues.ULV])
|
||||||
|
|
@ -30,7 +32,7 @@ function registerTFGSpaceRecipes(event) {
|
||||||
.outputFluids(Fluid.of("minecraft:water", 1000))
|
.outputFluids(Fluid.of("minecraft:water", 1000))
|
||||||
|
|
||||||
event.recipes.gtceu.aqueous_accumulator('water_nether')
|
event.recipes.gtceu.aqueous_accumulator('water_nether')
|
||||||
.circuit(2)
|
.circuit(aaCircuit++)
|
||||||
.dimension('minecraft:the_nether')
|
.dimension('minecraft:the_nether')
|
||||||
.duration(20)
|
.duration(20)
|
||||||
.EUt(GTValues.VHA[GTValues.ULV])
|
.EUt(GTValues.VHA[GTValues.ULV])
|
||||||
|
|
@ -38,8 +40,17 @@ function registerTFGSpaceRecipes(event) {
|
||||||
.addDataString("fluidB", "minecraft:water")
|
.addDataString("fluidB", "minecraft:water")
|
||||||
.outputFluids(Fluid.of("minecraft:water", 1000))
|
.outputFluids(Fluid.of("minecraft:water", 1000))
|
||||||
|
|
||||||
|
event.recipes.gtceu.aqueous_accumulator('water_moon')
|
||||||
|
.circuit(aaCircuit++)
|
||||||
|
.dimension('ad_astra:moon')
|
||||||
|
.duration(20)
|
||||||
|
.EUt(GTValues.VHA[GTValues.MV])
|
||||||
|
.addDataString("fluidA", "minecraft:water")
|
||||||
|
.addDataString("fluidB", "minecraft:water")
|
||||||
|
.outputFluids(Fluid.of("minecraft:water", 1000))
|
||||||
|
|
||||||
event.recipes.gtceu.aqueous_accumulator('sea_water_overworld')
|
event.recipes.gtceu.aqueous_accumulator('sea_water_overworld')
|
||||||
.circuit(3)
|
.circuit(aaCircuit++)
|
||||||
.dimension('minecraft:overworld')
|
.dimension('minecraft:overworld')
|
||||||
.duration(20)
|
.duration(20)
|
||||||
.EUt(GTValues.VA[GTValues.ULV])
|
.EUt(GTValues.VA[GTValues.ULV])
|
||||||
|
|
@ -48,7 +59,7 @@ function registerTFGSpaceRecipes(event) {
|
||||||
.outputFluids(Fluid.of("tfc:salt_water", 1000))
|
.outputFluids(Fluid.of("tfc:salt_water", 1000))
|
||||||
|
|
||||||
event.recipes.gtceu.aqueous_accumulator('sea_water_nether')
|
event.recipes.gtceu.aqueous_accumulator('sea_water_nether')
|
||||||
.circuit(4)
|
.circuit(aaCircuit++)
|
||||||
.dimension('minecraft:the_nether')
|
.dimension('minecraft:the_nether')
|
||||||
.duration(20)
|
.duration(20)
|
||||||
.EUt(GTValues.VA[GTValues.ULV])
|
.EUt(GTValues.VA[GTValues.ULV])
|
||||||
|
|
@ -57,7 +68,7 @@ function registerTFGSpaceRecipes(event) {
|
||||||
.outputFluids(Fluid.of("tfc:salt_water", 1000))
|
.outputFluids(Fluid.of("tfc:salt_water", 1000))
|
||||||
|
|
||||||
event.recipes.gtceu.aqueous_accumulator('lava_overworld')
|
event.recipes.gtceu.aqueous_accumulator('lava_overworld')
|
||||||
.circuit(5)
|
.circuit(aaCircuit++)
|
||||||
.dimension('minecraft:overworld')
|
.dimension('minecraft:overworld')
|
||||||
.duration(20)
|
.duration(20)
|
||||||
.EUt(GTValues.VHA[GTValues.HV])
|
.EUt(GTValues.VHA[GTValues.HV])
|
||||||
|
|
@ -66,7 +77,7 @@ function registerTFGSpaceRecipes(event) {
|
||||||
.outputFluids(Fluid.of("minecraft:lava", 1000))
|
.outputFluids(Fluid.of("minecraft:lava", 1000))
|
||||||
|
|
||||||
event.recipes.gtceu.aqueous_accumulator('lava_nether')
|
event.recipes.gtceu.aqueous_accumulator('lava_nether')
|
||||||
.circuit(6)
|
.circuit(aaCircuit++)
|
||||||
.dimension('minecraft:the_nether')
|
.dimension('minecraft:the_nether')
|
||||||
.duration(20)
|
.duration(20)
|
||||||
.EUt(GTValues.VHA[GTValues.HV])
|
.EUt(GTValues.VHA[GTValues.HV])
|
||||||
|
|
@ -117,4 +128,68 @@ function registerTFGSpaceRecipes(event) {
|
||||||
.itemInputs(ChemicalHelper.get(TagPrefix.dust, TFGHelpers.getMaterial('asurine'), 1))
|
.itemInputs(ChemicalHelper.get(TagPrefix.dust, TFGHelpers.getMaterial('asurine'), 1))
|
||||||
.chancedOutput(ChemicalHelper.get(TagPrefix.dust, GTMaterials.CertusQuartz, 1), 4700, 700)
|
.chancedOutput(ChemicalHelper.get(TagPrefix.dust, GTMaterials.CertusQuartz, 1), 4700, 700)
|
||||||
.chancedOutput(ChemicalHelper.get(TagPrefix.dust, GTMaterials.Zinc, 1), 3700, 700)
|
.chancedOutput(ChemicalHelper.get(TagPrefix.dust, GTMaterials.Zinc, 1), 3700, 700)
|
||||||
|
|
||||||
|
// Plants
|
||||||
|
|
||||||
|
// Chorus
|
||||||
|
event.recipes.gtceu.greenhouse('tfg:chorus')
|
||||||
|
.itemInputs('8x tfg:lunar_chorus_flower')
|
||||||
|
.itemOutputs('32x minecraft:chorus_fruit')
|
||||||
|
.chancedOutput('8x tfg:lunar_chorus_flower', 7500, 0)
|
||||||
|
.chancedOutput('8x tfg:lunar_chorus_flower', 5000, 0)
|
||||||
|
.duration(36000) // 30 mins
|
||||||
|
.circuit(1)
|
||||||
|
.EUt(GTValues.VA[GTValues.MV])
|
||||||
|
.dimension('ad_astra:moon')
|
||||||
|
|
||||||
|
event.recipes.gtceu.greenhouse('tfg:chorus_helium')
|
||||||
|
.itemInputs('8x tfg:lunar_chorus_flower')
|
||||||
|
.inputFluids(Fluid.of('gtceu:helium_3', 2000))
|
||||||
|
.itemOutputs('32x minecraft:chorus_fruit')
|
||||||
|
.chancedOutput('8x tfg:lunar_chorus_flower', 7500, 0)
|
||||||
|
.chancedOutput('8x tfg:lunar_chorus_flower', 5000, 0)
|
||||||
|
.duration(12000) // 30 mins
|
||||||
|
.circuit(2)
|
||||||
|
.EUt(GTValues.VA[GTValues.MV])
|
||||||
|
.dimension('ad_astra:moon')
|
||||||
|
|
||||||
|
event.recipes.gtceu.fermenter('tfg:chorus')
|
||||||
|
.itemInputs('minecraft:chorus_fruit')
|
||||||
|
.inputFluids(Fluid.of('gtceu:biomass', 20))
|
||||||
|
.chancedOutput('ae2:ender_dust', 100, 100)
|
||||||
|
.outputFluids(Fluid.of('gtceu:nitrogen', 100))
|
||||||
|
.duration(10 * 20)
|
||||||
|
.EUt(GTValues.VA[GTValues.MV])
|
||||||
|
.dimension('ad_astra:moon')
|
||||||
|
|
||||||
|
// Lightblooms
|
||||||
|
event.recipes.gtceu.greenhouse('tfg:lightbloom')
|
||||||
|
.itemInputs('32x minecraft:twisting_vines')
|
||||||
|
.itemOutputs('64x minecraft:twisting_vines')
|
||||||
|
.chancedOutput('minecraft:pearlescent_froglight', 2500, 0)
|
||||||
|
.chancedOutput('minecraft:verdant_froglight', 2500, 0)
|
||||||
|
.chancedOutput('minecraft:ochre_froglight', 2500, 0)
|
||||||
|
.duration(36000) // 30 mins
|
||||||
|
.circuit(1)
|
||||||
|
.EUt(GTValues.VA[GTValues.LV])
|
||||||
|
.dimension('ad_astra:moon')
|
||||||
|
|
||||||
|
event.recipes.gtceu.greenhouse('tfg:lightbloom_helium')
|
||||||
|
.itemInputs('32x minecraft:twisting_vines')
|
||||||
|
.inputFluids(Fluid.of('gtceu:helium_3', 2000))
|
||||||
|
.itemOutputs('64x minecraft:twisting_vines')
|
||||||
|
.chancedOutput('minecraft:pearlescent_froglight', 2500, 0)
|
||||||
|
.chancedOutput('minecraft:verdant_froglight', 2500, 0)
|
||||||
|
.chancedOutput('minecraft:ochre_froglight', 2500, 0)
|
||||||
|
.duration(12000) // 30 mins
|
||||||
|
.circuit(2)
|
||||||
|
.EUt(GTValues.VA[GTValues.LV])
|
||||||
|
.dimension('ad_astra:moon')
|
||||||
|
|
||||||
|
event.recipes.gtceu.brewery('biomass_from_twisting_vines')
|
||||||
|
.itemInputs('minecraft:twisting_vines')
|
||||||
|
.inputFluids(Fluid.of('minecraft:water', 20))
|
||||||
|
.outputFluids(Fluid.of('gtceu:biomass', 20))
|
||||||
|
.duration(50)
|
||||||
|
.EUt(3)
|
||||||
}
|
}
|
||||||
|
|
@ -147,19 +147,6 @@ function registerTFGTerrariumRecipes(event) {
|
||||||
|
|
||||||
// chorus fruit
|
// chorus fruit
|
||||||
|
|
||||||
event.recipes.gtceu.large_chemical_reactor('tfg:chorus_fruit_uranium')
|
|
||||||
.itemInputs('#tfc:foods/fruits', 'gtceu:uranium_235_dust')
|
|
||||||
.itemOutputs('minecraft:chorus_fruit', 'gtceu:uranium_dust')
|
|
||||||
.duration(500)
|
|
||||||
.EUt(480)
|
|
||||||
.circuit(1)
|
|
||||||
|
|
||||||
event.recipes.gtceu.large_chemical_reactor('tfg:chorus_fruit_plutonium')
|
|
||||||
.itemInputs('#tfc:foods/fruits', 'gtceu:plutonium_241_dust')
|
|
||||||
.itemOutputs('minecraft:chorus_fruit', 'gtceu:plutonium_dust')
|
|
||||||
.duration(200)
|
|
||||||
.EUt(480)
|
|
||||||
|
|
||||||
event.recipes.gtceu.large_chemical_reactor('tfg:kovarex')
|
event.recipes.gtceu.large_chemical_reactor('tfg:kovarex')
|
||||||
.itemInputs('40x gtceu:uranium_235_dust', '5x gtceu:uranium_dust')
|
.itemInputs('40x gtceu:uranium_235_dust', '5x gtceu:uranium_dust')
|
||||||
.itemOutputs('41x gtceu:uranium_235_dust', '2x gtceu:uranium_dust')
|
.itemOutputs('41x gtceu:uranium_235_dust', '2x gtceu:uranium_dust')
|
||||||
|
|
|
||||||
|
|
@ -565,9 +565,6 @@ global.MINECRAFT_DISABLED_ITEMS = [
|
||||||
'minecraft:carrot_on_a_stick',
|
'minecraft:carrot_on_a_stick',
|
||||||
'minecraft:carrot',
|
'minecraft:carrot',
|
||||||
'minecraft:pumpkin',
|
'minecraft:pumpkin',
|
||||||
'minecraft:pearlescent_froglight',
|
|
||||||
'minecraft:verdant_froglight',
|
|
||||||
'minecraft:ochre_froglight',
|
|
||||||
'minecraft:suspicious_stew',
|
'minecraft:suspicious_stew',
|
||||||
'minecraft:mycelium',
|
'minecraft:mycelium',
|
||||||
'minecraft:farmland',
|
'minecraft:farmland',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue