Project

nbt_utils

0.01
Low commit activity in last 3 years
No release in over a year
Some classes to read and write Minecraft .nbt files. See NBT.txt in the /doc directory for format description.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

nbt_utils

Some classes for handling Minecraft .nbt files.

See the spec (NBT.txt in doc directory) for more info.

Installation

Requires Ruby 2.7 minimum.

gem install nbt_utils

Use

require 'nbt_utils'

file = NBTUtils::File.new
tag = file.read('some_nbt_file.nbt')
puts tag.to_s
file.write('some_new_path.nbt', tag, true) # true / false to gzip automatically

Copyright

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

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