This document outlines the architecture and components of the Bedrock Fluids API, a system designed to simulate custom fluid dynamics in Minecraft Bedrock Edition by leveraging its existing scripting and resource pack capabilities.
To create a new custom fluid, you must currently perform these steps manually:
- Create Assets: Create texture files for your fluid and its bucket.
- Update Resource Pack:
- Add texture definitions to
terrain_texture.jsonanditem_texture.json. - Add a block definition to
blocks.jsonmapping your fluid block to its textures.
- Add texture definitions to
- Update Behavior Pack:
- Create a new block definition file (e.g.,
my_new_fluid.json) in theblocksfolder. - Create a bucket item definition file in the
itemsfolder. Remember to give it aplacer:<your_fluid_id>tag. - In
API.js, importFluidQueueand add a new instance for your fluid to theQueuesobject.
- Create a new block definition file (e.g.,
- Run the Game: The system will now recognize and update your new fluid.