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:





Held Items Can Emit Light


If the player is holding (in either hand) any of the following, the immediate area around the player will light up with same light level as the related block. Items that emit light:

  • torch
  • redstone torch
  • redstone ore
  • glowstone block
  • glowstone dust
  • lava bucket
  • beacon
  • sea lantern
  • end rod
  • jack o' lantern
Feel free to write to me if you feel this list should include other things.

Torches Can Burn Mobs


In the 1.12.1 version I have added a feature where a regular torch will burn mobs for 10 seconds (unless they are immune). Animal entities like pigs will drop cooked meat if they die while burning. This can be turned off if you don't like it in the mod configuration settings.

Burning Entities Emit Light


In the 1.12.1 version I have added a feature where burning entities will emit light at the same light level as a fire block.

Other Details


  • A held item will not emit light if you go fully underwater, but will re-light as soon as you emerge again.
  • A held item 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.12.1



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.


6 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
    3. I've just updated to 1.12.1. I also have added a feature where you can burn a mob by attacking it with a torch and also burning entities emit light.

      Delete
  3. This comment has been removed by the author.

    ReplyDelete