<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:55:22 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-1705] Creative Menu potion values are odd, not the same as when brewed</title>
                <link>https://bugs.mojang.com/browse/MC-1705</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;ISSUE:&lt;/p&gt;

&lt;p&gt;When you take a Potion from the Creative Menu brewing tab, its numeric value is larger than it should be. The bits that don&apos;t have to do with the potion effect requirements are all set to 1.&lt;/p&gt;

&lt;p&gt;This doesn&apos;t seem to affect using the Potions, but since some of the bits set to 1 control whether you can add more ingredients, you can do some odd brewings.&lt;/p&gt;

&lt;p&gt;For example, try taking a 3-minute Potion of Fire Resistance from the Creative Menu, putting it in a Brewing Stand, and adding a Ghast Tear. It will brew into a 22-second Potion of Regen II.&lt;/p&gt;

&lt;p&gt;LIKELY CAUSE &amp;amp; FIX:&lt;/p&gt;

&lt;p&gt;I took a look at (MCP)ItemPotion.getSubItems(), which generates the set of Potion items for the brewing tab. Currently it loops through the possible values 0 - 32767, adding values that create potions to a List indexed by the potion effect. This means that, if more than one potion value produces the same effect, the list will end up with the largest potion value for that particular effect - hence all the &quot;don&apos;t-care&quot; bits are set.&lt;/p&gt;

&lt;p&gt;A quick fix? Try looping from 32767 to 0 so you get the smallest potion value for each effect. Note that this may cause other problems if some bits aren&apos;t set, so it&apos;ll take some checking.&lt;/p&gt;

&lt;p&gt;EDIT: &lt;br/&gt;
I&apos;ve attached a piece of code for you to try in (MCP)ItemPotion.getSubItems(). It will account for missing Healing/Harming potions and use the smallest value for each potion effect.&lt;/p&gt;</description>
                <environment>Windows XP (x86) version 5.1, Java 1.6.0_31&lt;br/&gt;
</environment>
        <key id="13064">MC-1705</key>
            <summary>Creative Menu potion values are odd, not the same as when brewed</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="unclemion">UncleMion</reporter>
                        <labels>
                            <label>potion</label>
                    </labels>
                <created>Thu, 1 Nov 2012 20:53:45 +0100</created>
                <updated>Fri, 7 Jul 2017 06:45:51 +0200</updated>
                            <resolved>Sun, 10 Feb 2013 01:59:50 +0100</resolved>
                                    <version>Minecraft 1.4.2</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="19223" author="unclemion" created="Wed, 7 Nov 2012 19:55:58 +0100"  >&lt;p&gt;I&apos;ve also noticed that the drinkable Potion of Healing &amp;amp; Potion of Harming are not in the creative menu. They seem to map to the same potion effects as their splash versions, probably since they&apos;re instant.&lt;/p&gt;

&lt;p&gt;Updating the description with a bit of MCP code that does the job of covering both the splash &amp;amp; non-splash instant potions and using the smallest potion value for each effect.&lt;/p&gt;

&lt;p&gt;(Maybe you could make &lt;a href=&quot;https://bugs.mojang.com/browse/MC-1517&quot; title=&quot;Speed and Fire Resist potions Data values changed, causing weird effects on potions  &quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-1517&quot;&gt;&lt;del&gt;MC-1517&lt;/del&gt;&lt;/a&gt; the duplicate instead of this issue, considering that this has more detail and a fix?)&lt;/p&gt;</comment>
                            <comment id="18806" author="unclemion" created="Tue, 6 Nov 2012 17:38:13 +0100"  >&lt;p&gt;Hmm, although &lt;a href=&quot;https://bugs.mojang.com/browse/MC-1517&quot; title=&quot;Speed and Fire Resist potions Data values changed, causing weird effects on potions  &quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-1517&quot;&gt;&lt;del&gt;MC-1517&lt;/del&gt;&lt;/a&gt; is describing the same sort of problem, my issue description has a lot more info and an explanation. Is there a good way to say &quot;look at &lt;a href=&quot;https://bugs.mojang.com/browse/MC-1705&quot; title=&quot;Creative Menu potion values are odd, not the same as when brewed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-1705&quot;&gt;&lt;del&gt;MC-1705&lt;/del&gt;&lt;/a&gt; for gory details&quot;?&lt;/p&gt;</comment>
                            <comment id="18733" author="do" created="Tue, 6 Nov 2012 08:41:28 +0100"  >&lt;p&gt;Thanks for catching it.&lt;/p&gt;</comment>
                            <comment id="16604" author="unclemion" created="Thu, 1 Nov 2012 20:56:02 +0100"  >&lt;p&gt;This issue probably duplicates &lt;a href=&quot;https://bugs.mojang.com/browse/MC-1517&quot; title=&quot;Speed and Fire Resist potions Data values changed, causing weird effects on potions  &quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-1517&quot;&gt;&lt;del&gt;MC-1517&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="19223">MC-6551</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="12528" name="potionlistgen.txt" size="582" author="unclemion" created="Wed, 7 Nov 2012 22:23:15 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Unconfirmed]]></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_10501" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Game Mode</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10305"><![CDATA[Creative]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0mpxr:</customfieldvalue>

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