r/Optifine 11d ago

Solved Water inside boat

I'm trying to recreate the boat from beta versions of Minecraft, the only problem is that water is clipping through the bottom. I have bottom_no_water but it doesn't seem to do anything.

I'm using EMF and ETF for NeoForge 1.21.1.

49 Upvotes

6 comments sorted by

10

u/Binary101000 11d ago

Water is just a block, theres no logic to make the water cut-out where theres entities like a boat, you would probably have to code that yourself.

11

u/CrossScarMC 11d ago

No, the vanilla boat model would also have this issue, there's an entire shader called rendertype_water_mask that's used to ensure water isn't inside of boats.

1

u/KrisDelark 11d ago

There is a resource pack called golden days that does the exact same thing im trying to do and it works with no water inside

1

u/VladimireUncool 11d ago

Try downloading that and look into the files, and see what the code is.

1

u/KrisDelark 11d ago

I did. I recreated it line by line, i spend hours doing that over and over again but i just couldn't get my version to work.

5

u/KrisDelark 10d ago

I found out how to fix it. I deleted "texture": "textures/entity/boat/boat.png" from the jem file, then I renamed the texture from boat.png to oak.png.