init.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. local S = minetest.get_translator("basic_ground_nodes")
  2. --for easier movability. Moving this may mess up existing worlds
  3. local modname = minetest.get_current_modname()
  4. --stone, rubble and corresponding ores
  5. rocks_api.register_rock(modname .. ":stone", "Stone",
  6. modname .. "_stone.png", modname .. "_rubble.png", "basic_ground_nodes")
  7. minetest.register_alias("mapgen_stone", modname .. ":stone")
  8. minetest.register_alias("stone", modname .. ":stone")
  9. --dirt
  10. minetest.register_node(modname .. ":dirt",
  11. {
  12. description = S("Dirt"),
  13. tiles = {modname .. "_dirt.png"},
  14. groups = {crumbly = 2, soil = 1},
  15. sounds = generic_media.node_sound_dirt_defaults(),
  16. drop = "",
  17. })
  18. minetest.register_alias("dirt", modname .. ":dirt")
  19. --scorched dirt
  20. minetest.register_node(modname .. ":dirt_scorched",{
  21. description = S("Scorched Dirt"),
  22. tiles = {modname .. "_dirt_scorched.png"},
  23. groups = {crumbly = 2, soil = 1},
  24. sounds = generic_media.node_sound_dirt_defaults(),
  25. drop = "",
  26. })
  27. minetest.register_alias("scorched_dirt", modname .. ":dirt_scorched")
  28. erosion.register_erosion(
  29. {
  30. modname .. ":dirt",
  31. modname .. ":dirt_scorched"
  32. })
  33. --sand
  34. minetest.register_node(modname .. ":sand",{
  35. description = S("Sand"),
  36. tiles = {modname .. "_sand.png"},
  37. groups = {crumbly = 2},
  38. sounds = generic_media.node_sound_sand_defaults(),
  39. drop = "",
  40. })
  41. minetest.register_alias("sand", modname .. ":sand")
  42. erosion.register_erosion(
  43. {
  44. modname .. ":sand"
  45. })