diff --git a/init.lua b/init.lua index 21517c7..9d0fa86 100644 --- a/init.lua +++ b/init.lua @@ -227,6 +227,27 @@ minetest.register_node("swaz:swamp_grass", { }, }) +minetest.register_node("swaz:tall_grass", { + description = S("Swamp Tall Grass"), + drawtype = "plantlike", + waving = 1, + visual_scale = 1.25, + tiles = {"swaz_tall_grass.png"}, + inventory_image = "swaz_tall_grass.png", + wield_image = "swaz_tall_grass.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + buildable_to = true, + groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 0.0, 4 / 16}, + }, +}) + + minetest.register_node("swaz:pampas_grass", { description = S("Pampas Grass"), drawtype = "plantlike", @@ -656,7 +677,29 @@ if mg_name ~= "v6" and mg_name ~= "singlenode" then offset = 0.8, scale = 0.08, spread = {x = 250, y = 250, z = 250}, - seed = 2, + seed = 233, + octaves = 3, + persist = 0.66 + }, + y_min = 1, + y_max = 80, + spawn_by = "swaz:water_source", + num_spawn_by = 1, + --num_spawn_by = 8, + }) + + minetest.register_decoration({ + decoration = "swaz:tall_grass", + deco_type = "simple", + place_on = "swaz:silt_with_grass", + sidelen = 16, + fill_ratio = 2.0, + biomes = {"swampz"}, + noise_params = { + offset = 0.8, + scale = 0.08, + spread = {x = 250, y = 250, z = 250}, + seed = 2223, octaves = 3, persist = 0.66 }, diff --git a/locale/swaz.es.tr b/locale/swaz.es.tr index 7c82169..0b0c6a8 100644 --- a/locale/swaz.es.tr +++ b/locale/swaz.es.tr @@ -34,3 +34,4 @@ Barberry Bush Sapling=RetoƱo de agracejo Iris=Iris flower=flor Swampy Water Bucket=Cubo de agua fangosa +Swamp Tall Grass=Hierba alta del pantano diff --git a/textures/swaz_tall_grass.png b/textures/swaz_tall_grass.png new file mode 100644 index 0000000..a88d6e7 Binary files /dev/null and b/textures/swaz_tall_grass.png differ