good night commit

This commit is contained in:
webdesigner97 2014-04-23 23:07:03 +02:00
parent eee27ca381
commit 6432eb425e
4 changed files with 28 additions and 43 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 750 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 1003 B

View File

@ -1,17 +1,7 @@
--[[
StreetsMod: inDev Trafficlights
]]
minetest.register_node(":streets:trafficlight_top_off",{
description = S("Trafficlight"),
drawtype="nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 1, level = 2},
inventory_image = "streets_trafficlight_inv.png",
light_source = 11,
node_box = {
type = "fixed",
fixed = {
streets.tlBox = {
--[[ Thank you, rubenwardy, for your awesome NodeboxEditor! Not perfect, but still great! ]]
{-0.1875,-0.5,0.5,0.1875,0.5,0.75}, --nodebox1
{-0.0625,0.375,0.3125,0.0625,0.4375,0.5}, --nodebox2
@ -24,14 +14,28 @@ minetest.register_node(":streets:trafficlight_top_off",{
{0.0625,-0.3125,0.3125,0.125,-0.25,0.5}, --nodebox9
{-0.125,-0.3125,0.3125,-0.0625,-0.25,0.5}, --nodebox10
}
minetest.register_node(":streets:trafficlight_top_off",{
description = S("Trafficlight"),
drawtype="nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 1, level = 2},
inventory_image = "streets_trafficlight_inv.png",
light_source = 11,
sunlight_propagates = true,
node_box = {
type = "fixed",
fixed = streets.tlBox
},
tiles = {"streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_green.png"},
tiles = {"streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_off.png"},
})
minetest.register_node(":streets:trafficlight_top_red",{
description = S("U cheater U"),
drop = "",
groups = {cracky = 1, not_in_creative_inventory = 1},
groups = {cracky = 1},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
@ -39,9 +43,7 @@ minetest.register_node(":streets:trafficlight_top_red",{
tiles = {"streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_red.png"},
node_box = {
type = "fixed",
fixed = {
{-0.25,-0.5,-0.25,0.25,0.5,0.25}
}
fixed = streets.tlBox
},
pointable = false,
light_source = 6,
@ -50,7 +52,7 @@ minetest.register_node(":streets:trafficlight_top_red",{
minetest.register_node(":streets:trafficlight_top_yellow",{
description = S("U cheater U"),
drop = "",
groups = {cracky = 1, not_in_creative_inventory = 1},
groups = {cracky = 1},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
@ -58,9 +60,7 @@ minetest.register_node(":streets:trafficlight_top_yellow",{
tiles = {"streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_yellow.png"},
node_box = {
type = "fixed",
fixed = {
{-0.25,-0.5,-0.25,0.25,0.5,0.25}
}
fixed = streets.tlBox
},
pointable = false,
light_source = 6,
@ -69,7 +69,7 @@ minetest.register_node(":streets:trafficlight_top_yellow",{
minetest.register_node(":streets:trafficlight_top_redyellow",{
description = S("U cheater U"),
drop = "",
groups = {cracky = 1, not_in_creative_inventory = 1},
groups = {cracky = 1},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
@ -77,9 +77,7 @@ minetest.register_node(":streets:trafficlight_top_redyellow",{
tiles = {"streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_redyellow.png"},
node_box = {
type = "fixed",
fixed = {
{-0.25,-0.5,-0.25,0.25,0.5,0.25}
}
fixed = streets.tlBox
},
pointable = false,
light_source = 6,
@ -88,7 +86,7 @@ minetest.register_node(":streets:trafficlight_top_redyellow",{
minetest.register_node(":streets:trafficlight_top_green",{
description = S("U cheater U"),
drop = "",
groups = {cracky = 1, not_in_creative_inventory = 1},
groups = {cracky = 1},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
@ -96,9 +94,7 @@ minetest.register_node(":streets:trafficlight_top_green",{
tiles = {"streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_bg.png","streets_tl_green.png"},
node_box = {
type = "fixed",
fixed = {
{-0.25,-0.5,-0.25,0.25,0.5,0.25}
}
fixed = streets.tlBox
},
pointable = false,
light_source = 6,
@ -107,7 +103,7 @@ minetest.register_node(":streets:trafficlight_top_green",{
minetest.register_node(":streets:trafficlight_top_warn",{
description = S("U cheater U"),
drop = "",
groups = {cracky = 1, not_in_creative_inventory = 1},
groups = {cracky = 1},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
@ -118,19 +114,8 @@ minetest.register_node(":streets:trafficlight_top_warn",{
}},
node_box = {
type = "fixed",
fixed = {
{-0.25,-0.5,-0.25,0.25,0.5,0.25}
}
fixed = streets.tlBox
},
pointable = false,
light_source = 6,
})
minetest.register_craft({
output = "streets:trafficlight_controller",
recipe = {
{"dye:red","",""},
{"dye:yellow","",""},
{"dye:green","",""}
}
})