Jabelar's Moving Light Source Mod

Introduction


Many people like the idea of being able to carry a light instead of having to place torches. This mod simply does that -- here is a video of it in action:




If the player is holding any of the following, the immediate area around the player will light up as if a torch was placed. Items that emit light:

  • torch
  • redstone torch
  • redstone lamp
  • redstone block
  • redstone ore
  • redstone dust
  • redstone wire
  • glowstone block
  • glowstone dust
  • lava block
  • lava bucket
  • beacon
  • sea lantern
  • end portal
  • end portal frame
Feel free to write to me if you feel this list should include other things.

Other features:

  • It will not emit light if you go fully underwater, but will re-light as soon as you emerge again.
  • It may not emit light if you're in very dense tall grass or similar two-block high pass-through blocks. I think this is realistic though.

Downloads

1.8

Changelog


v1.0.1:

  • Fixed a null pointer exception related to checking held item.
  • Fixed a class not found exception related to annotating a GUI handler that didn't exist.

v1.0.0:
  • Initial publication

Known Issues, Incompatibilities And Requested Improvements

v1.0.0:

  • Incompatible with some shaders.
  • Sea lantern should glow under water.
  • Redstone and other things that have lower light should cast less light.
  • If in flowing water, it still cast light.
  • In some cases where there is no space around front of head, light goes out.


4 comments:

  1. It's possible to explain how to add your system on an Entity ? :D

    ReplyDelete
  2. Are you planning to update this to 1.10 or 1.11? I had used your tutorial and mod as a way to create moving light sources in my own mod, but it doesn't work in 1.11. The moving light source block doesn't move smoothly, causing Steve to intermittently be unable to walk forward. I'm not smart enough to figure out why it's happening.

    ReplyDelete
    Replies
    1. I have been trying to port my mods to 1.10 but haven't got around to this one yet. I'll look at it over the holiday.

      Delete
    2. Cool. I'm looking forward to what you find out.

      Delete