How to create an item that emits light?

Started by TDO on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to create an item that emits light?

As we all know, dynamic lights don't exist in vanilla minecraft. But Im making a mod with a dimension that is completely dark, in which you need to have a specific item to light your way.  I know it would technically be possible by placing light blocks and deleting them but i don't know exactly how I could do it. I tried with the "check for block in a 6x6x6 space" tempate but it doesn't seem to work. I may have done it wrong, so if you guys know how I could do it, be blessed

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't believe there is a…
Fri, 06/28/2024 - 03:08

I don't believe there is a fluid way to mod in dynamic lights. However, if you make your item a plant or block , for instance, make its placement conditions very convoluted and specific (or just make it unplaceable), and then create an essential modpack with shaders that render dynamic lights, you can make it work.

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i have this problem too
Sat, 12/21/2024 - 18:23

i have this problem too

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
perhaps you could make the…
Sat, 12/21/2024 - 18:27

perhaps you could make the item give the glowing effect once held