New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: allow the adding of custom light sources to the dynamic lights module #182
Comments
OptiFine tries to keep the vanilla look and feel, so only the items which naturaly give light in-game are dynamic light sources. |
@sp614x Can you add a hook for mods loaded by other modloaders? If optifine doesn't add it, it would be a big disappointment since mod players don't really use atomicstryker's dynamic lights as often as yours. |
Mods may be supported by |
Are entities supported (or configurable via java code)? In atomicstryker's dynamic lights, some entities such as the blaze emit light. My use case is that Railcraft wants only powered trains to emit light. |
@sp614x Can this file be added to a resourcepack if I want to change it myself? And would it work to add my own selection of vanilla minecraft items as well (i.e. putting a dynamic_lights.properties file in assets/minecraft/optifine)? If so, can you explain the format of this file? |
The |
was this ever added? |
this is only added to items, i guess. not to entities (i want some in code hook based on states of my entity) |
Updated preview E1 for 1.12.2
|
I can't seem to get this to work. I've tried putting /assets/minecraft/optifine/dynamic_lights.properties and /assets/mymodid/optifine/dynamic_lights.properties on the resource path via both Resource Loader and via a separate mod (with mod id "mymodid") I can't seem to modify light levels for existing Minecraft items nor my own mod. Although strangely my own mod item already has the same light level as a torch already without my explicit support (yes it has "torch" in the unlocalized and registry names.) This is with 1.12.2_HD_U_E1. |
The configuration should be in "/assets/<mod_id>/optifine/dynamic_lights.properties". |
@sp614x I just tried for too long figuring out why the fork it doesn't work and I found that it is for modded items only? Why will it not accept minecraft as a modid? It should be for non modded content as well IMO... |
Can make a resourcepack instead of put files into .jar directly? |
Yeah I agree. It would be amazing if this was also possible for resource packs. I would like to use it for my extinguishing torches datapack. Rather than having torches emit light, I wanted to have flint_and_steel emit light as they are used to light up the torches again. (tried this btw in the file dynamic_lights.properties inside a resource pack: |
I cannot find this file anywhere in my packs folder. There isn't a assets folder and have checked the config folder, yet it was empty. Is this no longer a thing or is it somewhere else? |
I tried adding lit_torch from realistictorches mod, I assume it worked as the latest.log file has this message wrote in:
my dynamic_lights.properties:
If someone can tell me why it don't work, I can't figure it out |
I would also appreciate resource or data pack support for this, rather than just other mods at this point. |
Perhaps just a config option where we can list other mod items and a light intensity value.
Also perhaps an option to make all enchanted items glow.
The text was updated successfully, but these errors were encountered: