Skip to content

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

Open
IxPrumxI wants to merge 2 commits intoSerilum:1.21.0from
IxPrumxI:1.21.0
Open

Automatically pickup items when cutting down trees (1.21.0)#2
IxPrumxI wants to merge 2 commits intoSerilum:1.21.0from
IxPrumxI:1.21.0

Conversation

@IxPrumxI
Copy link
Copy Markdown

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
Copy Markdown
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