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

Carpet fake players in survival mode have 4.5 block reach when attacking mobs #1882

Open
TheobaldTheBird opened this issue Mar 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TheobaldTheBird
Copy link

Carpet bots have significantly higher reach than real players when attacking entities. Normal player attack reach is 3 blocks. This happens because EntityPlayerActionPack.getTarget() uses the same reach value for block interaction and entity interaction

TheobaldTheBird added a commit to TheobaldTheBird/fabric-carpet that referenced this issue Mar 11, 2024
The bots still have a 4.5 block range while interacting with blocks, but entity interaction range has been reduced to 3 blocks, fixing gnembon#1882

Player attacking is more realistic now. Using /player <player> attack once will swing even while not targeting an entity, and will properly reset attack cooldown

gnembon#1881 is also fixed, as players will properly lower their movement speed while using slow items
@altrisi altrisi added the bug Something isn't working label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants