Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Ruby gem for reading and writing Minecraft .nbt files

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 nbt_utils.gemspec
Octocat-spinner-32 script.rb
README.md

nbt_utils

Some classes for handling Minecraft .nbt files.

See the spec for more info, also mirrored in the doc directory in a file named NBT.txt.

Installation

Requires ruby 1.9 minimum. Tested with 1.9.2.

gem install nbt_utils

No sudo. You are using rvm, right?

Use

require 'nbt_utils'

@tag = NBTUtils::File.new.read('some_nbt_file.nbt')
puts @tag.to_s

Copyright

Copyright (c) 2010 Michael Dungan, mpd@jesters-court.net, released under the MIT license.

The files NBT.txt, test.nbt, and bigtest.nbt in the doc directory are mirrored from the Minecraft website and not covered under the above license.

Something went wrong with that request. Please try again.