
AquaTweaks
AquaTweaks is a compact client-side core mod that fundamentally changes the visual representation of fluids around non-solid blocks. Its main purpose is to create a realistic water effect that beautifully flows around objects such as ladders, fences, signs, and other similar elements, eliminating their awkward appearance underwater.
It's important to understand that all changes are purely graphical in nature. Fluids will not physically flow through blocks—they are only visualized inside them to create an aesthetic effect.
For Mod Developers
AquaTweaks provides the ability for other developers to register their blocks for similar processing. There are two main implementation methods:
First option - implement the interface blusunrize.aquatweaks.api.IAquaConnectable
in your block (supports the @Optional
annotation). This method allows passing world and coordinate information, opening up possibilities for TileEntity interaction. The interface contains two key methods: one checks whether water should be displayed on a specific side of the block, and the other determines whether water should be visualized inside the block at all.
Second option - using IMC messages, which is a simpler and faster solution. The message must contain an NBTTagCompound with two mandatory strings: "modid" and "block", which are used to find the corresponding block via GameRegistry.findBlock(). If necessary, you can add an integer with the key "meta" to specify a particular metadata version of the block. If metadata is not specified, the value 32767 is used—the universal wildcard for damage. All IMC messages are sent to ModID "AquaTweaks".