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

Update CommonMCOBJ support to V1 #245

Merged
merged 4 commits into from
Mar 23, 2024

Conversation

StandingPadAnimations
Copy link
Contributor

@StandingPadAnimations StandingPadAnimations commented Mar 22, 2024

CommonMCOBJ has mostly remained the same from when support was initially added, but with the following changes:

  • Removed has_biomes (planned in the future though)
  • Added parenthesis to export bounds
  • exported_bounds_* has become export_bounds_*
  • Added export_offset
  • Removed blank lines

objWriter.println("#");
objWriter.println("# export_bounds_min: " + String.format("(%d, %d, %d)", Options.minX, Options.minY, Options.minZ)); // The lowest block coordinate exported in the obj file
objWriter.println("# export_bounds_max: " + String.format("(%d, %d, %d)", Options.maxX-1, Options.maxY-1, Options.maxZ-1)); // The highest block coordinate exported in the obj file
objWriter.println("# export_offset: " + String.format("(%d, 0, %d)", Options.offsetX, Options.offsetZ));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mmdanggg2 just want to be sure, would Options.offsetX and Options.offsetZ be correct in this case?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite, it's fine I'll merge this and make the necessary changes.

@mmdanggg2 mmdanggg2 merged commit 5eb0100 into jmc2obj:CommonMCOBJ Mar 23, 2024
@StandingPadAnimations StandingPadAnimations deleted the common-v1 branch March 23, 2024 04:41
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.

2 participants