Skip to content

Instantly share code, notes, and snippets.

@cmartello
Created October 20, 2011 08:43
Show Gist options
  • Save cmartello/1300702 to your computer and use it in GitHub Desktop.
Save cmartello/1300702 to your computer and use it in GitHub Desktop.
quick tool to create pngs from a minecraft savefile
# ./mcmap ~/.minecraft/saves/207.191.202.180 -file defakto-2011-10-14-west.png -north
from time import strftime
from os import system
when = strftime('%Y-%m-%d-%H%M')
for direction in ['north', 'south', 'east', 'west']:
system('./mcmap ~/.minecraft/saves/207.191.202.180 -file defakto-' + when + '-' + direction + '.png -' + direction)
system('./mcmap ~/.minecraft/saves/207.191.202.180 -cave -file defakto-' + when + '-' + direction + '-cave.png -' + direction)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment