Skip to content

Refactor block dropping when breaking block with a tool - #3533

Open
DellieDelta wants to merge 15 commits into
PixelGuys:masterfrom
DellieDelta:with-item-blockdrop-refactor
Open

Refactor block dropping when breaking block with a tool#3533
DellieDelta wants to merge 15 commits into
PixelGuys:masterfrom
DellieDelta:with-item-blockdrop-refactor

Conversation

@DellieDelta

Copy link
Copy Markdown
Contributor

Related to #3532

Progress towards #2385

@IntegratedQuantum IntegratedQuantum left a comment

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.

I don't think this is the right place for this functionality. blocks.zig is already a big file and so far it has mostly definitions of block properties and loading/access thereof, but little functionality (and all functions on Block are retrieving properties, none are actually doing things).

In the issue I proposed to move them to the server world, which is also maybe a bit too big right now.

So maybe the BlockDrop struct deserves its own file (and in server, since blockdrops are not done on the client). And all the helper structs and functions (including #3532) could be defined there.

@DellieDelta

Copy link
Copy Markdown
Contributor Author

I agree. I'll make a new PR for moving BlockDrop to its own file then because it applies to both changes

@DellieDelta
DellieDelta marked this pull request as draft August 20, 2026 16:12
IntegratedQuantum pushed a commit that referenced this pull request Aug 20, 2026
@DellieDelta
DellieDelta force-pushed the with-item-blockdrop-refactor branch from 369b410 to c54395f Compare August 20, 2026 18:15
@DellieDelta
DellieDelta marked this pull request as ready for review August 20, 2026 18:30
@DellieDelta
DellieDelta marked this pull request as draft August 20, 2026 18:31
@DellieDelta
DellieDelta marked this pull request as ready for review August 20, 2026 18:31
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.

2 participants