jaredlll08 / JSON-Ables

2 stars 5 forks source link

How to add icons for fluids? #12

Open Haggle1996 opened 8 years ago

Haggle1996 commented 8 years ago

image

From the image above, you can see a custom fluid and material I've added. The tools, bucket, etc., all have the proper color from the json file; however, the generated fluid is always white in NEI. Placing it on the ground results in the proper fluid color in the world.

I assume I can address this by adding a proper texture in the jsonables\icons\blocks folder; however, I've tried all variations of the fluid name that I can find in the game. The fluid unlocalized name in the json file is "unlocalizedName":"molten.chromaalloy". I've tried naming the png molten.chromaalloy.png, tile.molten.chromaalloy.png, liquid_chromaalloy.png, and fluid.molten.chromaalloy.png, but none work. They are all properly in the JSONAbles.Resourcepack.zip\assets\jsonables\textures\blocks folder.

Any help would be greatly appreciated.

Haggle1996 commented 8 years ago

Ah, I think I see the problem -- the fluid icon is hardcoded here: https://github.com/jaredlll08/JSON-Ables/blob/25d5d3a79c6e72244e44bd566224e0b576a4846e/src/main/java/jsonAbles/blocks/MoltenFluid.java#L18