plants.lua 849 B

1234567891011121314151617181920212223242526272829303132333435
  1. minetest.register_node("witchcraft:eyeweed", {
  2. description = "Eye weed",
  3. drawtype = "plantlike",
  4. tiles = {"witchcraft_eyeweed.png"},
  5. paramtype = "light",
  6. is_ground_content = false,
  7. buildable_to = true,
  8. sunlight_propagates = true,
  9. inventory_image = "witchcraft_eyeweed.png",
  10. visual_scale = 1,
  11. wield_scale = {x=0.5, y=0.5, z=0.5},
  12. groups = {snappy=3, flammable=1, attached_node=1, flora=1},
  13. drop = "witchcraft:eye",
  14. selection_box = {
  15. type = "fixed",
  16. fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
  17. },
  18. walkable = false,
  19. })
  20. minetest.register_craftitem("witchcraft:eye", {
  21. description = "Eyeball",
  22. inventory_image = "witchcraft_eye.png"
  23. })
  24. minetest.register_decoration({
  25. deco_type = "simple",
  26. place_on = "default:desert_sand",
  27. sidelen = 26,
  28. fill_ratio = 0.005,
  29. biomes = {"desert"},
  30. decoration = "witchcraft:eyeweed",
  31. height = 1,
  32. })