Code Monkey home page Code Monkey logo

mc-nbt-edit's Introduction

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

mc-nbt-edit's People

Contributors

crohling avatar manuelgrabowski avatar thgeorgiou avatar zigmoo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.