Skip to content

Does modifications to Minecraft's map metadata

License

Notifications You must be signed in to change notification settings

MineYourMind/mc-nbt-edit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mc-nbt-edit 0.4 by sakisds <[email protected]>
Uses the NBT library by Thomas Woolford <[email protected]>
Based on the NBT specifications by Markus Persson

This script is capable of creating and editing tags inside NBT structures, mainly used by Minecraft.
For usage please use the --help option.

I created this to edit the level.dat files from minecraft saves but it should work with any other nbt files too. Here is a list of level.dat settings it can modify:

Data.Time (long): Stores the current "time of day" in minecraft. Value should be between 0 and 24000. Here are some reference points:
-0 = start of daytime
-12000 = start of sunset
-13800 = start of nighttime
-22200 = start of sunrise
-24000 = daytime again.
Data.hardcore (byte): Hardcore mode off and on. Possible values are 0(false) and 1(true).
Data.MapFeatures (byte): Whether structures (dungeons, mob villages, etc.) will be generated. Possible values are 0(false) and 1(true).
Data.GameType (int): Whether in survival (0) or in creative (1) mode.
Data.rainTime (int): Time until the next weather change. Value can be anything, though to change the weather you probably want to set this to something like 1.
Data.thunderTime (int): Same as above, but for thunders.
Data.LevelName (string): Specifies the name of the level.
Data.Player.health (int): Amount of health the player has. Legal values are between 0 and 20 but it can be set higher.

You can find more values and their descriptions here:
http://www.minecraftwiki.net/wiki/Alpha_Level_Format

About

Does modifications to Minecraft's map metadata

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%