Talk:Tutorials/Programs and editors/Specialized programs

Gamemode Switcher / Version Switcher
I made these for Windows users. Just copy and paste them to notepad, then save it as  or. For  you need to change line saying   to file location of your minecraft launcher exe. If you don't, minecraft won't launch through the shortcut.

Requirements
 * Windows operating system
 * Able to follow instructions

Instructions

For gamemode switcher to work, do following :
 * Create new world, with exact same name and seed and settings
 * Go to  folder
 * Go to world folder of your world name, the one with - sign after it's name
 * Rename  to   or   depending which gamemode world you just created is.
 * Move renamed file to orginal world folder, the one without - sign
 * Now you can create shortcut icon which switches the gamemode
 * Create new shortcut, when it asks what to run with shortcut, search the  where ever you placed it.
 * Name your shortcut freely
 * Right click shortcut for properties
 * Change work directory (windows 7 says "Start in:") to folder of your world (example  replace [your user name] with your actual user name, remove [] signs).
 * Done! You can now double click the shortcut to change gamemode. But do not do so if minecraft is running and mc version is before 1.1, version 1.1 and after it's fine if you leave to main menu (menu with buttons singleplayer, multiplayer, texturepacks, etc... )

For version changer to work, do following :
 * Create many versions of  as you like (file in  ).
 * Rename them as, replace [your id here] with id you like to give that version (example  ) and place them same folder as the original jar
 * Now you can create shortcut icon which switches minecraft version
 * Create new shortcut, when it asks what to run with shortcut, search the  where ever you placed it.
 * Name your shortcut freely
 * Right click shortcut for properties
 * Change work directory (windows 7 says "Start in:") to bin folder of minecraft (example  replace [your user name] with your actual user name, remove [] signs).
 * Add your id to shortcut target (windows 7 says "Target:") (example: )
 * Done! You can now use that shortcut to start that version of minecraft. But running minecraft using the shortcut will delete your  in bin directory, so keep a backup. Also always close minecraft before running new one.

Gamemode Switcher Use at your own risk @echo off rem Use at your own risk echo Performing tests... if exist level.dat goto lvlex0 goto lvlnot0


 * lvlex0

if exist level.dat.survival goto lvlex1survex0 goto lvlex1survnot0


 * lvlnot0

if exist level.dat.survival goto lvlnot1survex0 goto lvlnot1survnot0


 * lvlex1survex0

if exist level.dat.creative goto lvlex1survex1creaex0 goto lvlex1survex1creanot0


 * lvlex1survnot0

if exist level.dat.creative goto lvlex1survnot1creaex0 goto lvlex1survnot1creanot0


 * lvlnot1survex0

if exist level.dat.creative goto lvlnot1survex1creaex0 goto lvlnot1survex1creanot0


 * lvlnot1survnot0

if exist level.dat.creative goto lvlnot1survnot1creaex0 goto lvlnot1survnot1creanot0


 * lvlex1survex1creaex0

echo Warning : All files exists. echo !!!!!!!!! WARNING !!!!!!!!! echo "level.dat" will be deleted. echo Press Ctrl + C to cancel. echo Remember to press Ctrl before C or canceling wont work. echo Press any key to continue. pause > nul echo Deleting "level.dat"... del level.dat echo Renaming ".creative" as active... ren level.dat.creative level.dat set cba1_gamemode=creative goto end


 * lvlex1survex1creanot0

echo Renaming active as ".creative"... ren level.dat level.dat.creative echo Renaming ".survival" as active... ren level.dat.survival level.dat set cba1_gamemode=survival goto end


 * lvlex1survnot1creaex0

echo Renaming active as ".survival"... ren level.dat level.dat.survival echo Renaming ".creative" as active... ren level.dat.creative level.dat set cba1_gamemode=creative goto end


 * lvlex1survnot1creanot0

echo Error : Only "level.dat" exists. echo        You need to create world with opposite gamemode, echo        (WITH SAME SEED AND SETTINGS). Be noted however, echo        World name will be copied from the new world, so echo         to have world name stay same you need to create echo        world with same name. Then you might ask how you echo        know then wich is wich. Simple, world you echo        created later has "-" sign after it's folder echo        name if you have only two worlds with same name. set cba1_gamemode=unknown goto end


 * lvlnot1survex1creaex0

echo Hmph, no active gamemode. echo Renaming ".creative" as active... ren level.dat.creative level.dat set cba1_gamemode=creative goto end


 * lvlnot1survex1creanot0

echo Warning : Only survival mode file exists. echo Renaming ".survival" as active... ren level.dat.survival level.dat set cba1_gamemode=survival goto end


 * lvlnot1survnot1creaex0

echo Warning : Only creative mode file exists. echo Renaming ".creative" as active... ren level.dat.creative level.dat set cba1_gamemode=creative goto end


 * lvlnot1survnot1creanot0

echo Error : None of required files exists. echo        Maybe script was work directory was wrong. set cba1_gamemode=unknown


 * end

echo Your gamemode is now %cba1_gamemode%. echo Press any key to quit. pause > nul echo Exiting...

Version Switcher Use at your own risk @echo off rem Use at your own risk echo Deleting old jar... del minecraft.jar > nul echo Copying minecraft_%1%.jar... copy /b minecraft_%1%.jar minecraft.jar > nul echo Launching minecraft... C:\Games\Minecraft\Minecraft.exe echo Done!

Update for 1.3.x...
Update for future minecraft version 1.3.x, hopefully works when it's official. Copy and paste to notepad, then save it as. I also have gamemode changer for that version, but I didn't feel it was necessary to post it, because of new feature cheats. Remember to change  location of your copy.

Requirements
 * Windows operating system
 * Able to follow instructions

Instructions

For version changer to work, do following :
 * Create many versions of  and   as you like (file in   and  ).
 * Rename them as  and , replace [your id here] with id you like to give that version (example   and  ) and place them same folder as the original jar
 * Now you can create shortcut icon which switches minecraft version
 * Create new shortcut, when it asks what to run with shortcut, search the  where ever you placed it.
 * Name your shortcut freely
 * Right click shortcut for properties
 * Change work directory (windows 7 says "Start in:") to bin folder of minecraft (example  replace [your user name] with your actual windows user name, remove [] signs (most easily done by browsing that directory in explorer then copying directory from address bar, then pasting it in)).
 * Add your id to shortcut target (windows 7 says "Target:") (example: )
 * Done! You can now use that shortcut to start that version of minecraft. But running minecraft using the shortcut will delete your  in bin directory and   in server directory, so keep a backup. Also always close minecraft before running new one.
 * Did you remember to change  from  ?

Version Switcher Use at your own risk @echo off rem Use at your own risk echo Copying minecraft_%1%.jar... copy /b /y bin\minecraft_%1%.jar bin\minecraft.jar > nul echo Copying minecraft_server_%1%.jar... copy /b /y server\minecraft_server_%1%.jar server\minecraft_server.jar > nul echo Launching minecraft... "C:\Games\Minecraft\Minecraft.exe" echo Done!

NBTxplorer out of date?
As far as i know, nbt edit is behind in the protocal, but nbtexplorer is at the latest version of the protocal. Pokechu22 20:19, 10 February 2013 (UTC)