123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- local ceiling_tube_col = {
- type = 'fixed',
- fixed = {-.4, -.4, -.4, .4, -.5, .4}, -- Right, Bottom, Back, Left, Top, Front
- }
- local neon_light_level = 8
- minetest.register_node('lights:ceiling_tube_end_long', {
- description = 'Ceiling Tube (Long End)',
- drawtype = 'mesh',
- mesh = 'lights_ceiling_tube_end_long.obj',
- tiles = {'lights_ceiling_tube.png'},
- groups = {breakable=1},
- light_source = neon_light_level,
- paramtype = 'light',
- paramtype2 = 'facedir',
- selection_box = ceiling_tube_col,
- collision_box = ceiling_tube_col,
- on_place = minetest.rotate_node,
- })
- minetest.register_node('lights:ceiling_tube_end_short', {
- description = 'Ceiling Tube (Short End)',
- drawtype = 'mesh',
- mesh = 'lights_ceiling_tube_end_short.obj',
- tiles = {'lights_ceiling_tube.png'},
- groups = {breakable=1},
- light_source = neon_light_level,
- paramtype = 'light',
- paramtype2 = 'facedir',
- selection_box = ceiling_tube_col,
- collision_box = ceiling_tube_col,
- on_place = minetest.rotate_node,
- })
- minetest.register_node('lights:ceiling_tube_straight', {
- description = 'Ceiling Tube',
- drawtype = 'mesh',
- mesh = 'lights_ceiling_tube_straight.obj',
- tiles = {'lights_ceiling_tube.png'},
- groups = {breakable=1},
- light_source = neon_light_level,
- paramtype = 'light',
- paramtype2 = 'facedir',
- selection_box = ceiling_tube_col,
- collision_box = ceiling_tube_col,
- on_place = minetest.rotate_node,
- })
- minetest.register_node('lights:ceiling_tube_T', {
- description = 'Ceiling Tube (T-Junction)',
- drawtype = 'mesh',
- mesh = 'lights_ceiling_tube_T.obj',
- tiles = {'lights_ceiling_tube.png'},
- groups = {breakable=1},
- light_source = neon_light_level,
- paramtype = 'light',
- paramtype2 = 'facedir',
- selection_box = ceiling_tube_col,
- collision_box = ceiling_tube_col,
- on_place = minetest.rotate_node,
- })
- minetest.register_node('lights:ceiling_tube_turn', {
- description = 'Ceiling Tube (90 Degree Turn)',
- drawtype = 'mesh',
- mesh = 'lights_ceiling_tube_turn.obj',
- tiles = {'lights_ceiling_tube.png'},
- groups = {breakable=1},
- light_source = neon_light_level,
- paramtype = 'light',
- paramtype2 = 'facedir',
- selection_box = ceiling_tube_col,
- collision_box = ceiling_tube_col,
- on_place = minetest.rotate_node,
- })
- minetest.register_node('lights:ceiling_tube_U', {
- description = 'Ceiling Tube (U)',
- drawtype = 'mesh',
- mesh = 'lights_ceiling_tube_U.obj',
- tiles = {'lights_ceiling_tube.png'},
- groups = {breakable=1},
- light_source = neon_light_level,
- paramtype = 'light',
- paramtype2 = 'facedir',
- selection_box = ceiling_tube_col,
- collision_box = ceiling_tube_col,
- on_place = minetest.rotate_node,
- })
- minetest.register_node('lights:ceiling_tube_X', {
- description = 'Ceiling Tube (4-way Junction)',
- drawtype = 'mesh',
- mesh = 'lights_ceiling_tube_X.obj',
- tiles = {'lights_ceiling_tube.png'},
- groups = {breakable=1},
- light_source = neon_light_level,
- paramtype = 'light',
- paramtype2 = 'facedir',
- selection_box = ceiling_tube_col,
- collision_box = ceiling_tube_col,
- on_place = minetest.rotate_node,
- })
- local colbox_tube_light = {
- type = 'fixed',
- fixed = {
- {-.1, -.5, -.4, .1, -.4, .4},}}
- minetest.register_node('lights:tube_light', {
- description = 'Tube Light',
- drawtype = 'mesh',
- mesh = 'lights_tube_light.obj',
- paramtype = 'light',
- paramtype2 = 'facedir',
- light_source = 14,
- selection_box = colbox_tube_light,
- collision_box = colbox_tube_light,
- tiles = {'lights_tube_light.png'},
- groups = {breakable=1},
- on_place = minetest.rotate_node,
- })
- local colbox_post_light = {
- type = 'fixed',
- fixed = {
- {-.2, -.5, -.2, .2, -.4, .2},
- {-.125, -.4, -.125, .125, .425, .125},}}
- minetest.register_node('lights:scifi_post', {
- description = 'Scifi Post Light',
- drawtype = 'mesh',
- mesh = 'lights_scifi_post.obj',
- paramtype = 'light',
- paramtype2 = 'facedir',
- light_source = 14,
- selection_box = colbox_post_light,
- collision_box = colbox_post_light,
- tiles = {'lights_scifi_post.png'},
- groups = {breakable=1},
- on_place = minetest.rotate_node,
- })
- local colbox_plaque_light = {
- type = 'fixed',
- fixed = {
- {-.4, -.5, -.4, .4, -.4, .4},}}
- minetest.register_node('lights:plaque', {
- description = 'Scifi Plaque',
- drawtype = 'mesh',
- mesh = 'lights_plaque.obj',
- paramtype = 'light',
- paramtype2 = 'facedir',
- light_source = 14,
- selection_box = colbox_plaque_light,
- collision_box = colbox_plaque_light,
- tiles = {'lights_plaque.png'},
- groups = {breakable=1},
- on_place = minetest.rotate_node,
- })
- local colbox_corner_light = {
- type = 'fixed',
- fixed = {
- {-.25, -.5, .3, .25, -.3, .5},}}
- minetest.register_node('lights:corner', {
- description = 'Scifi inside Corner light',
- drawtype = 'mesh',
- mesh = 'lights_corner.obj',
- paramtype = 'light',
- paramtype2 = 'facedir',
- light_source = 10,
- selection_box = colbox_corner_light,
- collision_box = colbox_corner_light,
- tiles = {'lights_corner.png'},
- groups = {breakable=1},
- on_place = minetest.rotate_node,
- })
|