Skip to content

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
Contributor

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