You are not logged in.

#1 2011-10-07 16:24:53

sakisds
Member
From: Athens, Greece
Registered: 2011-10-03
Posts: 105

mc-nbt-edit: Command line editor for Minecraft's NBT files

Hello everyone! This is a little script I wrote for personal use but after all I decided to share it, after all someone might find it useful.

So, mc-nbt-edit is a simple python script that edits nbt files using Thomas Woolford's NBT Library. I wrote it so some repetitive actions became faster (using the same command again and again instead of navigating a GUI).

Some usage examples:

mc-nbt-edit ~/.minecraft/saves/map/level.dat Data.GameType 1

Converts the given map to Creative.

mc-nbt-edit ~/.minecraft/saves/map/level.dat Data.Player.health 20

Fills up player's health.

mc-nbt-edit ~/.minecraft/saves/map/level.dat Data.Time 12000

Set's time to 'sunset'.

For more values read here.
Also please check the README file before using.

GIT Repository
AUR Package

Note: Please make backup of your files before using this utility, I take no responsibility whatsoever about anything that goes wrong.
Note 2: This is one of my first python scripts (the others being simple math problem solvers for school) so please if you have any suggestions, please do tell them.

Hope you find it useful smile

Last edited by sakisds (2011-10-08 17:21:24)

Offline

Board footer

Powered by FluxBB