Guest User

Mushroom mod

a guest
Apr 13th, 2013
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. minetest.register_node("mushrooms:red_mushroom", {
  2. description = Red mushroom,
  3. drawtype = "plantlike",
  4. tiles = { "red_mushroom.png" },
  5. sunlight_propagates = true,
  6. paramtype = "light",
  7. walkable = false,
  8. groups = { snappy = 3,flammable=2, flower=1 },
  9. sounds = default.node_sound_leaves_defaults(),
  10. selection_box = {
  11. type = "fixed",
  12. fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
  13. },
  14. })
  15.  
  16. minetest.register_node("mushrooms:brown_mushroom", {
  17. description = Brown mushroom,
  18. drawtype = "plantlike",
  19. tiles = { "brown_mushroom.png" },
  20. sunlight_propagates = true,
  21. paramtype = "light",
  22. walkable = false,
  23. groups = { snappy = 3,flammable=2, flower=1 },
  24. sounds = default.node_sound_leaves_defaults(),
  25. selection_box = {
  26. type = "fixed",
  27. fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
  28. },
  29. })
  30.  
  31. matsetes:spawn_on_surfaces({
  32. spawn_delay = 1000,
  33. spawn_plants = {
  34. "mushrooms:red_mushroom",
  35. "mushrooms:brown_mushroom",
  36. },
  37. avoid_radius = 7,
  38. spawn_chance = 200,
  39. spawn_surfaces = {"default:stone"},
  40. seed_diff = 349,
  41. light_min = 9
  42. })
Advertisement
Add Comment
Please, Sign In to add comment