[MC-8983] Primed TNT cannot travel through nether portals Created: 02/Feb/13  Updated: 20/Jun/24  Resolved: 20/Jun/24

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w04a, Snapshot 13w05a, Snapshot 13w05b, Snapshot 13w06a, Snapshot 13w09a, Snapshot 13w09b, Snapshot 13w09c, Snapshot 13w10b, Minecraft 1.5, Minecraft 1.5.1, Minecraft 1.11.2, Minecraft 1.12 Pre-Release 1, Minecraft 1.12.2, Minecraft 17w50a, Minecraft 1.13.1, 1.14.4, 19w41a, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w27a, 1.16.2 Pre-release 1, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4, 20w46a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w11a, 21w15a, 1.17, 1.17.1 Pre-release 1, 1.17.1 Pre-release 3, 1.17.1 Release Candidate 1, 1.17.1, 21w37a, 21w38a, 1.18, 1.18.1, 22w03a, 22w05a, 1.18.2 Release Candidate 1, 1.18.2, 1.19, 1.19.1, 1.19.2, 22w43a, 1.19.3, 1.19.4, 1.20, 1.20.1, 24w11a, 1.20.6
Fix Version/s: 1.21 Pre-Release 1

Type: Bug
Reporter: [Mod] Avoma Assignee: Unassigned
Resolution: Fixed Votes: 61
Labels: nether_portal, tnt

Attachments: PNG File 2013-02-01_20.28.07.png     PNG File 2019-10-15_11.25.17.png     File MC-8983.mp4     PNG File setup.png    
Issue Links:
Duplicate
is duplicated by MC-194106 TNT entitys don't go thru portals. Resolved
is duplicated by MC-246246 TNT could not be teleport by Nether P... Resolved
Relates
relates to MC-9644 Launched falling_block entities do no... Resolved
CHK:
Confirmation Status: Confirmed
Category:
Entities
Mojang Priority: Low
Area: Gameplay

 Description   

The Bug:

Primed TNT cannot travel through nether portals.

Steps to Reproduce:

  1. Build the setup shown in the attachment below. setup.png
  2. Enter the nether portal to ensure that the chunks in the nether are loaded.
  3. Return to the overworld and ignite the TNT.
  4. Take note as to whether or not primed TNT can travel through nether portals.

Observed Behavior:

Primed TNT cannot travel through nether portals.

Expected Behavior:

Primed TNT would be able to travel through nether portals.

Code Analysis:

Code analysis by Kman032317 can be found in this comment.



 Comments   
Comment by [Mod] Avoma [ 20/Jun/24 ]

This was an issue in 24w21b but this no longer occurs in 1.21 Pre-Release 1. This issue was fixed in 1.21 Pre-Release 1 so I'm resolving this ticket as fixed.

Comment by TheBoy358 [ 07/Jun/24 ]

Fixed in 1.21 Pre-Release 4

Comment by theGlotzerify [ 11/Feb/22 ]

can confirm in 1.18.1

Comment by FX - PR0CESS [ 02/Jul/21 ]

Can confirm in 1.17.1 rc-1

Simply tick nether portal check inside the tick() of the tntEntity

The fix: 
https://github.com/fxmorin/carpet-fixes/blob/1.17/src/main/java/carpetfixes/mixins/entityFixes/TntEntity_netherPortalMixin.java

Comment by [Mod] Avoma [ 16/Jun/21 ]

Can confirm in 1.17.

Comment by [Mod] Avoma [ 19/Apr/21 ]

Can confirm in 21w15a.

Comment by [Mod] Avoma [ 29/Mar/21 ]

Relates to MC-9644.

Comment by [Mod] Avoma [ 28/Mar/21 ]

Can confirm in 1.16.5 and 21w11a.

Comment by [Mod] Avoma [ 18/Feb/21 ]

Can confirm in 21w07a. Video attached.

Comment by [Mod] Avoma [ 12/Feb/21 ]

Can confirm in 21w06a.

Comment by [Mod] Avoma [ 05/Feb/21 ]

Can confirm in 21w05b.

Comment by [Mod] Avoma [ 28/Jan/21 ]

Can confirm in 21w03a.

Comment by [Mod] Avoma [ 23/Dec/20 ]

Can confirm in 20w51a.

Comment by Marty McFly [ 10/Nov/20 ]

Affects 20w45a
Relates to MC-9644

Comment by Kyle Weber [ 09/Aug/20 ]

Code Analysis: 

Using 1.16.1 Yarn mappings.

The reason TNT cannot enter the nether via a nether portal is simple.

The TNT extends entity however never uses the entity tick which would call the base tick and thus call the netherportaltick to enter the nether.

Instead TNT uses it own tick method with no super call to the entity tick at all and thus no calling of the nether portal stuff.

public class TntEntity
extends Entity {
//Removed code not needed
@Override
public void tick() {
    if (!this.hasNoGravity()) {
        this.setVelocity(this.getVelocity().add(0.0, -0.04, 0.0));
    }
    this.move(MovementType.SELF, this.getVelocity());
    this.setVelocity(this.getVelocity().multiply(0.98));
    if (this.onGround) {
        this.setVelocity(this.getVelocity().multiply(0.7, -0.5, 0.7));
    }
    --this.fuseTimer;
    if (this.fuseTimer <= 0) {
        this.remove();
        if (!this.world.isClient) {
            this.explode();
        }
    } else {
        this.updateWaterState();
        if (this.world.isClient) {
            this.world.addParticle(ParticleTypes.SMOKE, this.getX(), this.getY() + 0.5, this.getZ(), 0.0, 0.0, 0.0);
        }
    }
//Removed code not needed
}
}

Here is the default entity tick:

It first calls the tick which call the base tick.

public void tick() {
    if (!this.world.isClient) {
        this.setFlag(6, this.isGlowing());
    }
    this.baseTick();
}

From the base tick it calls the this.tickNetherPortal().

public void baseTick() {
//Removed code not needed
this.tickNetherPortal();
//Removed code not needed
}

From the this.tickNetherPortal(), it checks to see if the entity is in a nether portal which TNT can be at is uses the move method which checks for collisions. If it had this calling it would be able to call this.changeDimension(lv3) and enter the nether.

protected void tickNetherPortal() {
//Removed code not needed
if (this.inNetherPortal) {
//Removed code not needed
    this.changeDimension(lv3);
//Removed code not needed
}
//Removed code not needed
}

 

 

Comment by Marty McFly [ 19/Jun/20 ]

Affects 1.16 Release Candidate 1

Comment by Philip Cooper [ 26/Dec/19 ]

Still an issue in 1.15.1

Comment by TheBoy358 [ 15/Oct/19 ]

Yeah it this still an issue in 1.14.4 or 19w41a.

Comment by [Mojang] Adrian Östergård [ 15/Oct/19 ]

Is this still an issue in 1.14.4 or later?

Comment by Kraif [ 25/Aug/18 ]

Couldn't reproduce it for 1.13.1.

Second opinion?

Comment by user-f2760 (Inactive) [ 17/Mar/16 ]

No response for over a year.

Comment by Galaxy_2Alex [ 25/Oct/14 ]

Is this still a concern in the current Minecraft version 1.8.1 Prerelease 3 / Launcher version 1.5.3 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Malsententia [ 07/Mar/13 ]

Just tested it on the prerelease. Still does not work.

Comment by John Distler [ 07/Mar/13 ]

TNT passing through portals should keep their momentum. Wouldn't it be really cool to shoot TNT through portals.

Comment by Malsententia [ 04/Mar/13 ]

Also, it says game mode creative, but it occurs in survival as well, obviously. I've tested it by using pistons to push the lit tnt into the portal.

Comment by Malsententia [ 01/Mar/13 ]

This bug still exists.

Comment by Dean Baset [ 03/Feb/13 ]

Confirmed. Also, launching TNT through a nether portal doesn't work

Generated at Sun Jan 12 12:19:35 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.