Bring up and let’s add some custom potions to minecraft forging fabric courses with advanced topics such as entities custom structures and three armor models linked in the description below oh right we find ourselves back in intelligent once more in this tutorial we’re going to be adding custom potions To minecraft in this tutorial we’re going to be adding the custom potions and then next tutorial we’re also going to be adding the custom potion recipes so for the time being in our tutorial mod package we’re just gonna make a new package called potion and this is gonna Include a new java class called the mod potions and this is gonna look well i mean kind of like this we’re gonna have a public static potion called the freeze potion freeze underscore potion here and of course including the potion here by clicking alt and enter on it and what We’re going to do is we’re going to have a few different things and one of them is going to be a register potion method right here so this is going to be the register ocean method with a string name parameter should be fairly self-explanatory it this looks very Similar to pretty much the thing that we’ve done last time with the actual effect here is that we’re using the potion right here with a new identifier tutorialmod.mod id and then the name here and then of course a new potion and this is going to be a new status effect Instance of mod effects dot freeze and a duration of 200 and an amplifier of zero so this of course you know uses our mod effect that we’ve done in the last tutorial if you haven’t seen this already and of course check this out as well and we can then go here and Register potions and there you go and this is just going to be the freeze potion equals register potion with the name freeze underscore potion this pretty much concludes exactly what we need to do here in this case we just need to call this right here of course Calling it below the mod effects right so mod potions dot register potions that’s kind of important because the effect has to be registered before the potion is registered and then we also need to add three more things here inside of the enr square usa json file And that’s going to be all three of the potions because when we create a new potion all three the normal the splash and the lingering potion are all registered automatically those are then the actual translations that we need and you can see they’re actually all under the minecraft namespace i i’m not 100 Sure this happens because when you create a new potion it just gets added to the minecraft namespace by default basically so just keep that in mind as well but that is literally all that we need to do i it’s very straightforward but that is pretty much it so for Completion’s sake let’s see if it works all right france’s back in minecraft so let’s just search for freeze and there it is the freeze potion a splash potion and the lingering potion as well let’s just get maybe some sheep or something like that too you know just place them Down here and then let’s just freeze them for a little bit and you can see even if i hit them they’re actually frozen and that they won’t even drop here you can see there you go so they don’t even drop it’s very strange it’s very interesting so let’s just there you Go they’re all frozen right there so that’s very cool and of course i can also drink it myself and then now i’m frozen as well and i can you know i try you know sometimes you can move a little bit i think that if you’re flying already then i believe that you Have a little bit of momentum left but you can see it’s still very very slow so there you go so that still works you know let’s add some zombies right here switch to survival mode and then you know they’re gonna try and follow me and then bam there you go now you’re frozen So that works really nicely so as you can see all of the different potions here added successfully and then like i said in the next tutorial we’re gonna then see how you can also add some custom brewing recipes so that we can brew our custom potions but that Concludes this tutorial right here i hope you found this useful and you learned something new if you did i would very much appreciate your like and don’t forget to subscribe for more tutorials just like this one i also want to thank all of my lovely patreon supporters for Supporting me and this channel it is very much appreciated and i’ll see you in the next tutorial so yeah Video Information
This video, titled ‘Minecraft 1.18.2 Fabric Modding | CUSTOM POTIONS’, was uploaded by Modding by Kaupenjoe on 2022-04-08 14:00:03. It has garnered 2472 views and 62 likes. The duration of the video is 00:04:01 or 241 seconds.
In this Minecraft Modding Tutorial, we add custom potions to Minecraft 1.18.2 with Fabric.
== MINECRAFT COURSES == ▶️ Learn Forge Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseForge118 * ▶️ Learn Fabric Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseFabric118 *
== ASSETS & DOWNLOAD LINKS == GitHub Repo: https://github.com/Tutorials-By-Kaupenjoe/Fabric-Tutorial-1.18.1/tree/40-potions Gist: https://url.kaupenjoe.net/yt260/gist
== TIMESTAMPS == 0:00 Intro 0:20 Creating the ModPotions Class 1:55 Add the Translation 2:27 Demonstration 3:34 Outro
== TAKE A LOOK AT MY COURSES WITH COUPON CODES == ▶️ NEW Forge Modding with Minecraft 1.20.X: https://url.kaupenjoe.net/CourseForge120X ▶️ Learn Forge Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseForge118 * ▶️ Learn Fabric Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseFabric118 * ▶️ Complete and Roblox Lua Game Development: https://url.kaupenjoe.net/RobloxCoupon *
== SOCIALS == Discord: https://discord.com/invite/yqxykanpWf Personal Twitter: https://twitter.com/Kaupenjoe
Instagram: https://url.kaupenjoe.net/tutorials/instagram Facebook: https://url.kaupenjoe.net/tutorials/facebook Twitter: https://url.kaupenjoe.net/tutorials/twitter TikTok: https://url.kaupenjoe.net/tutorials/tiktok Written Tutorials: https://url.kaupenjoe.net/tutorials/blog
== LICENSE == Source Code is distributed under the MIT License. Additional Licenses for other assets can be seen below or in the accompanying CREDITS.txt on download.
== ADDITIONAL CREDITS == Outro Musik by Kevin MacLeod: “That’s a Wrap” Kevin MacLeod (incompetech.com) Licensed under Creative Commons: By Attribution 3.0 http://creativecommons.org/licenses/by/3.0
== AMAZON AFFILIATE LINKS == Amazon Referral [US]: https://url.kaupenjoe.net/amazonref/us * Amazon Referral [UK]: https://url.kaupenjoe.net/amazonref/uk * Amazon Referral [DE]: https://url.kaupenjoe.net/amazonref/de *
== AFFILIATE DISCLAIMER == * Some of the links and other products that appear in the video description are from companies which I will earn an affiliate commission or referral bonus from or are my own products. This means that if you click on one of the product links, I’ll receive a small commission or additional kickback without any additional cost for you. This helps support the channel and allows me to continue to make videos. Thank you for the support!
== HASHTAGS == #Minecraft #MinecraftModding #MinecraftTutorial #Kaupenjoe