Skip to content

block: generalize secondary break drops - #1367

Open
HashimTheArab wants to merge 4 commits into
df-mc:masterfrom
HashimTheArab:codex/generalized-break-drops
Open

block: generalize secondary break drops#1367
HashimTheArab wants to merge 4 commits into
df-mc:masterfrom
HashimTheArab:codex/generalized-break-drops

Conversation

@HashimTheArab

Copy link
Copy Markdown
Collaborator

Summary

  • move contained and special break drops into block.BreakInfo.AdditionalDrops
  • expose the complete drop list to HandleBlockBreak before block/inventory mutation, with pure pre-event evaluation and cancellation safety
  • migrate container, campfire, chest, composter, decorated pot, item frame, jukebox, and shulker behavior; preserve double-chest half inventory semantics
  • apply the generalized drops to explosions while keeping ordinary drops chance-gated and shulker boxes intact

Verification

  • go test ./...
  • go vet ./...
  • go test -race ./server/block ./server/player
  • git diff --check

No tests or test-file changes were added, per request.

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.

1 participant