Skip to content

server: match vanilla shulker box drop behaviour - #1365

Open
FDUTCH wants to merge 4 commits into
df-mc:masterfrom
FDUTCH:feature/shulkerbox-behavior
Open

server: match vanilla shulker box drop behaviour#1365
FDUTCH wants to merge 4 commits into
df-mc:masterfrom
FDUTCH:feature/shulkerbox-behavior

Conversation

@FDUTCH

@FDUTCH FDUTCH commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

This pr fixes shulkerbox breaking behavior.

HashimTheArab
HashimTheArab previously approved these changes Aug 1, 2026
@HashimTheArab HashimTheArab changed the title match vanilla shulkerbox behavior server: match vanilla shulker box drop behaviour Aug 1, 2026
@FDUTCH

FDUTCH commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

@HashimTheArab shulker should be droped even if explosion block drop chance is 0

HashimTheArab
HashimTheArab previously approved these changes Aug 1, 2026
Comment thread server/block/shulker_box.go Outdated
return newBreakInfo(2, alwaysHarvestable, pickaxeEffective, oneOf(s))
}

// CreativeDrops returns the drops produced when a creative player breaks the shulker box. Filled shulker boxes retain

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can't this be done with a break handler

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pretty sure it's to match bedrock natively in dragonfly

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good question

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because it bypassed HandleBlockBreak

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be inside of BreakInfo instead of being its own thing.

because it bypassed HandleBlockBreak

Then we should also switch over all the container blocks that drop their content on break. So don't call this CreativeDrops, and make explosions drop those items too instead of what's happening under here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll keep this pr consistent with the existing behavior then and PR a separate fix for all the blocks

@HashimTheArab HashimTheArab left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restored the PR to the original break-handler implementation; the generalized drop pipeline will follow separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants