Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-124865

"teleport @s ~ ~ ~" by tick causes huge lag in game

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • Minecraft 18w05a
    • None
    • Windows 10 x64 with Java 1.8.0_51. Official launcher.
    • Unconfirmed

      Sometimes we need to change players' rotation without changing their positions. For example when we try to simulate "gun fire" in game. Players who fires constantly receives huge recoil. To make this we offen use "tp ~ ~ ~ ~ ~-x", in which x is the angle.
      After we set this command and added to "minecraft:tick", we found that it would cause huge lag in game. You will even see that you walk away from where you shoot, still be dragged back after a few seconds. Disabling "tp" command can avoid this, but we could no more make "recoil" functions.
      Hope you can fix it or just tell me why it performs like this.

      Steps to reproduce:
      1. Set a repeating command block, in which the command is

      {execute as @a at @s run tp @s ~ ~ ~ ~ ~}

      2. Activate it, get some snowballs, run and shoot.
      3. Deactivate it, and try shooting again.
      4. Then you know what I mean.

            Unassigned Unassigned
            Civi Civi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: