added blinking lights for the spawn.
parent
3cb86833fc
commit
792504a0b1
|
@ -1,5 +1,9 @@
|
|||
2017-05-01:
|
||||
Added in flickering lights for the spawn location.
|
||||
Added license information for the mods.
|
||||
|
||||
2017-04-30:
|
||||
Added in space ship nodes for the spawn location.
|
||||
Added in many space ship nodes for the spawn location.
|
||||
Added nodes relating the the iron metal.
|
||||
|
||||
2017-04-19:
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
Commands:
|
||||
|
||||
Gamer:
|
||||
Code
|
||||
Originally by celeron55, Perttu Ahola <celeron55@gmail.com> (LGPL 2.1)
|
||||
Various Minetest developers and contributors (LGPL 2.1)
|
||||
With a few tweaks by Nathan Salapat (LGPL 2.1)
|
||||
Media
|
||||
gamer_model.b3d: MirceaKitsune (CC BY-SA 3.0)
|
||||
gamer_skin.png: Jordach (CC BY-SA 3.0)
|
||||
everything else: Nathan Salapat (CC BY-SA 3.0)
|
||||
|
||||
Ground:
|
||||
Code
|
||||
Nathan Salapat (LGPL 2.1)
|
||||
Media
|
||||
Nathan Salapat (CC BY-SA 3.0)
|
||||
|
||||
Metals:
|
||||
Code
|
||||
Nathan Salapat (LGPL 2.1)
|
||||
Media
|
||||
Nathan Salapat (CC BY-SA 3.0)
|
||||
|
||||
Spawn:
|
||||
Code
|
||||
Nathan Salapat (LGPL 2.1)
|
||||
Media
|
||||
Nathan Salapat (CC BY-SA 3.0)
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,35 @@
|
|||
# Blender v2.78 (sub 4) OBJ File: 'SpaceShip.blend'
|
||||
# www.blender.org
|
||||
o Cube_Cube.013
|
||||
v 0.100000 -0.400000 0.400000
|
||||
v 0.100000 -0.500000 0.400000
|
||||
v 0.100000 -0.400000 -0.400000
|
||||
v 0.100000 -0.500000 -0.400000
|
||||
v -0.100000 -0.400000 0.400000
|
||||
v -0.100000 -0.500000 0.400000
|
||||
v -0.100000 -0.400000 -0.400000
|
||||
v -0.100000 -0.500000 -0.400000
|
||||
vt 0.093750 0.093750
|
||||
vt 0.093750 0.000000
|
||||
vt 0.906250 0.000000
|
||||
vt 0.906250 0.093750
|
||||
vt 1.000000 0.093750
|
||||
vt 1.000000 0.312500
|
||||
vt 0.906250 0.312500
|
||||
vt 0.906250 0.406250
|
||||
vt 0.093750 0.406250
|
||||
vt 0.093750 0.312500
|
||||
vt 0.000000 0.312500
|
||||
vt 0.000000 0.093750
|
||||
vn 1.0000 0.0000 0.0000
|
||||
vn 0.0000 0.0000 -1.0000
|
||||
vn -1.0000 -0.0000 -0.0000
|
||||
vn 0.0000 0.0000 1.0000
|
||||
vn -0.0000 1.0000 0.0000
|
||||
g Cube_Cube.013_None
|
||||
s off
|
||||
f 1/1/1 2/2/1 4/3/1 3/4/1
|
||||
f 3/4/2 4/5/2 8/6/2 7/7/2
|
||||
f 7/7/3 8/8/3 6/9/3 5/10/3
|
||||
f 5/10/4 6/11/4 2/12/4 1/1/4
|
||||
f 3/4/5 7/7/5 5/10/5 1/1/5
|
|
@ -62,3 +62,54 @@ minetest.register_node('spawn:console3', {
|
|||
tiles = {'spawn_floor_blank.png', 'spawn_console_top3.png', 'spawn_console_front.png'},
|
||||
groups = {oddly_breakable_by_hand=3}
|
||||
})
|
||||
|
||||
local colbox_tube_light = {
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-.1, -.5, -.4, .1, -.4, .4},}}
|
||||
|
||||
minetest.register_node('spawn:tube_light', {
|
||||
description = 'Tube Light',
|
||||
drawtype = 'mesh',
|
||||
mesh = 'spawn_tube_light.obj',
|
||||
paramtype = 'light',
|
||||
paramtype2 = 'facedir',
|
||||
light_source = 14,
|
||||
selection_box = colbox_tube_light,
|
||||
collision_box = colbox_tube_light,
|
||||
tiles = {'spawn_tube_light.png'},
|
||||
groups = {oddly_breakable_by_hand=3},
|
||||
on_place = minetest.rotate_node,
|
||||
on_timer = function(pos)
|
||||
local node = minetest.get_node(pos)
|
||||
local timer = minetest.get_node_timer(pos)
|
||||
local time = math.random(3,15) --this timer controls the light that is off.
|
||||
minetest.set_node(pos,{name='spawn:tube_light_bad',param2=node.param2})
|
||||
timer:start(time)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node('spawn:tube_light_bad', {
|
||||
description = 'Bad Tube Light',
|
||||
drawtype = 'mesh',
|
||||
mesh = 'spawn_tube_light.obj',
|
||||
paramtype = 'light',
|
||||
paramtype2 = 'facedir',
|
||||
light_source = 1,
|
||||
selection_box = colbox_tube_light,
|
||||
collision_box = colbox_tube_light,
|
||||
tiles = {'spawn_tube_light.png'},
|
||||
groups = {oddly_breakable_by_hand=3},
|
||||
on_place = minetest.rotate_node,
|
||||
on_construct = function(pos)
|
||||
local timer = minetest.get_node_timer(pos)
|
||||
timer:start(10)
|
||||
end,
|
||||
on_timer = function(pos)
|
||||
local node = minetest.get_node(pos)
|
||||
local timer = minetest.get_node_timer(pos)
|
||||
local time = math.random(1,3) --this timer controls the light that is on.
|
||||
minetest.set_node(pos,{name='spawn:tube_light',param2=node.param2})
|
||||
timer:start(time)
|
||||
end,
|
||||
})
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 239 B |
Loading…
Reference in New Issue