PrismarineJS / dazed-sheep

A Minecraft Classic server in JavaScript
MIT License
24 stars 5 forks source link

Proper world generation #24

Open ghost opened 6 years ago

ghost commented 6 years ago

Add a proper world generation API and implement:

haykam821 commented 4 years ago

I’ll work on implementing this. I don’t see a way to make them compatible with the other world generators since those are chunk-based. Should there be a configurable function called with the X, Y, and Z coordinates that returns the block ID to put in that position?

ghost commented 4 years ago

That's an option, traditionally generators are given a X and Z for the chunk, then it returns the entire 16x16x256 (or whatever the world and chunk size is set to) array of blocks.