Added lightstreet
This commit is contained in:
parent
3cb1bcca7c
commit
3e3e93bc87
0
mods/light/depends.txt
Normal file
0
mods/light/depends.txt
Normal file
32
mods/light/init.lua
Normal file
32
mods/light/init.lua
Normal 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
|
BIN
mods/light/textures/light_streetlight.png
Normal file
BIN
mods/light/textures/light_streetlight.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 623 B |
BIN
mods/light/textures/light_streetlight_top.png
Normal file
BIN
mods/light/textures/light_streetlight_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 361 B |
Loading…
x
Reference in New Issue
Block a user