Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically pickup items when cutting down trees (1.21.0) #2

Open
wants to merge 2 commits into
base: 1.21.0
Choose a base branch
from

Conversation

IxPrumxI
Copy link

I only tested on Fabric 1.21.0

When cutting down a tree this will pick up all items, If there's no place for the items it will mimck vanilla behaviour of dropping the items where the block was destoryed.

Closes Serilum/.issue-tracker#1998


Block block = Block.byItem(itemStack.getItem());
BlockPos yZeroPlayerPos = player.getOnPos().atY(0);
// BlockPos yZeroItemPos = leafPos.atY(0);
Copy link
Author

Choose a reason for hiding this comment

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

@ricksouth I wish to hear your input on this. Should it search based on the player position or the leaf position?

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