mojira.dev
MC-259221

Using the "/ride" command on invalid entities teleports players to their position

The Bug:

Using the "/ride" command on invalid entities teleports players to their position.

Steps to Reproduce:

  1. Summon a marker by using the command provided below.

    /summon minecraft:marker ~ ~ ~
  2. Travel around ten blocks away from the marker.

  3. Attempt to ride the marker using the command provided below.

    /ride @s mount @e[type=marker,limit=1,sort=nearest]
  4. Take note of how you don't ride the marker but are teleported to its position.

Observed Behavior:

The player is teleported to the entity's position.

Expected Behavior:

The player would not be teleported to the entity's position.

Linked issues

Attachments

Comments 0

No comments.

Shuddery

slicedlime

Confirmed

Platform

Normal

Commands

23w03a, 23w05a

23w06a

Retrieved