Add air shield, change time to float value

Air Shield gives off light and can be walked through. Use for doors,
etc.
Time changed from 4500 to 0.1875, which is the same but more compatible
with dev builds.
This commit is contained in:
HeroOfTheWinds 2014-05-22 14:59:21 -10:00
parent 5e7ca794b6
commit ddda298c33
4 changed files with 20 additions and 1 deletions

View file

@ -69,6 +69,25 @@ minetest.register_node("moontest:air", {
buildable_to = true, buildable_to = true,
}) })
minetest.register_node("moontest:air_shield", {
description = "Air Shield",
drawtype = "glasslike",
inventory_image = minetest.inventorycube("moontest_air_shield.png"),
use_texture_alpha = true,
--tiles = {"moontest_air_shield.png"},
tiles = {
{name="moontest_air_shield_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
},
paramtype = "light",
sunlight_propagates = true,
light_source = 7,
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
post_effect_color = {a=100, r=0, g=150, b=255},
})
minetest.register_node("moontest:airgen", { minetest.register_node("moontest:airgen", {
description = "Air Generator", description = "Air Generator",
tiles = {"moontest_airgen.png"}, tiles = {"moontest_airgen.png"},

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

View file

@ -1,7 +1,7 @@
-- Set time to midnight. -- Set time to midnight.
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)
minetest.set_timeofday(4500) minetest.set_timeofday(0.1875)
minetest.setting_set("time_speed", 0) minetest.setting_set("time_speed", 0)
end) end)