Skip to content
This repository was archived by the owner on Feb 19, 2019. It is now read-only.

Check if Neutral mobs are angry#11

Merged
ZeroMemes merged 1 commit intomasterfrom
filter
Jun 10, 2017
Merged

Check if Neutral mobs are angry#11
ZeroMemes merged 1 commit intomasterfrom
filter

Conversation

@ZeroMemes
Copy link
Copy Markdown
Member

EntityFilter should check if neutral mobs are angry when deciding if
they are hostile or passive.

  • Check if Zombie Pigmen are angry
  • Check if Polar Bears are angry
    • If the polar bear is a child it can't be hostile
    • Check if the bear is targeting the player
  • Check if Iron Golems are angry
    • If player spawned, they will not turn hostile
    • If the player has angered the village, they will turn hostile
    • If they are targeting the player, they are hostile

Also, return as soon as a condition is true instead of continuing to check
all conditions.

EntityFilter should check if neutral mobs are angry when deciding if
they are hostile or passive.

- Check if Zombie Pigmen are angry
- Check if Polar Bears are angry
  - If the polar bear is a child it can't be hostile
  - Check if the bear is targeting the player
- Check if Iron Golems are angry
  - If player spawned, they will not turn hostile
  - If the player has angered the village, they will turn hostile
  - If they are targeting the player, they are hostile

Also, return as soon as a condition is true instead of continuing to check
all conditions.
@ZeroMemes ZeroMemes merged commit 5436389 into master Jun 10, 2017
@LeafHacker LeafHacker deleted the filter branch June 10, 2017 20:46
ZeroMemes added a commit that referenced this pull request Sep 18, 2018
Check if Neutral mobs are angry
ZeroMemes added a commit that referenced this pull request Sep 18, 2018
Check if Neutral mobs are angry
ZeroMemes added a commit that referenced this pull request Sep 18, 2018
Check if Neutral mobs are angry
ZeroMemes added a commit that referenced this pull request Sep 18, 2018
Check if Neutral mobs are angry
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants