Skip to main content

Module bucket

Module bucket 

Source
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Β§

BucketItem
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 πŸ”’