Started by
NebuliteStudios
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, been keeping the forums as a last resort but here I am.
I have a specific issue that I think no one has brought up on these forums, which is (as the title suggests) a glitch inside my mod where rain goes through blocks, no matter if they're buildings or not.
same issue with stairs and slabs, normal blocks seem to be fine
Stairs and slabs have air on it, but that's not how the computer see it, it sees it as sharing the same space with air, so it rains through the slab/stair.
if there are no complex procedures that you're running through your slab/stair then you could make a custom class that points to the vanilla slab and it will solve the leaking roof phenomenon, you then edit and lock the code of the blocks to extend the custom block instead. the blocks may or may not run the procedures though.
here is a rough (very rough) example:
https://drive.google.com/file/d/1JrLs5uiR8yPpkh_-ngkf0D1GLfva7BuY/view?usp=sharing