got the oil crops all working!
This commit is contained in:
parent
589ed9cf23
commit
88bac4db34
7 changed files with 128 additions and 4 deletions
|
|
@ -28,7 +28,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"name": "Wild Sunflower",
|
"name": "Wild Sunflower",
|
||||||
"text": "$(thing)Sunflowers$() grow between 5 and 40C, and 100 to 400mm of rainfall. Their seeds can also be roasted and eaten!",
|
"text": "$(thing)Sunflowers$() grow between 5 and 40C, and 100 to 450mm of rainfall. Their seeds can also be roasted and eaten!",
|
||||||
"enable_visualize": false
|
"enable_visualize": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"name": "Wild Rapeseed",
|
"name": "Wild Rapeseed",
|
||||||
"text": "$(thing)Rapeseed$(), also known as $(thing)Canola$(), grows between -5 and 25C, and 50 to 250mm of rainfall.",
|
"text": "$(thing)Rapeseed$(), also known as $(thing)Canola$(), grows between -7 and 25C, and 50 to 350mm of rainfall.",
|
||||||
"enable_visualize": false
|
"enable_visualize": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
"type": "minecraft:random_patch",
|
||||||
|
"config": {
|
||||||
|
"feature": {
|
||||||
|
"feature": {
|
||||||
|
"type": "tfc:tall_wild_crop",
|
||||||
|
"config": {
|
||||||
|
"block": "tfg:rapeseed_wild"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"placement": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:heightmap",
|
||||||
|
"heightmap": "WORLD_SURFACE_WG"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "block_predicate_filter",
|
||||||
|
"predicate": {
|
||||||
|
"type": "tfc:replaceable"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "block_predicate_filter",
|
||||||
|
"predicate": {
|
||||||
|
"type": "would_survive",
|
||||||
|
"state": {
|
||||||
|
"Name": "tfg:rapeseed_wild",
|
||||||
|
"Properties": {
|
||||||
|
"part": "bottom"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tries": 16,
|
||||||
|
"xz_spread": 10,
|
||||||
|
"y_spread": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
"type": "minecraft:random_patch",
|
||||||
|
"config": {
|
||||||
|
"feature": {
|
||||||
|
"feature": {
|
||||||
|
"type": "tfc:tall_wild_crop",
|
||||||
|
"config": {
|
||||||
|
"block": "tfg:sunflower_wild"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"placement": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:heightmap",
|
||||||
|
"heightmap": "WORLD_SURFACE_WG"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "block_predicate_filter",
|
||||||
|
"predicate": {
|
||||||
|
"type": "tfc:replaceable"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "block_predicate_filter",
|
||||||
|
"predicate": {
|
||||||
|
"type": "would_survive",
|
||||||
|
"state": {
|
||||||
|
"Name": "tfg:sunflower_wild",
|
||||||
|
"Properties": {
|
||||||
|
"part": "bottom"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tries": 16,
|
||||||
|
"xz_spread": 10,
|
||||||
|
"y_spread": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"feature": "tfg:earth/rapeseed_patch",
|
||||||
|
"placement": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:rarity_filter",
|
||||||
|
"chance": 80
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:in_square"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "tfc:climate",
|
||||||
|
"min_temperature": -7,
|
||||||
|
"max_temperature": 25,
|
||||||
|
"min_rainfall": 50,
|
||||||
|
"max_rainfall": 350,
|
||||||
|
"max_forest": "edge"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"feature": "tfg:earth/sunflower_patch",
|
||||||
|
"placement": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:rarity_filter",
|
||||||
|
"chance": 80
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:in_square"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "tfc:climate",
|
||||||
|
"min_temperature": 5,
|
||||||
|
"max_temperature": 40,
|
||||||
|
"min_rainfall": 100,
|
||||||
|
"max_rainfall": 450,
|
||||||
|
"max_forest": "sparse"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -558,6 +558,10 @@ const registerTFCPlacedFeatures = (event) => {
|
||||||
event.add('tfc:in_biome/veins', 'tfg:earth/geode/pyrite')
|
event.add('tfc:in_biome/veins', 'tfg:earth/geode/pyrite')
|
||||||
event.add('tfc:in_biome/veins', 'tfg:earth/geode/quartzite')
|
event.add('tfc:in_biome/veins', 'tfg:earth/geode/quartzite')
|
||||||
|
|
||||||
|
// Crops
|
||||||
|
event.add('tfc:feature/crops', 'tfg:earth/sunflower_patch')
|
||||||
|
event.add('tfc:feature/crops', 'tfg:earth/rapeseed_patch')
|
||||||
|
|
||||||
// Other decoration
|
// Other decoration
|
||||||
event.add('tfc:in_biome/underground_decoration', 'tfg:glow_lichen')
|
event.add('tfc:in_biome/underground_decoration', 'tfg:glow_lichen')
|
||||||
event.add('tfc:in_biome/underground_decoration', 'tfg:earth/sulfur_patch')
|
event.add('tfc:in_biome/underground_decoration', 'tfg:earth/sulfur_patch')
|
||||||
|
|
|
||||||
|
|
@ -153,8 +153,8 @@ const registerTFGFauna = (event) => {
|
||||||
const registerTFGCropRanges = (event) => {
|
const registerTFGCropRanges = (event) => {
|
||||||
|
|
||||||
event.climateRange(climate => {
|
event.climateRange(climate => {
|
||||||
climate.minHydration(10)
|
climate.minHydration(20)
|
||||||
climate.maxHydration(60)
|
climate.maxHydration(80)
|
||||||
climate.minTemperature(5)
|
climate.minTemperature(5)
|
||||||
climate.maxTemperature(40)
|
climate.maxTemperature(40)
|
||||||
climate.hydrationWiggle(7.5)
|
climate.hydrationWiggle(7.5)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue