Minecraft 26.2 pre-release 4
Even more fixes and tweaks.
These writeups assume you have read the Official Changelog before continuing.
Table of Contents
Sulfur Cube
Sulfur Cubes previously used the following process when hit by an attack:
- Find the horizontal angle between the cube’s center and the player’s aim direction and expand it by 60%. For example, if the player is looking 5° to the right of the cube’s center, the cube will be knocked back 8° to the right.
- Scale horizontal knockback from 50% when looking at the bottom of the cube, to 150% when looking at the top of the cube.
- Scale vertical knockback from 150% when looking at the bottom of the cube, to 50% when looking at the top of the cube.
- Create a vector, then rotate it vertically by the vertical angle from the player’s position to the cube’s position. For example, if the player is below the cube, the cube will be knocked back more vertically and less horizontally.
- Scale the knockback vector down until it no longer exceeds
horizontalKnockbackPowerhorizontally orverticalKnockbackPowervertically, whichever is greater. - Scale knockback power by the square root of damage taken. An attack that does no damage will deal no knockback.
- Scale knockback power by . A knockback resistance of -2 will make the cube get knocked back twice as far.
- Multiply horizontal knockback by 0.4 and vertical knockback by 1.2.
- Cap knockback at 51.2 blocks/tick horizontally and 153.6 blocks/tick vertically.
Now, the above process is repeated, but step 6 instead scales knockback power by:
Where is the attack_knockback attribute (0 for players, 1 for hoglins/zoglins, 1.5 for ravagers/wardens), and enchantLevel is the Knockback enchantment level.
Friends List
Players now share when they are playing on a multiplayer server, a LAN server, or a realm.
Minecraft Services API
The friend and presence services can now return a Retry-After header, which the game uses to determine how often to send/request updates from the friends and presence services.