tables.lua 970 B

1234567891011121314151617181920212223242526272829303132
  1. minetest.register_node('furniture:table_basic', {
  2. _doc_items_crafting = 'This is crafted in the Woodworking Station.',
  3. description = 'Basic Table',
  4. drawtype = 'mesh',
  5. mesh = 'furniture_table_basic.obj',
  6. tiles = {'furniture_table_basic.png'},
  7. paramtype = 'light',
  8. paramtype2 = 'colorfacedir',
  9. palette = 'furniture_stain_palette.png',
  10. selection_box = {
  11. type = 'fixed',
  12. fixed = {-.5, -.5, -.5, 1.5, .5, .5},
  13. },
  14. collision_box = {
  15. type = 'fixed',
  16. fixed = {-.5, -.5, -.5, 1.5, .5, .5},
  17. },
  18. groups = {oddly_breakable_by_hand = 2, choppy=3, stainable=1},
  19. after_place_node = function(pos, placer, itemstack)
  20. if not epic.space_to_side(pos) then
  21. minetest.remove_node(pos)
  22. return itemstack
  23. end
  24. end,
  25. after_dig_node = function(pos, oldnode, oldmetadata, digger)
  26. epic.remove_side_node(pos, oldnode)
  27. end,
  28. on_rotate = function(pos, node)
  29. return false
  30. end,
  31. })