mojira.dev
MCPE-49405

Spreadplayers Command Causes World Lag Until Restart

When you use the command /spreadplayers and the spreaddistance: float is a big number (5000 for example) makes the world slows down up to 6 times, in a medium-high end computer. In slower devices should be even slower. Once the world is restarted it works fine again

How to reproduce:
Open or create any world with cheats enabled
Execute the following command 
/spreadplayers 0 0 5000 10000 @a
You will get teleported to a random location in the world in a 10000 radius and to y=255 (another bug related to the same command so recommended to use the command in gamemode creative)
Once you are in the ground trying to mine any block or make any action you will clearly see that it takes a lot to do.
Once the world is closed and reopened it work fine again

Expected behavior:
Do not lag the world and tp a player to a random location into the highest block that is not air

Linked issues

Comments 9

Confirmed on Windows 10 v1.12.0.28. Lags in all gamemodes. Testing on realms is needed

Comments from MarsMan512 in MCPE-56402:

When you load into the world initially it starts at 20 ticks per second. However, after using spreadplayers and pushing everyone out thousands of blocks, the world tick rate drops to about 3 ticks per second. Even after everyone is teleported back the tick rate doesn't return to 20. Even if you teleport back to spawn, it won't get rid of the effect until you reload the world.

It doesn't matter how many people are in the world. It effects singleplayer as it does multiplayer.

Steps to reproduce:

  1. Generate or load a world (superflat, normal, doesn't matter)

  2. Build a redstone clock at spawn. It'll work at a normal speed.

  3. Use the command '/spreadplayers ~ ~ 0 5000 @s'

  4. Once you land build another redstone clock. It should tick very slowly now.

  5. Reload the world. The clock should operate at normal speed.

Effects on the world:

  • The player seems unaffected by this. Hunger goes down as normal, and physics don't change.

  • Eating, however, is slowed to a painful crawl.

  • Redstone is slowed down massively.

  • Animals and other mobs are in slow motion

  • Furnaces/Smokers/Blast Furnaces take more time to smelt anything

MCPE-61086:

Low end devices experience crashes.

the issue still there, removed the fixed in 1.13 text

Still occurs in 1.16.210.60, also affects all platforms not just Windows 10

Crashing my random TP system developed using this.

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response

Is this still an issue in the latest version? If so, please add a comment or update the affected version field.

To make your bug report as effective as possible, please try and include the following steps to reproduce the problem:

Steps to Reproduce:
1.
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

If your ticket does not look like the example given here, then it's likely to be closed as incomplete.

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Still an issue in 1.17.30

I can't reproduce this anymore in 1.20.whatever

DrAv0011

(Unassigned)

338994

Community Consensus

Windows

Windows 10

1.18.10.27 Beta, 1.17.30.22 Beta, 1.17.11 Hotfix, 1.16.0.68 Beta, 1.16.0.57 Beta, 1.12.0, 1.14.30 Hotfix, 1.16.1, 1.16.10, 1.18.2 Hotfix

Retrieved