Use the gametest framework and add a few tests #320
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds the framework to add gametests to Carpet Extra, and a few tests.
Now clean of hacks!
Useful to know for development commands and findings about them:
/test export
to export nearby structure blocks to test ready snbt filesYou don't even need to hit save on the block, it'll do it for you. Here's the different ones I've found useful:
exportclosest
: The best, just exports the one form the structure block closest to youexportthat
: Exports "the one you're looking at". Sounds nice, but often doesn't work properlyexport <name>
: This one does need the structure to be saved I believe, and exports by nameexportthese
: Exports all in quite a big radius. Don't use it, especially if you've ran tests given it'll run save on the modified blocks/test run
of course/test verify
seems to run them all in different places and orientations to ensure they work even if you move them/test pos
to find the relative position inside a structure box (of the targeted block)/test
commandProgress for #319, this PR won't complete it all.