Crates a new custom biome with specified string identifier.
string identifier of the biome
Specifies the block that will cover the biome. E.g. most of the biomes use grass as cover block, though some of the biomes use other blocks (sand, ice, etc.).
block's tile ID
block data
Reference to itself to be used in sequential calls.
Use CustomBiome.setSurfaceBlock instead.
Defines the client-side biome params from given JSON string.
Reference to itself to be used in sequential calls.
Java java.lang.IllegalArgumentException if the string cannot be parsed.
Many thanks to DansZbar2 for the example!
const CHERRY_BIOME = new CustomBiome("environmental_cherry");
CHERRY_BIOME.setClientJson(JSON.stringify({
"water_surface_color": "#d176e1",
"water_fog_color": "#a35dc2",
"water_surface_transparency": 0.7,
"water_fog_distance": 11,
// custom fog defined in the addon
"fog_identifier": "environmental:environmental_cherry"
}));
Specifies the block that will cover the biome; e.g., most of the biomes use grass as cover block, though some of the biomes use other blocks (sand, ice, etc.).
block's tile ID
block data
Reference to itself to be used in sequential calls.
Sets the block that fills the terrain. Vanilla biomes use stone filling.
block's tile ID
block data
Reference to itself to be used in sequential calls.
Sets biome's foliage color.
red color component, value from 0 to 1
green color component, value from 0 to 1
blue color component, value from 0 to 1
Reference to itself to be used in sequential calls.
Sets biome's foliage color.
integer color value (you can specify it using hex value)
Reference to itself to be used in sequential calls.
Sets biome's grass color. Grass color is interpolated on the bounds of the biome.
red color component, value from 0 to 1
green color component, value from 0 to 1
blue color component, value from 0 to 1
Reference to itself to be used in sequential calls.
Sets biome's grass color. Grass color is interpolated on the bounds of the biome.
integer color value (you can specify it using hex value)
Reference to itself to be used in sequential calls.
Sets the block that fills the floor at the bottom of the sea or the ocean. Vanilla biomes use gravel or stone filling.
block's tile ID
block data
Reference to itself to be used in sequential calls.
Sets the average depth of the sea floor in this biome.
depth of the see floor by Y-axis.
Reference to itself to be used in sequential calls.
Defines the server-side biome params from given JSON string.
Reference to itself to be used in sequential calls.
Java java.lang.IllegalArgumentException if the string cannot be parsed.
Many thanks to DansZbar2 for the example!
const CHERRY_BIOME = new CustomBiome("environmental_cherry");
CHERRY_BIOME.setServerJson(JSON.stringify({
"minecraft:climate": {
"downfall": 0.0,
"snow_accumulation": [ 0.0, 0.0 ],
"temperature": 2.0,
"blue_spores": 0,
"red_spores": 0,
"white_ash": 0,
"ash": 0
},
"minecraft:overworld_height": {
"noise_type": "default"
},
"animal": {},
"monster": {},
"overworld": {},
"environmental_cherry": {},
"minecraft:surface_parameters": {
"top_material": "minecraft:grass",
"mid_material": "minecraft:dirt",
"foundation_material": "minecraft:stone",
"sea_floor_material": "minecraft:clay",
"sea_material": "minecraft:water",
"sea_floor_depth": 7
},
"minecraft:overworld_generation_rules": {
"hills_transformation": "jungle_hills",
"generate_for_climates": [
[ "cold", 5 ],
[ "medium", 20 ],
[ "warm", 35 ]
]
}
}));
Sets biome's sky color.
red color component, value from 0 to 1
green color component, value from 0 to 1
blue color component, value from 0 to 1
Reference to itself to be used in sequential calls.
Sets biome's sky color.
integer color value (you can specify it using hex value)
Reference to itself to be used in sequential calls.
Specifies the block that will be under the covering block of the biome; e.g., most of the biomes use dirt as cover block, though some of the biomes use other blocks.
block's tile ID
block data
Reference to itself to be used in sequential calls.
Sets the average depth of the something in this biome.
surface depth parameter.
Reference to itself to be used in sequential calls.
Sets biome's temperature and downfall.
temperature value, from 0 to 1
downfall value, from 0 to 1
Reference to itself to be used in sequential calls.
Sets biome's water color.
red color component, value from 0 to 1
green color component, value from 0 to 1
blue color component, value from 0 to 1
Reference to itself to be used in sequential calls.
Sets biome's water color.
integer color value (you can specify it using hex value)
Reference to itself to be used in sequential calls.
Static
getObject instance, with all custom biomes registered by every mod.
Static
resetStatic
updateInternal
Called when server detection packet received.
Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.
Class used to create custom biomes. Note that Minecraft has a limit of 256 biomes and there are already more than 100 vanilla biomes, so do not overuse this functionality.