mojira.dev
MC-151648

Non-player entities cannot travel through unlinked nether portals

The bug

Non player entities cannot travel through portals if it's not generated on both sides.

How to reproduce (from @unknown)

  1. Create a new world and create an unlit portal frame.

    • If in an existing world, create an unlit portal somewhere far from any existing portals in both the nether and the overworld.

  2. Put a boat in the portal frame

  3. Check the boat's PortalCooldown tag by typing

/data get entity @e[type=minecraft:boat,limit=1] PortalCooldown

, note the tag is at 0

  1. Light the portal
    → ❌ Observe that the boat is not teleported but PortalCooldown is now at 300.

Original Description

Basically my bug is that sometimes pig-men come through the nether portal, to the overworld. Issue is that I cannot seem to push them back into the nether, by physically pushing them into the portal whilst it's lit. Not sure if it's changed that the pig-men need to stay there longer (in the portal) to transport. I had one there for around 8 seconds, but didn't get transported.

Note: I haven't gone to the nether, so idk if it's registered a new world for the nether, or if I'll have to go there myself to generate it to then go back and push him back in. I'll check that and update on if that resolved the issue, and then if this even is a bug.

Update: After going to the nether, and back to try pushing him back in again, the issue is still the same. The pig-man won't be transported back through the portal.

Restarting game didn't resolve it either. As can be seen on the video attatchment.

Issue still remains in the newest version of Minecraft (1.14.1)

However I've found out if the pigman goes into the portal on his own, he will be teleported, but if I try pushing him in he will not teleport.

Related issues

MC-102754 Mobs don't use nether portals when there is no portal in the nether MC-149847 Certain villagers refuse to go to the nether MC-150011 Villager not going through Nether Portal MC-152451 Some horses unable to use Nether portals even if cooldown timer is at 0 MC-157866 Foxes and cats not going through nether portals? MC-158146 Dismounting a horse inside a portal sometimes does not cause it to go through MC-158170 Horse Will Not Go Through the Nether Portal MC-158998 Villagers won't go through portal MC-159058 Entities not going through Nether portal after going in a boat that was destoyed inside the portal in Minecraft Server 1.14.4 version MC-159106 Horse Cannot Go Through Nether Portal MC-159774 Villagers Not Going Through Nether Portals MC-161369 I can't get ghasts through nether portals MC-168192 Panda's can't go through nether portals MC-169785 villagers sometimes can't go through nether portals MC-171760 Entities can't go through portals on the nether roof MC-172868 Tamed Cats wont go through Nether portal. MC-174332 My dog can't leave the Nether MC-183856 Ghast portal issues MC-199884 Entities Deciding Not to Use Portals MC-264037 Some mobs can't teleport in portal like ghast or strider MC-264207 Mobs not passing through nether portals on nether side back into overworld REALMS-1847 Entities cannot exit the Nether

Attachments

Comments

migrated
[media][media][media][media][media]
violine1101

Did the zombie pigman leave the portal before you tried to push it back in?

migrated

Yes, I waited till he left to make sure. And then tried pushing him back in, but it didn't work. 

violine1101

Entities need to wait 300 ticks until they can teleport through a portal again. If they enter a portal before that cooldown has counted down to 0, the counter is reset to 300 every tick they're in the portal. I'm not sure whether that's what this issue is about.

migrated

I'm having this same issue. trying to move a couple dozen villagers and 2 out of three will not go through on the Nether side, been working on this for two days. Every once in a whole I'll try and to push them through again and they just stand in the portal.

Also, I had one Villager go through and then come back and then he wouldn't go through again, so I had to set him aside as well.

FaRo1

In which version? Also, there's a cooldown after going through a portal, you need to wait for a few seconds before that entity can go through a portal again.

migrated

I'm having the same issue with some villagers in 1.15.1 at the moment. I think it's related to the `Dimension` nbt tag. It seems to usually be -1 for entities in the nether, but these villagers which were bred in the nether have Dimension=0, which would seem to imply that they think they're in the overworld. New villagers fresh from a spawn egg have Dimension=-1, and are able to go through the same portal as normal.

Jeuv

After some testing in 1.15.2 and 20w10a, I found out that if an non-player entity tries to travel through a portal when there isn't one on the other side, its Dimension tag gets changed, but it doesn't actually get teleported. This then means that that entity can never travel through a portal again, as its Dimension tag does not match the current dimension. You can reproduce this fairly easily.

Reproduction steps:
1. Create an unlit portal somewhere where far from any existing portals, both in the nether and the overworld.
2. Put a boat in the portal frame
3. Check the boat's Dimension tag by typing

/data get entity @e[type=minecraft:boat,limit=1]

4. Light the portal

5. Observe that the boat does not get teleported
6. Check the boat's Dimension tag again
-> Observe that the boat's Dimension tag changed, without it changing dimensions.

ryu3025

I did what Jeuv said, only with a cow. The problem still exists in 20w13b.

migrated

im getting the same problem with a villager who wandered into a portal. my version in 1.15.2, and i checked his dimension tags and it says overworld yet he is still in the nether :/ chunks are loaded on both sides, the overworld side being the spawn chunks. i have let him out of the portal for a few seconds, and held him in the portal, but nothing.

 

hope this gets resolved

ryu3025

The bug is in 20w17a.

ryu3025

I think the bug is fixed in 1.16 Pre-Release 3. Is anyone else not having a problem with this bug?

EDIT: I wasn't sure before, but I tested in survival and everything thing is still working. I think this bug is resolved.

violine1101

I'm still able to reproduce in 1.16-pre7.

ryu3025

There must be something different between my testing and your testing, because I'm not having this problem in 1.16-pre7. I just tested in 1.16-pre8 and I'm not having a problem there either. This is how I'm testing it:

  • build nether portal

  • use a lead on a cow and walk around the portal to lure it in and out of the portal

  • the cow has portalcooldown data but no dimension data

  • attach the cow's lead to a fence pull then walk into the nether and out to generate a portal on the other side

  • lead the cow back into the portal and it teleports into the nether

  • return to the nether to where the cow is

  • the cow still has portalcooldown data but no dimension data

Jeuv

Still in pre-8, this makes getting the advancement Uneasy Alliance really hard.

Edit: I can confirm that mobs that lost their Dimension tag can still go through a portal now, so at least that part is fixed.

numeritos

Affects 1.16-rc1

ryu3025

I don't believe this is an issue anymore.

This main problem this issue was causing was that entities would get permanently stuck in the overworld, but in pre-8 (I haven't tried 1.16-rc1) the dimension tag doesn't get set or used, so entities aren't getting stuck in the overworld.

Entities still aren't teleporting if there isn't a Nether Portal on the other side, but should they? If an entity teleported into the Nether without a portal on the other side, it would weird for a player traveling in the Nether, to eventually find an overworld entity without a portal. The teleported entity would have to generate the matching portal and nether chunks when it goes in and the player that pushed it in would probably have to wait in a loading screen even though they aren't teleporting themselves.

migrated

Confirmed for 21w06a

migrated

I found that if there is a wall behind the nether portal in the dimension you are trying to get the horse to travel to, the horse won't go through as the horse is 2 blocks fat so needs space around the portal to go through.

ampolive

Can confirm in 1.17.1.

migrated

Would this bug cover Captain Sparklez's struggles to get the Uneasy Alliance Advancement in 1.19? If so, how does 1.19 get added to the Affected Versions list?

This video from here https://youtu.be/grcfZ-s5arg?t=4363 until about 1:20:00 shows his first few attempts with Ghasts and portals. And this one https://youtu.be/J22zYtTjxsQ?t=3480 shows the ghast actually flying through a lit portal at timestamp 58:35 with no affect.

migrated

In 1.20.1 this bug appeared again.

migrated

Still doesn't work

[Mod] Jingy

Can confirm in 1.20.3 Pre-Release 2

migrated

Wanted to add something to this and see if I could get any help. My portals are linked on XYZ cords within .50 of a block (the division doesn't always give a whole number) and I am trying to get a zombie to go through the portal and it just keeps walking through the lit portal. I have visited both sides and even set up an area around the nether side that is lit and flat. The only thing that could be causing issues is that the portal is on the nether roof but the Y levels for the overworld-nether portal are the same. I am not sure what to do.

 

Went into creative and everything worked fine. There are some portals that are within 200 blocks on my server that i had the problem with so maybe that is it.

GoldenHelmet

Intended behavior based on the resolution of MCPE-166172.

migrated

Shugoh

Confirmed

Platform

Low

Entities

nether_portal

Minecraft 1.14, Minecraft 1.14.1 Pre-Release 2, Minecraft 1.14.1, 1.14.4, 1.15, ..., 21w06a, 1.17.1, 1.18, 1.20.1, 1.20.3 Pre-Release 2

24w21a

Retrieved