<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:16:00 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[MC-7896] Exploding tnt minecarts drop minecart and tnt</title>
                <link>https://bugs.mojang.com/browse/MC-7896</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;h3&gt;&lt;a name=&quot;Thebug&quot;&gt;&lt;/a&gt;The bug&lt;/h3&gt;
&lt;p&gt;Exploding tnt minecarts drop a minecart and can drop a tnt item if they were ignited by fire. Normally the explosion then destroys the items, but there should not be a reason for the minecart to drop anything in the first place. Additionally &lt;a href=&quot;https://bugs.mojang.com/browse/MC-116669&quot; title=&quot;Exploding TNT minecarts and ender crystals can cause StackOverflow&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-116669&quot;&gt;&lt;del&gt;MC-116669&lt;/del&gt;&lt;/a&gt; can be used to prevent the explosion from destroying the items.&lt;/p&gt;

&lt;h3&gt;&lt;a name=&quot;Howtoreproduce&quot;&gt;&lt;/a&gt;How to reproduce&lt;/h3&gt;
&lt;p&gt;Use the steps provided in &lt;a href=&quot;https://bugs.mojang.com/browse/MC-116669&quot; title=&quot;Exploding TNT minecarts and ender crystals can cause StackOverflow&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-116669&quot;&gt;&lt;del&gt;MC-116669&lt;/del&gt;&lt;/a&gt; and then enter the world again after the crash.&lt;br/&gt;
&#8594; All exploded minecarts dropped an item&lt;/p&gt;

&lt;h3&gt;&lt;a name=&quot;Codeanalysis&quot;&gt;&lt;/a&gt;Code analysis&lt;/h3&gt;
&lt;p&gt;Based on 1.11.2 decompiled using MCP 9.35 rc1&lt;/p&gt;

&lt;p&gt;The method &lt;tt&gt;net.minecraft.entity.item.EntityMinecartTNT.killMinecart(DamageSource)&lt;/tt&gt; calls the parent method and drops the tnt item regardless of whether or not the minecart exploded.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Important:&lt;/b&gt; If this is changed so that the parent method is not called all the time this method should first mark the entity as dead, otherwise &lt;a href=&quot;https://bugs.mojang.com/browse/MC-116669&quot; title=&quot;Exploding TNT minecarts and ender crystals can cause StackOverflow&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-116669&quot;&gt;&lt;del&gt;MC-116669&lt;/del&gt;&lt;/a&gt; could cause two exploding tnt minecarts to explode each other infinitely and multiple times.&lt;/p&gt;</description>
                <environment></environment>
        <key id="20714">MC-7896</key>
            <summary>Exploding tnt minecarts drop minecart and tnt</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="nitneuq6">Quentin Rol</reporter>
                        <labels>
                            <label>TNT</label>
                            <label>drop</label>
                            <label>explode</label>
                            <label>fire</label>
                            <label>minecart</label>
                            <label>redstone</label>
                            <label>tnt-minecart</label>
                    </labels>
                <created>Sat, 19 Jan 2013 14:23:20 +0100</created>
                <updated>Mon, 26 Jun 2017 22:41:46 +0200</updated>
                            <resolved>Mon, 26 Jun 2017 22:41:46 +0200</resolved>
                                    <version>Snapshot 13w03a</version>
                    <version>Snapshot 13w04a</version>
                    <version>Snapshot 13w05b</version>
                    <version>Minecraft 1.5</version>
                    <version>Snapshot 13w11a</version>
                    <version>Minecraft 1.5.1</version>
                    <version>Minecraft 1.6.2</version>
                    <version>Minecraft 1.6.4</version>
                    <version>Minecraft 13w37b</version>
                    <version>Minecraft 13w42b</version>
                    <version>Minecraft 13w43a</version>
                    <version>Minecraft 1.7.1</version>
                    <version>Minecraft 1.7.2</version>
                    <version>Minecraft 1.7.4</version>
                    <version>Minecraft 14w05b</version>
                    <version>Minecraft 1.10.2</version>
                    <version>Minecraft 1.11.2</version>
                    <version>Minecraft 17w17b</version>
                                    <fixVersion>Minecraft 14w06b</fixVersion>
                    <fixVersion>Minecraft 1.12</fixVersion>
                                                        <votes>5</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="334915" author="JIRAUSER71590" created="Thu, 13 Oct 2016 19:31:59 +0200"  >&lt;p&gt;The item is instantly destroyed, this can only be checked by looking at the code.&lt;/p&gt;</comment>
                            <comment id="334914" author="miwob" created="Thu, 13 Oct 2016 19:31:03 +0200"  >&lt;p&gt;Cannot reproduce in 16w41a. Can someone else confirm?&lt;/p&gt;</comment>
                            <comment id="326569" author="JIRAUSER71590" created="Mon, 22 Aug 2016 17:49:51 +0200"  >&lt;p&gt;Reopened, on request, not that it&apos;s vanilla affecting, but could still be fixed.&lt;/p&gt;</comment>
                            <comment id="326067" author="pokechu22" created="Fri, 19 Aug 2016 05:17:43 +0200"  >&lt;p&gt;Relates to &lt;a href=&quot;https://bugs.mojang.com/browse/MC-59517&quot; title=&quot;TNT explode=true blockstate drops TNT item when fused by hit in survival mode&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-59517&quot;&gt;&lt;del&gt;MC-59517&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="322981" author="JIRAUSER71590" created="Tue, 2 Aug 2016 00:13:32 +0200"  >&lt;p&gt;It has no effect on the vanilla game, as such this bug is irrelevant.&lt;/p&gt;</comment>
                            <comment id="322968" author="marcono1234" created="Mon, 1 Aug 2016 23:21:10 +0200"  >&lt;p&gt;I thought we had this discussion already...&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I just don&apos;t see any reason why it should explode and drop an item even if the item cannot be picked up.&lt;/p&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;The command block will be very likely unable to find the item because the explosion destroys it instantaneously, but there is no reason why the item should spawn at all.&lt;/p&gt;&lt;/blockquote&gt;</comment>
                            <comment id="322951" author="farogaming" created="Mon, 1 Aug 2016 20:07:54 +0200"  >&lt;p&gt;I repeated the test multiple hundred times with the repeating block and got no drops at all. Unable to reproduce in 1.10.2 Vanilla.&lt;/p&gt;</comment>
                            <comment id="322925" author="JIRAUSER71590" created="Mon, 1 Aug 2016 15:30:36 +0200"  >&lt;p&gt;Please test if this issue can actually be seen in vanilla, if not the bug is irrelevant, and thus invalid.&lt;/p&gt;</comment>
                            <comment id="322920" author="marcono1234" created="Mon, 1 Aug 2016 15:07:52 +0200"  >&lt;p&gt;&lt;a href=&quot;https://bugs.mojang.com/secure/ViewProfile.jspa?name=FaRoGaming&quot; class=&quot;user-hover&quot; rel=&quot;FaRoGaming&quot;&gt;FaRoGaming&lt;/a&gt; please see the discussion &lt;a href=&quot;https://bugs.mojang.com/secure/ViewProfile.jspa?name=jirauser71590&quot; class=&quot;user-hover&quot; rel=&quot;jirauser71590&quot;&gt;jirauser71590&lt;/a&gt; and I had. The command block will be very likely unable to find the item because the explosion destroys it instantaneously, but there is no reason why the item should spawn at all.&lt;/p&gt;</comment>
                            <comment id="322838" author="farogaming" created="Sun, 31 Jul 2016 22:53:23 +0200"  >&lt;p&gt;Well, you could set a repeating command block to make every item invulnerable. (I&apos;ll try that tomorrow.) If that doesn&apos;t work either, this bug is irrelevant. Or can the item be seen in another way in vanilla?&lt;/p&gt;</comment>
                            <comment id="322836" author="marcono1234" created="Sun, 31 Jul 2016 22:43:14 +0200"  >&lt;p&gt;Like I said you cannot confirm it in vanilla Minecraft because the item is killed by the explosion. Please add that to the description.&lt;/p&gt;</comment>
                            <comment id="322812" author="farogaming" created="Sun, 31 Jul 2016 19:40:00 +0200"  >&lt;p&gt;Can&apos;t confirm for 1.10.2.&lt;/p&gt;</comment>
                            <comment id="321258" author="marcono1234" created="Mon, 18 Jul 2016 16:51:47 +0200"  >&lt;p&gt;It happens very likely in vanilla, but the item is killed by the explosion. I just don&apos;t see any reason why it should explode and drop an item even if  the item cannot be picked up.&lt;/p&gt;</comment>
                            <comment id="321247" author="JIRAUSER71590" created="Mon, 18 Jul 2016 10:55:57 +0200"  >&lt;p&gt;But if it doesn&apos;t happen in vanilla minecraft, why is it an issue?&lt;/p&gt;</comment>
                            <comment id="321246" author="marcono1234" created="Mon, 18 Jul 2016 10:39:41 +0200"  >&lt;p&gt;Thank you for adding the affected version, can a mod please reopen this report?&lt;/p&gt;</comment>
                            <comment id="321189" author="marcono1234" created="Sun, 17 Jul 2016 18:46:39 +0200"  >&lt;p&gt;Confirmed for&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;b&gt;1.10&lt;/b&gt; using MCP&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;In vanilla Minecraft it is impossible to notice because the item is immediately killed by the explosion&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;net.minecraft.entity.item.EntityMinecartTNT.killMinecart(DamageSource) (MCP 9.30)&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; void killMinecart(DamageSource source)
{
    &lt;span class=&quot;code-keyword&quot;&gt;super&lt;/span&gt;.killMinecart(source);
    &lt;span class=&quot;code-object&quot;&gt;double&lt;/span&gt; d0 = &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.motionX * &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.motionX + &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.motionZ * &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.motionZ;

    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!source.isExplosion() &amp;amp;&amp;amp; &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.worldObj.getGameRules().getBoolean(&lt;span class=&quot;code-quote&quot;&gt;&quot;doEntityDrops&quot;&lt;/span&gt;))
    {
        &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.entityDropItem(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; ItemStack(Blocks.TNT, 1), 0.0F);
    }

    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (source.isFireDamage() || source.isExplosion() || d0 &amp;gt;= 0.009999999776482582D)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.explodeCart(d0);
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="143093" author="talven81" created="Tue, 25 Feb 2014 20:04:32 +0100"  >&lt;p&gt;Duplication no longer exists in 1.8.&lt;/p&gt;</comment>
                            <comment id="104039" author="fluffyman24" created="Mon, 16 Sep 2013 22:18:54 +0200"  >&lt;p&gt;Still happens in the latest snapshots, how has this been in the game for so long..&lt;/p&gt;</comment>
                            <comment id="95582" author="kumasasa" created="Tue, 30 Jul 2013 10:37:00 +0200"  >&lt;p&gt;Confirmed for creative and survival.&lt;/p&gt;</comment>
                            <comment id="95547" author="tempus64" created="Tue, 30 Jul 2013 08:40:44 +0200"  >&lt;p&gt;Apparently this isn&apos;t limited to just creative mode and exists in 1.6.2... Just watched Etholabs Mindcrack episode 106 youtube video and he just discovered it for himself in survival. Roughly 5 mins into the video.&lt;/p&gt;</comment>
                            <comment id="52338" author="nitneuq6" created="Wed, 13 Mar 2013 19:18:52 +0100"  >&lt;p&gt;I just tried it and it still happens in version 1.5.&lt;/p&gt;</comment>
                            <comment id="42951" author="projayjay" created="Sat, 2 Feb 2013 22:53:15 +0100"  >&lt;p&gt;Confirmed&lt;/p&gt;</comment>
                            <comment id="38315" author="unon1100" created="Sat, 19 Jan 2013 17:51:33 +0100"  >&lt;p&gt;Confirmed&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="21396">MC-8460</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="22805">MC-9244</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="23536">MC-9792</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="24747">MC-10771</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="28237">MC-13267</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="30966">MC-15264</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="33080">MC-17131</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="47430">MC-27498</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="48219">MC-28190</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="60105">MC-37934</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10103">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="86745">MC-59517</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="19160" name="2013-01-19_13.54.57.png" size="239066" author="nitneuq6" created="Sat, 19 Jan 2013 14:23:20 +0100"/>
                            <attachment id="19161" name="2013-01-19_13.55.11.png" size="220430" author="nitneuq6" created="Sat, 19 Jan 2013 14:23:20 +0100"/>
                            <attachment id="38426" name="2013-07-30_10.38.06.png" size="472686" author="kumasasa" created="Tue, 30 Jul 2013 10:38:42 +0200"/>
                            <attachment id="38427" name="2013-07-30_10.38.17.png" size="518600" author="kumasasa" created="Tue, 30 Jul 2013 10:38:42 +0200"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 3 Feb 2013 00:01:00 +0100</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10303"><![CDATA[Confirmed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0jbp3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>