MaterialIconSet Specific Fluid Textures #61
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What:
This PR adds MaterialIconSet support for fluids. This allows resourcepack makers to have finer control over more textures, as well as gives the ability mod-side to better diversify material appearances.
How solved:
Fluid textures were added to each IconSet in the
blocks
directory, and new sprites were registered for them. Materials were then made to use their iconset for automatic texture application by default, while still allowing manual texture specification. A new MaterialIconType for fluids was added in order to do this.All CEu iconsets have fluid textures specified.
Outcome:
Fluids utilize MaterialIconSets for textures, instead of a single universal default.
Distilled Water is now a regular material, does not have weird bucket behavior.
The mod can now compile as a result of fully removing Hydrated Coal.
Many custom fluid textures were removed, as they were no longer required with the new system.
Additional info:
Before and After Comparisons:
This first comparison is for Titanium Tetrachloride, Ethylene, Oxygen, and Polyethylene. Previously TiCl4 and Oxygen both used custom fluid textures, and Ethylene and Polyethylene used the universal default fluid texture. Now TiCl4 uses its custom texture, Oxygen and Ethylene use the GAS iconset, and Polyethylene uses the DULL iconset for fluids. I should note that the DULL iconset image is the same for all other iconsets excluding FLUID and GAS, and is also animated.
![image](https://user-images.githubusercontent.com/37029404/128415020-afea2e3e-d88f-4617-aea9-1c4da64bff83.png)
![image](https://user-images.githubusercontent.com/37029404/128415030-26425bbe-a497-4bca-b064-211ad0a51aaf.png)
This second comparison is to better demonstrate the DULL fluid iconset.
![image](https://user-images.githubusercontent.com/37029404/128415189-af7d2f91-715d-44f0-b1f5-fabc98e5d212.png)
![image](https://user-images.githubusercontent.com/37029404/128415195-c8749093-f8a0-4a36-b9d6-9628f5ed8c33.png)
Next is an example with a more vibrant color. This is liquid copper.
![image](https://user-images.githubusercontent.com/37029404/128415284-e1338d60-de68-417a-8420-818bb2aa6dd9.png)
![image](https://user-images.githubusercontent.com/37029404/128415290-ef15007b-fdfc-43c6-bc04-3e136ee4cad7.png)
Next is a "comparison" to show that materials with the Fluid iconset are not changed.
![image](https://user-images.githubusercontent.com/37029404/128415428-1cc68b6d-d374-47e7-91c7-1ad6dd3ec482.png)
![image](https://user-images.githubusercontent.com/37029404/128415439-ce41dfeb-c912-4985-ab42-21548039dda4.png)
This last comparison is to better demonstrate the new Gas fluid iconset.
![image](https://user-images.githubusercontent.com/37029404/128415691-a019125e-565a-4e29-bd33-f1eda4848c2f.png)
![image](https://user-images.githubusercontent.com/37029404/128415705-60e509fd-e820-4471-8c01-322b7a91b14e.png)