RealisticSunBurn: Directional Sunlight for Minecraft Mobs

RealisticSunBurn overhauls undead burning with directional sun raycasting for Minecraft. Download RealisticSunBurn and watch walls cast real shadows!

RealisticSunBurn

Few things in Minecraft feel as strange as a zombie catching fire while standing safely behind a thick stone wall. You built the shelter, the roof is solid, and yet the undead still ignite the moment morning arrives. RealisticSunBurn fixes that oddity at its root by replacing the game's flat sky-light check with genuine directional raycasting tied to the sun's actual position in the sky.

Why Vanilla Sun Burning Feels Wrong

In standard Minecraft, an undead mob burns based on a simple vertical light lookup. The game essentially asks one question: is there open sky directly above this zombie? If the answer is yes, the mob burns, no matter what stands between it and the sun. That single rule creates the familiar absurdities players have learned to exploit or tolerate.

  • A zombie under a single block is always safe, even at high noon.
  • A zombie behind a ten-block-thick wall still burns in the morning sun.
  • Deep canyons and caves offer inconsistent protection.
  • Glass and other transparent blocks behave nothing like real glass.

RealisticSunBurn throws out that vertical check and replaces it with a proper raycast from the mob's head toward the sun's real position. The result is a world where shadows actually matter.

How Directional Sun Raycasting Changes the Game

Morning and Evening Shadows

When the sun sits low on the horizon, walls and buildings cast long shadows across the ground. In RealisticSunBurn, those shadows are real protection. A mob standing in the shade of a tall wall survives, because the ray from its head to the sun is blocked by solid geometry.

No More Cheap Roofs

A single block overhead no longer guarantees safety. If the sun comes in from the side, that one block does nothing. Players who want reliable shelter now need to think about angles, not just coverage.

Canyons and Holes

Deep holes and ravines protect mobs whenever the sun cannot reach them at the current angle. As the day progresses and the sun climbs, those same hiding spots may stop working, which adds a subtle rhythm to mob behavior.

Transparent Blocks Behave Realistically

Glass, flowers, torches, and similar transparent blocks let sunlight pass through, just like real life. Opaque blocks stop the ray cold. This small detail makes glass-roofed mob farms and decorative builds feel far more believable.

Features at a Glance

  • Directional sun raycasting: mobs only burn when in direct line of sight with the sun.
  • Works with all mobs, vanilla and modded, that rely on the vanilla sun burn system.
  • Optimized with staggered checks, twice per second per mob, plus result caching.
  • Debug visualization that shows the actual raycast using in-game particles.
  • In-game config screen accessible directly from the Mods menu.

If you have ever wanted a survival world where a wall actually protects what stands behind it, this is the add-on that delivers it. You can download RealisticSunBurn and drop it into your mods folder to see the difference on your very next sunrise.

Commands and Configuration

All commands require operator permission at level two.

  • /sunburn debug toggles debug particles. Orange flames mean the mob burns, blue flames mean it is in shadow, and smoke marks the block blocking the ray.
  • /sunburn info displays the current sun direction, elevation angle, and time of day.
  • /sunburn test checks the mob you are looking at and prints the full raycast result in chat.

Configuration lives under Mods menu, then Realistic Sun Burn, then Config. Ray Distance defaults to 384 blocks with a range of 16 to 512. Check Interval defaults to 10 ticks, meaning twice per second, and can be set between 1 and 40. Particle Density defaults to 1.5 blocks and ranges from 0.5 to 5.0.

For players who prefer a smoother setup, the foxygame.net launcher handles the busywork: it lists RealisticSunBurn in its add-on catalog and installs it with a single click, so you never have to match loader builds by hand. That convenience matters here, because getting the version right is the one step that trips up most newcomers.

Supported Versions and Loaders

RealisticSunBurn for Minecraft is built for Forge 1.20.1, specifically Forge 47.x. It targets the vanilla sun burn system, so any modded mob that uses that system inherits the new behavior automatically. Because the logic runs server-side, it works independently of shader packs, and it functions correctly on dedicated multiplayer servers.

How to Install RealisticSunBurn

Installing the add-on is straightforward. First, confirm you are running Forge 1.20.1 with a compatible 47.x build. Next, place the mod file into your mods folder. Then launch the game and open the Mods menu to verify that Realistic Sun Burn appears in the list. Finally, adjust Ray Distance and Check Interval to taste, and use the debug command to watch the raycast in action.

Under the Hood

A Mixin intercepts the vanilla isSunBurnTick method and cancels the default behavior. The mod then calculates the sun's direction from the world's celestial angle and traces a ray from the mob's eye position toward the sun. Transparent blocks are skipped, opaque blocks stop the ray, and the mob burns only when nothing stands in the way.

RealisticSunBurn turns a small but persistent Minecraft annoyance into a believable simulation. Shadows become meaningful, architecture becomes functional, and the undead finally respect the walls you built to keep them out. Whether you are designing a mob farm or simply want mornings to make sense, this add-on earns its place in your load order.

===ARTICLE===