Cozy Lights

Description

Watch quick brush video with audio

Watch quick huge light video with audio

Cozy Lights 🔗

I am asking you to please briefly examine the definition of Early Alpha before installing and reviewing: https://www.google.com/search?client=firefox-b-lm&channel=entpr&q=early+alpha+definition Further development depends on feedback and bug reports, it depends on if you would like to provide feedback and therefore not guaranteed. Documentation is lacking, ask around if this page is not enough. At this dev stage Cozy Lights can be good for builders in creative mode, singleplayer survival is somewhat okayish too, but it has a bit of issues

Just to clarify, early alpha means that some stuff might not work at all, or work incorrectly, and there can be bugs. This mod can ruin your old world, so use it in a new world.

You dont have to do anything to set it up, default settings will make almost all light sources in Luanti illuminate bigger areas:

Buildable voxel light maps are a complete game changer - it is almost like going from 2d to 3d in terms of depth. You now have 14 shades for every visible building block, and it does not have to register 14 versions of every building block. Cobble only challenge has got a whole lot easier, something fun to look at with the least fun texture is possible now with just this mod :> Btw, disabling smooth lighting can make for an interesting aesthetic in some cases. Btw, nothing stops you from using cozy lights schematics on multiplayer servers.

You can also build these lights just like you do with any structures, in other words, place invisible blocks of light of all possible engine light levels block-by-block. Tools are coming soon to make this process more user-friendly, right now you will need to make them visible and interactable in debug mode.

Cozy wielded light:

WARNING 🔗

1. after removing Cozy Lights from your world you will be left with spheres of unknown nodes. Easiest could be to reenable the mod and call /clearlights in all locations Cozy Lights are active, or if its too many then /uncozymode.

2. if you have override_engine_lights enabled(a setting which makes light distribution prettier), then in case you ever remove Cozy Lights mod from your world, you will be left with broken lights. To fix it, you will need to use the mod fixmap or anything that updates/fixes engine lights. override_engine_lights is disabled by default, so it should be safe.

Known issues 🔗

  1. worldedit:placeholder nodes can prevent light map from generating correctly and this currenly happens without notice or options provided. Current workaround is to define a worldedit region and run //replace worldedit:placeholder air before adding lights to the scene. There can be other invisible nodes from some mods and games which would interfere with light map.

  2. Nodecore dynamic lights do not update cozy light map after changing charge.

  3. Cozy Lights together with K Ambient Light are not recommended until resolved.

  4. Can crash your server with out of memory error if you are too potato. Typical limit is about 1-2 GB for LuaJIT because of how it uses 32bit virtual registers or something, and in some cases it can be exceeded, especially in multiplayer, or with very particular mods that place too many light sources on the map

  5. If a mod or a game you like is not supported or there are some problems, tell me, I will see what can be done. You can just drop a list of mods you have issues with in review

  6. The mod might not work out of the box for light sources that where already generated/placed before the mod was enabled, right now you will have to make those cozy manually by running /rebuildlights 80 or something like that. Probably wont fix this

For what it does it's quite fast, and supposed to get even faster, what you see is only a fraction of speed it can have. I have recently discovered that one of my machines has CPU is 12(!) years old and it's actually usable on that PC.

Light Brush 🔗

Not craftable, available only in creative as of now.

Click or hold left mouse button to draw light with given settings. Light Brush' reach is 100 nodes, so you can have perspective. Note: with radiuses over 30 nodes as of now only mouse click works, and mouse hold won't have any effect.

On right click Light Brush settings menu opens. The menu has hopefully useful tooltips for each setting. You can set radius, brightness, strength and draw mode. There are 6 draw modes so far: default, erase, override, lighten, darken and blend.

Chat Commands 🔗

/cozysettings or /zs opens a global settings menu for cozy lights, here you can adjust node light sources like torches, meselamps, fireflies, etc to make it work better with potato or make light reach mad far and stuff. Some settings which you can find in Minetest game settings for the mod are still not present here(like override_engine_lights which makes everything nicer). These changes persist after exiting and re-entering the world again.

Currently max radius is 120 for commands below, if your value is invalid it will adjust to closest valid or report an error. Eventually max radius will be much higher.

/clearlights <number> removes invisible light nodes in area with specified radius. Helpful to remove lights created with light brush. Example usage: /clearlights 120

/rebuildlights <number> rebuilds light map in an area with specified radius. Useful in case you changed the settings or accidentally broke some lights by other commands or by mining in debug. This can be slow if there are lots of light sources in the area with far reaching light. Example usage: /rebuildlights 40

/fixedges <number> fixes obstacles' opposite edges for light map in an area with specified radius. Default algorithm sacrifices accuracy for speed, because of that the lights can still go through diagonal walls if they are only one node thick, and as of now they can sometimes light up an edge(1 block from a corner) of the opposite side of an obstacle. With this command you are supposed to be able to fix it, but currently it's weird, broken. You can use it but the result wont necessarily look good.

/cozydebugon <number> makes all cozy light nodes visible and interactable in an area with a specified radius. With it you can also basically build lights just as you would with any other structures before the tools for that are available.

/cozydebugoff <number> makes all cozy light nodes invisible and non-interactable again in an area with a specified radius.

/optimizeformobile <number> removes all cozy light nodes which do not touch a surface of some visible node, like cobble for example. It is maybe useful, because default algo spreads light in a sphere and lights up the air above the ground too, which might be a bit challenging for potato and mobile to render reliably, they might experience FPS drops. Good if you are building a schematic for a multiplayer server. This option might slightly decrease the quality of light map, basically might make some places darker.

/daynightratio <ratio float> change Minetest engine day_night_ratio for the player who used the command. 0 is the darkest night possible, you can observe how dark it can be on the screenshots, was useful in testing, probably will help with building too. 1 is the brightest possible day. Some gradations in between are maybe under appreciated and seem pretty moody, I guess that would depend on a texture pack.

/cozyadjust <size number> <adjust_by number> <keep_map number> change brightness of all cozy light nodes by adjust_by value in the area of size. Adjust_by can be negative. Keep_map is 1 by default and can be omitted, when it's 1 and adjust_by will result in a value out of bounds of 1-14(engine light levels) even for one node in the area, the command will revert(have no effect at all), so that light map will be preserved. If you are ok with breaking light map, type 0 for keep_map.

/uncozymode <number> - calls clear lights continuously at all players' positions in an area with provided radius. When done, you can disable it by typing /cozymode or go to /cozysettings and adjust there

Memorizing shortcuts for all commands is supposed to be easy, they attempt to follow a convention:

zcl - clearlights

zrl - rebuildlights

zfe - fixedges

zdon - cozydebugon

zdoff - cozydebugoff

zofm - optimizeformobile

zsl - spawnlight

zs - cozysettings

zdnr - daynightratio

za - cozyadjust

LICENSE

MIT+(you are not legally allowed to infect it with GPL, AGPL or EUPL) for my code, will appreciate reasonable attribution

Schematics for screenshots: FB_frosthold.mts by MisterE and coloseum.we by AMMOnym, angel statue is by Wyvern :>

A texture from MTG, which will be eventually replaced: default_glass.png is by Krock (CC0 1.0)

my debug textures are WTFPL if anything

Reviews

Review

Do you recommend this mod?

  • English

    Basically a sophisticated light brush

    This mod is really not only for 'kozy' environments, but in reality it adds a cool brush for lighting up the world.

    It is pretty sophisticated, featuring customizable radius, brighness and strength with modes, such as 'darken', 'blend' or 'erase'. There are even a few commands, and short aliases for them.

    It even incudes a random mod wheel! Just go to the mod's optional dependencies and scroll to a random location, because this mod optionally depends on basically everything!

    However, if you wanna use something like this in survival, it's better to just place light emitting blocks, since at the time of writing this the brush is uncraftable, but even if you would get it it would be OP for dark nights and caves (9999RPM extra-light torch bomb minigun with infinite ammo is possible).

    Overall, this provides a nice customizable light brush for lighting up buildings in creative mode, not only for 'cozy' environments as the name suggests (really, the only slightly 'kozy and funky cat face or whatever 2 upside-down Vs next to an underscore' is the purple color of info boxes in the brush menu). However in non creative this would be OP for dark places such as caves.

    1 comments
  • English

    Can cause farming issues.

    Tested on Mineclonia. Sometimes light node prevent soil cultivation on some dirt blocks. Running /clearlights will resolve issue localy.

    I like the mod overall, but consider using command to fix gameplay issues on LIGHTING mod forces me to not reccomend this mod. Informing all players (and probably handing permissions) is pace breaking. WILL UPDATE review to positive when this is fixed.

    5 comments
  • English

    good but bad but good but bad :']

    pretty good for what it is but also pretty glitchy and if you disable it (because it causes lag) the world is full of unknown nodes

    4 comments

Releases

15 hours ago

0.3.0 alpha 🔗

  • fixed forest fires in voxelibre and such
  • fixed /uncozymode
  • fixed wield_light step triggering even without a light_source in the hand
  • fixed debug lights being ignored by lightcasts of all sorts
  • fixed too much cache invalidation, which led to too many light map updates. in other words greatly improved performance, especially when it concerns mapgens that generate light sources, most especially when its a lot of light sources, like for example voxelibre, mineclonia, age of mending, etc. i'd catiously argue it's playable in singleplayer survival now, but probably still has bugs

0.2.10

Download

Luanti 5.0+

2026-06-09 01:53 UTC

0.2.10 alpha 🔗

  • added cozylights manual so that people who dont read mod page can have some info
  • when you dig/place a node, lightmaps get updated dynamically again
  • fixed race condition in /rebuildlights, should now work fine
  • if you destroy a light_source, it gets reliably dark. no ghost nodes left
  • node lights use same gradient as light brush does, because that one is easier to reason about
  • adjusted some defaults so potatoes will fair better. not great, not terrible
2026-06-07 23:44 UTC

0.2.9 alpha 🔗

  • okay, no leaks through diagonal walls anymore, so cozylights are more immersive
  • always_fix_edges setting is on by default, it's kind of expensive for too potato. if you see its too much for your machine, disable in settings
  • a leak was fixed related to structures with light sources, so its smoother now
  • farming works as it should, trees grow as they should, at least in major games
2024-07-30 05:52 UTC

0.2.8 alpha 🔗

  • fix bug with not all lights working in on_generated
  • added /uncozymode and /cozymode commands
  • separated brush, wielded light and on_gen step times and added them to /cozysettings
  • added crispy potato setting, active by default and available in /cozysettings

0.2.7

Download

Luanti 5.0+

2024-07-26 17:37 UTC

0.2.7 alpha 🔗

  • add schematic support, which fixes many issues with other games and mods
  • expand list of games confirmed to be working properly with Cozy Lights
  • on_generated() performance stability
All releases

Information

Provides

cozylights

Dependencies

Required
No required dependencies
Optional
3dforniture 3dmaze a_trees abriflame abriglass abripanes abritorch adv_lightsabers adventure_core advtrains_crafting_compatibility_patch advtrains_signals_ks aether_new airutils alchemy alien_material alien_tools alter_mirror ambient_light amethyst_new anarglass anchorstone aom_item_entity aom_itemframe apartment area_containers arrowboards artdeco artifacts assets_warehouse atium automata automobiles_lib badland balloonblocks balrog_sword bank_accounts barrier bas_ctf base_liquids basenodes basic_machines basic_materials beacon bens_gear_bonus_materials better_roads biogasmachines blackhole_containment blobcats block_in_block blox bnb_nodes bobblocks borders boulder_dig boxes brazier breadcrumbs brickbuild britsignals bs_cta bs_medic_stand bs_molotov bs_rangedweapons buckets_api building_blocks bweapons_api bweapons_magic_pack candles_3d cannon73 cartographer_minetest_game carts_api castle_lighting cave_explorer cave_lighting caverealms caverealms_but_actually_lite caverealms_lite cavetools cellestial cellestiall ch_ambient ch_buildings ch_silver ch_world chakram challenge chaos cheese chess chest2 christmas christmas_decor christmastree church_candles church_cross church_glass church_grave citadel_core city_block cityscape claycrafter cloud_items cloudlands cloudscape colorcubes colored_meselamps colored_steel colorlandia_colorland columnia commoditymarket_fantasy compass computers containers_api corroded_metal craft_ingredients craftable_lava craftguide crafting cropocalypse crosssection crucifix ctf_map cube_nodes cucina_vegana darkage darkness_nerf datatest decoblocks decor_api decorations_sea decoz default defense_mob_api defripper df_dependencies df_farming df_mapitems df_primordial_items df_trees df_underworld_items digibuilder digilines digilines_lightstone digiscreen digistuff digiterms diplazer display_blocks_redo doc_items doorbell doors_api dorwinion drwho_tardis dungeon_crates dungeon_rooms earth_api earthbuild ecobots2 electricity electronic elektron element elepower_lighting elixirs embedded_lights environ epic equip_exam equipment equippable_accessories ethereal etherium_stuff everness examobs exchangeclone factory_mine fake_fire fake_liquids falling_item falls fancy_vend fantasy_mobs farming fences_api filler fire_api fireflies firez fishing_boat fl_fire fl_light_sources fl_liquids flags flexrealm flowers fluidity fly_b_gone forfun fragments frost_land fsg furnaces_api furniture furnz gadgets_api gadgets_magic gal_ecology_plants gal_ecology_trees gal_geology games gems_tools geomoria ghost_crypt_main glitch_nodes gloopblocks goblins gocm_carbon goodtorch goops_exchange goops_rings grafitti greek greenscreen grimoire guns4d hades_castle_lighting hades_core hades_cottages hades_extrafarming hades_furnaces hades_furniture hades_glowcrystals hades_lamps hades_moreblocks hades_stairs hades_torches hades_travelnet hades_tt ham_radio hammer_of_power hammermod headlamp hedges hero_mines hero_tnt homedecor_climate_control homedecor_common homedecor_electronics homedecor_exterior homedecor_lighting homedecor_misc homedecor_plasmascreen homedecor_windows_and_treatments hyperloop ice_sprites ikea ikea_warehouse ilights illumination industrial_furnace industrious inferno invector invisible_blocks invisiblocks ip_elevator ip_explosives ip_main ip_more_fire ip_soviet item_holders item_repair item_replicator itemframes japaneseforest jelys_pizzaria jumpdrive jumper k_ambient_light k_colorblocks kilns kl_nodes klots_terrain_nc klots_terrain_scifi kudzu lab labyrinthus lampz laptop laptop_extend_pack_2 laptop_pc1 lava_ore_gen lavagold lavalamp lavastuff ld_game led_marquee legendary_armor legendary_ore letters lib_forge lib_handtools lib_lighting libox_controller light_tool lightball lightdead lighting_rocket lightning lights_api liquids_api livingcaves livingslimes locked_travelnet logspikes loria lottblocks lottfarming lottores lottother lottplants lottpotion lottthrowing loud_walking lua_inv luablock lucky_block lumpblocks luxury_decor lvae lwcolorable lwcomponents lwcomputers lwroad_tracks lwwires lzr_decor lzr_laser ma_pops_furniture machines magic_gadgets_shield magic_materials magicalities magma_conduits mapgen maptools marinara markers material mathplot mcl_amethyst mcl_beacons mcl_beds mcl_blackstone mcl_blast_furnace mcl_campfires mcl_chests mcl_conduits mcl_copper mcl_core mcl_crimson mcl_decor mcl_deepslate mcl_dripping mcl_end mcl_falling_nodes mcl_farming mcl_fire mcl_furnaces mcl_item_entity mcl_lanterns mcl_light_blocks mcl_lush_caves mcl_more_ore_variants mcl_mushrooms mcl_nether mcl_ocean mcl_portals mcl_sculk mcl_small_3d_plants mcl_smoker mcl_torches mcl_tt mcl_villages mcl_wieldlight mcl_wieldview mech medieval melding mesecon_node mesecons mesecons_button mesecons_commandblock mesecons_extrawires mesecons_lamp mesecons_lightstone mesecons_luacontroller_block mesecons_morewires mesecons_powerplant mesecons_torch mesecons_wireless mesecraft_christmas mesecraft_fireplace mesecraft_holiday_lights mesecraft_magic_mirror mesecraft_mars mesecraft_miners_helmet mesecraft_television mesecraft_torch meseportals metal_melter mex_chariot mex_moreblocks mf_abyss mf_decor mf_lamps mg_villages mid_measure mine_gas minercantile minertools minertrade minetestrpg_blocks mobkit_sapien mobs_balrog mobs_butterfly mobs_mc mobs_monster mobs_npc mobs_races mobs_soldiers mods moognu moonflowers moontest_lights moontest_power moontest_terraformer moontest_wielded_light more_mese_post_light more_stones moreblocks morebricks morelights_dim morelights_extras morelights_modern morelights_vintage moremesecons_commandblock moremesecons_induction_transmitter moremesecons_switchtorch moretorches mtg_default mtg_fire mtg_fireflies mtg_stairs mtg_tnt mts_lights mts_liquids mts_powercrystals mts_teleporters mylandscaping mylights mystic_rune_blocks mystic_runes mystical_agriculture nautilus nbea nc_adamant nc_api nc_api_active nc_api_ents nc_api_visinv nc_ctf nc_exmachina nc_fire nc_forcelode nc_igneous nc_lantern nc_light nc_lode nc_lux nc_luxgate nc_nature nc_optics nc_pebbles nc_player_hand nc_reative nc_scaling nc_terrain nc_torch nether nether_addons nether_mobs new_biomes new_campfire new_fireworks newhorizons newplanet nightshade nixie_tubes nl_fog nmobs nneett_nc_heaters nodeglow nodes_nature nodeu nodez nssb nssm nssm_extra nutra_paste nv_flora nv_planetgen nyanland nyftyblocks obdy ocean ocular_networks offhand oillamps omg_moonrealm openion_glostone_building_blocks oreveins other_worlds paintnings pala_decoblock pala_furnace pbj_pup penumbra phonics_lib physics pick_axe_tweaks pilzmod pink_lava pipeworks piredo_terrain pk_nodes pkr_nodes placeable_buckets plant plasmascreen pmb_fire pmb_lights pmb_stone pmb_wood pochie_mod poly_decor ponti potions_and_magic presents princess protect_block_area protector pterygota_api pvp_control pxs_default quikbild qyintessential_dragonegglock random_stuff randungeon rangedweapons real_elevators real_torch realm_lamp regulus_mapgen regulus_nodes regulus_story remove_unknowns resource_crops rgblightstone rings rp_builtin_item rp_default rp_fire rp_lumien rp_nodes rp_tnt sailing sane_builderwand sane_hammer sane_scraper scaffolding scifi_nodes sd_tools sf_mobs sf_nodes sf_portals shark shooter shooter_flaregun signs_bot simple_streetlights sm_mapnodes small_why_things smartline smartrenting smartshop smoke_signals sotm_nodes sotm_tools spacestation spawners spawners_env spawners_mobs spawners_ores spectrum sprint_lite squaresville ssp_base st_nodes stained_glass stairs stellar sticks_and_torches stoneblocks streets subspacewalker sudoku sunset_biomes super_sam_nodes superblock symmetool tardis_new technic technic_cnc teleport_potion tempsurvive testnodes thelowerroad throwing time_travel titanic_mod titanic_mod2 titanium tnt tombs too_many_stones toomanymetals topaz_items torch_bomb torchz torrl_aliens torrl_meteors torrl_nodes towercrane toxic trainblocks transporter travelnet trucraft tt_base tubelib tubelib_addons1 tubelib_addons2 tunnelmaker tutorial tutorial_castle tutorial_darkage tutorial_default ufos ultra_colors underbed_toilet_math_mg underch unified_inventory unittests uraniumstuff useful_contraptions useful_green_potatoes usl uwu vacuum valleys_mapgen variety vbots vehicles vexcazer vexcazer_extras vexcazer_flashlight visible_wielditem vk_nodes vk_party vlf_beacons vlf_beds vlf_blackstone vlf_campfires vlf_candles vlf_chests vlf_conduits vlf_copper vlf_core vlf_crimson vlf_dripping vlf_end vlf_falling_nodes vlf_farming vlf_fire vlf_furnaces vlf_item_entity vlf_lanterns vlf_lush_caves vlf_mushrooms vlf_nether vlf_ocean vlf_portals vlf_sculk vlf_torches vlf_tt vlf_villages vlf_wieldview vm_lighting_wand void_chest voxelmodel vu_base wands warps watershed wc_adamant wc_bugs wc_crystals wc_furniture wc_luminous wc_meltdown wc_naturae wc_noditions wc_plumbum wc_quicksilver wc_road wc_sealife wc_storage weather what_were_you_expecting_default wielded_light wiki windmill witches wm_blocks wm_mobs workbench ws_core x_bows_extras x_enchanting x_farming x_obsidianmese xdecor xesmartshop xlocate xnether xpanes xray yellow_crystal yellowglassblock

Information

Type
Mod
Technical Name
cozylights
Languages
English
License
MIT for code,
CC0-1.0 for media.
Maintenance State
Work in Progress
Added
2024-07-18 01:51 UTC
Maintainers
SingleDigitIq