I've been using NBT tags a lot recently when helping friends build their adventure maps but I haven't seen many tutorials on here to help people use NBT tags. So, I thought I should create one and help people make their maps even better!
These are the things I will be covering:
Armoured Mobs (done)
Custom Mob Drops (done)
Custom Item Names
Custom Item Lores
Custom Enchantments
Custom Potions
Custom Falling Blocks
Custom Mob Spawners
Custom Beacons
Many more!
I am starting with the Mob tutorials. But if you don't already know how to use MCEdit or NBTEdit, I suggest you take a look at the basic tutorials.
If you want me to do a specific tutorial next, please just ask!
Getting Started
To get started, you will need the following programs:
A new Minecraft world (if you are new to using NBT Tags)
For these tutorials, I will be using NBTEdit. You will also need to be able to use and navigate MCEdit quite well. If you are completely new to MCEdit and NBTEdit, follow the tutorials bellow.
The MCEdit Basics
Warning: Before you do anything with MCEdit, always make sure Minecraft is closed! Not doing so will result in MCEdit sometimes not being able to save your edits and can glitch out sometimes.
When you open MCEdit, you will need to select a world you wish to edit. Once loaded, you will appear to be in the place where you were last when you logged into that Minecraft world. Another awesome feature of MCEdit is that it loads your current texture pack.
Just like Minecraft, the controls to move are just the normal "WASD". However, you are always flying at a certain speed and you cannot turn my moving the mouse. instead, hold the right mouse button and move the mouse around to move the camera. The "Ctrl" button is also MCEdit's version of "Esc". Hold it down and select an option or just use the keyboard shortcuts to do it.
It will take a bit to get used to at first, but at least it's not the painful speed that you get in Minecraft.
At the bottom of the screen, you will also see you have lots of tools in your hotbar. The default tool is the select tool, which you can use to select a group of blocks and entities. In these tutorials, you will only need to know how to use this tool as well as the import tool. Both are fairly straight forward to use, but both are very powerful tools. If you make a mistake, just undo it with "Ctrl + Z"
So that's the basics of MCEdit. This isn't a complete MCEdit tutorial, so don't expect me to explain how to use everything throughout the tutorials.
Exporting Schematic Files
In order to edit any entities or blocks with NBT tags, we have to export them as a schematic file first.
First select the area of blocks/entities (entities are the red boxes) with the Select tool and simply click the "Export" button, located on the panel to the left. Choose a location to save it in, give it a name, and hit "Save". Easy!
Make sure you remember where it is though. I recommend you put it in a folder called "MCEdit-Schematics" or something (sometimes comes with MCEdit).
Importing Schematic Files
First, select the "Import" tool in the hotbar and find your schematic file that you wish to import. Open it and then place model somewhere in your current world. It may be a bit hard at first, so remember to rotate the camera. Onced placed, hit the "Import" button on the panel to the left. Then simply save your world (Ctrl + S) and it should be successfully imported.
NBTEdit Basics
NBEdit is a powerful program, but may be a bit hard to navigate at first.
The image above is a zombie saved as a schematic file and then opened with NBTEdit. As you can see, there are lots of tags defining the zombie.
To edit any tag, just double click it and a box asking for the new value will pop up. There's no "OK" button, so just press ENTER to save the tag.
Another thing you will have to be aware of, is keeping the tags the right type. For example, if you changed the "health" tag (currently an interger tag) to another tag, like a float or double, then the tag won't work and may cause errors when you import the schematic into Minecraft.
So try playing around with a few schematics and importing them into Minecraft. If you wish to try with the example I used, it can be found in the MCEdit Schematics folder (under "Mobs in jar").
Creating Tags
Whenever creating tags, you must first select the compound the tag will be in. If you refer back to the NBTEdit basics tutorial, you will see the compound saying "12 entries". We will be making tags in this compound for the tutorial.
Once you select the correct compound, these buttons should become usable.
For this particular tutorial, you will need to load up either a zombie, skeleton, or a zombie pigman schematic file. Once you have done that, select the main compound and create a new "byte" tag by pressing the black dot. Doing so should create a new tag under the compound. Name it "IsBaby", with the capitals. Without them and it won't work. Then go ahead and change the value to "1". Basicly, you just told NBTEdit that the tag "IsBaby" is now equal to true. So if you import that schematic into Minecraft, you will find yourself with a baby zombie, skeleton or a baby zombie pigman!
And this is the end of the basic tutorials!
Custom Mobs
This section is still under construction, but never the less, it's still here.
Most of these tutorials will just be for zombies, skeletons, and zombie pigmen as they are the only mob compatible with this kind of stuff. It any other mobs can be used in the tutorials, it will be stated in the tittle.
Armoured Mobs
First thing we will need to do is create a list of compounds. So go over the the "list" button at the top and select a compound.
Call the list "Equipment", with the capital "E". Select the new list and create 5 new compounds in it.
These 5 Compounds will represent both the held item and the armour the mob is wearing.
The compounds also have an order:
Held Item
Boots
Leggings
Chestplate
Headpiece
So we will start with the held item. Select the top compound and create a new short called "id". Whatever you set the value to, that item will appear in the mobs hand. I am going to set it to "256" for this tutorial, but you can set it to anything you like. But we aren't done yet, as we still have to tell it how many there are in it's hand and how damaged it is. So go ahead and create the short "damage" and the byte "count". Count should be set to "1" and damage can be anything, but only 0 if it's not a tool or weapon.
Now repeat all of that for the rest of of the armour.
Count (byte): 1
Damage (short): <anynumber>
id (short): <itemID>
Don't put the "byte" and "short"s in. They are just there to tell you what type of tag they are.
Remember though, only armour will show up on the mob, apart from the headpiece. The headpiece can be any block you like. I am going to use iron armour, and a glass block for the head in this tutorial.
Your schematic should look something like this now. The leggings and chestplate are pretty much the same, so they don't need to be shown.
So import your new mob into Minecraft and there you go! Your own customized mob!
Custom Mob Drops
Custom Mob Drops are kind of an extension to the Armoured Mob tutorial. To make custom drops, all you have to do is put items, that won't render, in the armour slots.
For this tutorial, I will be making a zombie called the "Pumpkin Thief" who supposedly stole all your diamonds. He has a pumpkin on his head, a diamond chestplate on and he has all your diamonds in his hands.
First, we apply the armour to him. Put a pumpkin on his head, and give him a diamond chestplate. If you don't know how to do this, follow the tutorial above. Next, we are to do the same thing to his leggings and boots slots, but we use diamonds instead. Make sure you use a "Damage" of 0. The "Count", however, can be more than one if you like.
So far, the equipment tags should look something like this.
Now that we have done that armour, we need to tell the mob to drop the diamonds when he dies. To do this, create a new list called "DropChances", with "float" selected. Now go ahead and create 5 new floats.
These floats are also in the same order that the equipment list:
Hold Item
Boots
Leggings
Chestplate
Headpiece
So each float represents the drop chance. For my "Pumpkin Thief" zombie, I have them as follows:
0.35
0.65
0.95
0.15
0.99
The diamonds in the zombies hand will have a 7/20 chance to drop, the diamonds in the boots slot have a 13/20 chance, the diamonds in the leggings have a 19/20 chance, the diamond chestplate has a 3/20 chance and the pumpkin basically always drops.
Your schematic file should look somewhat like this. So save it, import it into Minecraft, and there you go!
Extra Mob Details (Special mob features, like what makes creepers "charged")
Creepers Extras
Creepers have 2 main extra tags. They do have another one but I won't be using that for this example.
The 2 we will be focussing one are called "powered" and "ExplosionRadius". So go ahead and create 2 new bytes and call them that.
The "powered" tag tells Minecraft if the Creeper is charged. The "ExplosionRadius" tells it how big the explosion radius is, as the obvious would say. Both together are so much fun to play with!
As you can see above, I have made this a charged creeper that has a massive explosion radius. Be careful what you set the radius to though as it can cause extreme lag when they explode.
This is my beautiful creeper which I have imported into Minecraft.
That is the beautiful hole that it made!
So have fun with this one. More tutorials will be available later!
Enderman, Wolves, Sheep and a lot more coming soon!
More Coming Soon!
These tutorials are still under construction, but they won't continue if they aren't being used.
Great tutorial so far, the baby zombies run fast and are hard to hit, try beat one with diamond armour!
Is it possable to use nbt to make a spider jockey?
Great tutorial so far, the baby zombies run fast and are hard to hit, try beat one with diamond armour! Is it possable to use nbt to make a spider jockey?
There is no tags on a spider defining it a spider jockey, so the only way way to get one would be to find one in Minecraft and export it as a schematic file. Then you would be able to edit the armour, health, etc. Hopefully that covers your answer.
There is no tags on a spider defining it a spider jockey, so the only way way to get one would be to find one in Minecraft and export it as a schematic file. Then you would be able to edit the armour, health, etc. Hopefully that covers your answer.
Thanks, ill test it out next time I see a spider jockey. also is there a tag defining a creeper saying its a charged creeper?
Using nbt edit is it possable to make endermen hold differnt blocks, Iron golems hold things other than roses or witchs throwing differnt potions?
also can armour be put on Wither skeletons and is there a tag making a skeleton a wither skeleton or is it just a differnt mob?
Using nbt edit is it possable to make endermen hold differnt blocks or Iron golems hold things other than roses?
also can armour be put on Wither skeletons and is there a tag making a skeleton a wither skeleton or is it just a differnt mob?
I'm not sure about most of those things, but I'll test them out soon.
These are the things I will be covering:
If you want me to do a specific tutorial next, please just ask!
The MCEdit Basics
When you open MCEdit, you will need to select a world you wish to edit. Once loaded, you will appear to be in the place where you were last when you logged into that Minecraft world. Another awesome feature of MCEdit is that it loads your current texture pack.
Just like Minecraft, the controls to move are just the normal "WASD". However, you are always flying at a certain speed and you cannot turn my moving the mouse. instead, hold the right mouse button and move the mouse around to move the camera. The "Ctrl" button is also MCEdit's version of "Esc". Hold it down and select an option or just use the keyboard shortcuts to do it.
It will take a bit to get used to at first, but at least it's not the painful speed that you get in Minecraft.
At the bottom of the screen, you will also see you have lots of tools in your hotbar. The default tool is the select tool, which you can use to select a group of blocks and entities. In these tutorials, you will only need to know how to use this tool as well as the import tool. Both are fairly straight forward to use, but both are very powerful tools. If you make a mistake, just undo it with "Ctrl + Z"
So that's the basics of MCEdit. This isn't a complete MCEdit tutorial, so don't expect me to explain how to use everything throughout the tutorials.
Exporting Schematic Files
First select the area of blocks/entities (entities are the red boxes) with the Select tool and simply click the "Export" button, located on the panel to the left. Choose a location to save it in, give it a name, and hit "Save". Easy!
Make sure you remember where it is though. I recommend you put it in a folder called "MCEdit-Schematics" or something (sometimes comes with MCEdit).
Importing Schematic Files
NBTEdit Basics
The image above is a zombie saved as a schematic file and then opened with NBTEdit. As you can see, there are lots of tags defining the zombie.
To edit any tag, just double click it and a box asking for the new value will pop up. There's no "OK" button, so just press ENTER to save the tag.
Another thing you will have to be aware of, is keeping the tags the right type. For example, if you changed the "health" tag (currently an interger tag) to another tag, like a float or double, then the tag won't work and may cause errors when you import the schematic into Minecraft.
So try playing around with a few schematics and importing them into Minecraft. If you wish to try with the example I used, it can be found in the MCEdit Schematics folder (under "Mobs in jar").
Creating Tags
Once you select the correct compound, these buttons should become usable.
For this particular tutorial, you will need to load up either a zombie, skeleton, or a zombie pigman schematic file. Once you have done that, select the main compound and create a new "byte" tag by pressing the black dot. Doing so should create a new tag under the compound. Name it "IsBaby", with the capitals. Without them and it won't work. Then go ahead and change the value to "1". Basicly, you just told NBTEdit that the tag "IsBaby" is now equal to true. So if you import that schematic into Minecraft, you will find yourself with a baby zombie, skeleton or a baby zombie pigman!
And this is the end of the basic tutorials!
Custom Mobs
Most of these tutorials will just be for zombies, skeletons, and zombie pigmen as they are the only mob compatible with this kind of stuff. It any other mobs can be used in the tutorials, it will be stated in the tittle.
Armoured Mobs
Call the list "Equipment", with the capital "E". Select the new list and create 5 new compounds in it.
These 5 Compounds will represent both the held item and the armour the mob is wearing.
The compounds also have an order:
Now repeat all of that for the rest of of the armour.
Remember though, only armour will show up on the mob, apart from the headpiece. The headpiece can be any block you like. I am going to use iron armour, and a glass block for the head in this tutorial.
Your schematic should look something like this now. The leggings and chestplate are pretty much the same, so they don't need to be shown.
So import your new mob into Minecraft and there you go! Your own customized mob!
Custom Mob Drops
For this tutorial, I will be making a zombie called the "Pumpkin Thief" who supposedly stole all your diamonds. He has a pumpkin on his head, a diamond chestplate on and he has all your diamonds in his hands.
First, we apply the armour to him. Put a pumpkin on his head, and give him a diamond chestplate. If you don't know how to do this, follow the tutorial above. Next, we are to do the same thing to his leggings and boots slots, but we use diamonds instead. Make sure you use a "Damage" of 0. The "Count", however, can be more than one if you like.
So far, the equipment tags should look something like this.
Now that we have done that armour, we need to tell the mob to drop the diamonds when he dies. To do this, create a new list called "DropChances", with "float" selected. Now go ahead and create 5 new floats.
These floats are also in the same order that the equipment list:
Your schematic file should look somewhat like this. So save it, import it into Minecraft, and there you go!
Extra Mob Details (Special mob features, like what makes creepers "charged")
The 2 we will be focussing one are called "powered" and "ExplosionRadius". So go ahead and create 2 new bytes and call them that.
The "powered" tag tells Minecraft if the Creeper is charged. The "ExplosionRadius" tells it how big the explosion radius is, as the obvious would say. Both together are so much fun to play with!
As you can see above, I have made this a charged creeper that has a massive explosion radius. Be careful what you set the radius to though as it can cause extreme lag when they explode.
This is my beautiful creeper which I have imported into Minecraft.
That is the beautiful hole that it made!
So have fun with this one. More tutorials will be available later!
Enderman, Wolves, Sheep and a lot more coming soon!
These tutorials are still under construction, but they won't continue if they aren't being used.
Is it possable to use nbt to make a spider jockey?
Thanks, ill test it out next time I see a spider jockey. also is there a tag defining a creeper saying its a charged creeper?
Thank you for following, I will do more soon.
also can armour be put on Wither skeletons and is there a tag making a skeleton a wither skeleton or is it just a differnt mob?
More tutorials soon
Thanks for making this tutorial and may you add more content to it.