[Mod] Flood Light [flood_light]
[Mod] Flood Light [flood_light]
adds a flood light.
screenshots:
crafting:
flood light: M=mese_crystall E=empty S=steel_ingot
(E)(M)(E)
(E)(S)(E)
(S)(S)(S)
Code: LGPLv2.1+, textures: CC BY-SA 3.0 Unported
Mod dependencies: default
Download: https://github.com/zander999/flood_light
zip:
screenshots:
crafting:
flood light: M=mese_crystall E=empty S=steel_ingot
(E)(M)(E)
(E)(S)(E)
(S)(S)(S)
Code: LGPLv2.1+, textures: CC BY-SA 3.0 Unported
Mod dependencies: default
Download: https://github.com/zander999/flood_light
zip:
- Attachments
-
- 2017-03-16-093955_1920x1080_scrot.png (11.86 KiB) Viewed 486 times
Last edited by zm78 on Thu Mar 16, 2017 03:48, edited 1 time in total.
my mods:
bac: viewtopic.php?f=9&t=15546
stone: viewtopic.php?f=9&t=15580&p=234896#p234896
talliant: viewtopic.php?f=9&t=15653
neolaser: viewtopic.php?f=9&t=16869
bac: viewtopic.php?f=9&t=15546
stone: viewtopic.php?f=9&t=15580&p=234896#p234896
talliant: viewtopic.php?f=9&t=15653
neolaser: viewtopic.php?f=9&t=16869
- octacian
- Member
- Posts: 597
- Joined: Mon Dec 21, 2015 22:18
- GitHub: octacian
- IRC: octacian
- In-game: octacian
- Location: Canada
Re: [Mod]flood light[flood_light]
The meselamp is already as bright as possible (in 0.4.15). Also, rather than uploading a ZIP, since your mod is on GitHub you can just link to https://github.com/zander999/flood_ligh ... master.zip (the same goes for anything on GitHub - to get this link click "Clone or Download", right-click "Download ZIP" and select "Copy Address").
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
I'm currently inactive in the Minetest community! So if I don't respond, that's why.
I'm currently inactive in the Minetest community! So if I don't respond, that's why.
Re: [Mod]flood light[flood_light]
ok just made it for fun
my mods:
bac: viewtopic.php?f=9&t=15546
stone: viewtopic.php?f=9&t=15580&p=234896#p234896
talliant: viewtopic.php?f=9&t=15653
neolaser: viewtopic.php?f=9&t=16869
bac: viewtopic.php?f=9&t=15546
stone: viewtopic.php?f=9&t=15580&p=234896#p234896
talliant: viewtopic.php?f=9&t=15653
neolaser: viewtopic.php?f=9&t=16869
- octacian
- Member
- Posts: 597
- Joined: Mon Dec 21, 2015 22:18
- GitHub: octacian
- IRC: octacian
- In-game: octacian
- Location: Canada
Re: [Mod]flood light[flood_light]
Yep, that's what mods are for :D
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
I'm currently inactive in the Minetest community! So if I don't respond, that's why.
I'm currently inactive in the Minetest community! So if I don't respond, that's why.
- Diamond knight
- Member
- Posts: 475
- Joined: Sun Apr 19, 2015 19:50
- GitHub: Diamondknight
- In-game: Ferrumprinceps
- Location: Chilling in Constantinople
- Contact:
Re: [Mod]flood light[flood_light]
The brightness of 15 being highest needs to change sometime.
You should make it generate airlike nodes around it that each have a brightness of 15 (by abm) as a hacky way for right now.
You should make it generate airlike nodes around it that each have a brightness of 15 (by abm) as a hacky way for right now.
My modding team: https://github.com/basilea-rhomaion
- Hybrid Dog
- Member
- Posts: 2834
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
You don't need additional nodes, you can set the light manually using vmanip.
l need to rework my shadows mod…
Code: Select all
minetest.override_item("default:wood", {
on_construct = function(pos)
local pos1 = vector.add(pos, -5)
local pos2 = vector.add(pos, 5)
-- Get the vmanip object and the area and nodes
local manip = minetest.get_voxel_manip()
local e1, e2 = manip:read_from_map(pos1, pos2)
local area = VoxelArea:new{MinEdge=e1, MaxEdge=e2}
local data = manip:get_light_data()
-- set non-sunlight everywhere to 15
for i in area:iterp(pos1, pos2) do
-- 4 Bit independent light, 4 Bit sunlight
data[i] = 0xf0 + data[i] % 0x10
end
-- Return the changed, change map and show it to the players
manip:set_light_data(data)
manip:write_to_map()
end
})
l need to rework my shadows mod…
- Attachments
-
- screenshot_20170316_205942.png (623.17 KiB) Viewed 485 times
Re: [Mod]flood light[flood_light]
ok but it was made a bright decoration
my mods:
bac: viewtopic.php?f=9&t=15546
stone: viewtopic.php?f=9&t=15580&p=234896#p234896
talliant: viewtopic.php?f=9&t=15653
neolaser: viewtopic.php?f=9&t=16869
bac: viewtopic.php?f=9&t=15546
stone: viewtopic.php?f=9&t=15580&p=234896#p234896
talliant: viewtopic.php?f=9&t=15653
neolaser: viewtopic.php?f=9&t=16869
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: [Mod] Flood Light [flood_light]
is this still continued? :D
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- Hybrid Dog
- Member
- Posts: 2834
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Who is online
Users browsing this forum: No registered users and 34 guests