Minetest mod that adds scifi themed nodes https://content.minetest.net/packages/D00Med/scifi_nodes/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3KB

  1. local plants = {
  2. {"flower1", "Glow Flower", 1,0, default.LIGHT_MAX},
  3. {"flower2", "Pink Flower", 1.5,0, 10},
  4. {"flower3", "Triffid", 2,5, 0},
  5. {"flower4", "Weeping flower", 1.5,0, 0},
  6. {"plant1", "Bulb Plant", 1,0, 0},
  7. {"plant2", "Trap Plant", 1.5,0, default.LIGHT_MAX},
  8. {"plant3", "Blue Jelly Plant", 1.2,0, 10},
  9. {"plant4", "Green Jelly Plant", 1.2,0, 10},
  10. {"plant5", "Fern Plant", 1.7,0, 0},
  11. {"plant6", "Curly Plant", 1,0, 10},
  12. {"plant7", "Egg weed", 1,0, 0},
  13. {"plant8", "Slug weed", 1,0, 10},
  14. {"plant9", "Prickly Plant", 1,0, 0},
  15. {"plant10", "Umbrella weed", 1,0, 10},
  16. {"eyetree", "Eye Tree", 2.5,0, 0},
  17. {"grass", "Alien Grass", 1,0, 0},
  18. }
  19. for _, row in ipairs(plants) do
  20. local name = row[1]
  21. local desc = row[2]
  22. local size = row[3]
  23. local dmg = row[4]
  24. local light = row[5]
  25. -- Node Definition
  26. minetest.register_node("scifi_nodes:"..name, {
  27. description = desc,
  28. tiles = {"scifi_nodes_"..name..".png"},
  29. drawtype = "plantlike",
  30. inventory_image = {"scifi_nodes_"..name..".png"},
  31. groups = {snappy=1, oddly_breakable_by_hand=1, dig_immediate=3, flora=1},
  32. paramtype = "light",
  33. visual_scale = size,
  34. buildable_to = true,
  35. walkable = false,
  36. damage_per_second = dmg,
  37. selection_box = {
  38. type = "fixed",
  39. fixed = {
  40. {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
  41. }
  42. },
  43. is_ground_content = false,
  44. light_source = light,
  45. })
  46. end