fences.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. minetest.register_node('furniture:fence_1_a', {
  2. _doc_items_crafting = 'This is crafted in the Woodworking Station.',
  3. description = 'Fence',
  4. drawtype = 'mesh',
  5. mesh = 'furniture_fence_1_a.obj',
  6. tiles = {'furniture_fence.png'},
  7. paramtype = 'light',
  8. paramtype2 = 'colorfacedir',
  9. palette = 'furniture_stain_palette.png',
  10. selection_box = {
  11. type = 'fixed',
  12. fixed = {-.375, -.5, -.375, .375, 0.5, .375},
  13. },
  14. collision_box = {
  15. type = 'fixed',
  16. fixed = {-.375, -.5, -.375, .375, 0.5, .375},
  17. },
  18. groups = {oddly_breakable_by_hand = 2, choppy=3, stainable=1},
  19. })
  20. minetest.register_node('furniture:fence_1_b', {
  21. _doc_items_crafting = 'This is crafted in the Woodworking Station.',
  22. description = 'Fence',
  23. drawtype = 'mesh',
  24. mesh = 'furniture_fence_1_b.obj',
  25. tiles = {'furniture_fence.png'},
  26. paramtype = 'light',
  27. paramtype2 = 'colorfacedir',
  28. palette = 'furniture_stain_palette.png',
  29. selection_box = {
  30. type = 'fixed',
  31. fixed = {-.375, -.5, -.375, .375, 0.5, .375},
  32. },
  33. collision_box = {
  34. type = 'fixed',
  35. fixed = {-.375, -.5, -.375, .375, 0.5, .375},
  36. },
  37. groups = {oddly_breakable_by_hand = 2, choppy=3, stainable=1},
  38. })
  39. minetest.register_node('furniture:fence_1_c', {
  40. _doc_items_crafting = 'This is crafted in the Woodworking Station.',
  41. description = 'Fence',
  42. drawtype = 'mesh',
  43. mesh = 'furniture_fence_1_c.obj',
  44. tiles = {'furniture_fence.png'},
  45. paramtype = 'light',
  46. paramtype2 = 'colorfacedir',
  47. palette = 'furniture_stain_palette.png',
  48. selection_box = {
  49. type = 'fixed',
  50. fixed = {-.375, -.5, -.375, .375, 0.5, .375},
  51. },
  52. collision_box = {
  53. type = 'fixed',
  54. fixed = {-.375, -.5, -.375, .375, 0.5, .375},
  55. },
  56. groups = {oddly_breakable_by_hand = 2, choppy=3, stainable=1},
  57. })
  58. minetest.register_node('furniture:fence_1_d', {
  59. _doc_items_crafting = 'This is crafted in the Woodworking Station.',
  60. description = 'Gate',
  61. drawtype = 'mesh',
  62. mesh = 'furniture_fence_1_d.obj',
  63. tiles = {'furniture_fence.png'},
  64. paramtype = 'light',
  65. paramtype2 = 'colorfacedir',
  66. palette = 'furniture_stain_palette.png',
  67. selection_box = {
  68. type = 'fixed',
  69. fixed = {-.375, -.5, -.375, .375, 0.5, .375},
  70. },
  71. collision_box = {
  72. type = 'fixed',
  73. fixed = {-.375, -.5, -.375, .375, 0.5, .375},
  74. },
  75. groups = {oddly_breakable_by_hand = 2, choppy=3, stainable=1},
  76. })