

To check if damage is of a certain type, tags should be used. GetDamageSources method also exists in Entity as a shortcut. + anotherEntity.damage(world.getDamageSources().fallingAnvil(attacker), 1.0F) + targetEntity.damage(world.getDamageSources().magic(), 4.0F) anotherEntity.damage(DamageSource.anvil(attacker), 1.0F) targetEntity.damage(DamageSource.MAGIC, 4.0F) Enabled features and operator permission flag are now passed via the context object.

Callback passed to ItemGroup.Builder#entries now takes two arguments, instead of three. Minecraft 1.19.4 introduces some breaking changes to major developer-facing APIs. In Block Render Layer API, BlockRenderLayerMap’s useless item-related methods were deprecated for removal. In Registry Sync, FabricRegistryBuilder no longer requires the type class to be passed - just the registry key.

Note that all code references are using Yarn mappings modders using alternative mappings may need to use different names. Here is a list of all major modder-facing changes in this version. As noted previously, ‘minor’ releases starting from 1.19.3 can include major changes, and neither mod authors nor players should assume compatibility.Īs usual, we ask players to be patient, and give mod developers time to update to this new version. Minecraft 1.19.4 is almost here, with a number of changes that impact most mods.
