-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add basic eating #115
Add basic eating #115
Conversation
inventory.pick("baked_potato") || | ||
inventory.pick("bread") || | ||
inventory.pick("carrot") || | ||
raise "Bot food not found" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be configurable via habitat
raise "Bot food not found" | ||
|
||
client.send_packet! Serverbound::UseItem.new :main_hand | ||
until food >= 20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be a method argument?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably. Incremental improvements
inventory.pick("baked_potato") || | ||
inventory.pick("bread") || | ||
inventory.pick("carrot") || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be a method argument? Also, my bots have food in the off-hand, which doesn't require pick
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're using offhand food just use right click, this method is meant for an all inclusive eat.
Generally it's best to leave stuff out of the offhand (at least in vanilla) because it packets more
It is a little heavy on the constants of it, but it's decent
It is a little heavy on the constants of it, but it's decent