2023-05-10 23:39:08 +00:00
|
|
|
local S = minetest.get_translator("electric_biomes")
|
2023-03-13 17:39:52 +00:00
|
|
|
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",{
|
2023-03-18 20:52:22 +00:00
|
|
|
description = "Oak",
|
|
|
|
groups = {flammable = 2}
|
2023-03-13 17:39:52 +00:00
|
|
|
})
|
2023-05-10 23:39:08 +00:00
|
|
|
minetest.register_node("electric_biomes:grass", {
|
2023-03-13 17:39:52 +00:00
|
|
|
description = S("Grass"),
|
2023-05-10 23:39:08 +00:00
|
|
|
tiles = {"electric_biomes_grass.png"},
|
2023-03-13 17:39:52 +00:00
|
|
|
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")
|
2023-03-13 17:39:52 +00:00
|
|
|
|
|
|
|
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",
|
2023-03-13 17:39:52 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
|