1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- minetest.register_node('signs:directional_sign', {
- drawtype = 'mesh',
- mesh = 'signs_directional.obj',
- description = 'Directional Sign',
- groups = {breakable=1},
- sunlight_propagates = true,
- paramtype = 'light',
- paramtype2 = 'facedir',
- tiles = {'signs_directional.png'},
- selection_box = {
- type = 'fixed',
- fixed = {-.4, 0, .4, .45, .325, .5},
- },
- collision_box = {
- type = 'fixed',
- fixed = {-.45, -.1, .4, .45, .4, .5},
- },
- on_construct = signs.on_construct,
- after_place_node = signs.after_place_node,
- on_receive_fields = signs.on_receive_fields
- })
- minetest.register_node('signs:post_directional', {-- Update to degrotate after next release.
- drawtype = 'mesh',
- mesh = 'signs_post_directional.obj',
- description = 'Directional Sign Post',
- groups = {breakable=1},
- sunlight_propagates = true,
- paramtype = 'light',
- paramtype2 = 'facedir',
- tiles = {'signs_post_directional.png'},
- selection_box = {
- type = 'fixed',
- fixed = {-.4, -.1, -.1, .45, .4, .1},
- },
- collision_box = {
- type = 'fixed',
- fixed = {-.4, -.3, -.1, .45, .4, .1},
- },
- on_construct = signs.on_construct,
- after_place_node = signs.after_place_node,
- on_receive_fields = signs.on_receive_fields
- })
- minetest.register_node('signs:arrow_hanging', {
- drawtype = 'mesh',
- mesh = 'signs_arrow_hanging.obj',
- description = 'Hanging Arrow Sign',
- groups = {breakable=1},
- sunlight_propagates = true,
- paramtype = 'light',
- paramtype2 = 'facedir',
- tiles = {'signs_arrow_hanging.png'},
- selection_box = {
- type = 'fixed',
- fixed = {-.45, 0, -.1, .45, .5, .1},
- },
- collision_box = {
- type = 'fixed',
- fixed = {-.45, 0, -.1, .45, .5, .1},
- },
- on_construct = signs.on_construct,
- after_place_node = signs.after_place_node,
- on_receive_fields = signs.on_receive_fields
- })
- for i = 1, 6 do
- minetest.register_node('signs:poster_'..i, {
- description = 'Poster',
- drawtype = 'mesh',
- mesh = 'signs_poster_1.obj',
- groups = {breakable=1},
- sunlight_propagates = true,
- paramtype = 'light',
- paramtype2 = 'facedir',
- tiles = {'signs_poster_'..i..'.png'},
- use_texture_alpha = 'clip',
- walkable = false,
- selection_box = {
- type = 'fixed',
- fixed = {-.5, -.5, .45, .5, .5, .5},
- },
- collision_box = {
- type = 'fixed',
- fixed = {-.5, -.5, .45, .5, .5, .5},
- },
- on_construct = signs.on_construct,
- after_place_node = signs.after_place_node,
- on_receive_fields = signs.on_receive_fields
- })
- end
|