You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Sander Bos
MyNameIsTrez
Writing a compiler and linker for my own programming language. Working at Stream HPC. Love blue noise, (tool-assisted) speedruns, reverse engineering.
the command zig run my_code.zig will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Game Test Framework is a powerful tool provided by Mojang that is included with Minecraft in 1.17 and up.
It allows you to declare game tests that can be run inside a Minecraft world and provide a success or fail state.
Game tests are similar in concept to unit tests, but they allow you to interact with a running instance of Minecraft.
This means you can test block interactions, entity interactions, item functionality, etc.
Game tests use template structures to define the dimensions of the test and what blocks and entities will start in the test structure.
This framework has useful applications for Continuous Integration (CI) and testing during development to ensure features are working as expected.
For a more in-depth explanation about the Game Test Framework itself and how Mojang uses it to test the base game, please see this video with contributions by Dinnerbone.
This guide is tailored towards Forge modders by expla
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters