Started by
NathVer1
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to find a way to apply a glowing texture to projectiles, but it doesn't seem like there's an option anywhere. Does anyone know if there's a way to do this?
Or can someone provide me with custom code to insert?
MCreator version: 2023.3 | Minecraft version: 1.19.4
Thanks for any help
You (probably) can't do this with MCreator, but you can do this pretty easily with Optifine, using either a resource pack, or by using optifine-compatible textures in your workspace.
Optifine has a pretty basic emissive tool that allows you to overlay emissive textures, (textures that glow/retain their brightness level regardless of light), onto blocks, items, and entities. You would need to:
Best of all, optifine compatible emissives will also be compatible with shaders! MCreator does let you add built in glow textures to most other entities, (I'm not sure if there's a built in system for glowing blocks and items, which might explain why Optifine handles it) so it's kind of odd that projectiles are an exception. I wouldn't be surprised if support for this was added in the future.
Oh, and just keep in mind you need to have Optifine extracted and installed for this to work. There's probably a way to install it in the developer client, but it might just be easier to run it on your own version of minecraft for testing purposes.
im pretty sure its possible locking the code; the item can use a 3D model, its a block model so there is no reason it cant be emissive/glow, mcreator just dont have a checkbox for it.
You could also probably do this with an optifine emissive texture, either with an external resource pack, or just built into your mod's src file.