Drink up and let’s add some custom potions to minecraft fortune fabric courses with advanced topics such as entities custom structures and three armor models linked in the description below all right my friends are back intelligent once more and in this tutorial we’re going to be adding custom potions to minecraft so This will of course continue with the freeze effect so we’re going to add potions for our freeze effect that we added last tutorial and what we’re going to do is we’re going to make a new package called the potion package and then inside of there we’re going to make A new java class called the mod potions and this class will look very very similar to a lot of things we’ve seen previously and have a public static final deferred register of type ocean this time old potions this will be equal to deferred register dot create forward registries dot potions And then tutorial tutorialmod.mod id and of course once again say with me where there is a deferred register there also is a public static void register method with an i event bus called eventbus which calls potions dot register and passing in the event bus and so that We don’t forget it we’ll also add the mod potions dot register and passing in the event bus right here in our tutorial mod constructor right and now let’s add the actual portion here so this is going to be a public static final registry object of type potion and this is going To be the freeze underscore potion which is equal to potions.register with the name freeze underscore potion and then once again a plier of a new potion and then here we’re going to make a new mob effect instance and then in here we’re going to pass in the mod effects dot Freeze dot get and then we’re going to say 200 for the duration and 0 for the amplifier and there we have it that is the actual freeze potion added to the game and that’s literally also all that we need to add it’s crazy enough but it is Actually the case now the actual potion is in the game we’re going to see in the next tutorial how to make custom brewing recipes for this as well but there’s one more thing that we need and that is going to be the translations because those are very particular in how they Look like and that’s going to be i’m going to just add them right here i’m going to copy them over and you can see right there it is very interesting because they’re all under the minecraft namespace you can see item minecraft potion effect freeze potion which is Gonna basically say this is the freeze potion then we have the splash and the lingering potion as well we’re basically gonna just translate it like this that’s actually very important that you add them properly here as well but apart from that that is pretty much all that We need for the potion to be added so i guess let’s see if it works all right we found someone’s back in minecraft and let’s just search for freeze and here they are freeze potion a splash potion of freeze and a lingering potion of freeze as well and now let’s actually See how it works on you know different mobs here so we can basically take a look at this now and then you can see there they are now actually frozen in place and you can see that actually also frozen in the in the actual air which is Really freaking funny to be honest but that is just one very interesting thing right there and let’s also get a zombie out here just for the sake of argument let’s take a look at this right so let’s get some zombies in here and let’s switch to actually survival mode and Then at some point they hopefully will get after me there you go and then i can freeze them and there they are so that’s really freaking cool really funny and yeah that’s actually how easy it is to add some custom oceans to minecraft but that would already be for this tutorial Right here i hope you found this useful and you learned something new if you did or very much be sure to 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 Modding 1.18.2 with Forge | CUSTOM POTIONS’, was uploaded by Modding by Kaupenjoe on 2022-04-07 13:59:54. It has garnered 4408 views and 71 likes. The duration of the video is 00:03:57 or 237 seconds.
In this Minecraft Modding Tutorial, we add CUSTOM POTIONS to Minecraft 1.18.2 using Forge.
== 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: https://github.com/Tutorials-By-Kaupenjoe/Forge-Tutorial-1.18.1/tree/38-potions Gist: https://url.kaupenjoe.net/yt259/gist
== TIMESTAMPS == 0:00 Intro 0:30 Creating the ModPotion Class 1:22 Registering the Custom Potion 2:14 Adding the Translation 2:47 Demonstration 3:38 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