Let’s add a custom structure to Villages all right we found ourselves back in Minecraft again and in this tutorial we’re going to be adding this structure right here to Villages so you can clearly see this is a custom Village structure with indeed and this is very interesting the jumpy blocks in here so If any villager will come by they will also get the custom villager profession and the one thing I basically want to mention with these well different village structures I highly recommend to get a village structure out to actually load in a village structure like this so You can see this would be the planes one I will show you the external libraries and where you can basically get this directory from and then you can spawn any type of Village structure I would then highly recommend it just changing it around and then keeping the jigsaw Block here because if the jigsaw block is not set up correctly then this will not work this is extremely important that this is done correctly and everything here Works otherwise the village structure will not spawn but once we have this you can basically go in here I already have have my name I Can then just go to the save mode hit save and there we go now we have the saved under planes underscore jump underscore master and then we can proceed we can then have this npt file and then we can create a class that is needed to spawn this in villages but First let’s go to the external libraries and go to netminecraft client extra 192 or whatever your version might be data Minecraft structures and then Village Lanes houses and then there you go of course you can also do desert houses and all of the rest of those houses right You can also have sort of houses streets Terminators you can see zombie all that craziness but here in this case are plenty of houses you can basically spawn in with the structure block and then change and then save under your own name we want to go to the Run folder saves And then go to structures as the actual world that I used generated and there it is planes jump master and let’s just copy this over to the structures over here and for this we need no Json files this is all done via a class so in our World package we’re gonna make a new new package called Village and so that there we’re going to make one class and we’re going to call this The Village Edition now I will actually be copying over most of the code over here but that’s going to be okay so first of all we’re going To need the add mod over here above this class and then we’re just going to copy over the rest of the whole thing here and then I will explain now all of the code here is of course going to be available to you in the description below Get our password an individual just as well now you will find that first of all we’re getting a few errors here no worries at all we’re going to be able to fix those in no time but for the time being first of all you can see basically we’re not doing anything crazy here We’re basically just calling this add new Village building method over here is a subscribe event called exactly when the server is about to start and in that moment we’re basically adding our custom jump Master over here to the our jump Master NBT file with a weight of 250. This is actually quite a lot so keep that in mind to the plains village houses that we’ve literally just seen here down here so we’re literally adding it right here so if as if our NBT file was inside of this folder now the next question is how do we get rid of those Errors well we need access Transformers to do that what we’re going to do is we’re going to open our build.gradle file and we’re going to look at this line right here where that says access Transformers it is probably commented out it’s extremely important that you uncomment this and then what you should Do is you should just copy the name over here so just selected access transformer.cfg and then in the meta in folder right click new file and then just paste in the name so that you are sure that it’s written correctly and for this you want these two lines this Basically is going to make the templates inside of the structure template pool class public and then the raw templates it’s going to make public and non-final that is literally all we’re doing so because you can see of course it’s red here and red here if we look at the pool Variable is the structure template pool and if you can see both the raw templates is private final and the templates is private final as well and we need access to those and to basically transform the access we’re using access Transformers so once you have uncommented the line here and added the Access Transformer correctly into your meta in folder you can simply hit load Gradle changes and it’s going to well build the changes over here it’s going to take anywhere from once again a few seconds all the way to a minute two minutes maybe a little bit more depending on all sorts of different Factors so just be patient wait until you get a build successful and then we can continue alright so there we go build successful in 3 minutes and 16 seconds actually took quite a long while but that is totally fine and if we now go to the Village Edition class you can See there we go both the template as well as raw templates are now accessible and if we go into the structure template pool class you can actually see it also changed right here very cool indeed and that is actually all that we need right here now one more note right Here as you can see it is also possible to call at building to pool over here for the snowy Savannah tiger and desert Villages over here so keep that in mind as well you can simply basically uncomment this and then that is going to Be fine as well you just need to as you can see with your mod ID in here and then your the structure NBT file resource location so pretty much exactly this one right here and that should be pretty much all you need now we’re choosing 250 as a weight just to ensure That hopefully this is definitely going to spawn at least once in every village definitely experiment with the weights I do highly suggest that but regardless of that let’s make a new world and see if it works all right it finds us in Minecraft and let’s just locate over Here the plane’s Village so let’s take a look and let’s see there we go let’s go over there and let’s see if we can find our custom structure and there it already is so everything working exactly how we would expect it to do we have a Second one we actually do have a second one so you can see with 250 as its weight it definitely does come up quite frequently so that is why I’m basically saying that you should definitely play around with the actual weights but I mean regardless of that we have a custom Structure and it definitely is a custom structure that is spawning in villages that’s really awesome indeed and that’s actually how easy it can be all of the code is of course available in the description below don’t forget to subscribe so yeah Video Information
This video, titled ‘Minecraft 1.19.2 Forge Modding Tutorial | STRUCTURES IN VILLAGE | #38’, was uploaded by Modding by Kaupenjoe on 2022-10-18 13:59:52. It has garnered 1935 views and 65 likes. The duration of the video is 00:06:14 or 374 seconds.
In this Minecraft Modding Tutorial, we are making a custom structure and then spawning it INSIDE A VILLAGE in Forge in Minecraft 1.19.2
== SUPPORT ME ON PATREON == ▶️ https://www.patreon.com/Kaupenjoe
== ASSETS & DOWNLOAD LINKS == GitHub Repo: https://github.com/Tutorials-By-Kaupenjoe/Forge-Tutorial-1.19/tree/38-villageStructure Gist: https://url.kaupenjoe.net/yt450/gist
== 25% OFF FOR GAMING SERVERS == ▶️ https://www.bisecthosting.com/Kaupenjoe
== 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 *
== SUPPORT ME ON PATREON == ▶️ https://www.patreon.com/Kaupenjoe
== 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
== 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