neuralgia/kubejs/startup_scripts/tfg/blocks.crops.js
Gustavo f3dfa471ec
Refactor & update to gt7
* gt7 removed credits/coins

* port gregtech additions to java

* add eslint locally

* add style linting

* switch target ECMA standard

* run linter

* clean up a bunch of linter errors

* remove outdated greate API calls

* forgot about the TFC multi compat issue

* reverted greate recipe removals

* some more linting stuff

* fix some issues with greenhouse recipes

* fix up some material stuff

* fix recipe types

* - Fixed single block machine rendering (#1465)

* minor fixes and changes

---------

Signed-off-by: Pyritie <pyritie@gmail.com>
Co-authored-by: Pyritie <pyritie@gmail.com>
Co-authored-by: Redeix <59435925+Redeix@users.noreply.github.com>
2025-07-28 12:27:06 +10:00

65 lines
No EOL
2.1 KiB
JavaScript

// Priority: 0
"use strict";
const registerTFGCrops = (event) => {
event.create('tfg:sunflower', 'tfc:double_crop')
.translationKey('block.tfg.sunflower')
.soundType('crop')
.nutrient('nitrogen')
.stages(4)
.doubleStages(2)
.hardness(0.4)
['productItem(java.util.function.Consumer)'](product => {
product.translationKey('item.tfg.sunflower_product')
product.texture('tfg:item/sunflower_product')
})
.seedItem(seed => {
seed.translationKey('item.tfg.sunflower_seed')
seed.texture('tfg:item/sunflower_seed')
})
.deadBlock(dead => {
dead.translationKey('block.tfg.sunflower_dead')
dead.hardness(0.2)
dead.soundType('crop')
})
event.create('tfg:sunflower_wild', 'tfc:wild_crop')
.type('double')
.translationKey('block.tfg.sunflower_wild')
.soundType('crop')
.seeds('tfg:sunflower_seeds')
.food('tfg:sunflower_product')
.hardness(0.2)
.tagBoth('tfc:wild_crops')
.tagItem('c:hidden_from_recipe_viewers')
event.create('tfg:rapeseed', 'tfc:double_crop')
.translationKey('block.tfg.rapeseed')
.soundType('crop')
.nutrient('phosphorous')
.stages(3)
.doubleStages(3)
.hardness(0.4)
['productItem(java.util.function.Consumer)'](product => {
product.translationKey('item.tfg.rapeseed_product')
})
.seedItem(seed => {
seed.translationKey('item.tfg.rapeseed_seed')
})
.deadBlock(dead => {
dead.translationKey('block.tfg.rapeseed_dead')
dead.hardness(0.2)
dead.soundType('crop')
})
event.create('tfg:rapeseed_wild', 'tfc:wild_crop')
.type('double')
.translationKey('block.tfg.rapeseed_wild')
.soundType('crop')
.seeds('tfg:rapeseed_seeds')
.food('tfg:rapeseed_product')
.hardness(0.2)
.tagBoth('tfc:wild_crops')
.tagItem('c:hidden_from_recipe_viewers')
}