Jump to content

Help
Latest News Article

NBTedit


588 replies to this topic

#1

    copyboy

    Lapis Lazuli Collector

  • Members
  • 965 posts
  • Minecraft: copyboy, copygirl, koppeh

Posted 19 February 2010 - 11:05 AM

*
POPULAR

I made this some time ago, but never actually released it.
Anyway, with this beauty you could edit every file in the NBT format (see specs here). But afaik there are no other projects which are using this, yet. Most of you will probably use NBTedit to cheat items in Survival.

Here's some screeny:

Posted Image

You can simply edit bytes, shorts, ints, longs, floats, doubles and strings. Byte arrays must be exported and imported to edit them (I couldn't think of an easy solution). You can add, rename and delete Tags as well as search for a specific name, value and TagType.

Made with SharpDevelop (C#) and compiled for the .NET Framework 2.0.
.NET 2.0 or Mono is needed to run it.
Download: Click me! (Mirror: Mediafire)
The current version is 0.9.8.

Posted Image

Check out the wiki article on Data values and the level.dat Format!

Other helpful tools you may want to check out:

- NBTExplorer: A better NBT editor by jaquadro.
- NEINedit: NBT editor for Mac by G-Man.

- INVedit: Inventory editor by me.
- Inside Job: Inventory editor for Mac by preble.
- Too Many Items: Inventory editor mod by Marglyph.
- Not Enough Items: Inventory editor mod and more by ChickenBones.
- MCEdit: World editor (originally by codewarrior, now open source and maintained by TkTech).

Register or log in to remove.

#2

    deps

    Redstone Miner

  • Members
  • 638 posts
  • Location: Småland, Sweden

Posted 19 February 2010 - 12:36 PM

You're not alone! :D
But you have a nice piece of software there! Even if it alienates me as a mac user.
I haven't added a GUI to mine yet, so I doesn't have anything to show.

About the byte arrays: Add some sort of hex editor?
Hex editing reality to give us infinite grenades
Hurry notch, you glorious bearded bastard! - Kilbas

#3

    Atomic

    Zombie Killer

  • Members
  • 216 posts

Posted 19 February 2010 - 01:27 PM

Very nice interface!
Can I suggest adding some tooltips so you can identify the data types/buttons faster?
I agree about adding an hex editor for byte[]'s.
How about being able to reorder/rename tags like you do in Win Explorer (drag drop/single click after selecting)?
Developer of Paint3D - Easy to use, innovative paint-like 3D editor.
Script to edit Minecraft maps with Paint3D

#4

    deps

    Redstone Miner

  • Members
  • 638 posts
  • Location: Småland, Sweden

Posted 19 February 2010 - 01:29 PM

Renaming would be nice, but you cannot guarantee that the tags are in a specific order, according to the docs.
Hex editing reality to give us infinite grenades
Hurry notch, you glorious bearded bastard! - Kilbas

#5

    Atomic

    Zombie Killer

  • Members
  • 216 posts

Posted 19 February 2010 - 01:49 PM

I meant reordering for list tags.
Developer of Paint3D - Easy to use, innovative paint-like 3D editor.
Script to edit Minecraft maps with Paint3D

#6

    copyboy

    Lapis Lazuli Collector

  • Members
  • 965 posts
  • Minecraft: copyboy, copygirl, koppeh

Posted 19 February 2010 - 04:00 PM

deps said:

You're not alone! :)
But you have a nice piece of software there! Even if it alienates me as a mac user.
I haven't added a GUI to mine yet, so I doesn't have anything to show.
I'm sorry about that :/
Anyway, thanks and good luck with yours!

deps said:

About the byte arrays: Add some sort of hex editor?
I tried but ended up messing everything up, so I decided to let the users choose their favorite hex editor. I could add some kind of option which lets you choose an external program tho..

Atomic said:

Very nice interface!
Thanks!

Atomic said:

How about being able to reorder/rename tags like you do in Win Explorer (drag drop/single click after selecting
Well, reordering is possible with Ctrl+Up/Down (that's just right, imo) and renaming by clicking once and waiting a second or so, too.

#7

    gigaman

    Lapis Lazuli Collector

  • Members
  • 1058 posts

Posted 19 February 2010 - 07:04 PM

whats the id for diamond block?

seekercat said:

Can't get wood, eh? I think they make pills for that.
Posted Image
steam name-Lunarglare

#8

    copyboy

    Lapis Lazuli Collector

  • Members
  • 965 posts
  • Minecraft: copyboy, copygirl, koppeh

Posted 19 February 2010 - 09:17 PM

gigaman said:

whats the id for diamond block?
I quickly made a page, which shows all of the block IDs, also added it to the original post. Diamond is 57.

#9

    deps

    Redstone Miner

  • Members
  • 638 posts
  • Location: Småland, Sweden

Posted 19 February 2010 - 11:13 PM

Awesome list! Just what I need! Thanks a lot. :)

Edit: Here's a bunch more ID's one can have in their inventory. It's no way complete yet. It's just what I had in my save files when I made the list:
iron_showel: 256,
iron_pickaxe: 257,
iron_axe: 258,
flint_and_steel: 259,
apple_helmet: 260,
bow: 261,
arrow: 262,
coal: 263,
iron_bar: 265,
iron_sword: 267,
wood_shovel: 269,
wood_pickaxe: 270,
stone_sword: 272,
stone_pickaxe: 274,
bowl: 281,
mushroom_soup: 282,
feather: 288,
gunpowder: 289,
stone_hoe: 291,
seeds: 295,
stick: 280,
string: 287,
gold_boots: 317,
gold_pants: 316,
gold_armor: 315,
gold_helm: 314,

Hex editing reality to give us infinite grenades
Hurry notch, you glorious bearded bastard! - Kilbas

#10

Posted 20 February 2010 - 12:29 AM

I know there is a way to get fire in your inventory, and saw in another thread, what is the number for it?
Remember that even old echoes can create new harmonies.
Who sits down and writes maniacle laughter?

#11

    deps

    Redstone Miner

  • Members
  • 638 posts
  • Location: Småland, Sweden

Posted 20 February 2010 - 12:33 AM

Check the page copyboy links to in his first post in this thread. And it was me who showed how to get fire in your inventory. (And I mentioned the ID in that same thread :D)
Hex editing reality to give us infinite grenades
Hurry notch, you glorious bearded bastard! - Kilbas

#12

Posted 20 February 2010 - 12:43 AM

Sorry, I was being a twit, thanks for the answer.
Remember that even old echoes can create new harmonies.
Who sits down and writes maniacle laughter?

#13

    copyboy

    Lapis Lazuli Collector

  • Members
  • 965 posts
  • Minecraft: copyboy, copygirl, koppeh

Posted 20 February 2010 - 01:45 AM

Ok, new version's up. Changed:
• Fixed a bug with copying compounds (and lists? Dunno :/).
• Dragging files on .exe will open them on start (also works while running).
• Shortcuts for creating tags (for example: Ctrl+2 => TagShort, Ctrl+Shift+8 => TagList of TagStrings).
• Name stays the same when copying tags (if there is no other tag with that name).
Aaand some other minor stuff I probably forgot ...

EDIT: Oh, and thanks deps, I'll upload an item lookup site soon ;)

#14

    Sirich

    Tree Puncher

  • Members
  • 22 posts

Posted 20 February 2010 - 03:35 AM

Pretty awesome tool, Found out that Diamond gems (Mined out diamond ore) are 264.

Edit: And Coal is 263.
I've been around since before trees existed, and you spawned in the sky and fell to the ground.
I laugh at people claiming to be elders because they played Indev.

hah... younglings...

#15

Posted 20 February 2010 - 09:31 AM

what is the id for cooked pork chops?
EDIT: and bread...
Give me an internet, or Chuck Norris will kill you!!!
Posted Image

#16

    deps

    Redstone Miner

  • Members
  • 638 posts
  • Location: Småland, Sweden

Posted 20 February 2010 - 12:23 PM

Give me a save with as much different stuff as possible, and I will figure it out for you. ;)

Or just open up the savefile in NBTedit and see for your self. The Slot numbers are a bit strange:
09 10 11 12 13 14 15 16 17
18 19 20 21 22 23 24 25 26
27 28 29 30 31 32 33 34 35 
00 01 02 03 04 05 06 07 08 <- Bottom row of inventory
Find the slot number of the slot you want to check, then find the compound inside NBTedit, and you will find the ID.
Hex editing reality to give us infinite grenades
Hurry notch, you glorious bearded bastard! - Kilbas

#17

    copyboy

    Lapis Lazuli Collector

  • Members
  • 965 posts
  • Minecraft: copyboy, copygirl, koppeh

Posted 20 February 2010 - 02:01 PM

Here you go: http://copy.bplaced.net/mc/items/
Oh and to find your inventory, simply search for "LocalPlayer" (Well, it's the first entry in "Entities", just to show you that the search is working :D). Chests are in the "TileEntities"-compound.

#18

    Snake

    Void Walker

  • Members
  • 1764 posts
  • Location: United States of America

Posted 20 February 2010 - 05:17 PM

I'll be using this to put the items I reskin from items.png into my inventory to test them out. Thanks for this. : )
E: You can hold fire in your inventory with this! The file doesn't load when I put one TNT in my inventory, though. The screen just goes black.
E2: Never mind, TNT is working now.

#19

    NGgod

    Forum/Wiki Sponsor

  • Sponsors
  • 4788 posts
  • Location: Northern England
  • Minecraft: NGgod

Posted 20 February 2010 - 09:18 PM

This topic inspired me to join... what about a table of time of day as i hate night, just as the first bit of dark comes its 9057
edit* and i just thought i cant seem to find items being worn by the player hmmmm
Posted Image
Posted Image

#20

    deps

    Redstone Miner

  • Members
  • 638 posts
  • Location: Småland, Sweden

Posted 20 February 2010 - 09:39 PM

copyboy said:

Here you go: http://copy.bplaced.net/mc/items/
Oh and to find your inventory, simply search for "LocalPlayer" (Well, it's the first entry in "Entities", just to show you that the search is working :)). Chests are in the "TileEntities"-compound.
Excellent work! Thanks a lot! :D
Hex editing reality to give us infinite grenades
Hurry notch, you glorious bearded bastard! - Kilbas