good night commit
This commit is contained in:
parent
eee27ca381
commit
6432eb425e
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 |
@ -1,17 +1,7 @@
|
|||||||
--[[
|
--[[
|
||||||
StreetsMod: inDev Trafficlights
|
StreetsMod: inDev Trafficlights
|
||||||
]]
|
]]
|
||||||
minetest.register_node(":streets:trafficlight_top_off",{
|
streets.tlBox = {
|
||||||
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 = {
|
|
||||||
--[[ Thank you, rubenwardy, for your awesome NodeboxEditor! Not perfect, but still great! ]]
|
--[[ 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.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
|
{-0.0625,0.375,0.3125,0.0625,0.4375,0.5}, --nodebox2
|
||||||
@ -23,15 +13,29 @@ minetest.register_node(":streets:trafficlight_top_off",{
|
|||||||
{-0.125,0,0.3125,-0.0625,0.0625,0.5}, --nodebox8
|
{-0.125,0,0.3125,-0.0625,0.0625,0.5}, --nodebox8
|
||||||
{0.0625,-0.3125,0.3125,0.125,-0.25,0.5}, --nodebox9
|
{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
|
{-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",{
|
minetest.register_node(":streets:trafficlight_top_red",{
|
||||||
description = S("U cheater U"),
|
description = S("U cheater U"),
|
||||||
drop = "",
|
drop = "",
|
||||||
groups = {cracky = 1, not_in_creative_inventory = 1},
|
groups = {cracky = 1},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
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"},
|
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 = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = streets.tlBox
|
||||||
{-0.25,-0.5,-0.25,0.25,0.5,0.25}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
pointable = false,
|
pointable = false,
|
||||||
light_source = 6,
|
light_source = 6,
|
||||||
@ -50,7 +52,7 @@ minetest.register_node(":streets:trafficlight_top_red",{
|
|||||||
minetest.register_node(":streets:trafficlight_top_yellow",{
|
minetest.register_node(":streets:trafficlight_top_yellow",{
|
||||||
description = S("U cheater U"),
|
description = S("U cheater U"),
|
||||||
drop = "",
|
drop = "",
|
||||||
groups = {cracky = 1, not_in_creative_inventory = 1},
|
groups = {cracky = 1},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
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"},
|
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 = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = streets.tlBox
|
||||||
{-0.25,-0.5,-0.25,0.25,0.5,0.25}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
pointable = false,
|
pointable = false,
|
||||||
light_source = 6,
|
light_source = 6,
|
||||||
@ -69,7 +69,7 @@ minetest.register_node(":streets:trafficlight_top_yellow",{
|
|||||||
minetest.register_node(":streets:trafficlight_top_redyellow",{
|
minetest.register_node(":streets:trafficlight_top_redyellow",{
|
||||||
description = S("U cheater U"),
|
description = S("U cheater U"),
|
||||||
drop = "",
|
drop = "",
|
||||||
groups = {cracky = 1, not_in_creative_inventory = 1},
|
groups = {cracky = 1},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
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"},
|
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 = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = streets.tlBox
|
||||||
{-0.25,-0.5,-0.25,0.25,0.5,0.25}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
pointable = false,
|
pointable = false,
|
||||||
light_source = 6,
|
light_source = 6,
|
||||||
@ -88,7 +86,7 @@ minetest.register_node(":streets:trafficlight_top_redyellow",{
|
|||||||
minetest.register_node(":streets:trafficlight_top_green",{
|
minetest.register_node(":streets:trafficlight_top_green",{
|
||||||
description = S("U cheater U"),
|
description = S("U cheater U"),
|
||||||
drop = "",
|
drop = "",
|
||||||
groups = {cracky = 1, not_in_creative_inventory = 1},
|
groups = {cracky = 1},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
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"},
|
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 = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = streets.tlBox
|
||||||
{-0.25,-0.5,-0.25,0.25,0.5,0.25}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
pointable = false,
|
pointable = false,
|
||||||
light_source = 6,
|
light_source = 6,
|
||||||
@ -107,7 +103,7 @@ minetest.register_node(":streets:trafficlight_top_green",{
|
|||||||
minetest.register_node(":streets:trafficlight_top_warn",{
|
minetest.register_node(":streets:trafficlight_top_warn",{
|
||||||
description = S("U cheater U"),
|
description = S("U cheater U"),
|
||||||
drop = "",
|
drop = "",
|
||||||
groups = {cracky = 1, not_in_creative_inventory = 1},
|
groups = {cracky = 1},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
@ -118,19 +114,8 @@ minetest.register_node(":streets:trafficlight_top_warn",{
|
|||||||
}},
|
}},
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = streets.tlBox
|
||||||
{-0.25,-0.5,-0.25,0.25,0.5,0.25}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
pointable = false,
|
pointable = false,
|
||||||
light_source = 6,
|
light_source = 6,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "streets:trafficlight_controller",
|
|
||||||
recipe = {
|
|
||||||
{"dye:red","",""},
|
|
||||||
{"dye:yellow","",""},
|
|
||||||
{"dye:green","",""}
|
|
||||||
}
|
|
||||||
})
|
|
Loading…
x
Reference in New Issue
Block a user