VE-FluidHandling
The VoltzEngine Fluid Module is an independent library designed for shared access to fluid-related resources. It includes several types of fluids, fluid blocks, and containers for storage. The main advantage of the mod is the addition of an iron bucket that supports partial filling and works with all fluid types, unlike the standard in-game bucket.
Mods Using This Library
- [SBM]Wooden Buckets
- [SBM]Gas can
Main Components
- Milk as Fluid - allows storing milk in tanks
- Milk Block - enables placing milk in the world
- Fluid Containers - common system for creating items capable of holding fluids
- Fluid Templates - tools for creating new types of fluids
- Fluid Blocks - foundation for forming blocks representing fluids
Planned Additions
- Molten Fluids - support for lava-like fluids that deal damage and can cool down
- In-World Smelting - ability to turn blocks into fluids directly in the game world
- JSON Fluid Generation - creating new fluids for crafting and world generation without programming
- JSON Containers - configuring custom fluid containers through configuration files
- Loot Settings - control over the appearance of fluid containers in loot chests
- Entity Drops - possibility of obtaining fluids from mobs
Frequently Asked Questions
Q: Why create a separate library for buckets?
A: It saves time, effort, and code. The idea originally emerged when creating wooden buckets but then expanded to support various materials. The library simplifies code and ensures consistency in interactions between different mods.
Q: What are fluid containers?
A: In code, buckets are called fluid containers starting from version 1.8.9, where the mechanics of working with buckets changed.
Q: Are addons just skins?
A: Technically, most addons add stylized containers, but each can modify gameplay. For example, wooden buckets can leak and set the player on fire through configuration settings.
Q: Does the mod only add buckets?
A: No, the library also supports fluids, blocks, and interaction handling with mechanisms, ensuring compatibility with a wide range of mods.
Q: Is VoltzEngine needed?
A: No, the library is completely independent and was separated into a separate module during the VoltzEngine codebase overhaul.
Q: How to create your own bucket?
A: Create a bucket material instead of a regular item, specify textures, material data, and override necessary functions, then register the material in the corresponding bucket creation event.