fenomas / noa

Experimental voxel game engine.
MIT License
608 stars 86 forks source link

What is the best way to manually build worlds? #198

Open MeBadDev opened 10 months ago

MeBadDev commented 10 months ago

Hello, I want to make the engine load a pre-built world, however I can't find any datas about how on Google(All i found is Procedual World Generation). I know I can type in every block I want in JSON or something like that, but there gotta be a better way than that right?

MeBadDev commented 10 months ago

Ok, I found a dumb way, but it worked.

  1. Generate a Minecraft world, super flat with The void preset.
  2. Build it
  3. Export block data to JSON using mineways/jmc2obj
  4. Iterate through the JSON file, and place blocks with the correct textures and properties

NOTE: you won't get the textures using this way, you'll need to texture it based on JSON properties yourself.

This is a way, but I would love to hear about how you do it!

fenziie commented 3 months ago

Ok, I found a dumb way, but it worked.

  1. Generate a Minecraft world, super flat with The void preset.
  2. Build it
  3. Export block data to JSON using mineways/jmc2obj
  4. Iterate through the JSON file, and place blocks with the correct textures and properties

NOTE: you won't get the textures using this way, you'll need to texture it based on JSON properties yourself.

This is a way, but I would love to hear about how you do it!

Thanks! Im gonna try this.