How to spawn proof with auto_light.sc - gnembon/fabric-carpet GitHub Wiki

auto_lighter.sc is an app that will light up the caves in around you in your world by spawning torches and consuming them from your inventory (yes, it's survival friendly!). Here you can see it in action for the first time: https://youtu.be/42QvewJqKF0?t=916

How to use

Install it by running /script download survival/auto_lighter.sc.

[right click with a torch on air?]

How to light up the surface

By default, the app will only light up blocks that are not exposed to sky. If you want change that, do the following: Replace this line

&& air(lpos) && light(lpos) < 8 && sky_light(lpos) < 8

with the following:

&& air(lpos) && block_light(lpos) < 8

If you are playing 1.18+, you can instead use

&& air(lpos) && block_light(lpos) < 1

since mobs need light level 0 to spawn. You can set the value to whatever you like!

How to change the affected area

[to be written]