The Bug
Endermen and chorus fruit consider blocks outside of the world border, and powder snow as valid teleporting locations.
Note: This report contains endermen and chorus fruit because as of 1.11.2 they use the same method (net.minecraft.entity.EntityLivingBase.attemptTeleport(double, double, double)
) to teleport.
How to reproduce
Set the center of the world border to your current position and to 10 blocks wide
/worldborder center ~ ~ /worldborder set 10
Obtain some chorus fruit and eat it until you end up outside of the world border
→ ❌ Notice how chorus fruit considers blocks outside of the world border as valid teleporting locationsSummon an enderman and make it teleport by placing some water nearby
→ ❌ Notice how endermen consider blocks outside of the world border as valid teleporting locations
Examples
Here are a few examples:
Enderman:
[media][media]Chorus fruit:
Video:
Expected behavior
The expected behavior would be that endermen and chorus fruit consider blocks outside of the world border, and powder snow as invalid teleporting locations.
Linked issues
is duplicated by
relates to
Attachments
Comments

That is a feature, not a bug. Mobs can go through the border unlike the player.
@unknown, source?

Pixdo.et, enderman going outside the world may be intended, but chorus fruit teleporting you outside is definitely a bug
Can confirm in 21w05b.
I am able to confirm this behavior in 21w38a. Here are some extra details regarding this problem.
The Bug:
Endermen and chorus fruit consider blocks outside of the world border as valid teleporting locations.
Steps to Reproduce:
Set the center of the world border to your current position and to 10 blocks wide.
/worldborder center ~ ~
/worldborder set 10
Obtain some chorus fruit and eat it until you end up outside of the world border.
→ ❌ Notice how chorus fruit considers blocks outside of the world border as valid teleporting locations.
Summon an enderman and make it teleport by placing some water nearby.
→ ❌ Notice how endermen consider blocks outside of the world border as valid teleporting locations.
Expected Behavior:
The expected behavior would be that endermen and chorus fruit consider blocks outside of the world border as invalid teleporting locations.
Can confirm in 1.18.1.
Can confirm in 1.18.2.

Powder Snow is also not considered when checking for valid teleport destinations. (See MC-252243 for more information.)
This issue relates to MC-102836.