Skip to content

Conversation

@TheMcSebi
Copy link

Implements auto-shears into feed aura

Description

Simple addition to the feed aura hack to automatically shear all sheep in range.
Implemented because I needed it.
Just a simple POC, maybe there are more use cases for right clicking entities. Also a toggle in the hack settings might be appropriate.

If you want this feature in, feel free to provide feedback.

Testing

I tested the change by going to my sheep farm with shears and enabling FeedAura

@CLAassistant
Copy link

CLAassistant commented Dec 31, 2025

CLA assistant check
All committers have signed the CLA.

.filter(e -> player.distanceToSqr(e) <= rangeSq)
.filter(e -> e.isFood(heldStack)).filter(Animal::canFallInLove);
Stream<Animal> stream = EntityUtils.getValidAnimals();

Copy link

Choose a reason for hiding this comment

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

The name feels so misleading. It is a FeedAuraHack, but it can be used to either feeding or shearing. It is trying to do two different things in one functionality. Perhaps there should be a more generic class with more generic names.

Copy link
Member

Choose a reason for hiding this comment

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

I agree, FeedAura shearing stuff doesn't make sense. It should either be two separate FeedAura/ShearAura hacks or a single RightClickAura hack with settings. I'm leaning towards two separate hacks.

Copy link
Author

Choose a reason for hiding this comment

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

I totally agree, i just put it there because this was presumably the easiest point to implement this and i quickly needed some wool :)

@TheMcSebi
Copy link
Author

I didn't want to copy all the code, so I put most of the code into a parent class, even though I do not know if this makes the most sense regarding architecture. The current solution doesn't disable the other of the two inheriting aura hacks on enable, while other auras get disabled.
Maybe you can come up with a way to integrate this more nicely.

@TheMcSebi
Copy link
Author

TheMcSebi commented Jan 3, 2026

Maybe it would make the most sense to abstract all aurahacks into a sub class and disable them accordingly, but I don't want to refactor your entire client

e.g.

for(Hack hack : WURST.getHax().getAllHax())
	if(hack != this && hack instanceof GenericAuraHack)
		hack.setEnabled(false);

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.

4 participants