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

Terraform bug (12 chunks), right clicking with offhand #20

Closed
octoshrimpy opened this issue Apr 2, 2021 · 11 comments
Closed

Terraform bug (12 chunks), right clicking with offhand #20

octoshrimpy opened this issue Apr 2, 2021 · 11 comments

Comments

@octoshrimpy
Copy link
Contributor

Server Version and Software
e.g. Paper 1.16.5

Description
This problem is two-fold:

  1. Right clicking to activate abilities overrides vanilla offhand mechanics; because of so, abilities are activated a lot more often than a player wants, when trying to break/place easily (pick in main, block in off)

  2. Terraform ate somewhere around 10 to 12 chunk radius around me, all in the same layer, instead of default 4 blocks. I also have installed MineTinker but it shouldn't interfere with Skills' mechanics.

How To Reproduce
Steps to reproduce the behavior:

  1. right click with shovel at high level, and then dig.

Expected behavior
As stated in wiki, 4 block radius max.

Actual behavior
it destroys all blocks of similar hardness or lower in a very large radius. Attached screenshot is only a smaller section I did for testing. It destroyed chests, dirt, grass (not all of it, oddly enough) flowers (not on top of the destroyed grass).

Screenshots
If applicable, add screenshots to help explain your problem.
image


Thoughts
This mechanic was great in MCMMO when offhand did not exist. Since offhand is now a thing, the right click with a tool can no longer be assumed to be a "dead" action that leads nowhere. The plugin should check if the offhand is empty or if player is sneaking. Adding these two or checks will allow for regular right clicking to still place blocks, torches or other offhand interactions without sacrificing accidentally triggering abilities.

@octoshrimpy
Copy link
Contributor Author

I just realized I am on 1.6.5, updating to 1.6.7 and seeing if it persists.

@octoshrimpy
Copy link
Contributor Author

Updated to 1.6.7, broke directly under me, and then flew up. you can see from the dirt "stains" where it broke, and it's bigger than the default radius, which I have not touched.
image

@Archy-X
Copy link
Owner

Archy-X commented Apr 2, 2021

The extra blocks broken is because AureliumSkills calls its own BlockBreakEvents for each block broken to make sure the player can actually break the block there. It probably is another plugin interfering but I can add a sort of cooldown to make sure that only one effective break happens.

As for the activation, I will fix this soon. Currently there is a require_sneak option for speed_mine in abilities_config.yml but it just outright requires sneak to activate. I'll probably do what you stated as the default, then add some options to configure it however you want.

@Archy-X
Copy link
Owner

Archy-X commented Apr 2, 2021

I don't know how fast this will be fixed though, because the more changes I make in Alpha makes Beta development more tedious to update. I may have to put this in the Beta 1.0.0 update, which is mostly done but just needs one key feature to be finished.

@octoshrimpy
Copy link
Contributor Author

Good call. I just remembered that Minetinkers has a 3x1 modifier for the spoon. That then becomes a multiplier for the blockbreak, since the player is the one "breaking" it. (reading the code). What about a hotfix patch within alpha?

@Archy-X
Copy link
Owner

Archy-X commented Apr 2, 2021

I'll do a hotfix update tomorrow/today with what's currently in master plus these fixes.

@octoshrimpy
Copy link
Contributor Author

sounds good! I got started on a patch myself to PR, but you know the code much better. feel free to look over mine tho it has been a hot minute since I've done any Java haha

@Archy-X
Copy link
Owner

Archy-X commented Apr 2, 2021

Sure I'll let you do what you can on the fixes and make any changes if necessary.

@octoshrimpy
Copy link
Contributor Author

Done: #21

I did it in GH's web IDE, but it should be fine unless I misread or missed something.

@Archy-X
Copy link
Owner

Archy-X commented Apr 2, 2021

I merged new options for when mana abilities should ready, but the too many blocks broken bug is going to have to wait because I don't know what that other plugin is doing to cause it, and there isn't an easy fix.

@octoshrimpy
Copy link
Contributor Author

THe plugin is Minetinkers with the Power modifier, https://github.com/Flo56958/MineTinker/wiki/MineTinker-Explanation#power--axepickaxeshovel and that's just something that will always happen if those two are together, so no worries. now that I know about it, I can be more careful. :) Thank you for the quick fix!

@Archy-X Archy-X closed this as completed Sep 29, 2021
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

No branches or pull requests

2 participants