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

Unbreakable block with tool #307

Open
4 tasks done
CptbeffHeart opened this issue Nov 16, 2023 · 1 comment
Open
4 tasks done

Unbreakable block with tool #307

CptbeffHeart opened this issue Nov 16, 2023 · 1 comment
Labels
type: bug Something isn't working

Comments

@CptbeffHeart
Copy link
Contributor

CptbeffHeart commented Nov 16, 2023

Agreements

  • I am running the latest version of Nova.
  • I am running the latest version of my server software.
  • I have checked for similar issues.
  • I am using an official build of Nova.

Check for plugin incompatibilites

There are no other plugins running on my server.

Plugin Version, Server Software, Server Version

Nova-0.15-alpha.7

Nova Addons and Versions

Logistics-0.2.7-RC.2, Machines-0.4.4-RC.1, Simple-Upgrades-1.2-RC.1

Expected behavior

No response

Observed/Actual behavior

Blocks that can be broken instantly will not break if you have a tool in hand.
If the block breaks instantly by hand, regardless of the tool in hand, it will not break if you have a tool in hand.
If the block only breaks instantly when using a specific tool, it will not break when using that tool or a superior tool tiers.

Steps to reproduce

  1. Place a creativ energy cell
  2. Take diamond axe in main hand
  3. Try to break it in survival gamemode

Server log

https://pastebin.com/VJYRwmhu

Errors

No response

Additional context

No response

@CptbeffHeart CptbeffHeart added the type: bug Something isn't working label Nov 16, 2023
@NichtStudioCode
Copy link
Member

NichtStudioCode commented Feb 7, 2024

Update on the state of this issue:

The problem here is that the client predicts the block to be broken instantaneously, but the server doesn't, so Nova cancels the breaking process.
Allowing this would be possible, but that would mean that you could instantaneously break mushroom-backed blocks with an axe and loose the drop (if axe is not the correct tool).
I also didn't want to apply the (client-side) mining fatigue effect permanently, because it would be visible in the inventory and confusing for players, especially if they actually do have (server-side) mining fatigue.

However, we will be able to fix this when 1.20.5 comes out, because Mojang just added the player.block_break_speed attribute in the latest snapshot, which will replace the usage of the mining fatigue effect and can stay applied permanently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants