Commands that target a valid location in an unloaded chunk return a confusing error. The error seems to imply that the location is not valid, but the location is valid, it is just in an unloaded chunk. This occurs whether the command is run manually or when run through a command block. This affects setblock, testforblock, and summon.
What I expected to happen was...:
Commands (setblock, testforblock, summon, fill) that targeting an unloaded chunk return an error saying cannot target unloaded location.
What actually happened was...:
Error message "Cannot (place block|test for block|summon the object) outside of the world" is shown.
Steps to Reproduce:
1. Teleport to a test chunk to force the chunk to be created, if it hasn't already been.
Ex: /tp @p 1000 100 1000
2. Teleport to another spot, far enough away that the test spot is no longer loaded.
Ex: /tp @p 100 100 100
3. Run a command that targets a location in the test chunk.
Ex: /setblock 1000 100 1000 minecraft:stone 0 replace
Ex: /testforblock 1000 100 1000 minecraft:stone
Ex: /summon Chicken 1000 100 1000
I'm not sure what the error message text should be, perhaps something like:
"Cannot (place block|test for block|summon the object) in an unloaded chunk" or "Cannot (place block|test for block|summon the object) in an unloaded location".
I also think that the error message that is currently shown should continue to exist but only be used when trying to target an invalid location (eg. -y or y>255).