Added lightstreet

This commit is contained in:
sda97ghb 2013-07-29 14:00:21 +06:00
parent 3cb1bcca7c
commit 3e3e93bc87
4 changed files with 32 additions and 0 deletions

0
mods/light/depends.txt Normal file
View File

32
mods/light/init.lua Normal file
View File

@ -0,0 +1,32 @@
minetest.register_node("light:streetlight", {
description = "Streetlight",
drawtype = "nodebox",
tiles = {"light_streetlight_top.png", "light_streetlight_top.png", "light_streetlight.png",},
paramtype = "light",
sunlight_propagates = true,
light_source = 14,
node_box = {
type = "fixed",
fixed = {
{-0.35, -0.375, -0.35, 0.35, 0.375, 0.35},
{-0.2, -0.5, -0.2, 0.2, 0.5, 0.2},
},
},
groups = {choppy=2,dig_immediate=3,flammable=1},
})
metals = {"pig_iron", "bronze"}
fuels = {"charcoal", "anthracite", "bituminous_coal", "lignite"}
for _, metal in ipairs(metals) do
for _, fuel in ipairs(fuels) do
minetest.register_craft({
output = "light:streetlight",
recipe = {
{"metals:"..metal.."_sheet"},
{"minerals:"..fuel},
{"metals:"..metal.."_sheet"},
}
})
end
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 623 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B