opekope2/OptiGUI

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

YoungSoulluoS opened this issue · 4 comments

Is there an existing issue for this?

  • I have searched the existing issues

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

  • Behavior is different from OptiGUI documentation
  • Behavior is different from OptiFine
  • Behavior is different from expected (or straight up doesn't work)

Anything else

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

There may be a line missing here with Barrel.
image

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

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

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

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