Thank you very much that was precisely it, awesome tutorial too by the way, really saved my butt when my computer lagged and I placed down my Zistonian Battle Sign in the Super Hostile Map I'm doing.
I think he meant my mod :tongue.gif:
(Link in my signature)
Nice mod! In terms of enchantment, the only thing this tutorial can do that your mod can't is enchant stacks of items, but that doesn't do anything anyway. Oh, and this tutorial will work immediately after Minecraft updates. :tongue.gif: Still, I really like your mod. I'll probably download it.
yeah i don't know how to add more than one ench, when i add an new thing it doesn't allow me to because its the same name help please
Try rereading that section. When you add another enchantment, you're adding another compound inside the list called "ench"; you're not making another list.
This is a great tutorial. Is there a limit on the max level you can achieve through this method? I'm sure you can go above the natural ones stated on the wiki but I'd rather not corrupt a save by accident
Thanks! I put a lot of effort into it.
The upper limit to a short value is 32767, but according to Peacem4k3r (creator of EEdit), Minecraft experiences extreme lag when enchantment levels exceed 3000, and crashes if they exceed 4000. However, you should be able to use an enchantment level of 100 without any adverse effects, and I can't think of a reason why you would need any level above 50 or so.
is this also compatible with smp? because i don't want to search the word combination i found if it is, and for you :biggrin.gif:
Thanks! I imagine it would work for SMP if you're the one hosting the server. Someone with more knowledge about level.dat structure could probably give you a better answer.
Inventories of players are actually stored in seperate .bat files.
/[serverDir]/[mapDir]/players/[playerName].dat
You need to be offline when you save the .dat file, or else it will overwrite when you disconnect.
It's serverside, so you have to have access to the server folder.
But yyeah, it works :smile.gif:
EDIT: I think this goes for vanilla servers as well, but this is how it works on my bukkit servers.
Enchantment is a new and exciting feature, but it's also one that takes a lot of time to fully access. If you want to experiment with effects or build a challenge course, you just don't have the time to gain hundreds of levels, and even then, you may have to try several times to get the enchantment you wanted! That's where this tutorial comes in. It uses a program called NBTedit (created by copyboy) to give you full control over your enchanting, without having to level grind. Enjoy!
Requirements
You will need:
-A Minecraft level.dat file. (If you have a single player world, you have one of these.)
-NBTedit. (Click Here)
-The ability to follow simple instructions.
That's all there is to it!
Tutorial
Selecting a Target
First, you need to decide what you want to enchant. It's easiest if you place the target item in slot zero (Figure 1.1). For this tutorial, the target will be a diamond sword. Now, save and exit Minecraft.
Figure 1.1
Loading your File
Now that you've chosen your target, you're ready to begin. Run NBTedit, and click "Open". Navigate to the world that contains your target item (e.g., "C:\Users\YourName\AppData\Roaming\.minecraft\saves\Your World"), and open the file called "level.dat" (Figure 2.1). A directory will appear in NBTedit. Navigate through it to Data->Player->Inventory. If you placed your target item in slot zero, it will be the first entry under "Inventory" (Figure 2.2).
Figure 2.1
Figure 2.2
Enchanting a Normal Item
Note: If your item already has at least one enchantment, click here.
It's time to turn your plain old item into an enchanted item! First, add a new Compound (Ctrl+0) to your item, and name it "tag" (Figure 3.1). Now add a new List of type Compound (Figure 3.2) to the "tag" Compound you've just created, and name it "ench" (Figure 3.3). Congratulations! You're ready to add enchantments!
Figure 3.1
Figure 3.2
Figure 3.3
Adding Enchantments
Note: Repeat this step for each enchantment you want to add.
Alright, it's time to give your target item a boost! Add a new Compound (Ctrl+0) to your List labeled "ench" (Figure 4.1). This will be your new enchantment. Add two Shorts to the Compound, and name them "id" and "lvl" (Figure 4.2). This enchantment won't do anything... yet. Continue on to the final step!
Figure 4.1
Figure 4.2
Modifying an Existing Enchantment
Note: Repeat this step for each enchantment you want to modify.
First, choose the enchantment you wish to modify. Each one will be a Compound in your "ench" List. Double-click the Short labeled "id" to edit its value. The value of "id" corresponds with the enchantment type. Click here for a full table of enchantment types and IDs. Enter the ID of the enchantment you want, and press enter (Figure 5.1). Now, double-click the Short labeled "lvl" to edit it. This is the level of the enchantment. You can use the table to find information about the maximum level of each enchantment, and what effect it has at each level. Enter the level you want the enchantment to be, and you're done! Remember to save your level.dat file (Ctrl+S).
So, I've gotten a few questions about the new bow enchantments. This tutorial should work just as well for bows, and the Enchanting page on the Minecraft wiki has been updated with the EIDs!
After I'm done enchanting, I go back in minecraft and everything is fine, but the sword I enchanted is called Unknown, and if I click anything, my Minecraft crashes with the Saving Chunks screen. Help?
After I'm done enchanting, I go back in minecraft and everything is fine, but the sword I enchanted is called Unknown, and if I click anything, my Minecraft crashes with the Saving Chunks screen. Help?
Interesting. I haven't seen or heard of this problem before, but I'll look into it. Make sure you followed the tutorial correctly, as well. Misnaming something could mess everything up.
Thanks! This helps alot for items that arent normaly enchanteble (Like blaze rod, gunpowder etc.) because Single Player Commands can't! Thanks and very well done!
Great! Glad I could help!
Nice mod! In terms of enchantment, the only thing this tutorial can do that your mod can't is enchant stacks of items, but that doesn't do anything anyway. Oh, and this tutorial will work immediately after Minecraft updates. :tongue.gif: Still, I really like your mod. I'll probably download it.
my arrows are also enchanted!
Thanks for supporting this tutorial!
Search it on Google and it is not TMI
Try rereading that section. When you add another enchantment, you're adding another compound inside the list called "ench"; you're not making another list.
Those are part of a mod. Two is the highest level you can get naturally from enchanting something, but it's possible for the level to be above that.
Thanks! I put a lot of effort into it.
The upper limit to a short value is 32767, but according to Peacem4k3r (creator of EEdit), Minecraft experiences extreme lag when enchantment levels exceed 3000, and crashes if they exceed 4000. However, you should be able to use an enchantment level of 100 without any adverse effects, and I can't think of a reason why you would need any level above 50 or so.
Aardvarkanania!! IP: 24.230.32.167:25565
This is just a tutorial. That would be a question for copyboy, creator of NBTedit.
Thanks! I imagine it would work for SMP if you're the one hosting the server. Someone with more knowledge about level.dat structure could probably give you a better answer.
Thanks for the response!
Make sure you created a list of type Compound. Refer to figure 3.2.
Interesting. I haven't seen or heard of this problem before, but I'll look into it. Make sure you followed the tutorial correctly, as well. Misnaming something could mess everything up.
You're welcome! I'm glad you found it useful.