--
--- Convert dirt to something that fits the environment
+-- Convert default:dirt to something that fits the environment
--
minetest.register_abm({
neighbors = {
"air",
"group:grass",
+ "group:dry_grass",
"default:snow",
},
interval = 6,
minetest.set_node(pos, {name = "default:dirt_with_snow"})
elseif minetest.get_item_group(name, "grass") ~= 0 then
minetest.set_node(pos, {name = "default:dirt_with_grass"})
+ elseif minetest.get_item_group(name, "dry_grass") ~= 0 then
+ minetest.set_node(pos, {name = "default:dirt_with_dry_grass"})
end
end
})
"default_dirt.png",
{name = "default_dirt.png^default_dry_grass_side.png",
tileable_vertical = false}},
- groups = {crumbly = 3, soil = 1},
+ groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
drop = "default:dirt",
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.4},