Can surgery PT make a Minecraft mod let’s find out in this video so last time I asked Chad gbt for ideas for micro mods but I actually implemented them myself but that’s not what the future is right the future is the machines doing all of our work and we’re Just sitting on a beach sipping Bahama Mamas and just chilling all day which actually sounds horrible but regardless today we’re gonna find out if Chad gbt can actually make a Minecraft mod all by itself so this actually asked what the last version is that if Chachi BT is Aware of and right now it’s 117 but no one uses 117 we’re actually going to go back one version so we’re going to program in 16.5 for fabric I’ve already set up a fabric workspace right here I have changed nothing but basically the mod ID and all of that and it doesn’t Even run there is incompatible mod set and we basically get high install fabric API even though I’m in the IDE I should have the fabric API installed but I know what the issue is but the question is the strategy PT also know what the issue Is so we can just copy this over so let’s just copy this part and then I’m going to ask it if it knows what the deals I am making a Minecraft mod in fabric 16.5 but I am getting this error how can I fix this let’s see what Chatgpt says okay this is not quite right okay so this solution would work if we’re not actually trying to program our own mod if we’re making our own mod then this is not quite right this is not what we are supposed to do let’s see if I can nudge it into the right direction but we’re actually programming our own mod maybe I have to change something in the fabric mod Json file this is go this is like very much nudging something but let’s see if it can come up with what we Have to do maybe it can come up with something okay we’re just gonna speed this up okay it’s going to type out the entire fabric mode Json file which is I guess pretty good because that is actually going to show us the discrepancy that we have to change once it’s done we’re Going to see what the issue is and here comes the critical part there we go oh damn okay uh what the frick this is this is ridiculous all right so we have something so this is a an example fabric mode Json file over here and this this is the critical part that Basically has to be fixed so you can see in the depends section of the file you can specify the mods that your mod depends on this is absolutely correct in this case the example mod depends on the fabric loader and the fabric API you’ll want to make sure that the version of The fabric device you specify in your fabric mode Json matches the actual like the correct one right so let’s take a look at if this is actually the case for us so we can go to our Gradle properties and we can see we are currently using Fabric 042 and in our fabric mod Json file we can see that we don’t even have a fabric over here we only have a fabric API with a star so if I copy this over right not knowing anything and I now we have fabric store and the fabric API Would be a 42 because that’s the actual fabric API that we have installed it might already work like this I’m unsure about this part but let’s see so it does not seem to be quite working so install any version between 042 and 1 minus so This is very weird for some reason I am I’m getting this error now how would I fix that okay so it’s just going to give us the same Spiel that it did that it gave us up here so that’s not gonna be quite right so the reason we still know Are not getting this is because there’s a difference between the mod ID for older versions and newer versions of the fabric API for whatever reason so we actually would have to delete this and then it would work right so if we just have fabric store all of a sudden Everything works totally fine and we’re gonna see Minecraft startup in just a moment Minecraft is starting up so it doesn’t quite get there well fair enough but to be fair this is an issue that has only been created in the last like couple of months I think so to be fair To charge EBT it actually can know about this let’s see what we can do for actually adding some stuff so let’s say I want to add a new item to my Minecraft mod with fabric one 16 5. how do I register it the name is Ruby staff and Let’s just see what what it’s going to come up with here’s how to add a new item you will need to register it in your code here’s the basic steps okay create a new class for your item okay that seems reasonable then you need a registry object this is not correct Yeah it’s gonna it’s doing some weird stuff but we’re gonna go through this okay so first of all we need to create a ruby staff item class okay we’re gonna do this while it goes on there in the background make a new Java class this is A ruby staff item I like the naming scheme that’s good we’re gonna just paste this in and then import this one and import the item group that all works fine so that’s pretty awesome then it’s going to say in your mod main class this is the mod initializer that’s okay we Want to make a registry object well let’s just see example mode and then we’re just going to add this right here and then we can do item and then registry and then we can import the registry object and we can see it does not exist well okay let’s just See what it says so ah look at this there it is you can find more information on item properties in the micro Forge documentation so it is confusing Fabric and Forge right here registry object does not seem to exist let’s see if it can correct itself okay It seems mightily confused right now oh there we go I apologize ah there you go you are correct let’s go I’m correct registry object is part of the forge API yes okay so it corrected itself that’s okay so if you keep going on it might be Actually viable to do it here’s how you can register okay so we’re gonna get the registering of an item in in fabric let’s hope that it is correct now so it remembers that I wanted to make a ruby staff item which is pretty awesome now the creating of the new class is not Necessary for every item that you’re making now in our case I actually do want it to have a custom class so the fact that it’s making this preemptively is actually pretty good in your mods main class create a new item instance this sounds a little more correct there We go and now we have a pub public static item Ruby staff instead of a registry object of an item which is absolutely correct in this case because we still need to register it it’s not going to be registered if we just keep it like this maybe number three is Registering it I’ll register okay this seems good register your new item okay maybe that is going to work then we’re just going to copy over the creation of the staff here already so we can do that so let’s just go in here and we’re going To do this now we have the Ruby staff no errors are present because all is well actually all right well it’s explaining this let’s just do this I’m just going to set the name to my mod colon Ruby staff this is absolutely correct you can change this to whatever you like it’s Actually giving some pretty good advice here already as well so let’s just do this and let’s just put this in here let’s just actually make this so that it looks pretty much exactly like what it tells me to do so we’re going to import this net Minecraft util that’s fine so Namespace is my mod this is currently not correct and then the Ruby staff is the name you can change this to whatever you want but you must make it unique within your mod here’s a detailed breakdown or what’s happening in each step damn it’s going it’s going pretty Crazy like it is I’m actually pretty impressed that it goes this far and this deep into it like that’s awesome so it tells us in four build and run your mod the new item should be available in game we can just do this because well the Idea of this is for me to be an absolute beginner I don’t know anything so I just copy over stuff and I don’t even realize that you know the name here the my mod ID is not actually correct so while we have this registered we have actually Registered this under the false mod ID this is still going to add the item but it’s going to do all sorts of weird stuff so that’s not quite correct and also if we go into the combat here and take a look item dot my Mod Dot Ruby Staff and uh well I mean it is that is not quite right the item is inside the game however it is displaying as a purple and black Cube and has a weird name item dot my Mod Dot Ruby underscore staff how do I make it use my texture And change the name so this is going to be interesting because now we’re actually starting to go into the into the assets so let’s just see if if I can’t come up with this okay something went wrong please try reloading this all right we’re going to be so for whatever Reason it deleted my last response over here like we’re just going to jump over this I basically did all the things that we should do so let’s just ask it about the name and the texture you need to add more lines of code to your mod create a Texture for your item I have this that’s fine okay this is pretty good resources assets my mod textures item this is correct actually and we need a Json file this is correct see now we’re going now we’re getting somewhere now we’re thinking with portals this is awesome oh My God it’s actually going to give us a different uh display over here what the frick I don’t think that we need we don’t need this what the frick okay let’s just see okay it might be stuck on translating the actual item name but that’s okay uh well let’s just like take A look so create a texture for your item the texture should be a PNG with the dimensions of a power two this is absolutely correct 16 by 16 32 by 32 and so on and so forth you should do this in a a folder create the folder if they Don’t already exist absolutely great advice so this under resources assets my mod textures item so I think that this is actually going to work because we’re registering under my mod this is kind of weird but let’s just continue I guess under textures and then under item resources assets my mod textures item This is exactly correct so let’s put this texture in here the Ruby staff PNG so I have already prepared this in this case it actually has the correct name I believe we wouldn’t necessarily know that so honestly I’m just going to rename this to Ruby staff over here and Then we’re going to figure this out in a moment and then we also want to add this under assets my mod models item absolutely correct so this is under my mod and then models and then under item we want to add the adjacent file and it looks like this the Json file should Have the same name as your items identifier absolutely correct let’s just copy this over and let’s see if this does something so this is going to be the Ruby underscore staff.json that’s okay let’s paste this in and there you go the Json defines texture shape and display properties in this example item Generated means that it uses the Ruby texture which corresponds to the texture file we created in step one we’re also defining the properties okay that’s very interesting what about the Lang file you got cut off okay sorry about that here goes the example okay let’s see this is A hundred percent correct this is exactly right this is the unlocalized name and then it’s going to be set to Ruby staff absolutely correct and it’s said to us that it’s under resources assets my mod Lang so let’s do this this is resources assets my mod and then a New folder called Lang and then this is the with a Json extension but what is the file called so this is the only issue right now add a lang file what is the name of the Lang file though now let’s see if it can get that right it Has to be in underscore us that okay that Lang okay that’s not quite right but Spanish it would be es okay dot Lang that’s a little bit weird because up here it told us that it has to be a Json file right and down here it tells us That it has to be a lang file that’s not quite right but in underscore us.json I’m going to give it the point okay I’m gonna give it the point you know Ian underscore us.json and then the contents of this is exactly this which is 100 correct so now we have the name over Here we have this and we have this and that this seems pretty much on point I’m not sure what it does with the display over here but we can start it so I don’t know if someone who has never modded before knows what this means the fact That this like the Ruby underscore staff has to be the name of the texture I can double check I could just ask what should be the name of my texture file now your text file should be the same as the name you used for yes your items Registry name this is correct in this case Ruby underscore staff perfect with the extension.png this is exactly right so we can then change this to Ruby underscore staff and now this should actually work this should be functional now once again you know the namespace here is different but I feel like this Is something that with a little bit of back and forth you can probably figure this out as well we’re just going to start this now we will have a name and we will have a texture I’m very unsure what the frick is going to happen with the left hand right hand like third Person display that’s going to be a little bit weird let’s join into the world and see what our Ruby staff looks like okay so it is definitely translated as you can see so um yeah I don’t know what it does why why it did that that’s um that’s very weird Um but it has the correct name and it has the correct texture so that is pretty cool but um yeah the translation here is a little bit weird so let’s let’s ask it about this in third person the item is held in a very weird way Let’s see what it comes up with here the way that an item is held is determined by its model it’s possible that the model you’re using is causing it to be held in a weird way okay I mean that’s fair because that the display is the Issue here it’s using item slash oh it’s now using item slash handheld very interesting it could actually be the case that if you use handheld and then use the display over here that it then looks good it is going to overwrite something what the frick okay what is it Gonna over right now oh no oh no what are you doing now no this is not this is not good oh no Ruby staff glint custom model data we don’t have a predicate are you crazy this is the way that we can add special effects or we can and even Change the texture on something with custom NBT data but in this case we don’t have any of that okay so this is not quite what I had in mind here so using the handheld parent would be and could be totally fine but the overrides here is is too much that’s not quite Right say that I have a little bit of sense here and I’m like you know what this display it does say like third person first person maybe I don’t need this display and then all of a sudden my staff gets displayed properly because uh we want to go to the juicy things right We want to add some stuff okay so now the thing is okay I want to add some right click functionality to the Ruby step I want to right click the Ruby staff and I want to have it shoot out of freaking Arrow let’s say or any or any Type of particle to be honest with you like any just a projectile I now won the Ruby staff to shoot out a projectile when you right click with it and have a pull down of five seconds okay this is gonna be very interesting if it can come Up with this okay first of all it can’t come up with anything okay something went wrong something went wrong again all right let’s that’s fine Minecraft modding it’s uh you can’t even come up with anything because Minecraft modding is so crazy not even Chad gbt can deal With it all right now it looks great I want to have this firearm projectile let’s go okay let’s see if it could come up with something there great to add functionality you want you need to uh make a new class that extends the projectile item entity the class will Represent the projectile that okay I mean look I mean that’s okay we’re just gonna start with this we’re gonna make a new class that extends the projectile item entity sure I don’t think that this is quite how it works but okay Ruby Staff Pro Jack tile which extends the Projectile item entity uh does this even exist it does not even exist okay that’s that’s not good okay oh what is this a cool down map I don’t think that what the frick okay um well that’s it like let’s just let it go through here that’s uh very Interesting indeed okay we’re like the number one thing is already starting this seems actually correct we’re setting the position and the velocity to the look Vector of the user which seems right we’re assuming they created a my projectile entity that is it just projectile entity or something like that It is just projectile entity I think that that’s what it wants to do let’s just see projectile entity does not exist would this however projectile entity exists can I use that instead let’s see if that’s uh if it come up with yes you can use projectile entity Instead of this it’s apply ah there you go so it once again made the wrong idea so it was like oh this is a thing that works in Forge but not in fabric so you actually have to use this okay that’s fair that’s fair enough I mean sometimes It gets confused between Forge and fabric but okay we’re going to use the projectile entity let’s see in the Constructor for your item okay so just let’s slurry it so it doesn’t even tell us that we should Implement any methods or anything you’ll need to implement the necessary methods and functionality for Your custom projector to work okay this is actually what it says okay so we want to implement the methods this is the init data and the discrete spawn thing and then and then there is also no Constructor over here is this correct in this example probably using entity type Constructor to call the superclass no we’re not what are you talking about we’re still using the super which calls the projectile entity over here which doesn’t do anything so um projectiles nope no I I don’t think it can deal with this instead of spawning a custom projectile I just want to spawn a Fireball on right click how would I change the Ruby staff item class to to do that let’s go with that and maybe that’s going to be a little bit better instead of creating yeah we’re going to use the involved inbuilt Fireball entity yes please okay so we’re still getting This cool down ticks over here it actually uses it differently now we don’t have a cool down map anymore which I honestly don’t know if this even exists I want to see this cool down map it does not exist so so it wouldn’t have worked anyway private static final int Cooldown ticks use the use method over here with some pretty crazy things okay well let’s just see let’s override this and let’s see if this doesn’t anything if it’s going to throw like how many errors it’s going to throw so we need to of course import everything that’s fine Right we can we can deal with that and let’s import the hand over here we’re going to import the type action result server player entity we want the fireball entity low errors present that’s pretty good that’s a pretty good start okay this modifies the Ruby staff to create a fireball and it’s sponsored At the world when the player right clicks with the Ruby stuff the fireball is positioned at the player’s location and its velocity is set to the direction the player is facing this is absolutely correct this is incredible and you’ll you still need to define the Ruby save Item texture as well as appropriate so this is actually awesome that also mentions this however we fixed this already I gotta be honest with you I’m pretty sure I’m looking at this just glancing over it this should work the damage here is a little bit of an issue Because we actually have to find any durability for the item but I think this might actually work now this is crazy but let’s just try this out all right we’re over here in Minecraft and um I mean let’s just right click oh my God it actually doesn’t I can’t this is that’s crazy Wow I did not ex and and the cooldown is there it works and I can right click again and it it fires out a freaking um that is that is actually whack wait what excuse me hello are you doing all right hello hello there um that’s concerning what the frick does It have a a range or something what is this this is not a thing this can’t happen oh my God this is huge oh what the frick um okay bye what was that wait does this just travel for just it does just travel for a certain distance Oh that’s weird oh okay I have to tell this so if I just fire it it stops after like what would you say like 30 blocks something like that yes okay that’s actually Fair okay let’s just um okay this works great however the fireball stops in mid-air after traveling for About 30 blocks 30 blocks how can I make it travel travel until it hits something yeah yeah let’s let’s try this I don’t know what it comes up with Now by default they have a limited lifespan and will disappear after traveling a certain distance but that’s not quite right you Can modify the to spawn so we can try and change this here okay let’s just see what it’s going to do here is it going to make an anonymous class with a fireball because like I don’t think that would be the best idea but I mean let’s Just see it is making an anonymous class I can’t believe it that’s crazy talk what the frick I still don’t think that this is gonna do it but that’s crazy oh my God and this modified staff we create a which is roughly 50 seconds yes it is We also override the on collision method to remove it okay listen I don’t think that this is necessarily going to fix the thing that we wanted to fix but that’s pretty crazy and it works there’s no errors here for the anonymous class I don’t think it’s gonna do what we wanted To do but let’s try it out alright so um I guess let’s see so we can still fire it and that seems to be working now the question is if we fire it straight into this mountain does it continue to go or does it once again Stop it stops it slows down this is the issue now what’s interesting about this is after 50 seconds right because we’ve made a maximum age this should disappear after well 50 seconds right so um I guess you know make it faster And you don’t realize how long 50 seconds is if you have to wait oh there it is let’s go okay so it disappears after 50 seconds which is pretty awesome but it still slows down right like it’s still as you can clearly see it slows down and then it’s just it’s just there And then it doesn’t do anything so we still need to fix this come on man I think that we should just say this the fireball still slows down and stops mid-air yeah I think we’re just gonna say this because anything else might confuse it so let’s just say this to Make the Fireball continue traveling until it hits something you can set the explosive power to a negative value this will prevent the Fireball from exploding on impact and allow you to travel further that’s not what I had in mind also what is this shoot Fireball okay so Now we have a now we use a different method for this but that’s not quite right I’m gonna go out on a limb and say that the explosive power of this has nothing to do with how long it travels but that’s just me I really don’t think That it has anything to do with that I am correct explosion power doesn’t directly affect how far the thing travels it controls the size of the explosion to make it you can increase the velocity and reduce its drag there we go it probably is going to be the Drag I didn’t even know that it has dragged that’s crazy normalize multiply add velocity multiply set no drag there we go that’s it I don’t know if this exists Fireball entity dot set no gravity drag there is no drag set no drag does not exist set no drag does not Exist in the fireball let’s just go with this set not Dragon I apologize for the confusion Sentinel drag is available in is not available instead you want the set drag and you want to set it to zero I don’t think that that exists either nope said drag does not exist still Okay set position set velocity normalize multiply said drag this still does not exist said drag also it does not exist in the fireball entity class once again okay velocity changed it’s an updated version of the shoot Fireball method I I love how it just like is like Oh we’re just going to create a shoot Fireball method a person who has no idea what is going on would have absolutely no idea what what is even like happening here right because now we have a private method over here set gravity no set no Gravity to true and then we also have a set velocity updater there’s no way that it exists this does not exist is there like an updater but they need it okay if I were to do this okay let’s just like all right we’re back and let’s just see So I fire it and yep it still slows down at some point so for whatever reason it uh it can’t deal with this so that’s that’s a bummer I mean it’s pretty cool that you can then like shot put it like somewhere else but yeah charging BT I Think that’s a that’s an L for you I mean look at this this is ridiculous it still doesn’t work most of the methods you’re giving me aren’t even there and the fireball still stops mid-air after just a few blocks I just want the fireball to travel endlessly until it Hits something please let’s go like crazy yeah okay here’s another way okay let’s see instead of spawning a small Fireball on a large Fireball as a directional field that you can use to set its motion yeah so I think that for some things you can definitely do it but I think that there are certain things that just don’t work I was even giving me the large Fireball entity class to create mod entities large file available what is this where does this come from what are you talking about overall Chad gbt versus fabric 16.5 it helped out With some of the basic stuff but that took like over half an hour to get the to get the translation to get the item to get all of that properly registered and it actually isn’t properly registered because it didn’t tell us anything about the mod ID over here tell Us a little bit about it but not really so while this works once we ship it it’s actually going to be all sorts of horrible this is also not necessarily the way that I would do it but that’s okay I guess that would work the actual Fireball spawning worked very well like The setting of the position and the velocity was absolutely amazing that one was pretty cool but the fact that the fireball only travels a certain distance yeah that that’s kind of weird the fact that it didn’t that it wasn’t able to change that that’s a little bit of a Bummer crazy though is that it made an enormous class here with a fireball agency that one I was pretty impressed with that it came up with that that’s actually pretty cool right and then here at the end right even though this is like absolute nonsense right I’m gonna Just ask it Chad gbt while this was a valiant effort you failed this test this was a YouTube video for me kamjo is there anything else you want to say to my viewers let’s see if it says anything else I apologize for any confusion or frustration my responses may have caused As an AI language model my responses are based on my knowledge and train and I strive to provide accurate information and assistance to the best of my ability however I am not perfect and may not always have the most up-to-date information or be able to address all Issues thank you for using me and I hope to be of help to you again in the future beautiful absolutely beautiful well thank you Chef CPT thank you so much for watching and I’ll see you next time so yeah Video Information
This video, titled ‘Can ChatGPT create a Minecraft Mod by itself?’, was uploaded by Kaupenjoe on 2023-03-11 08:00:20. It has garnered 21584 views and 592 likes. The duration of the video is 00:26:22 or 1582 seconds.
In this exciting video, ChatGPT takes on the ultimate challenge: creating a Minecraft mod all by itself! Can it create the ultimate Minecraft mod or do we have some time until the AI Overlords do take over? All about ChatGPT making a Minecraft Mod.
== CATCH ME LIVE ON TWITCH == ▶️ https://www.twitch.tv/kaupenjoe
== USE CODE “Kaupenjoe” FOR 25% OFF FOR GAMING SERVERS == ▶️ https://www.bisecthosting.com/Kaupenjoe
== SUPPORT ME ON PATREON == ▶️ https://url.kaupenjoe.net/patreon
== SOCIALS == ▶️ Twitter: https://twitter.com/Kaupenjoe ▶️ Instagram: https://www.instagram.com/kaupenjoe ▶️ TikTok: https://www.tiktok.com/@kaupenjoe
== HASHTAGS == #Kaupenjoe #chatgpt #minecraftmods