Expand description
Bucket item behavior implementation.
Handles water buckets, lava buckets, and empty buckets.
Mirrors vanillaβs BucketItem(Fluid fluid): fluid_block = None = empty bucket,
Some(block) = filled bucket. Logic is dispatched in use_item.
StructsΒ§
- Bucket
Item - Handles all bucket variants (empty, water, lava).
FunctionsΒ§
- filled_
bucket_ πprimary_ pos - filled_
bucket_ πsuccess_ stack - play_
empty_ πsound_ and_ event - use_
empty_ πbucket - use_
filled_ πbucket