Entities get slowed down and take damage from sweet berry bushes even when not in their hitbox
Relates to MC-215402 and MC-262309. The calculation for whether an entity is slowed down or damaged by a sweet berry bush treats the bush as a full block. Age 0 berry bushes only slow entities without causing damage. The hitbox of age 3 berry bushes matches that of a full block, while for age 2 bushes, it's slightly smaller, allowing them to reproduce the same effect.
Steps to reproduce (Age 0)
/gamerule randomTickSpeed 0
/setblock ~ ~ ~ minecraft:sweet_berry_bush[age=0]
/execute align xyz run tp ~-0.25 ~ ~-0.25
- Move around
Observed outcome: Despite not intersecting with your hitbox, the berry bush slows you down.
Expected outcome: If your hitbox doesn't intersect with the sweet berry bush's hitbox, you shouldn't be slowed down.
Steps to reproduce (age 2)
/gamerule randomTickSpeed 0
/setblock ~ ~ ~ minecraft:sweet_berry_bush[age=2]
/execute align xyz run tp ~ ~ ~-0.25
- Break blocks beneath you without affecting the block beneath the berry bush
- Move cautiously along the edge in survival mode while sneaking
Observed outcome: You sustain damage and experience reduced movement speed.
Expected outcome: You shouldn't be slowed down or take damage, as your hitbox doesn't intersect with the berry bush's hitbox.