-
Notifications
You must be signed in to change notification settings - Fork 279
Animal feeding improvements #1025
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
Conversation
* Implements horse healing. * Implements growing. * Food no longer consumed if !canBreed() && !canGrow() (except by horses, who are healed by food).
What kind of live testing is required for this? Could you describe some testing steps? |
Test that:
|
I tried your test and actually noticed some stuff:
The other things seem to work, I will also try to take a look soon to improve animal feeding |
@FlorentClarret For your test where food was falsely consumed, would the cow and pig have been expected to enter Love Mode? If not, why not? |
I just gave wheat to a cow, which was not in love mode and the cow entered in love mode as expected, but after that the wheat is still consumed if I keep giving it wheat. I tried on vanilla an it's not the case, the wheat is not consumed if the cow is already in love mode. |
- Heart particles should now spawn above the mob's head. - Food won't be consumed to refresh love mode if already active.
Both issues should be fixed now. |
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.
Looks good to me now. Thanks @Pr0methean
src/main/java/net/glowstone/entity/passive/GlowAbstractHorse.java
Outdated
Show resolved
Hide resolved
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.
Good work! Sorry for the delay.
GlowAbstractHorse.canBreed()
can no longer return true if untamed.