MCCTeam / Minecraft-Console-Client

Lightweight console for Minecraft chat and automated scripts
https://mccteam.github.io
Other
1.67k stars 402 forks source link

AutoAttack #1096

Closed drithh closed 4 years ago

drithh commented 4 years ago

Prerequisites

Is There A way to add some cooldown in autoattack ? because in 1.9+ combat , attacking have cooldown like 1-2seconds and to make entity search faster ? because if i used like 10 mob spawners+ the bot cant keep it up and it even cant hit the mob

Sorry i dont know wheres to put this issue , so i just put it in general question

ReinforceZwei commented 4 years ago

The 1.9+ combat cooldown is implemented. It will calculate and adjust the attack speed base on what weapon is being held.

drithh commented 4 years ago

is it already implemented in new build ? , because when i try it in new build its still not working

ReinforceZwei commented 4 years ago

Could you give more explanation? Like what did the bot do, which part is not working?

drithh commented 4 years ago

when there is a lot of mobs , like 20+ mobs in 1 block wide , the auto attack is not attacking the mob, i dont know whether its because anticheat on server or console client .

(the bot get kicked because sending too many packets)

ReinforceZwei commented 4 years ago

Everything works fine on my own testing environment. 20+ mobs in 1 block, able to attack and kill every mobs. Maybe the issue is the anti-cheat plugin as you mentioned.

ReinforceZwei commented 4 years ago

May I know what is the mob you want to attack? Is it spider?

drithh commented 4 years ago

i use like 10 blaze spawners in server

milutinke commented 4 years ago

@ORelio How I can generate Entity Pallete for 1.16.1? Auto Attack currently does not work because of that.

ORelio commented 4 years ago

@milutinke See instructions in EntityType.cs and EntityPaletteGenerator.cs.

Add a call to EntityPaletteGenerator.GenerateEntityTypes() with correct path to the json you generated from MC 1.16 using Data_Generators inside Main() in Program.cs and launch the project once. It should generate EntityType.cs and EntityPalette.cs.

Add missing entries in the existing EntityType.cs then add the new palette in EntityPalettes and look for existing references to EntityPalette115.cs. Add the appropriate case for using EntityPalette116.cs for Minecraft 1.16.

Finally, make sure there are no changes to implement for Entity Handling in Minecraft 1.16. Packet changes are on Pre-Release Protocol in the wiki.