Skip to content

Fixed endermans attacking creative players#1051

Merged
codeHusky merged 1 commit intosmartcmd:mainfrom
Us3ful-dev:Enderman-creative-fix
Mar 10, 2026
Merged

Fixed endermans attacking creative players#1051
codeHusky merged 1 commit intosmartcmd:mainfrom
Us3ful-dev:Enderman-creative-fix

Conversation

@Us3ful-dev
Copy link
Contributor

Fixed endermans by making a invulnerable check

Description

Enderman try to attack creative players that punched them.

Changes

Added an invulnerability check in monster.cpp

Previous Behavior

the enderman got angry at creative players

Root Cause

There was no check for invulnerability.

New Behavior

There is a check to see if the target player is invulnerable

Fix Implementation

added a check for invulnerability

AI Use Disclosure

No AI

Related Issues

Fixed endermans by making a invulnerable check
@eh-K
Copy link
Contributor

eh-K commented Mar 9, 2026

It works but is slightly inconsistent. When you hit the enderman, his face still agroes for a split second.

Im trying to find a solution unless you can figure this out before me

@eh-K
Copy link
Contributor

eh-K commented Mar 10, 2026

Good to merge. It works.

May be an animation thing. I tried a few player checks in other agro related areas and the face still opens regardless.

@codeHusky codeHusky merged commit c90a6bf into smartcmd:main Mar 10, 2026
1 check passed
@Us3ful-dev
Copy link
Contributor Author

What i found is that when the enderman gets hit by anything it turns angry (creepy in code) and only after that it does a check if it realy should be angry.

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.

[Bug] enderman are mad at you in creative

3 participants