Skip to content

[DNS] Punch blocking boats and minecarts#26

Draft
theredstoner wants to merge 6 commits intoAvanatiker:masterfrom
theredstoner:boatAntiStuck
Draft

[DNS] Punch blocking boats and minecarts#26
theredstoner wants to merge 6 commits intoAvanatiker:masterfrom
theredstoner:boatAntiStuck

Conversation

@theredstoner
Copy link
Copy Markdown

Punch boats and minecarts within reach distance that are blocking the highway

@Avanatiker
Copy link
Copy Markdown
Owner

Avanatiker commented Dec 30, 2020

This is a nice idea but u have to check if u can even see the target entity i can recommend raytrace

@theredstoner theredstoner changed the title Punch blocking boats and minecarts [DNS] Punch blocking boats and minecarts Dec 31, 2020
&& getDistance(mc.player.positionVector, entity.positionVector) <= maxReach.value) {
val rotation = RotationUtils.getRotationTo(entity.positionVector, true)
setRotation(rotation)
mc.playerController.attackEntity(mc.player, entity)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Would u change it to the Hotbar where u got a sword and the fact it needs to be punched more than one, cus if there are a lot of boats and lag and no sword it can take forever and maybe get the player robber banding and disconnect?

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.

I will add a check for swords. Thanks for the suggestion

@Avanatiker Avanatiker marked this pull request as draft January 2, 2021 00:00
@Avanatiker
Copy link
Copy Markdown
Owner

Converted this to a draft until its done :)

@Avanatiker Avanatiker linked an issue Feb 19, 2021 that may be closed by this pull request
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.

[Bug] [HighwayTools] Does not break boats

3 participants