summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trafficlight/init.lua21
-rw-r--r--trafficlight/textures/streets_beacon_inv.pngbin0 -> 3028 bytes
2 files changed, 14 insertions, 7 deletions
diff --git a/trafficlight/init.lua b/trafficlight/init.lua
index 5a3fa2b..03e3153 100644
--- a/trafficlight/init.lua
+++ b/trafficlight/init.lua
@@ -227,7 +227,7 @@ minetest.register_node(":streets:beacon_off",{
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 1, level = 2},
- inventory_image = "streets_trafficlight_inv.png",
+ inventory_image = "streets_beacon_inv.png",
light_source = 11,
sunlight_propagates = true,
node_box = {
@@ -257,12 +257,11 @@ minetest.register_node(":streets:beacon_off",{
})
minetest.register_node(":streets:beacon_flashred",{
- description = "Beacon",
+ drop = "streets:beacon_off",
drawtype="nodebox",
paramtype = "light",
paramtype2 = "facedir",
- groups = {cracky = 1, level = 2},
- inventory_image = "streets_trafficlight_inv.png",
+ groups = {cracky = 1, level = 2, not_in_creative_inventory = 1},
light_source = 11,
sunlight_propagates = true,
node_box = {
@@ -295,12 +294,11 @@ minetest.register_node(":streets:beacon_flashred",{
})
minetest.register_node(":streets:beacon_flashyellow",{
- description = "Beacon",
+ drop = "streets:beacon_off",
drawtype="nodebox",
paramtype = "light",
paramtype2 = "facedir",
- groups = {cracky = 1, level = 2},
- inventory_image = "streets_trafficlight_inv.png",
+ groups = {cracky = 1, level = 2, not_in_creative_inventory = 1},
light_source = 11,
sunlight_propagates = true,
node_box = {
@@ -871,6 +869,15 @@ minetest.register_craft({
})
minetest.register_craft({
+ output = "streets:beacon_off",
+ recipe = {
+ {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
+ {"default:steel_ingot", "dye:red", "default:steel_ingot"},
+ {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}
+ }
+})
+
+minetest.register_craft({
output = "streets:digiline_distributor",
recipe = {
{"", "digilines:wire_std_00000000", ""},
diff --git a/trafficlight/textures/streets_beacon_inv.png b/trafficlight/textures/streets_beacon_inv.png
new file mode 100644
index 0000000..bd9a700
--- /dev/null
+++ b/trafficlight/textures/streets_beacon_inv.png
Binary files differ