misc.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. minetest.register_node('plants:pumpkin', {
  2. description = 'Pumpkin',
  3. tiles = {'plants_pumpkin_top.png', 'plants_pumpkin_top.png', 'plants_pumpkin_side.png'},
  4. groups = {breakable=1},
  5. paramtype2 = 'facedir',
  6. on_place = minetest.rotate_and_place,
  7. })
  8. minetest.register_node('plants:jackolantern_off', {
  9. description = 'Jack-O-Lantern (off)',
  10. tiles = {'plants_pumpkin_top.png', 'plants_pumpkin_top.png', 'plants_pumpkin_side.png', 'plants_pumpkin_side.png', 'plants_pumpkin_side.png', 'plants_pumpkin_face_off.png'},
  11. groups = {breakable=1},
  12. paramtype2 = 'facedir',
  13. on_place = minetest.rotate_and_place,
  14. })
  15. minetest.register_node('plants:jackolantern_on', {
  16. description = 'Jack-O-Lantern (on)',
  17. tiles = {'plants_pumpkin_top.png', 'plants_pumpkin_top.png', 'plants_pumpkin_side.png', 'plants_pumpkin_side.png', 'plants_pumpkin_side.png', 'plants_pumpkin_face_on.png'},
  18. groups = {breakable=1},
  19. paramtype2 = 'facedir',
  20. light_source = 10,
  21. paramtype = 'light',
  22. on_place = minetest.rotate_and_place,
  23. })
  24. minetest.register_node('plants:melon', {
  25. description = 'Watermelon',
  26. tiles = {'plants_melon_top.png', 'plants_melon_top.png', 'plants_melon_side.png'},
  27. groups = {breakable=1},
  28. paramtype2 = 'facedir',
  29. on_place = minetest.rotate_and_place,
  30. })