Cannot move entity into unloaded chunks

Published by MMG on
Status
Can not reproduce
Issue description

Hello. I tried to search this but I havent found it. I making a revive mod prototype. When you die and have addinional life (variable) after respawn you can choose to teleport where you die. It work but when you wanna teleport into unloaded chunks it don't work. Please help. I don't know if this is bug report or support request.

 

Instructions:

use /add1up

2 times to get bonus life.

Then just kill yourself to test it.

 

Please I really need to know if it is bug or am I doing something wrong

Issue comments

I will check this, but I am afraid that you can't teleport to unloaded chunks and don't know if it is possible to request a chunk load. I will report back.

I have tried your mod and it worked. How do I make sure the chunk is unloaded? And what happens when you try to teleport? What do you mean by doesn't work? Does it crash? Thanks for this info.

I have done some research as we use setPositionAndUpdate method of entity to move entity and based on the info on Minecraft Forge forums, this should teleport even if the chunk is not loaded.

This is weird. I had problem upgrading mod to mcreator 1.8.3 maybe 1.8.2 had proken move entity. Thanks I will check it. Sorry, but I don't knew what to do. And to answer that question. No it didn't crashed the game. You just normally respawned at your spawn point but there was a small render glitch when you haven't saw blocks. Thanks and sorry for disturbing. I will try remake this and try it again.

About this, My Teleportation Staff (ranged item with huge power) have bullet which bring player at the block the button touch, as it have a huge power, the bullet goes to the block we look at instantly, but it don't from if we shot far in Unloaded chunk

So Klemen, if you wanna fix this, keep a little option for this bug as my teleportation staff won't have limits of range

I tried it again in 1.8.3 and havent worked again. I looked onto log and I find a problem. When you reviving in unloaded chunk. It will not teleport you at all here is log:

 

17:56.16 [Server thread/INFO] [minecraft/IntegratedServer]: Saving and pausing game...
17:56.16 [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'revive 1.8.3'/overworld
17:56.19 [Server thread/INFO] [minecraft/MinecraftServer]:  kill
17:56.19 [main/INFO] [minecraft/GuiNewChat]: [CHAT]  kill
17:56.25 [Server thread/INFO] [minecraft/MinecraftServer]: Player546 fell out of the world
17:56.25 [Server thread/INFO] [minecraft/MinecraftServer]: [Player546: Killed Player546]
17:56.25 [main/INFO] [minecraft/GuiNewChat]: [CHAT] Player546 fell out of the world
17:56.25 [main/INFO] [minecraft/GuiNewChat]: [CHAT] Killed Player546
17:56.43 [Server thread/INFO] [minecraft/MinecraftServer]: Player546 fell out of the world
17:56.43 [Server thread/INFO] [minecraft/MinecraftServer]: [Player546: Killed Player546]
17:56.43 [main/INFO] [minecraft/GuiNewChat]: [CHAT] Player546 fell out of the world
17:56.43 [main/INFO] [minecraft/GuiNewChat]: [CHAT] Killed Player546
17:56.48 [main/INFO] [minecraft/GuiNewChat]: [CHAT] You have been revived
17:57.15 [Server thread/INFO] [minecraft/MinecraftServer]: [Player546: Teleported Player546 to 1000.5, 100.0, 1000.5]
17:57.15 [main/INFO] [minecraft/GuiNewChat]: [CHAT] Teleported Player546 to 1000.5, 100.0, 1000.5

(this is where I teleported into loaded chunk)
17:57.17 [main/INFO] [minecraft/AdvancementList]: Loaded 7 advancements
17:57.21 [Server thread/INFO] [minecraft/MinecraftServer]: Player546 fell out of the world
17:57.21 [Server thread/INFO] [minecraft/MinecraftServer]: [Player546: Killed Player546]
17:57.21 [main/INFO] [minecraft/GuiNewChat]: [CHAT] Player546 fell out of the world
17:57.21 [main/INFO] [minecraft/GuiNewChat]: [CHAT] Killed Player546
17:57.21 [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 2175ms behind, skipping 43 tick(s)
17:57.25 [main/INFO] [minecraft/GuiNewChat]: [CHAT] You have been revived

(and this where into unloaded)
17:57.46 [Server thread/INFO] [minecraft/IntegratedServer]: Saving and pausing game...
17:57.46 [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'revive 1.8.3'/overworld

Based on this message: Can't keep up! Did the system time change, or is the server overloaded? Running 2175ms behind, skipping 43 tick(s), the Minecraft might not have enough RAM to quickly regenerate the chunk and its neighbors when you teleport to unloaded coordinates. Try increasing the RAM.

I gave it more RAM but still dont work

 

16:51.04 [Server thread/INFO] [minecraft/MinecraftServer]: [Player796: Killed Player796]
16:51.04 [main/INFO] [minecraft/GuiNewChat]: [CHAT] Player796 fell out of the world
16:51.04 [main/INFO] [minecraft/GuiNewChat]: [CHAT] Killed Player796
16:51.07 [main/INFO] [minecraft/GuiNewChat]: [CHAT] You have been revived

16:51.12 [Server thread/INFO] [minecraft/IntegratedServer]: Saving and pausing game...