nodes.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. -- support for i18n
  2. local S = minetest.get_translator("woodsoils")
  3. -- nodes
  4. minetest.register_node("woodsoils:dirt_with_leaves_1", {
  5. description = S("Forest Soil 1"),
  6. tiles = {
  7. "default_dirt.png^woodsoils_ground_cover.png",
  8. "default_dirt.png",
  9. "default_dirt.png^woodsoils_ground_cover_side.png"},
  10. is_ground_content = true,
  11. groups = {
  12. crumbly=3,
  13. soil=1--,
  14. --not_in_creative_inventory=1
  15. },
  16. drop = 'default:dirt',
  17. sounds = default.node_sound_dirt_defaults({
  18. footstep = {name="default_grass_footstep", gain=0.4},
  19. }),
  20. })
  21. minetest.register_node("woodsoils:dirt_with_leaves_2", {
  22. description = S("Forest Soil 2"),
  23. tiles = {
  24. "woodsoils_ground.png",
  25. "default_dirt.png",
  26. "default_dirt.png^woodsoils_ground_side.png"},
  27. is_ground_content = true,
  28. groups = {
  29. crumbly=3,
  30. soil=1--,
  31. --not_in_creative_inventory=1
  32. },
  33. drop = 'default:dirt',
  34. sounds = default.node_sound_dirt_defaults({
  35. footstep = {name="default_grass_footstep", gain=0.4},
  36. }),
  37. })
  38. minetest.register_node("woodsoils:grass_with_leaves_1", {
  39. description = S("Forest Soil 3"),
  40. tiles = {
  41. "default_grass.png^woodsoils_ground_cover2.png",
  42. "default_dirt.png",
  43. "default_dirt.png^default_grass_side.png^woodsoils_ground_cover_side2.png"},
  44. is_ground_content = true,
  45. groups = {
  46. crumbly=3,
  47. soil=1--,
  48. --not_in_creative_inventory=1
  49. },
  50. drop = 'default:dirt',
  51. sounds = default.node_sound_dirt_defaults({
  52. footstep = {name="default_grass_footstep", gain=0.4},
  53. }),
  54. })
  55. minetest.register_node("woodsoils:grass_with_leaves_2", {
  56. description = S("Forest Soil 4"),
  57. tiles = {
  58. "default_grass.png^woodsoils_ground_cover.png",
  59. "default_dirt.png",
  60. "default_dirt.png^default_grass_side.png^woodsoils_ground_cover_side.png"},
  61. is_ground_content = true,
  62. groups = {
  63. crumbly=3,
  64. soil=1--,
  65. --not_in_creative_inventory=1
  66. },
  67. drop = 'default:dirt',
  68. sounds = default.node_sound_dirt_defaults({
  69. footstep = {name="default_grass_footstep", gain=0.4},
  70. }),
  71. })
  72. -- For compatibility with older stuff
  73. minetest.register_alias("forestsoils:dirt_with_leaves_1", "woodsoils:dirt_with_leaves_1")
  74. minetest.register_alias("forestsoils:dirt_with_leaves_2", "woodsoils:dirt_with_leaves_2")
  75. minetest.register_alias("forestsoils:grass_with_leaves_1", "woodsoils:grass_with_leaves_1")
  76. minetest.register_alias("forestsoils:grass_with_leaves_2", "woodsoils:grass_with_leaves_2")