tables.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. minetest.register_node('furniture:table_basic', {
  2. description = 'Basic Table',
  3. drawtype = 'mesh',
  4. mesh = 'furniture_table_basic.obj',
  5. tiles = {'furniture_table_basic.png'},
  6. paramtype = 'light',
  7. paramtype2 = 'colorfacedir',
  8. palette = 'furniture_stain_palette.png',
  9. selection_box = {
  10. type = 'fixed',
  11. fixed = {-.5, -.5, -.5, 1.5, .5, .5},
  12. },
  13. collision_box = {
  14. type = 'fixed',
  15. fixed = {-.5, -.5, -.5, 1.5, .5, .5},
  16. },
  17. groups = {breakable=1},
  18. on_rightclick = furniture.right_click,
  19. on_punch = furniture.punch
  20. })
  21. minetest.register_node('furniture:table_coffee', {
  22. description = 'Coffee Table',
  23. drawtype = 'mesh',
  24. mesh = 'furniture_table_coffee.obj',
  25. tiles = {'furniture_table_coffee.png'},
  26. paramtype = 'light',
  27. paramtype2 = 'colorfacedir',
  28. palette = 'furniture_stain_palette.png',
  29. selection_box = {
  30. type = 'fixed',
  31. fixed = {-.5, -.5, -.5, 1.5, 0, .5},
  32. },
  33. collision_box = {
  34. type = 'fixed',
  35. fixed = {-.5, -.5, -.5, 1.5, 0, .5},
  36. },
  37. groups = {breakable=1},
  38. on_rightclick = furniture.right_click,
  39. on_punch = furniture.punch
  40. })