feat(autoweapon): auto kb stick - #8739
Conversation
|
Thanks for the PR! A couple of things a reviewer will likely want to look at:
Docs impact: the AutoWeapon page's settings table would need the new 🤖 Automated support reply — a human maintainer will review if this doesn't help. |
|
That's so epic |
|
I personally dont see the benefit in this, but I think it would be cooler if it detects void near a customizable range for deciding to use kb stick. So for example if range is set to 4 blocks, it would look for void on x z axis in 4x range, and if detected the autoweapon will use kb stick, if not it will use sword. |
That's good if they decide to add proper kb displace soon at least |
| } | ||
|
|
||
| private fun determineWeaponSlot(target: LivingEntity?, enforceShield: Boolean = false): HotbarItemSlot? { | ||
| // Switch to knockback stick when close to the target |
There was a problem hiding this comment.
anyone who read ts would figure what out it does instantly, you don't need a comment... 🥀
There was a problem hiding this comment.
added for skimming so people can skip that code block entirely but i can remove it 👍
| val stick = Slots.Hotbar.findClosestSlot { stack -> | ||
| WeaponType.KNOCKBACK.test(stack) | ||
| } |
There was a problem hiding this comment.
realistically useless but it should switch to the stick with the most enchantment level, not the closest one.
switches to kb stick if an enemy is close, then maintains that distance with a weapon that does damage. useful for both closet and blatant