diff --git a/README.txt b/README.txt index 223b89a..46f4a01 100644 --- a/README.txt +++ b/README.txt @@ -28,6 +28,9 @@ Mapgen: "beach": Usually spawns you on a small beach area with gravel beaches and cliffs nearby, and a village also spawns at the same place. + "wilderness": + At 590, 30, 350 and -100, 11, 200 + Wilderness biome and a village Special credits: Extra-special credit to Kenney(kenney.nl) for the inspiration, diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index f65204b..ee94fdf 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -101,6 +101,23 @@ minetest.register_biome( humidity_point = 40, }) +minetest.register_biome( + { + name = "Wilderness", + + node_top = "default:dirt_with_grass", + node_filler = "default:dirt", + + depth_filler = 4, + depth_top = 1, + + y_min = 3, + y_max = 32000, + + heat_point = 45, + humidity_point = 38, + }) + minetest.register_biome( { name = "Grassland", @@ -312,6 +329,47 @@ minetest.register_decoration( y_max = 32000, }) +minetest.register_decoration( + { + deco_type = "schematic", + place_on = {"default:dirt_with_grass"}, + sidelen = 16, + fill_ratio = 0.004, + biomes = {"Wilderness"}, + flags = "place_center_x, place_center_z", + replacements = {["default:apple"] = "air"}, + schematic = minetest.get_modpath("default").."/schematics/default_tree.mts", + y_min = -32000, + y_max = 32000, + }) + +minetest.register_decoration( + { + deco_type = "schematic", + place_on = {"default:dirt_with_grass"}, + sidelen = 16, + fill_ratio = 0.008, + biomes = {"Wilderness"}, + flags = "place_center_x, place_center_z", + schematic = minetest.get_modpath("default").."/schematics/default_talltree.mts", + y_min = 0, + y_max = 10, + }) + +minetest.register_decoration( + { + deco_type = "schematic", + place_on = {"default:dirt_with_grass"}, + sidelen = 16, + fill_ratio = 0.004, + biomes = {"Wilderness"}, + flags = "place_center_x, place_center_z", + replacements = {["default:leaves"] = "default:leaves_oak", ["default:tree"] = "default:tree_oak", ["default:apple"] = "air"}, + schematic = minetest.get_modpath("default").."/schematics/default_tree.mts", + y_min = -32000, + y_max = 32000, + }) + -- Papyrus minetest.register_decoration( @@ -322,7 +380,7 @@ minetest.register_decoration( num_spawn_by = 1, sidelen = 16, fill_ratio = 0.08, - biomes = {"Grassland Ocean", "Grassland", "Forest", "Deep Forest"}, + biomes = {"Grassland Ocean", "Grassland", "Forest", "Deep Forest", "Wilderness"}, decoration = {"default:papyrus"}, height = 2, height_max = 3, @@ -404,9 +462,59 @@ minetest.register_decoration( y_max = 32000, }) +minetest.register_decoration( + { + deco_type = "simple", + place_on = "default:dirt_with_grass", + sidelen = 16, + fill_ratio = 0.16, + biomes = {"Wilderness"}, + decoration = {"default:grass"}, + y_min = -32000, + y_max = 32000, + }) + +minetest.register_decoration( + { + deco_type = "simple", + place_on = "default:dirt_with_grass", + sidelen = 16, + fill_ratio = 0.12, + biomes = {"Wilderness"}, + decoration = {"default:tall_grass"}, + y_min = -32000, + y_max = 32000, + }) + +-- Ferns + +minetest.register_decoration( + { + deco_type = "simple", + place_on = "default:dirt_with_grass", + sidelen = 16, + fill_ratio = 0.06, + biomes = {"Wilderness"}, + decoration = {"default:fern"}, + y_min = -32000, + y_max = 32000, + }) + -- Farming if minetest.get_modpath("farming") ~= nil then + minetest.register_decoration( + { + deco_type = "simple", + place_on = "default:dirt_with_grass", + sidelen = 16, + fill_ratio = 0.008, + biomes = {"Wilderness"}, + decoration = {"farming:wheat_4"}, + y_min = 0, + y_max = 32000, + }) + minetest.register_decoration( { deco_type = "simple", @@ -480,6 +588,20 @@ minetest.register_decoration( rotation = "0", }) +minetest.register_decoration( + { + deco_type = "schematic", + place_on = {"default:dirt_with_grass"}, + sidelen = 16, + fill_ratio = 0.004, + biomes = {"Wilderness"}, + flags = "place_center_x, place_center_z", + schematic = minetest.get_modpath("default").."/schematics/default_shrub.mts", + y_min = 3, + y_max = 32000, + rotation = "0", + }) + -- Rocks minetest.register_decoration( @@ -614,6 +736,7 @@ minetest.register_ore( -- Springs ore_type = "blob", ore = "default:water_source", wherein = "default:dirt_with_grass", + biomes = {"Grassland"}, clust_scarcity = 18*18*18, clust_num_ores = 1, clust_size = 1, @@ -621,6 +744,19 @@ minetest.register_ore( -- Springs height_max = 31000, }) +minetest.register_ore( -- Pools + { + ore_type = "blob", + ore = "default:water_source", + wherein = "default:dirt_with_grass", + biomes = {"Wilderness"}, + clust_scarcity = 30*30*30, + clust_num_ores = 20, + clust_size = 6, + height_min = 10, + height_max = 40, + }) + minetest.register_ore( -- Swamp { ore_type = "blob", diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index ffe5e3b..89336ef 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -1176,6 +1176,28 @@ minetest.register_node( end, }) +minetest.register_node( + "default:fern", + { + description = "Fern", + drawtype = "plantlike", + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5} + }, + visual_scale = 1.15, + tiles ={"default_fern.png"}, + inventory_image = "default_fern_inventory.png", + wield_image = "default_fern_inventory.png", + paramtype = "light", + waving = 1, + walkable = false, + buildable_to = true, + is_ground_content = true, + groups = {snappy = 2, dig_immediate = 3, attached_node = 1}, + sounds = default.node_sound_leaves_defaults(), + }) + minetest.register_node( "default:swamp_grass", { diff --git a/mods/default/schematics/default_talltree.mts b/mods/default/schematics/default_talltree.mts new file mode 100644 index 0000000..2d57fdb Binary files /dev/null and b/mods/default/schematics/default_talltree.mts differ diff --git a/mods/default/textures/default_fern.png b/mods/default/textures/default_fern.png new file mode 100644 index 0000000..e8cb81a Binary files /dev/null and b/mods/default/textures/default_fern.png differ diff --git a/mods/default/textures/default_fern.xcf b/mods/default/textures/default_fern.xcf new file mode 100644 index 0000000..a81cb8c Binary files /dev/null and b/mods/default/textures/default_fern.xcf differ diff --git a/mods/default/textures/default_fern_inventory.png b/mods/default/textures/default_fern_inventory.png new file mode 100644 index 0000000..649142f Binary files /dev/null and b/mods/default/textures/default_fern_inventory.png differ diff --git a/mods/default/textures/default_fern_inventory.xcf b/mods/default/textures/default_fern_inventory.xcf new file mode 100644 index 0000000..2e0ded4 Binary files /dev/null and b/mods/default/textures/default_fern_inventory.xcf differ diff --git a/mods/farming/plants.lua b/mods/farming/plants.lua index 09dfcb6..53d9366 100644 --- a/mods/farming/plants.lua +++ b/mods/farming/plants.lua @@ -1,7 +1,7 @@ farming.register_plant( "wheat", { - grow_time = 1440, + grow_time = 720, grows_near = {"group:water"}, growing_distance = 3, grows_on = {"group:plantable_soil"}, @@ -12,7 +12,7 @@ farming.register_plant( farming.register_plant( "cotton", { - grow_time = 2880, + grow_time = 1440, grows_near = {"group:water"}, growing_distance = 4, grows_on = {"group:plantable_soil"},