mojira.dev
MC-267364

Teleporting in the air is considered flying by server

When being teleported into the air, a server with flying disabled will kick you for flying in survival/adventure mode.

Steps to reproduce:

  1. Create a server with allow-flight=false

  2. Enter the server

  3. Use

    /gamemode survival
    /setblock ~ ~-1 ~ chain_command_block{auto:1b,Command:"teleport @p ~ ~3 ~"}
    /setblock ~ ~ ~ repeating_command_block[facing=down]{auto:1b,Command:"teleport @p ~ 0 ~"}
  4. Wait for a few seconds
    -> ❌ Get kicked for flying

Expected behavior:

Since it's a command the server (via functions or command blocks) is running, the "fly timer" should be reset.

Attachments

Comments 4

I can confirm this in 1.20.4 and attached a video demonstrating the bug.

This happens since 1.8.9 or earlier.

Can confirm in 1.20.6 & 24w21b.

 

Requesting ownership (the op is marked as inactive).

user-f2760

(Unassigned)

Confirmed

Platform

Important

Commands, Dedicated Server

1.20.4, 23w51b, 1.20.6, 24w21b, 1.21, 1.21.4

Retrieved