Everyone by now has heard of chat GPT it’s the new AI chatbot and it’s smart but the real question is can it replace me and code a Minecraft Date Pack it’s been tested before on mods but date packs are even more Niche and weird let’s find out So let’s just ask it to write me a data pack that adds a simple gun into Minecraft see what it comes up with so the date packs aren’t sure yeah yeah I know how to do this find the gun item the loot table that’s not a great start so it Drops a gun if it’s a piglet that doesn’t make any sense and second of all you can’t create custom items with data packs that’s a modded thing you can’t create namespace Golden Gun item yeah that’s correct item gun create the gun function okay this is kind of what what We want so tag RS add can shoot gun so I’m gonna snowball so it’s in the motion in the Z Direction shoot gun to MC function all right so I’m gonna just quickly put this into a data pack yeah see see what we get okay so I’ve set up The data pack as it said you can see there’s a couple of errors but if I didn’t have all these extensions running I wouldn’t know that so let’s just do exactly what it said installed it so let’s slash reload killing piglin mobs so spawn a piglet and and I obviously Know this isn’t gonna work but just show you there you go well first of all the loot table didn’t load because Minecraft column item is not a valid loot table it’s kind of done this wrong it’s kind of said oh drop this item if the entity is a piglet but what You actually need to do is you actually need to name the loot table higlin.json and the type would be mob and then this bit is kind of correct but obviously as I said there’s no way to add this guns kalungan you need to kind of re-texture a vanilla item and use that So I’m just gonna tell it when I kill a piglet it’s not dropping the gun yeah that’s correct Minecraft loot tables entities piglens are Jason okay this is getting better the loot tables entities pigland.json and paste this in this is correct if we just do that but It’s still kind of assuming that guns cull and gun is a valid item so still not gonna work but it has actually successfully overridden the pigland loot table so it’s still not gonna drop that okay so let’s just imagine that I kind of figured out that you’re not allowed to Add custom items like namespace colon gun I’ll kind of point it in the right direction yeah that’s correct work around this using custom crafting recipe to obtain the gun item in-game crafting shaped no it’s still giving me so the pigment loot table is not the problem it’s that it’s still assuming that you Can use namespace Curl and gun it’s still like it still doesn’t know that you can’t use well anyway custom namespace and a custom item so I’m just going to tell it about carrot on stick and see what it says okay so I actually got two responses for this because it Kind of errored but it was almost finished like it was already saying zip up the data pack it’s figuring out everyone has Carrot on Stick now this is definitely not ideal because normally in a Date Pack you want to have like you still want to keep carrots on sticks and Then you’d want to have a custom tag saying that it’s a gun so shoot gun empty function wall runs everyone with a character stick in their hand and run this and then it runs the reload function in shoot yeah this is definitely not good because it’s gonna execute as everyone and then as Everyone’s gonna execute as everyone again so like for every person it will execute as every other person so it will be exponentially but again find a single player so if everyone with the can shoot gun tag and then run the projectile oh my God it’s just like executing as a Over and over again so basically it’s gonna be like for each person for each person for each person so if there’s five people on the server it will run this 125 times which is not great so yeah let’s find something a snowball that actually looks fairly good like It’s not very good implementation of it’s extremely unoptimized let’s do it this way instead actually so it’s mostly fine also one thing I just realized is that we didn’t actually add pack.nc meta so this isn’t gonna even load in the first place I’m just gonna kind of talk To chat GPT for a little bit and see if I can explain to it what’s wrong and see if it can Rectify my problems Thank you Foreign things which are completely correct yeah datapex folder you slash say to Output but it didn’t once mention pack.nc meta well I’m just gonna say let’s just say I managed to figure out that pack.mc meta was required because if you watch any tutorial on how to set Up a simple data pack it will tell you about packed or MC meta so I’m going to copy this error message here and give it to church GPT see if it can figure out what this does yay it did it actually not really basically it’s kind of solved In two different ways what you can do is just say just take this bit kind of and do data modify entity all snowballs with the limit of one all what you can do is you can have execute as all snowballs and just modify themselves because this Command can only modify one entity at a time if you have them all separately modifying themselves then that’s fine but it’s kind of done both so it will just it’ll just do one so that is all of the errors actually so we kind of got there and now if we get ourselves a Carrot on a stick and we right click it doesn’t do anything because to do this it needs to run the gun function which is not being run so let’s use a say command and say gun function just to show that this is never being run when I Right click so I’ll tell it double check the gun function is correctly reference well it isn’t because nothing’s actually calling it check execution trigger so this is kind of what you want you want it to trigger when you interact with certain item but one thing we can do Test with a direct command slash function namespace colon gun so slash function guns kill and gun it does indeed summon a snowball it’s it’s doing it it’s that is so weird but it does appear to be shooting a snowball over there so that’s good let’s see if we can Just get it to run the function when I right click all right so it’s decided to go with an advancement rather than a scoreboard which is fine it’s done as far as I can tell pretty correctly the rewards is the function namespace cooling gun that’s completely correct That will run the function when you get the advancement but the problem is it’s set the trigger to be Minecraft impossible which means well it’s impossible to get the advancement what you need is you need one of the special right-click ones it’s I think it’s like used item or interacted with item or Something we kind of managed to make a gun chatgpts is not very good at date packs probably because while the internet is full of references to more common programming languages the data Pack’s quite a lot smaller so it probably doesn’t know that much about it but it kind of managed to create a Simple gun anyway the answer is no chat GPT cannot become data back Creator because it just doesn’t know enough about date packs Video Information
This video, titled ‘Can ChatGPT Make a Minecraft Datapack?’, was uploaded by Gears on 2023-05-28 10:15:04. It has garnered 1449 views and 60 likes. The duration of the video is 00:08:43 or 523 seconds.
Today, I asked ChatGPT, the new and extremely smart AI chatbot, to make me a Minecraft datapack. It… Didn’t turn out so well.
———————–Links———————– ChatGPT: https://chat.openai.com Join my Discord server: https://discord.gg/fmPKDqf9ze My website: https://gearsdatapacks.netlify.app/
———————–Music in this video———————– Ceremonial Library – Asher Fulero (YouTube audio library) Desert Brawl – Vans in Japan (YouTube audio library) In the Hall of the Mountain King – Grieg (YouTube audio library) Honeyhive Galaxy – Nintendo (Super Mario Galaxy)
Oh, and if anyone is interested about the shakespear play at the beginning of the video, here it is:
Title: “The Craft of Blocks: A Minecraftian Tale”
Act 1: The World of Cubes
Scene 1: The Village
(Enter Steve, a humble villager, and Alex, a skilled builder)
Steve: Hail, fair Alex! How goes the day in this pixelated realm?
Alex: Good morrow, Steve! ‘Tis a fine day indeed. I have built a grand fortress near the village square.
Steve: A marvel, my friend! But tell me, have you heard the whispers of a legendary diamond deep within the land?
Alex: Aye, ’tis true. Many seek its lustrous glow. ‘Tis said to hold immense power, but only the worthy shall obtain it.
(They exit, leaving the village behind)
Scene 2: The Dark Forest
(Enter Creeper, a mysterious creature, and Enderman, a tall and enigmatic figure)
Creeper: Hssss! The diamond’s secret must be kept. Its power must not fall into the wrong hands.
Enderman: Fear not, Creeper. I shall guard the diamond’s whereabouts with my teleporting prowess. None shall find it without solving the greatest of puzzles.
(They disappear into the shadows)
Act 2: The Quest for Power
Scene 1: The Mineshaft
(Enter Steve and Alex, equipped with pickaxes and torches)
Steve: We delve deep into the earth, where diamonds lie concealed. But beware, for this task is not for the faint-hearted.
Alex: Fear not, Steve. Our determination shall guide us through the treacherous caves. Together, we shall conquer any obstacle.
(They journey into the mineshaft, facing dangers and uncovering hidden chambers)
Scene 2: The Enchanting Table
(Enter Steve and Alex, carrying enchanting books)
Steve: This table of enchantment shall grant us great power. With its magic, our weapons shall become mighty and our armor impenetrable.
Alex: Let us decipher the ancient runes and infuse our tools with the essence of enchantment. Our strength shall grow tenfold.
(They enchant their gear, readying themselves for the challenges ahead)
Act 3: The Battle for the Diamond
Scene 1: The Nether
(Enter Steve and Alex, traversing the fiery landscape)
Steve: The Nether, a realm of danger and fright. But we must press on, for the diamond awaits.
Alex: Keep your wits about you, Steve. The Nether’s inhabitants are fierce and unforgiving. Our courage shall guide us through this inferno.
(They navigate through treacherous terrain and confront fearsome creatures)
Scene 2: The End
(Enter Steve, Alex, Creeper, and Enderman)
Steve: The time has come to face our destiny. The diamond awaits us within this mystical dimension known as the End.
Alex: Let us solve the riddles, defeat the guardians, and claim the diamond as our own. Its power shall shape the course of this world.
(They engage in an epic battle, overcoming obstacles and ultimately retrieving the diamond)
Act 4: The Legacy of Blocks
Scene 1: The Village Square
(Enter Steve, Alex, Creeper, and Enderman, returning to the village)
Steve: We have triumphed, my friends! The diamond is now ours, but let us use its power wisely.
Alex: Indeed, Steve. With great power comes great responsibility. Let us bring prosperity and unity to this world, built block by block.
(They celebrate their victory, and the villagers join in)
Scene 2: The Closing
(Enter all characters, standing together)
Narrator: And so, the tale of Minecraft unfolds, where courage, friendship, and the craft of blocks triumph over darkness. In this pixelated realm, the possibilities are infinite, and the spirit of adventure lives on.
(They bow as the curtains fall)
The End.