Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
MC-264204 Fix

MC-264204 Fix

A server-side mod that fixes a bug when the death from a goat ramming is not tracked by advancements and statistics.

3,155
11
Utility
AboutChangelogVersions

MC-264204 Fix

A server-side mod that fixes a bug when the death from a goat is not tracked by advancements and statistics. This issue is tracked here: https://bugs.mojang.com/browse/MC-264204.

Technical description

The damage dealt by the goat has a unique NO_ANGER flag, which hides the attacking entity from the attacked one, thereby preventing mobs from becoming aggressive in response to the attack. However, this flag does not account for cases where the attacked entity is a player. In such cases, it should not function this way, since players are not mobs.

The fix involves skipping the check for this flag when the attacked entity is a player, allowing the player to be aware of the attacking entity, so advancements and statistics triggers will be works.

This hasn't been taken into account since Mojang added the goat, but in Minecraft 1.20 it broke because they did a refactoring and removed the code that was making it work more or less correctly.

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.21.x
1.20.x

Platforms

Fabric

Supported environments

Server-side

Links

View source

Creators

diskria
diskria Member

Details

Licensed MIT
Published 11 months ago
Updated 6 months ago

Modrinth is open source.

main@a0bd011

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.