From e3e8d423251bac37f8a52ce150cdc523f7e5f9d2 Mon Sep 17 00:00:00 2001 From: cheapie Date: Fri, 13 May 2016 20:44:49 -0500 Subject: Finish (regular) beacon --- trafficlight/init.lua | 21 ++++++++++++++------- trafficlight/textures/streets_beacon_inv.png | Bin 0 -> 3028 bytes 2 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 trafficlight/textures/streets_beacon_inv.png 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 = { @@ -870,6 +868,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 = { diff --git a/trafficlight/textures/streets_beacon_inv.png b/trafficlight/textures/streets_beacon_inv.png new file mode 100644 index 0000000..bd9a700 Binary files /dev/null and b/trafficlight/textures/streets_beacon_inv.png differ -- cgit v1.2.3