<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:56:08 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-1935] Fence gate next to a wall has an incorrect hitbox</title>
                <link>https://bugs.mojang.com/browse/MC-1935</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;When a fence gate is between 2 cobblestone walls, the fence gate has incorrect hitboxes.&lt;/p&gt;</description>
                <environment></environment>
        <key id="13314">MC-1935</key>
            <summary>Fence gate next to a wall has an incorrect hitbox</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="grum">[Mojang] Grum (Erik Broes)</assignee>
                                    <reporter username="ileon">Leon</reporter>
                        <labels>
                            <label>fence_gate</label>
                            <label>hitbox</label>
                    </labels>
                <created>Fri, 2 Nov 2012 17:27:22 +0100</created>
                <updated>Sat, 3 Jun 2017 12:09:59 +0200</updated>
                            <resolved>Mon, 15 Feb 2016 16:20:44 +0100</resolved>
                                    <version>Minecraft 1.4.3</version>
                    <version>Minecraft 1.4.5</version>
                    <version>Minecraft 1.4.6</version>
                    <version>Minecraft 1.4.7</version>
                    <version>Snapshot 13w04a</version>
                    <version>Snapshot 13w05b</version>
                    <version>Snapshot 13w06a</version>
                    <version>Snapshot 13w07a</version>
                    <version>Snapshot 13w09a</version>
                    <version>Minecraft 1.5</version>
                    <version>Snapshot 13w11a</version>
                    <version>Minecraft 1.5.1</version>
                    <version>Minecraft 1.5.2</version>
                    <version>Snapshot 13w18b</version>
                    <version>Snapshot 13w18c</version>
                    <version>Snapshot 13w19a</version>
                    <version>Snapshot 13w21b</version>
                    <version>Snapshot 13w22a</version>
                    <version>Snapshot 13w23b</version>
                    <version>Snapshot 13w24a</version>
                    <version>Snapshot 13w24b</version>
                    <version>Snapshot 13w25a</version>
                    <version>Snapshot 13w26a</version>
                    <version>Minecraft 1.6.1</version>
                    <version>Minecraft 1.6.2</version>
                    <version>Minecraft 1.6.4</version>
                    <version>Minecraft 13w36a</version>
                    <version>Minecraft 13w36b</version>
                    <version>Minecraft 13w39b</version>
                    <version>Minecraft 13w41a</version>
                    <version>Minecraft 13w41b</version>
                    <version>Minecraft 1.7.1</version>
                    <version>Minecraft 1.7.2</version>
                    <version>Minecraft 13w48a</version>
                    <version>Minecraft 13w48b</version>
                    <version>Minecraft 13w49a</version>
                    <version>Minecraft 1.7.3</version>
                    <version>Minecraft 1.7.4</version>
                    <version>Minecraft 14w02b</version>
                    <version>Minecraft 14w02c</version>
                    <version>Minecraft 14w03a</version>
                    <version>Minecraft 14w05b</version>
                    <version>Minecraft 14w06b</version>
                    <version>Minecraft 14w07a</version>
                    <version>Minecraft 14w08a</version>
                    <version>Minecraft 1.7.5</version>
                    <version>Minecraft 14w10b</version>
                    <version>Minecraft 14w10c</version>
                    <version>Minecraft 14w11a</version>
                    <version>Minecraft 14w11b</version>
                    <version>Minecraft 1.7.9</version>
                    <version>Minecraft 14w17a</version>
                    <version>Minecraft 14w18a</version>
                    <version>Minecraft 14w20a</version>
                    <version>Minecraft 14w20b</version>
                    <version>Minecraft 14w21a</version>
                    <version>Minecraft 14w21b</version>
                    <version>Minecraft 14w25a</version>
                    <version>Minecraft 1.7.10-pre4</version>
                    <version>Minecraft 14w25b</version>
                    <version>Minecraft 14w26b</version>
                    <version>Minecraft 14w26c</version>
                    <version>Minecraft 1.7.10</version>
                    <version>Minecraft 14w28a</version>
                    <version>Minecraft 14w28b</version>
                    <version>Minecraft 14w29a</version>
                    <version>Minecraft 14w30b</version>
                    <version>Minecraft 14w30c</version>
                    <version>Minecraft 14w33c</version>
                    <version>Minecraft 14w34a</version>
                    <version>Minecraft 14w34b</version>
                    <version>Minecraft 14w34c</version>
                    <version>Minecraft 14w34d</version>
                    <version>Minecraft 1.8-pre1</version>
                    <version>Minecraft 1.8.1-pre2</version>
                    <version>Minecraft 15w44b</version>
                    <version>Minecraft 15w45a</version>
                    <version>Minecraft 15w46a</version>
                    <version>Minecraft 15w47a</version>
                                    <fixVersion>Minecraft 16w07a</fixVersion>
                                                        <votes>10</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="266259" author="rydian" created="Thu, 19 Nov 2015 03:53:58 +0100"  >&lt;p&gt;Still there in 15w47a.&lt;/p&gt;</comment>
                            <comment id="260050" author="litargirio" created="Fri, 30 Oct 2015 23:07:08 +0100"  >&lt;p&gt;Confirmed for 15w44b.&lt;/p&gt;</comment>
                            <comment id="204151" author="rydian" created="Sat, 18 Oct 2014 18:44:59 +0200"  >&lt;p&gt;Confirmed in 1.8.1-pre2.&lt;br/&gt;
&lt;a href=&quot;https://gfycat.com/PiercingCreativeHummingbird&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gfycat.com/PiercingCreativeHummingbird&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="164962" author="marcono1234" created="Thu, 19 Jun 2014 15:54:43 +0200"  >&lt;p&gt;Confirmed for 14w25b&lt;/p&gt;</comment>
                            <comment id="160124" author="garyclosse" created="Sun, 25 May 2014 17:01:42 +0200"  >&lt;p&gt;Confirmed for 14w21b.&lt;/p&gt;</comment>
                            <comment id="142621" author="garyclosse" created="Sun, 23 Feb 2014 11:50:33 +0100"  >&lt;p&gt;Confirmed for 08a&lt;/p&gt;</comment>
                            <comment id="109320" author="branza" created="Sun, 6 Oct 2013 12:23:14 +0200"  >&lt;p&gt;Affects 1.6.4.&lt;/p&gt;</comment>
                            <comment id="88100" author="bugi74" created="Wed, 10 Jul 2013 11:43:46 +0200"  >&lt;p&gt;A 20 seconds test in creative mode confirms this exists in 1.6.2 (as expected).&lt;/p&gt;</comment>
                            <comment id="76987" author="ileon" created="Tue, 25 Jun 2013 18:03:22 +0200"  >&lt;p&gt;:/&lt;/p&gt;</comment>
                            <comment id="48408" author="bugi74" created="Thu, 28 Feb 2013 19:52:40 +0100"  >&lt;p&gt;Affects 13w09b.&lt;/p&gt;</comment>
                            <comment id="44779" author="bugi74" created="Sat, 9 Feb 2013 16:40:21 +0100"  >&lt;p&gt;And another bites the dust.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Current code&lt;/b&gt;&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;BlockFenceGate&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 setBlockBoundsBasedOnState(IBlockAccess blockAccess, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; x, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; y, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; z) {
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; var5 = getDirection(blockAccess.getBlockMetadata(x, y, z));

        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (var5 != 2 &amp;amp;&amp;amp; var5 != 0) {
            &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.setBlockBounds(0.375F, 0.0F, 0.0F, 0.625F, 1.0F, 1.0F);
        } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
            &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.setBlockBounds(0.0F, 0.0F, 0.375F, 1.0F, 1.0F, 0.625F);
        }
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;b&gt;Fixed&lt;/b&gt;&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;BlockFenceGate&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 setBlockBoundsBasedOnState(IBlockAccess blockAccess, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; x, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; y, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; z) {
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; var5 = getDirection(blockAccess.getBlockMetadata(x, y, z));

        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (var5 != 2 &amp;amp;&amp;amp; var5 != 0) {
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (blockAccess.getBlockId(x, y, z - 1) == Block.cobblestoneWall.blockID
                    &amp;amp;&amp;amp; blockAccess.getBlockId(x, y, z + 1) == Block.cobblestoneWall.blockID)
                &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.setBlockBounds(0.375F, 0.0F, 0.0F, 0.625F, 0.8125F, 1.0F); &lt;span class=&quot;code-comment&quot;&gt;// Lower the top
&lt;/span&gt;            &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; 
                &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.setBlockBounds(0.375F, 0.0F, 0.0F, 0.625F, 1.0F, 1.0F);
        } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (blockAccess.getBlockId(x - 1, y, z) == Block.cobblestoneWall.blockID
                    &amp;amp;&amp;amp; blockAccess.getBlockId(x + 1, y, z) == Block.cobblestoneWall.blockID)
                &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.setBlockBounds(0.0F, 0.0F, 0.375F, 1.0F, 0.8125F, 0.625F); &lt;span class=&quot;code-comment&quot;&gt;// Lower the top
&lt;/span&gt;            &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
                &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.setBlockBounds(0.0F, 0.0F, 0.375F, 1.0F, 1.0F, 0.625F);
        }
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Tested on 1.4.7 very briefly. May have some unexpected side results, but at least adding and removing worked as expected, and the selection box got adjusted as wished. I attached a screenshot showing the result.&lt;/p&gt;

&lt;p&gt;However, while testing I noticed that at least in my opinion, the logical operation between the two cobblestone walls should be &quot;or&quot; instead of &quot;and&quot;. It looks quite stupid as it is now, as the fencegate will be higher than the lower side block. (As also seen in the screenshot). If changed, there are two places to do the same change. This method here, and also in the RenderBlocks-class.&lt;/p&gt;</comment>
                            <comment id="43289" author="bugi74" created="Sun, 3 Feb 2013 22:55:08 +0100"  >&lt;p&gt;The rendering code adjusts the rendered height location of the gate depending on what it has on its sides. I see no reason why the code which decides the selection box could not do the same just as well, it is just a bit more coding (or, as customary in Minecraft code, copying). No changes to metadata is needed for that.&lt;/p&gt;</comment>
                            <comment id="43255" author="unon1100" created="Sun, 3 Feb 2013 22:21:17 +0100"  >&lt;p&gt;Intended.&lt;br/&gt;
They want to control the fence gate&apos;s height without changing the selection box (As that would require a new metadata value rather than an NBT)&lt;/p&gt;

&lt;p&gt;The fence model gets lowered to match the cobblestone wall&apos;s height, but they don&apos;t want to change the selection box, resulting in the small gap between the top of the gate and the top of the collision box.&lt;/p&gt;</comment>
                            <comment id="19867" author="immibis" created="Fri, 9 Nov 2012 07:21:36 +0100"  >&lt;p&gt;@Meta&lt;br/&gt;
The selection box and collision box are different things - look at fences or stone walls.&lt;/p&gt;</comment>
                            <comment id="17234" author="meta" created="Fri, 2 Nov 2012 17:56:54 +0100"  >&lt;p&gt;I think that&apos;s intented as you could jump over those gates if they would lower the collision box.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10103">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="12628">MC-1305</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="19107">MC-6435</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="22614">MC-9134</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13865">MC-2346</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14432">MC-2666</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14921">MC-3034</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="16419">MC-4090</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17022">MC-4504</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17411">MC-4859</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="21483" name="2013-02-09_14.19.23.png" size="68110" author="ileon" created="Sat, 9 Feb 2013 14:20:31 +0100"/>
                            <attachment id="21484" name="2013-02-09_14.19.38.png" size="79114" author="ileon" created="Sat, 9 Feb 2013 14:20:55 +0100"/>
                            <attachment id="21482" name="2013-02-09_14.19.43.png" size="79074" author="ileon" created="Sat, 9 Feb 2013 14:20:31 +0100"/>
                            <attachment id="80354" name="2014-08-25_10.49.27.png" size="127848" author="ileon" created="Mon, 25 Aug 2014 10:49:50 +0200"/>
                            <attachment id="21487" name="fixed-fencegate-box.png" size="362936" author="bugi74" created="Sat, 9 Feb 2013 16:40:46 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 5 Feb 2013 03: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>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i08p47:</customfieldvalue>

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