init.lua 899 B

123456789101112131415161718192021222324252627282930313233
  1. minetest.register_node("moregrass:darkgrass", {
  2. description = "Dirt With Lush Grass",
  3. tiles = {
  4. "moregrass_darkgrass_top.png", "default_dirt.png",
  5. {
  6. name = "default_dirt.png^moregrass_darkgrass_side.png",
  7. tileable_vertical = false
  8. }
  9. },
  10. groups = utility.dig_groups("dirt", {falling_node = 1, dirt_type = 1, non_raw_dirt_type = 1, non_sterile_dirt_type = 1, grassy_dirt_type = 1, soil = 1}),
  11. drop = 'default:dirt',
  12. sounds = default.node_sound_dirt_defaults({
  13. footstep = {name = "default_grass_footstep", gain = 0.25},
  14. }),
  15. -- Depreciated.
  16. --on_timer = function(...)
  17. -- return dirtspread.dirt_on_timer(...)
  18. --end,
  19. on_finish_collapse = function(pos, node)
  20. minetest.swap_node(pos, {name="default:dirt"})
  21. end,
  22. on_collapse_to_entity = function(pos, node)
  23. minetest.add_item(pos, {name="default:dirt"})
  24. end,
  25. movement_speed_multiplier = default.SLOW_SPEED_GRASS,
  26. })