Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for region serialization and turn chunk into NBT #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

firegurafiku
Copy link

Not completely ready, I just need some feedback.

Hi! I want to create a simple level generator for Minecraft (for scientific purposes, despite it sounds crazy) and during my investigation I found your Data.NBT library on Hackage and this project on your GitHub. Unfortunately, it lacked support for serializing chunks and region, while having support for deserializing, so I've decided to write it by myself. Here is the intermediate result, you may not like it, because I'm not as monadic person as you, but I tried my best.

I want also to propose some more improvements:

  • Possibly, move project to another namespace (maybe, Data.MinecraftLevel?), current Game.Minecraft reads as if it were Minecraft game itself.
  • Add unit-tests as a separate executable.
  • Add some helper functions for level generation (not just chunks).
  • And publish it to Hackage.

Tested in Minecraft: the game seems to run fine after region (-1, -1)
deserialized and then serialized back.

Signed-off-by: Pavel Kretov <[email protected]>
Also remove 'test*' methods, to convert them in future into proper unit
tests.

Signed-off-by: Pavel Kretov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant