diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index e869f0a..2400bf6 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -112,6 +112,19 @@ minetest.register_node("default:grass", { stack_max = 40 }) +minetest.register_node("default:dry_grass", { + description = "Dry Grass", + tiles = {"default_dry_grass.png", + "default_dirt.png", + {name = "default_dirt.png^default_dry_grass_side.png", + tileable_vertical = false}}, + groups = {crumbly = default.dig.dirt, soil = 1}, + drop = "default:dry_dirt", + sounds = default.node_sound_dirt_defaults({ + footstep = {name = "default_grass_footstep", gain = 0.4}, + }) +}) + minetest.register_node("default:dirt_with_snow", { description = "Dirt with Snow", tiles = {"default_snow.png", "default_dry_dirt.png", "default_dry_dirt.png^default_snow_side.png"}, diff --git a/mods/default/textures/default_dry_grass.png b/mods/default/textures/default_dry_grass.png new file mode 100644 index 0000000..302c568 Binary files /dev/null and b/mods/default/textures/default_dry_grass.png differ diff --git a/mods/default/textures/default_dry_grass_side.png b/mods/default/textures/default_dry_grass_side.png new file mode 100644 index 0000000..eec20a2 Binary files /dev/null and b/mods/default/textures/default_dry_grass_side.png differ diff --git a/mods/default/textures/default_grass.png b/mods/default/textures/default_grass.png index abd6848..94aebb1 100644 Binary files a/mods/default/textures/default_grass.png and b/mods/default/textures/default_grass.png differ diff --git a/mods/farming/init.lua b/mods/farming/init.lua index 2029be1..538691f 100644 --- a/mods/farming/init.lua +++ b/mods/farming/init.lua @@ -144,14 +144,16 @@ minetest.register_abm({ return end if not minetest.find_node_near(pos, 6, {"group:water", "default:junglegrass"}) then - minetest.set_node(pos, {name = "default:dry_dirt"}) + --minetest.set_node(pos, {name = "default:dry_dirt"}) + minetest.set_node(pos, {name = "default:dry_grass"}) else pos.y = pos.y + 1 local nn = minetest.get_node(pos).name pos.y = pos.y - 1 if minetest.registered_nodes[nn] and minetest.registered_nodes[nn].walkable and not minetest.registered_nodes[nn].sunlight_propagates then - minetest.set_node(pos, {name="default:dry_dirt"}) + --minetest.set_node(pos, {name = "default:dry_dirt"}) + minetest.set_node(pos, {name = "default:dry_grass"}) end end end