Add 'ilights' (Industrial Lights) mod.
parent
90702774cd
commit
07428a39a8
|
@ -61,6 +61,8 @@ The following mods are also included:
|
|||
* lib/
|
||||
* [biome_lib][] ([WTFPL](mods/lib/biome_lib/README.md))
|
||||
* [signs_lib][] ([BSD/WTFPL](mods/lib/signs_lib/copyright.txt))
|
||||
* lighting/
|
||||
* [ilights][] ([CC BY-SA][lic.ilights]) -- version [d5f6900 Git][ver.ilights]
|
||||
* materials/
|
||||
* [moreores][] ([zlib/CC-BY-SA](mods/materials/moreores/README.md))
|
||||
* [quartz][] ([MIT](mods/materials/quartz/LICENSE.txt))
|
||||
|
@ -183,6 +185,7 @@ The following mods are also included:
|
|||
[hovercraft]: https://forum.minetest.net/viewtopic.php?t=6722
|
||||
[hud]: https://github.com/BlockMen/hud
|
||||
[hudmap]: https://github.com/stujones11/hudmap
|
||||
[ilights]: https://forum.minetest.net/viewtopic.php?t=12200
|
||||
[intllib]: https://forum.minetest.net/viewtopic.php?t=4929
|
||||
[invisible]: https://forum.minetest.net/viewtopic.php?t=14399
|
||||
[inventory_plus]: https://forum.minetest.net/viewtopic.php?t=3100
|
||||
|
@ -239,9 +242,11 @@ The following mods are also included:
|
|||
[worldedge]: https://forum.minetest.net/viewtopic.php?t=10753
|
||||
|
||||
[lic.antum]: mods/antum/LICENSE.txt
|
||||
[lic.ilights]: mods/lighting/ilights/init.lua
|
||||
[lic.creeper]: mods/mobs_aggressive/creeper/LICENSE.md
|
||||
[lic.spawneggs]: mods/spawneggs/README.txt
|
||||
|
||||
[ver.creeper]: https://github.com/Rui-Minetest/creeper/tree/036666e2ccd26632a0c11585af0345c6eaa8c72d
|
||||
[ver.ilights]: https://github.com/minetest-mods/ilights/tree/d5f6900b5a6510f5922a7517ad613633861ce4df
|
||||
[ver.simple_protection]: https://github.com/SmallJoker/simple_protection/tree/c822e561e0349f02b70bf6a8c28059515603a0be
|
||||
[ver.spawneggs]: https://github.com/thefamilygrog66/spawneggs/tree/46503709bb0a1bff586cd345aac6b36936c4c311
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
ilights
|
||||
=======
|
||||
|
||||
Repo for ilights mod
|
|
@ -0,0 +1,4 @@
|
|||
default
|
||||
dye
|
||||
intllib?
|
||||
|
|
@ -0,0 +1 @@
|
|||
Adds various lights.
|
|
@ -0,0 +1,89 @@
|
|||
-- Industrial lights mod by DanDuncombe
|
||||
-- License: CC-By-Sa
|
||||
|
||||
ilights = {}
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
|
||||
if minetest.get_modpath("unified_inventory") or not minetest.setting_getbool("creative_mode") then
|
||||
ilights.expect_infinite_stacks = false
|
||||
else
|
||||
ilights.expect_infinite_stacks = true
|
||||
end
|
||||
|
||||
ilights.modpath = minetest.get_modpath("ilights")
|
||||
|
||||
-- The important stuff!
|
||||
|
||||
ilights.types = {
|
||||
{"white", "White", "#ffffff" },
|
||||
{"grey", "Grey", "#a0a0a0" },
|
||||
{"black", "Black", "#000000" },
|
||||
{"red", "Red", "#ff0000" },
|
||||
{"yellow", "Yellow", "#ffff00" },
|
||||
{"green", "Green", "#00ff00" },
|
||||
{"cyan", "Cyan", "#00ffff" },
|
||||
{"blue", "Blue", "#0000ff" },
|
||||
{"magenta", "Magenta", "#ff00ff" },
|
||||
{"orange", "Orange", "#ff8000" },
|
||||
{"violet", "Violet", "#8000ff" },
|
||||
{"dark_grey", "Dark Grey", "#404040" },
|
||||
{"dark_green", "Dark Green", "#008000" },
|
||||
{"pink", "Pink", "#ffb0ff" },
|
||||
{"brown", "Brown", "#604000" },
|
||||
}
|
||||
|
||||
local lamp_cbox = {
|
||||
type = "fixed",
|
||||
fixed = { -11/32, -8/16, -11/32, 11/32, 4/16, 11/32 }
|
||||
}
|
||||
|
||||
for _, row in ipairs(ilights.types) do
|
||||
local name = row[1]
|
||||
local desc = row[2]
|
||||
local colordef = row[3]
|
||||
|
||||
-- Node Definition
|
||||
|
||||
minetest.register_node("ilights:light_"..name, {
|
||||
description = desc.." Industrial Light",
|
||||
drawtype = "mesh",
|
||||
mesh = "ilights_lamp.obj",
|
||||
tiles = {
|
||||
"ilights_lamp_base.png",
|
||||
"ilights_lamp_cage.png",
|
||||
"ilights_lamp_bulb.png^[colorize:"..colordef..":200",
|
||||
"ilights_lamp_bulb_base.png",
|
||||
"ilights_lamp_lens.png^[colorize:"..colordef.."20:75"
|
||||
},
|
||||
use_texture_alpha = true,
|
||||
groups = {cracky=3},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
light_source = 15,
|
||||
selection_box = lamp_cbox,
|
||||
collision_box = lamp_cbox,
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
||||
if name then
|
||||
|
||||
--Choose craft material
|
||||
minetest.register_craft({
|
||||
output = "ilights:light_"..name.." 3",
|
||||
recipe = {
|
||||
{ "", "default:steel_ingot", "" },
|
||||
{ "dye:"..name, "default:glass", "dye:"..name },
|
||||
{ "default:steel_ingot", "default:torch", "default:steel_ingot" }
|
||||
},
|
||||
})
|
||||
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1 @@
|
|||
name = ilights
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
After Width: | Height: | Size: 668 B |
Binary file not shown.
After Width: | Height: | Size: 486 B |
Binary file not shown.
After Width: | Height: | Size: 425 B |
Binary file not shown.
After Width: | Height: | Size: 651 B |
Loading…
Reference in New Issue