2017-08-03 15:02:56 +02:00
|
|
|
-- support for i18n
|
2020-02-15 15:32:06 +01:00
|
|
|
local S = minetest.get_translator("woodsoils")
|
2017-08-03 15:02:56 +02:00
|
|
|
|
2014-08-12 21:08:11 +02:00
|
|
|
-- nodes
|
|
|
|
|
|
|
|
minetest.register_node("woodsoils:dirt_with_leaves_1", {
|
2017-08-03 15:02:56 +02:00
|
|
|
description = S("Forest Soil 1"),
|
2014-08-12 21:08:11 +02:00
|
|
|
tiles = {
|
2017-08-03 15:02:56 +02:00
|
|
|
"default_dirt.png^woodsoils_ground_cover.png",
|
|
|
|
"default_dirt.png",
|
2014-08-12 21:08:11 +02:00
|
|
|
"default_dirt.png^woodsoils_ground_cover_side.png"},
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {
|
|
|
|
crumbly=3,
|
|
|
|
soil=1--,
|
|
|
|
--not_in_creative_inventory=1
|
|
|
|
},
|
2014-06-04 22:09:06 +02:00
|
|
|
drop = 'default:dirt',
|
2014-08-12 21:08:11 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
footstep = {name="default_grass_footstep", gain=0.4},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("woodsoils:dirt_with_leaves_2", {
|
2017-08-03 15:02:56 +02:00
|
|
|
description = S("Forest Soil 2"),
|
2014-08-12 21:08:11 +02:00
|
|
|
tiles = {
|
2017-08-03 15:02:56 +02:00
|
|
|
"woodsoils_ground.png",
|
|
|
|
"default_dirt.png",
|
2014-08-12 21:08:11 +02:00
|
|
|
"default_dirt.png^woodsoils_ground_side.png"},
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {
|
|
|
|
crumbly=3,
|
|
|
|
soil=1--,
|
|
|
|
--not_in_creative_inventory=1
|
|
|
|
},
|
2014-06-04 22:09:06 +02:00
|
|
|
drop = 'default:dirt',
|
2014-08-12 21:08:11 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
footstep = {name="default_grass_footstep", gain=0.4},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("woodsoils:grass_with_leaves_1", {
|
2017-08-03 15:02:56 +02:00
|
|
|
description = S("Forest Soil 3"),
|
2014-08-12 21:08:11 +02:00
|
|
|
tiles = {
|
2017-08-03 15:02:56 +02:00
|
|
|
"default_grass.png^woodsoils_ground_cover2.png",
|
|
|
|
"default_dirt.png",
|
2014-08-12 21:08:11 +02:00
|
|
|
"default_dirt.png^default_grass_side.png^woodsoils_ground_cover_side2.png"},
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {
|
|
|
|
crumbly=3,
|
|
|
|
soil=1--,
|
|
|
|
--not_in_creative_inventory=1
|
|
|
|
},
|
2014-06-04 22:09:06 +02:00
|
|
|
drop = 'default:dirt',
|
2014-08-12 21:08:11 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
footstep = {name="default_grass_footstep", gain=0.4},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("woodsoils:grass_with_leaves_2", {
|
2017-08-03 15:02:56 +02:00
|
|
|
description = S("Forest Soil 4"),
|
2014-08-12 21:08:11 +02:00
|
|
|
tiles = {
|
2017-08-03 15:02:56 +02:00
|
|
|
"default_grass.png^woodsoils_ground_cover.png",
|
|
|
|
"default_dirt.png",
|
2014-08-12 21:08:11 +02:00
|
|
|
"default_dirt.png^default_grass_side.png^woodsoils_ground_cover_side.png"},
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {
|
|
|
|
crumbly=3,
|
|
|
|
soil=1--,
|
|
|
|
--not_in_creative_inventory=1
|
|
|
|
},
|
2014-06-04 22:09:06 +02:00
|
|
|
drop = 'default:dirt',
|
2014-08-12 21:08:11 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
footstep = {name="default_grass_footstep", gain=0.4},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
|
|
|
-- For compatibility with older stuff
|
|
|
|
minetest.register_alias("forestsoils:dirt_with_leaves_1", "woodsoils:dirt_with_leaves_1")
|
|
|
|
minetest.register_alias("forestsoils:dirt_with_leaves_2", "woodsoils:dirt_with_leaves_2")
|
|
|
|
minetest.register_alias("forestsoils:grass_with_leaves_1", "woodsoils:grass_with_leaves_1")
|
2014-06-04 22:09:06 +02:00
|
|
|
minetest.register_alias("forestsoils:grass_with_leaves_2", "woodsoils:grass_with_leaves_2")
|