- More information at http://www.minetest.net/
- Developer Wiki: http://dev.minetest.net/
- (Unofficial) Minetest Modding Book by rubenwardy: https://rubenwardy.com/minetest_modding_book/
- Create repo on GitHub where you'll put your files.
- Use jsDeliver or statically to get your assets.
Here is repo I'm using:
https://github.com/jcubic/static
And links to files look like this:
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
| struct Wave | |
| { | |
| Vec2 dir; | |
| float amplitude; | |
| float waveLength; | |
| }; | |
| struct ImmutableCB | |
| { | |
| float waveSteepness; |
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
| // Clone of https://gist.github.com/Flafla2/1a0b9ebef678bbce3215 with more dimensions and seed generation. | |
| public class PerlinGen | |
| { | |
| private readonly int[] p; // Randomly shuffled array of values from 0 to 255. | |
| // Values are repeated up to size of 512 to avoid using modulo operator. | |
| public PerlinGen(int seed) | |
| { | |
| // Generate p. |
This file has been truncated, but you can view the full file.
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
| #!/usr/bin/env python | |
| # | |
| # Hi There! | |
| # | |
| # You may be wondering what this giant blob of binary data here is, you might | |
| # even be worried that we're up to something nefarious (good for you for being | |
| # paranoid!). This is a base85 encoding of a zip file, this zip file contains | |
| # an entire copy of pip (version 22.3.1). | |
| # | |
| # Pip is a thing that installs packages, pip itself is a package that someone |
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
| // Code ported from https://0fps.net/2012/06/30/meshing-in-a-minecraft-game/ | |
| // Note this implementation does not support different block types or block normals | |
| // The original author describes how to do this here: https://0fps.net/2012/07/07/meshing-minecraft-part-2/ | |
| const int CHUNK_SIZE = 32; | |
| // These variables store the location of the chunk in the world, e.g. (0,0,0), (32,0,0), (64,0,0) |
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
Show hidden characters
| { | |
| "cmd": ["pandoc --pdf-engine=xelatex --filter=pandoc-citeproc -o '$file_base_name.pdf' '$file_name'"], | |
| "selector": "text.html.markdown", | |
| "shell": true | |
| } |