123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- minetest.register_node('furniture:file_cabinet', {
- description = 'File Cabinet',
- drawtype = 'mesh',
- mesh = 'furniture_file_cabinet.obj',
- tiles = {'furniture_file_cabinet.png'},
- paramtype = 'light',
- paramtype2 = 'facedir',
- selection_box = {
- type = 'fixed',
- fixed = {-.45, -.5, -.5, .45, 1, .45},
- },
- collision_box = {
- type = 'fixed',
- fixed = {-.45, -.5, -.5, .45, 1, .45},
- },
- groups = {breakable=1, stash=1},
- on_rightclick = furniture.right_click,
- on_punch = furniture.punch
- })
- minetest.register_node('furniture:pc_old', {
- description = 'Old Personal Computer',
- drawtype = 'mesh',
- mesh = 'furniture_pc_old.obj',
- tiles = {'furniture_pc_old.png'},
- paramtype = 'light',
- paramtype2 = 'facedir',
- light_source = 4,
- selection_box = {
- type = 'fixed',
- fixed = {{-.475, -.5, -.25, .45, -.25, .5},
- {-.4, -.25, -.25, .35, .45, .45}}
- },
- collision_box = {
- type = 'fixed',
- fixed = {{-.475, -.5, -.25, .45, -.25, .5},
- {-.4, -.25, -.25, .35, .45, .45}}
- },
- groups = {breakable=1},
- })
- minetest.register_node('furniture:pc_screen', {
- description = 'Ultrawide monitor',
- drawtype = 'mesh',
- mesh = 'furniture_pc_screen.obj',
- tiles = {'furniture_pc_screen.png'},
- paramtype = 'light',
- paramtype2 = 'facedir',
- light_source = 4,
- selection_box = {
- type = 'fixed',
- fixed = {{-.45, -.5, -.35, .45, -.45, 0},
- {-.95, -.45, .3, .95, .45, .45}}
- },
- collision_box = {
- type = 'fixed',
- fixed = {{-.45, -.5, -.35, .45, -.45, 0},
- {-.95, -.45, .3, .95, .45, .45}}
- },
- groups = {breakable=1},
- })
- minetest.register_node('furniture:pc_laptop', {
- description = 'Laptop',
- drawtype = 'mesh',
- mesh = 'furniture_pc_laptop.obj',
- tiles = {'furniture_pc_laptop.png'},
- paramtype = 'light',
- paramtype2 = 'facedir',
- light_source = 4,
- selection_box = {
- type = 'fixed',
- fixed = {{-.45, -.5, -.35, .45, -.45, .35},
- {-.45, -.45, .25, .45, .15, .5}}
- },
- collision_box = {
- type = 'fixed',
- fixed = {{-.45, -.5, -.35, .45, -.45, .35},
- {-.45, -.45, .25, .45, .15, .5}}
- },
- groups = {breakable=1},
- })
- minetest.register_node('furniture:server_1', {
- description = 'Tall Server Rack',
- drawtype = 'mesh',
- mesh = 'furniture_server_rack_1.obj',
- tiles = {'furniture_server_rack_1.png'},
- paramtype = 'light',
- paramtype2 = 'facedir',
- selection_box = {
- type = 'fixed',
- fixed = {-.45, -.5, -.5, .45, 1.5, .45},
- },
- collision_box = {
- type = 'fixed',
- fixed = {-.45, -.5, -.5, .45, 1.5, .45},
- },
- _sound = 'server_rack',
- groups = {breakable=1, plays_sound=1},
- })
- minetest.register_node('furniture:server_2', {
- description = 'Medium Server Rack',
- drawtype = 'mesh',
- mesh = 'furniture_server_rack_2.obj',
- tiles = {'furniture_server_rack_2.png'},
- paramtype = 'light',
- paramtype2 = 'facedir',
- selection_box = {
- type = 'fixed',
- fixed = {-.45, -.5, -.5, .45, 1, .45},
- },
- collision_box = {
- type = 'fixed',
- fixed = {-.45, -.5, -.5, .45, 1, .45},
- },
- _sound = 'server_rack',
- groups = {breakable=1, plays_sound=1},
- })
- minetest.register_node('furniture:server_3', {
- description = 'Short Server Rack',
- drawtype = 'mesh',
- mesh = 'furniture_server_rack_3.obj',
- tiles = {'furniture_server_rack_3.png'},
- paramtype = 'light',
- paramtype2 = 'facedir',
- selection_box = {
- type = 'fixed',
- fixed = {-.45, -.5, -.5, .45, .5, .45},
- },
- collision_box = {
- type = 'fixed',
- fixed = {-.45, -.5, -.5, .45, .5, .45},
- },
- _sound = 'server_rack',
- groups = {breakable=1, plays_sound=1},
- })
- minetest.register_node('furniture:desk', {
- description = 'Desk',
- drawtype = 'mesh',
- mesh = 'furniture_desk.obj',
- tiles = {'furniture_desk.png'},
- paramtype = 'light',
- paramtype2 = 'colorfacedir',
- palette = 'furniture_stain_palette.png',
- selection_box = {
- type = 'fixed',
- fixed = {-.5, -.5, -.5, 1.5, .5, .5}
- },
- collision_box = {
- type = 'fixed',
- fixed = {-.5, -.5, -.5, 1.5, .5, .5}
- },
- groups = {breakable=1, stash=1},
- on_rightclick = furniture.right_click,
- on_punch = furniture.punch
- })
- minetest.register_node('furniture:water_cooler', {
- description = 'Water Cooler',
- drawtype = 'mesh',
- mesh = 'furniture_water_cooler.obj',
- tiles = {'furniture_water_cooler.png'},
- paramtype = 'light',
- paramtype2 = 'facedir',
- selection_box = {
- type = 'fixed',
- fixed = {-.375, -.5, -.3125, .375, 1.5, .4375},
- },
- collision_box = {
- type = 'fixed',
- fixed = {-.45, -.5, -.5, .45, 1.5, .45},
- },
- _sound = 'server_rack',
- groups = {breakable=1},
- })
|