mojira.dev
MCPE-61992

Functions break when making blocks while chunks are being generated

Instead of waiting for chunks to be generated, functions that attempt to teleport the player far away and create a structure where the player was just teleported to will instead generate nothing. For function files that require teleporting to operate, players may fall to their deaths while complex commands break easily from this.

A workaround by using /tickingarea before placing structures has been found that helps mitigate this issue to an extent, but does not fix the underlying bug as it still happens if you use functions! Functions currently have no feature to pause execution after teleport to new chunks or a way to manage the rate at which functions are executed.

Simply repasting a function is a naive option that works for some, but It can't always be done that way.

For example, this should have sent players to the Nether at various locations in the world, but instead players fall to their deaths as none of it was generated properly.Β 

spreadplayers 0 0 1000 8000 @a
execute @a ~ ~ ~ /execute @s ~ ~ ~ /setblock ~ 254 ~ bedrock
execute @a ~ ~ ~ /execute @s ~ ~ ~ /setblock ~1 255 ~ bedrock
execute @a ~ ~ ~ /execute @s ~ ~ ~ /setblock ~-1 255 ~ bedrock
execute @a ~ ~ ~ /execute @s ~ ~ ~ /setblock ~ 255 ~1 bedrock
execute @a ~ ~ ~ /execute @s ~ ~ ~ /setblock ~ 255 ~-1 bedrock
execute @a ~ ~ ~ /execute @s ~ ~ ~ /setblock ~ 255 ~ portal
tp @a ~ 255 ~

(Unfortunately for an Addon I'm making, this bug forced me to use squid clocks as a simple suffocation timer [18 seconds and annoying] to temporarily workaround this. I now use a special command to generate a portal on player if bedrock is detected at y=0, which requires effects to stop players from dying. All of which is too slow and cumbersome to deal with.)

Attachments

Comments 5

I can confirm it breaks /setblock and /fill

Sometimes half or small sections of a structure will generate and other times it works correctly. What happens seems to be dependent on how fast chunks load and the complexity/size of the function file being used. This is not good at all for anything server relatedΒ 

Summoned entities also might be affected by this. I have not confirmed that yet.
Confirmed! Entities are also affected by this!

I know that blocks set and filled outside of render distance's generated chunks are set to not work when "outside of the world", but there is no check in place to determine if the player is nearby where the blocks are supposed to be created.

It sounds like this issue would relate to MCPE-21416 as well as invisible chests and such. If the game tries to processes stuff in chunks that are not fully loaded then its going to read some of the data for stuff as 0 isn't it?

It almost looks like it, but this is an entirely different issue. This is more of a conflict between functions and chunks not working well with each other than more of that bug.

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 it is, please be sure to include 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

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

For any account or purchasing related issues, please contact Minecraft Customer Support directly, as we cannot assist with those here at the bug tracker.

Quick Links:
πŸ““ Issue Guidelines – πŸ’¬ Mojang Support – πŸ“§ Suggestions – πŸ“– Minecraft Wiki

Tstu0001

(Unassigned)

299593

Community Consensus

Windows

Windows 10 Home

chunk, chunk-loading, command, functions, gameplay

1.14.2.51 Beta, 1.14.1 Hotfix

Retrieved