Skip to content

Commit

Permalink
added Swamp Tall Grass
Browse files Browse the repository at this point in the history
  • Loading branch information
runs authored and runs committed Aug 10, 2021
1 parent 49cd3c9 commit 6d28d30
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
45 changes: 44 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
},
Expand Down
1 change: 1 addition & 0 deletions locale/swaz.es.tr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Binary file added textures/swaz_tall_grass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6d28d30

Please sign in to comment.