Crop stuff for biodiesel, works on my machine . (#1248)

* Added the crop stuff I made so far

* I think thiss should be fine?

* I litteraly have no idea what I am doing

* I hope this fixes everything

---------

Signed-off-by: 34y34y34y34y34y34y34y34y34y <34y34y34y34y34y34y34y34y34y@gmail.com>
This commit is contained in:
34y34y34y34y34y34y34y34y34y 2025-07-05 14:15:00 +03:00 committed by GitHub
parent c16af2c440
commit 460b5db80e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 155 additions and 4 deletions

View file

@ -29,6 +29,27 @@ const registerGTCEURecipes = (event) => {
//#endregion
//stuff for biodiesel meta that idk where to place cause I don't read russian
event.recipes.gtceu.mixer(`alcohol_biodiesel`)
.inputFluids(JsonIO.of({ amount: 1000, value: { tag: "tfc:alcohols" }}))
.inputFluids(Fluid.of('gtceu:seed_oil', 6000))
.outputFluids(Fluid.of('gtceu:bio_diesel', 6000))
.duration(20*30)
.EUt(GTValues.VHA[GTValues.ULV])
event.recipes.gtceu.extractor(`rapeseed_oil`)
.itemInputs('tfg:rapeseed_product')
.outputFluids(Fluid.of('gtceu:seed_oil', 600))
.duration(20*30)
.EUt(GTValues.VHA[GTValues.ULV])
event.recipes.gtceu.extractor(`sunflower_oil`)
.itemInputs('tfg:sunflower_product')
.outputFluids(Fluid.of('gtceu:seed_oil', 350))
.duration(20*30)
.EUt(GTValues.VHA[GTValues.ULV])
//#region Выход: Кварцевый песок
event.shaped('gtceu:quartz_sand_dust', [

View file

@ -152,6 +152,7 @@ TFCEvents.data(event => {
registerTFCDataForTFCLunchbox(event)
registerTFCDataForTFG(event)
registerTFCDataForWaterFlasks(event)
registerTFCDATAForClimate_range(event)
})
/**

View file

@ -59,4 +59,8 @@ function registerTFCDataForMinecraft(event) {
food.water(2)
food.decayModifier(2)
})
event.foodItem('tfg:roasted_sunflower_seeds', food => {
food.hunger(0.5)
food.decayModifier(0.5)
})
}

View file

@ -87,3 +87,27 @@ const registerTFCFoodData = (event) => {
})
}
//#region Climate Range for Crops
const registerTFCDATAForClimate_range = (event) => {
event.climateRange(climate => {
climate.minHydration(10)
climate.maxHydration(60)
climate.minTemperature(5)
climate.maxTemperature(40)
climate.hydrationWiggle(7.5)
climate.temperatureWiggle(5.5)
}, 'tfg:sunflower')
event.climateRange(climate => {
climate.minHydration(10)
climate.maxHydration(60)
climate.minTemperature(-5)
climate.maxTemperature(25)
climate.hydrationWiggle(7.5)
climate.temperatureWiggle(1.5)
}, 'tfg:rapeseed')
}
//#endregion

View file

@ -2,7 +2,10 @@ const registerTFGItemTags = (event) => {
registerTFGTrimTags(event)
registerFacadeWhitelistTags(event)
//crop stuff
event.add('tfc:seeds', 'tfg:sunflower_seeds')
event.add('tfc:seeds', 'tfg:rapeseed_seeds')
event.add('tfc:foods', 'tfg:roasted_sunflower_seeds')
//temporary hidden items
event.add('c:hidden_from_recipe_viewers', 'tfg:geyser_source_small')
event.add('c:hidden_from_recipe_viewers', 'tfg:geyser_source')
@ -300,7 +303,12 @@ const registerTFGItemTags = (event) => {
const registerTFGBlockTags = (event) => {
event.add('minecraft:mineable/shovel', 'tfg:ash_pile')
//crop stuff
event.add('tfc:crops', 'tfg:rapeseed')
event.add('tfc:mineable_with_sharp_tool', 'tfg:rapeseed')
event.add('tfc:crops', 'tfg:sunflower')
event.add('tfc:mineable_with_sharp_tool','tfg:sunflower')
// #region Nether blocks
event.add('minecraft:nether_carver_replaceables', 'tfg:rock/hardened_deepslate')

View file

@ -612,6 +612,27 @@ function registerVintageImprovementsRecipes(event) {
processingTime: 120
}).id('tfg:vi/vacuumizing/vulcanized_latex_to_raw_rubber')
event.custom({
type: 'vintageimprovements:vacuumizing',
ingredients: [{ item: 'tfg:sunflower_product' }],
results: [{ fluid: 'gtceu:seed_oil', amount: 350 }],
processingTime: 1000
}).id('tfg:vi/vacuumizing/sunflower')
event.custom({
type: 'vintageimprovements:vacuumizing',
ingredients: [{ item: 'tfg:rapeseed_product' }],
results: [{ fluid: 'gtceu:seed_oil', amount: 600 }],
processingTime: 1000
}).id('tfg:vi/vacuumizing/rapeseed')
event.custom({
type: 'vintageimprovements:vacuumizing',
ingredients: [{ tag: 'forge:seeds'}],
results: [{ fluid: 'gtceu:seed_oil', amount: 16 }],
processingTime: 100
}).id('tfg:vi/vacuumizing/seed_oil')
// #endregion
// #region Coiling

View file

@ -1,13 +1,15 @@
// priority: 0
StartupEvents.registry('item', event => {
registerGTCEuItems(event)
registerTFGItems(event)
registerGTCEuItems(event)
registerTFGItems(event)
registerTFGPlants(event)
})
StartupEvents.registry('block', event => {
registerTFGBlocks(event)
registerTFGCrops(event)
registerBetterEndBlocks(event)
registerTFGBlocks(event)
})
StartupEvents.registry('entity_type', event => {

View file

@ -0,0 +1,70 @@
//#region New Crops
// Sunflower
const registerTFGCrops = (event) => {
event.create('tfg:sunflower', 'tfc:double_crop')
.displayName('Sunflower')
.nutrient('nitrogen')
.stages(8)
.hardness(0.4)
.texture('tfg:block/plant/sunflower')
['productItem(java.util.function.Consumer)'](product=> {
product.translationKey('item.tfg.sunflower')
product.texture('tfg:item/plant/sunflower_plant')
})
.seedItem(seed => {
seed.translationKey('item.tfg.sunflower_seed')
seed.texture('tfg:item/plant/sunflower_seed')
})
.deadBlock(dead => {
dead.translationKey('item.tfg.sunflower_dead')
dead.hardness(0.2)
})
event.create('tfg:wild_sunflower', 'tfc:wild_crop')
.type('double')
.translationKey('item.tfg.wild_sunflower')
.seeds('tfg:sunflower_seeds')
.hardness(0.2)
event.create('tfg:rapeseed', 'tfc:double_crop')
.displayName('Rapeseed')
.nutrient('phosphorous')
.stages(12)
.hardness(0.4)
.texture('tfg:block/plant/rapeseed')
['productItem(java.util.function.Consumer)'](product => {
product.translationKey('item.tfg.rapeseed')
product.texture('tfg:item/plant/rapeseed_plant')
})
.seedItem(seed => {
seed.translationKey('item.tfg.rapeseed_seed')
seed.texture('tfg:item/plant/rapeseed_seed')
})
.deadBlock(dead => {
dead.translationKey('item.tfg.rapeseed_dead')
dead.hardness(0.2)
})
event.create('tfg:wild_rapeseed', 'tfc:wild_crop')
.type('double')
.translationKey('item.tfg.wild_rapeseed')
.seeds('tfg:rapeseed_seeds')
.hardness(0.2)
}
//#endregion
//#region New Items
const registerTFGPlants = (event) => {
event.create('tfg:roasted_sunflower_seeds')
.translationKey('item.tfg.roasted_sunflower_seeds')
.texture('tfg:item/plant/roasted_sunflower_seeds')
}
//#endregion