summaryrefslogtreecommitdiff
path: root/trafficlight
diff options
context:
space:
mode:
authorChristian <Christian_D_97@gmx.de>2013-11-24 11:14:19 -0800
committerChristian <Christian_D_97@gmx.de>2013-11-24 11:14:19 -0800
commit72081ea604af282ae7a5304dfcc689d8de735756 (patch)
tree161ca95e5fce06902ab9dc91b7644c632b0b448d /trafficlight
parentd04d0c142f3826729c289ea52df1e85ad104dfdc (diff)
parent4fab78d25b26bb9111aa5d5da0511c8395f0c5ca (diff)
downloadroads-72081ea604af282ae7a5304dfcc689d8de735756.tar
roads-72081ea604af282ae7a5304dfcc689d8de735756.tar.gz
roads-72081ea604af282ae7a5304dfcc689d8de735756.tar.bz2
roads-72081ea604af282ae7a5304dfcc689d8de735756.tar.xz
roads-72081ea604af282ae7a5304dfcc689d8de735756.zip
Merge pull request #3 from webdesigner97/indev
new release
Diffstat (limited to 'trafficlight')
-rw-r--r--trafficlight/init.lua32
-rw-r--r--trafficlight/textures/streets_trafficlight_inv.pngbin0 -> 2772 bytes
2 files changed, 24 insertions, 8 deletions
diff --git a/trafficlight/init.lua b/trafficlight/init.lua
index 768c26a..3eaa43a 100644
--- a/trafficlight/init.lua
+++ b/trafficlight/init.lua
@@ -1,9 +1,9 @@
--[[
StreetsMod: inDev Trafficlights
]]
-if streets.extendedBy.mesecons and streets.extendedBy.digilines then
minetest.register_node(":streets:trafficlight_bottom",{
description = "Cheater",
+ drop = "",
groups = {not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
@@ -17,16 +17,11 @@ minetest.register_node(":streets:trafficlight_bottom",{
{-0.1,0.25,-0.1,0.1,0.5,0.1}
}
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.25,-0.5,-0.25,0.25,2.5,0.25},
- }
- }
})
minetest.register_node(":streets:trafficlight_middle",{
description = "Cheater!",
+ drop = "",
groups = {cracky = 1, not_in_creative_inventory = 1},
paramtype = "light",
drawtype = "nodebox",
@@ -43,6 +38,7 @@ minetest.register_node(":streets:trafficlight_middle",{
minetest.register_node(":streets:trafficlight_controller",{
description = "Trafficlight",
+ inventory_image = "streets_trafficlight_inv.png",
tiles = {"streets_lampcontroller_top.png","streets_lampcontroller_bottom.png","streets_lampcontroller_sides.png"},
groups = {cracky = 1},
drawtype = "nodebox",
@@ -54,6 +50,13 @@ minetest.register_node(":streets:trafficlight_controller",{
{-0.05,0.5,-0.05,0.05,1.6,0.05}
}
},
+ selection_box = {
+ type = "fixed",
+ fixed = {
+ {-0.5,-0.5,-0.5,0.5,0.5,0.5},
+ {-0.3,1.5,-0.3,0.3,4.5,0.3}
+ }
+ },
on_receive_fields = function(pos, formname, fields, sender)
minetest.get_meta(pos):set_string("channel", fields.channel)
end,
@@ -117,6 +120,7 @@ minetest.register_node(":streets:trafficlight_controller",{
minetest.register_node(":streets:trafficlight_top_off",{
description = "U cheater U",
+ drop = "",
groups = {cracky = 1, not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
@@ -134,6 +138,7 @@ minetest.register_node(":streets:trafficlight_top_off",{
minetest.register_node(":streets:trafficlight_top_red",{
description = "U cheater U",
+ drop = "",
groups = {cracky = 1, not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
@@ -152,6 +157,7 @@ minetest.register_node(":streets:trafficlight_top_red",{
minetest.register_node(":streets:trafficlight_top_yellow",{
description = "U cheater U",
+ drop = "",
groups = {cracky = 1, not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
@@ -170,6 +176,7 @@ minetest.register_node(":streets:trafficlight_top_yellow",{
minetest.register_node(":streets:trafficlight_top_redyellow",{
description = "U cheater U",
+ drop = "",
groups = {cracky = 1, not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
@@ -188,6 +195,7 @@ minetest.register_node(":streets:trafficlight_top_redyellow",{
minetest.register_node(":streets:trafficlight_top_green",{
description = "U cheater U",
+ drop = "",
groups = {cracky = 1, not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
@@ -206,6 +214,7 @@ minetest.register_node(":streets:trafficlight_top_green",{
minetest.register_node(":streets:trafficlight_top_warn",{
description = "U cheater U",
+ drop = "",
groups = {cracky = 1, not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
@@ -225,4 +234,11 @@ minetest.register_node(":streets:trafficlight_top_warn",{
light_source = 6,
})
-end \ No newline at end of file
+minetest.register_craft({
+ output = "streets:trafficlight_controller",
+ recipe = {
+ {"dye:red","",""},
+ {"dye:yellow","",""},
+ {"dye:green","",""}
+ }
+}) \ No newline at end of file
diff --git a/trafficlight/textures/streets_trafficlight_inv.png b/trafficlight/textures/streets_trafficlight_inv.png
new file mode 100644
index 0000000..fb76b72
--- /dev/null
+++ b/trafficlight/textures/streets_trafficlight_inv.png
Binary files differ