opekope2 / OptiGUI

Blazing fast custom GUI textures on Fabric and Quilt with built-in OptiFine custom GUI resource pack support
https://opekope2.dev/OptiGUI/
MIT License
22 stars 4 forks source link

[BUG] How it works for Barrel? And other containers. #59

Closed YoungSoulluoS closed 11 months ago

YoungSoulluoS commented 11 months ago

Is there an existing issue for this?

Expected Behavior

image

Actual Behavior

It doesn't work in practice. image

Steps To Reproduce

image

Loader and its version

quilt-loader-0.19.2-1.20.1

OptiGUI version

2.1.3

Behavior difference

Anything else

If there is something I don't understand, please explain how.

There may be a line missing here with Barrel. image

YoungSoulluoS commented 11 months ago

Same question on Zombie Horse, Skeleton Horse, Chest Boat, Chest Minecart and Trader Llama.

opekope2 commented 11 months ago

Your are looking at the OptiFine resource loader code, which converts OptiFine properties to OptiGUI INI. OptiFine has no support for barrels, so writing container=barrel won't work. What you have to do is create a file in /assets/optigui/gui/ (for example, /assets/optigui/gui/barrel.ini, and do the following, as written in the docs:

[barrel]
texture=barrel.png

Do not forget the PNG extension. For chest boats, here's my resource pack

YoungSoulluoS commented 11 months ago

Ok, thank you. Now I get it. It works.

opekope2 commented 11 months ago

Btw, you found a spooky scary Easter egg in the OptiFine converter code :wink: