Skip to content
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

Skeleton Vanguard has 10% chance to block /kill damage #187

Open
LTCatt opened this issue Oct 26, 2024 · 0 comments
Open

Skeleton Vanguard has 10% chance to block /kill damage #187

LTCatt opened this issue Oct 26, 2024 · 0 comments

Comments

@LTCatt
Copy link

LTCatt commented Oct 26, 2024

Minecraft Version

1.20.x

Mod Loader Version

0.15.10

Mod Version

1.4.20

Describe the Issue

Skeleton Vanguard has 10% chance to block /kill damage

if (source.isIn(DamageTypeTags.IS_PROJECTILE)) {
chance = this.getWorld().getRandom().nextInt(2);
} else if (!source.isIn(DamageTypeTags.BYPASSES_INVULNERABILITY) && this.getHealth() < this.getMaxHealth() / 2) {
chance = this.getWorld().getRandom().nextInt(5);
} else {
chance = this.getWorld().getRandom().nextInt(10);
}

latest.log

Do you use any other mods except the required ones?

No response

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

No branches or pull requests

1 participant