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

Burrow #553

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

Burrow #553

wants to merge 2 commits into from

Conversation

Doogie13
Copy link
Contributor

@Doogie13 Doogie13 commented Jul 9, 2023

Describe the pull
This pull request aims to make a complete and functional Burrow

Describe how this pull is helpful
This is a reasonably highly requested feature and the Nearby setting makes this very useful for people who can't pvp without cruthes.
Some of the modes will not work on all servers. Don't expect them to.
The defaults are good, and has the Nearby setting automatically enabled. Most users will only have to change the nearby setting.

Additional context
Video

Comment on lines +198 to +200
val slot = player.hotbarSlots.firstItem<ItemBlock, Slot> {
it.item is ItemBlock && it.item.block.let { b -> b == Blocks.OBSIDIAN || b == Blocks.ENDER_CHEST }
} ?: return@safeListener
Copy link
Member

Choose a reason for hiding this comment

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

Let's add a setting for hotbar spoof and use the HotbarManager.spoofHotbar helper methods instead of doing it all manually.

I think it should work as it sends packets immediately unlike the PlayerPacketManager (which I don't think will work here as packet ordering and timing is specific)

Also let's check the main and offhand slots for if they're already holding a block to burrow into. Then no unnecessary swapping packets are sent.

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