Question about Emissive textures on Blocks

Started by ninjawizard1234 on

Topic category: Help with modding (Java Edition)

Last seen on 17:03, 12. Feb 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Question about Emissive textures on Blocks

 

about this :

https://mcreator.net/wiki/how-make-block

this part says:

  • Enable emissive rendering: This property makes your block glow like a magma block.

 

but it does not say how we load/do the emissive texture, on entities we load the emissive texture on the visuals, but i dont see how to load it on blocks.

 

Also is it possible to make this somehow work with items that use block models? 

Last seen on 21:55, 20. Feb 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
An emissive texture just…
Fri, 12/08/2023 - 12:57

An emissive texture just means that the brightness of the texture isn't effected by surrounding light levels. (This means that your block will appear the same regardless of how light or dark it is.) 

It isn't possible to have separate emissive textures for blocks and items in vanilla, but it is possible using optifine. You can either make a custom resource pack to do this, or add the emissive textures into the mod, and an optifine emissive properties file, so that if optifine is installed the emissive textures will load automatically. (To get an idea of how this works, you can basically download any emissive resource pack and look at the file structure. As long as you put the files in the right part of your workspace's src, it should be fine. Though it's a little annoying as it seems impossible to install optifine in the test client, so you have to test the textures externally.)