office.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. minetest.register_node('furniture:file_cabinet', {
  2. description = 'File Cabinet',
  3. drawtype = 'mesh',
  4. mesh = 'furniture_file_cabinet.obj',
  5. tiles = {'furniture_file_cabinet.png'},
  6. paramtype = 'light',
  7. paramtype2 = 'facedir',
  8. selection_box = {
  9. type = 'fixed',
  10. fixed = {-.45, -.5, -.5, .45, 1, .45},
  11. },
  12. collision_box = {
  13. type = 'fixed',
  14. fixed = {-.45, -.5, -.5, .45, 1, .45},
  15. },
  16. groups = {breakable=1, stash=1},
  17. on_rightclick = furniture.right_click,
  18. on_punch = furniture.punch
  19. })
  20. minetest.register_node('furniture:pc_old', {
  21. description = 'Old Personal Computer',
  22. drawtype = 'mesh',
  23. mesh = 'furniture_pc_old.obj',
  24. tiles = {'furniture_pc_old.png'},
  25. paramtype = 'light',
  26. paramtype2 = 'facedir',
  27. light_source = 4,
  28. selection_box = {
  29. type = 'fixed',
  30. fixed = {{-.475, -.5, -.25, .45, -.25, .5},
  31. {-.4, -.25, -.25, .35, .45, .45}}
  32. },
  33. collision_box = {
  34. type = 'fixed',
  35. fixed = {{-.475, -.5, -.25, .45, -.25, .5},
  36. {-.4, -.25, -.25, .35, .45, .45}}
  37. },
  38. groups = {breakable=1},
  39. })
  40. minetest.register_node('furniture:pc_screen', {
  41. description = 'Ultrawide monitor',
  42. drawtype = 'mesh',
  43. mesh = 'furniture_pc_screen.obj',
  44. tiles = {'furniture_pc_screen.png'},
  45. paramtype = 'light',
  46. paramtype2 = 'facedir',
  47. light_source = 4,
  48. selection_box = {
  49. type = 'fixed',
  50. fixed = {{-.45, -.5, -.35, .45, -.45, 0},
  51. {-.95, -.45, .3, .95, .45, .45}}
  52. },
  53. collision_box = {
  54. type = 'fixed',
  55. fixed = {{-.45, -.5, -.35, .45, -.45, 0},
  56. {-.95, -.45, .3, .95, .45, .45}}
  57. },
  58. groups = {breakable=1},
  59. })
  60. minetest.register_node('furniture:pc_laptop', {
  61. description = 'Laptop',
  62. drawtype = 'mesh',
  63. mesh = 'furniture_pc_laptop.obj',
  64. tiles = {'furniture_pc_laptop.png'},
  65. paramtype = 'light',
  66. paramtype2 = 'facedir',
  67. light_source = 4,
  68. selection_box = {
  69. type = 'fixed',
  70. fixed = {{-.45, -.5, -.35, .45, -.45, .35},
  71. {-.45, -.45, .25, .45, .15, .5}}
  72. },
  73. collision_box = {
  74. type = 'fixed',
  75. fixed = {{-.45, -.5, -.35, .45, -.45, .35},
  76. {-.45, -.45, .25, .45, .15, .5}}
  77. },
  78. groups = {breakable=1},
  79. })
  80. minetest.register_node('furniture:server_1', {
  81. description = 'Tall Server Rack',
  82. drawtype = 'mesh',
  83. mesh = 'furniture_server_rack_1.obj',
  84. tiles = {'furniture_server_rack_1.png'},
  85. paramtype = 'light',
  86. paramtype2 = 'facedir',
  87. selection_box = {
  88. type = 'fixed',
  89. fixed = {-.45, -.5, -.5, .45, 1.5, .45},
  90. },
  91. collision_box = {
  92. type = 'fixed',
  93. fixed = {-.45, -.5, -.5, .45, 1.5, .45},
  94. },
  95. _sound = 'server_rack',
  96. groups = {breakable=1, plays_sound=1},
  97. })
  98. minetest.register_node('furniture:server_2', {
  99. description = 'Medium Server Rack',
  100. drawtype = 'mesh',
  101. mesh = 'furniture_server_rack_2.obj',
  102. tiles = {'furniture_server_rack_2.png'},
  103. paramtype = 'light',
  104. paramtype2 = 'facedir',
  105. selection_box = {
  106. type = 'fixed',
  107. fixed = {-.45, -.5, -.5, .45, 1, .45},
  108. },
  109. collision_box = {
  110. type = 'fixed',
  111. fixed = {-.45, -.5, -.5, .45, 1, .45},
  112. },
  113. _sound = 'server_rack',
  114. groups = {breakable=1, plays_sound=1},
  115. })
  116. minetest.register_node('furniture:server_3', {
  117. description = 'Short Server Rack',
  118. drawtype = 'mesh',
  119. mesh = 'furniture_server_rack_3.obj',
  120. tiles = {'furniture_server_rack_3.png'},
  121. paramtype = 'light',
  122. paramtype2 = 'facedir',
  123. selection_box = {
  124. type = 'fixed',
  125. fixed = {-.45, -.5, -.5, .45, .5, .45},
  126. },
  127. collision_box = {
  128. type = 'fixed',
  129. fixed = {-.45, -.5, -.5, .45, .5, .45},
  130. },
  131. _sound = 'server_rack',
  132. groups = {breakable=1, plays_sound=1},
  133. })
  134. minetest.register_node('furniture:desk', {
  135. description = 'Desk',
  136. drawtype = 'mesh',
  137. mesh = 'furniture_desk.obj',
  138. tiles = {'furniture_desk.png'},
  139. paramtype = 'light',
  140. paramtype2 = 'colorfacedir',
  141. palette = 'furniture_stain_palette.png',
  142. selection_box = {
  143. type = 'fixed',
  144. fixed = {-.5, -.5, -.5, 1.5, .5, .5}
  145. },
  146. collision_box = {
  147. type = 'fixed',
  148. fixed = {-.5, -.5, -.5, 1.5, .5, .5}
  149. },
  150. groups = {breakable=1, stash=1},
  151. on_rightclick = furniture.right_click,
  152. on_punch = furniture.punch
  153. })
  154. minetest.register_node('furniture:water_cooler', {
  155. description = 'Water Cooler',
  156. drawtype = 'mesh',
  157. mesh = 'furniture_water_cooler.obj',
  158. tiles = {'furniture_water_cooler.png'},
  159. paramtype = 'light',
  160. paramtype2 = 'facedir',
  161. selection_box = {
  162. type = 'fixed',
  163. fixed = {-.375, -.5, -.3125, .375, 1.5, .4375},
  164. },
  165. collision_box = {
  166. type = 'fixed',
  167. fixed = {-.45, -.5, -.5, .45, 1.5, .45},
  168. },
  169. _sound = 'server_rack',
  170. groups = {breakable=1},
  171. })