Restructured resource generation code, added dependency on world seed and dim id