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

/tp command doesn't handle entity tp properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 1.12.2, Minecraft 18w20a
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Vanilla
    • Confirmation Status:
      Confirmed

      Description

      Issue: teleporting a mob to an unloaded chunk will result in the mob not getting saved if player doesn't go to said unloaded chunk.

      Steps to reproduce:
      /summon sheep ~ ~ ~ {Color:1}
      /tp @e[type=sheep] ~ ~ ~+1000
      save and quit the world
      /tp ~ ~ ~+1000 entity orange sheep doesn't exist

      Steps to produce entity not rendering:
      repeat above but, stop before quitting the world
      /tp ~ ~ ~+1000 entity doesn't show up but, you can hear the sheep
      quit world go back in and orange sheep is there

      Solution:
      I don't have a set one since it looks like the world is setting the entity dead or isn't being added to the chunk. In my custom tp command test I forced a chunk to load and it didn't fix this issue. My solution would be to stop the entity from being dead when teleporting, make sure it's added to the chunk so on save it doesn't disappear .

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dragonofthelakeabcd jredfox
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: