electric/mods/electric_biomes/biomes/grasslands.lua

59 lines
1.4 KiB
Lua
Raw Normal View History

2023-05-10 23:39:08 +00:00
local S = minetest.get_translator("electric_biomes")
minetest.register_biome({
name = "grasslands",
node_top = "mapgen_topsoil",
depth_top = 1,
node_filler = "mapgen_soil",
depth_filler = 3,
y_max = 1000,
y_min = -3,
heat_point = 50,
humidity_point = 50,
})
2023-05-10 23:39:08 +00:00
ebiometrees.register_tree("electric_biomes:oak",{
description = "Oak",
2023-12-14 11:05:44 +00:00
groups = {flammable = 2},
life = 30,
growth_preferences = {
{ebiometrees.directions.up},
{
ebiometrees.directions.north,
ebiometrees.directions.east,
ebiometrees.directions.south,
ebiometrees.directions.west
}
},
growth_limit = 10,
age_max = 20,
})
2023-05-10 23:39:08 +00:00
minetest.register_node("electric_biomes:grass", {
description = S("Grass"),
2023-05-10 23:39:08 +00:00
tiles = {"electric_biomes_grass.png"},
drawtype = "plantlike",
visual_scale = 1.4,
waving = 1,
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
groups = {snappy = 3, attached_node = 1,
flora = 1, grass = 1, flammable = 1,
fuel = 1
},
})
2023-05-10 23:39:08 +00:00
minetest.register_alias("grass", "electric_biomes:grass")
minetest.register_alias("grassplant", "electric_biomes:grass")
minetest.register_decoration({
deco_type = "simple",
place_on = {"mapgen_topsoil"},
sidelen = 16,
fill_ratio = 0.9,
biomes = {"grasslands"},
y_max = 200,
y_min = 1,
2023-05-10 23:39:08 +00:00
decoration = "electric_biomes:grass",
})