MoonlightPreventsMobSpawning

MoonlightPreventsMobSpawning

186 Downloads

Let's keep the surface dark and safe.

main

Description

  This mod keeps the maximum sky-light value, even at night.
  So you don't have to put torches on a roof of your house to prevent mob spawning.
  It only affects the spawn conditions of hostile mobs.
  The other things like the growth of crops or melting of snow will not be affected.

How this mod works

  This mod overwrites a vanilla code that determines how to judge if normal hostile mobs can spawn at the given position or not.

  Vanilla calculates light-levels (when the system checks hostile-mob spawn conditions) like this:
    min( BlockLightValue, SkyLightValue -  AmbientDarkness)

  The default value of AmbientDarkness is 0 but is increased at night or during thunderstorms.

  This mod overwrites the code above to:
    min( BlockLightValue, SkyLightValue )

  As this mod is still in a beta stage, it may be unstable.

Known Issues

・This mod may affect the End world. I'm currently investigating...