<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://forge.gemwire.uk/index.php?action=history&amp;feed=atom&amp;title=Potions%2F1.18</id>
	<title>Potions/1.18 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://forge.gemwire.uk/index.php?action=history&amp;feed=atom&amp;title=Potions%2F1.18"/>
	<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=Potions/1.18&amp;action=history"/>
	<updated>2026-05-01T20:00:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://forge.gemwire.uk/index.php?title=Potions/1.18&amp;diff=3212&amp;oldid=prev</id>
		<title>ShrimpBot: Copy Potions to MC1.18 archive</title>
		<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=Potions/1.18&amp;diff=3212&amp;oldid=prev"/>
		<updated>2022-06-10T07:45:31Z</updated>

		<summary type="html">&lt;p&gt;Copy &lt;a href=&quot;/wiki/Potions&quot; title=&quot;Potions&quot;&gt;Potions&lt;/a&gt; to MC1.18 archive&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A &amp;lt;code&amp;gt;Potion&amp;lt;/code&amp;gt; is simply a list of &amp;lt;code&amp;gt;MobEffectInstance&amp;lt;/code&amp;gt;s to be applied when used. Each &amp;lt;code&amp;gt;Potion&amp;lt;/code&amp;gt; gets applied to every &amp;lt;code&amp;gt;Items#POTION&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Items#SPLASH_POTION&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Items#LINGERING_POTION&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;Items#TIPPED_ARROW&amp;lt;/code&amp;gt;. Like mob effects, potions need to be [[Registration/1.18|registered]].&lt;br /&gt;
&lt;br /&gt;
== Creating a &amp;lt;code&amp;gt;Potion&amp;lt;/code&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;code&amp;gt;Potion&amp;lt;/code&amp;gt; requires a passed in list of &amp;lt;code&amp;gt;MobEffectInstance&amp;lt;/code&amp;gt;s to apply to the player when the potion is &amp;quot;consumed&amp;quot;. There is also a nullable parameter called &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; that can be set if you would like to use the same name for multiple potions (e.g. &amp;lt;code&amp;gt;SWIFTNESS&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;LONG_SWIFTNESS&amp;lt;/code&amp;gt; can be both &amp;lt;code&amp;gt;swiftness&amp;lt;/code&amp;gt; potions).&lt;br /&gt;
&lt;br /&gt;
== Adding a Brewing Recipe ==&lt;br /&gt;
&lt;br /&gt;
Brewing Recipes can be added using &amp;lt;code&amp;gt;BrewingRecipeRegistry::addRecipe&amp;lt;/code&amp;gt;. The most common constructor takes in an &amp;lt;code&amp;gt;Ingredient&amp;lt;/code&amp;gt; input, an &amp;lt;code&amp;gt;Ingredient&amp;lt;/code&amp;gt; reactant, and an &amp;lt;code&amp;gt;ItemStack&amp;lt;/code&amp;gt; output. This can be registered during &amp;lt;code&amp;gt;FMLCommonSetupEvent&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{Tip/Important|If you want to use NBT information in your inputs (e.g. create a potion from another potion), you need to pass in an &amp;lt;code&amp;gt;NBTIngredient&amp;lt;/code&amp;gt; instead.}}&lt;br /&gt;
&lt;br /&gt;
{{Colored box|title=Alert|content=&amp;lt;code&amp;gt;BrewingRecipeRegistry&amp;lt;/code&amp;gt; is '''not''' thread-safe. It should be called within &amp;lt;code&amp;gt;enqueueWork&amp;lt;/code&amp;gt; in the specified parallel dispatch event.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Game Effects/1.18|Category:Game Effects]]&lt;/div&gt;</summary>
		<author><name>ShrimpBot</name></author>
	</entry>
</feed>