123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- minetest.register_node('lights:street_light_base', {
- description = 'Street Light Base',
- drawtype = 'mesh',
- mesh = 'lights_street_light_base.obj',
- tiles = {'lights_street_light_base.png'},
- paramtype = 'light',
- selection_box = {type = 'fixed',
- fixed = {
- {-.2, -.5, -.2, .2, .5, .2},}},
- collision_box = {type = 'fixed',
- fixed = {
- {-.2, -.5, -.2, .2, .5, .2},}},
- groups = {breakable=1},
- })
- minetest.register_node('lights:street_light_top', {
- description = 'Street Light top',
- drawtype = 'mesh',
- mesh = 'lights_street_light_top.obj',
- tiles = {'lights_street_light_top.png'},
- paramtype = 'light',
- selection_box = {type = 'fixed',
- fixed = {
- {-.125, -.5, -.125, .125, .5, .125},}},
- collision_box = {type = 'fixed',
- fixed = {
- {-.125, -.5, -.125, .125, .5, .125},}},
- groups = {breakable=1},
- })
- minetest.register_node('lights:street_light_light', {
- description = 'Street Light',
- drawtype = 'mesh',
- mesh = 'lights_street_light_light.obj',
- tiles = {'lights_street_light_light.png'},
- paramtype = 'light',
- paramtype2 = 'facedir',
- light_source = 14,
- selection_box = {type = 'fixed',
- fixed = {
- {-.2, .2, -.2, .2, .5, .75},}},
- collision_box = {type = 'fixed',
- fixed = {
- {-.2, .2, -.2, .2, .5, .75},}},
- groups = {breakable=1},
- on_construct = function(pos)
- lights.drop_light(pos, 14)
- end,
- on_destruct = lights.dropped_light_removal
- })
|