Add in slightly modified chain.py from MinecraftRemapping