- clone
git@github.com:latticesurgery-com/minetest.git(or HTTPS equivalent for no ssh key) into~/.minetest/mods/latticesurgery- Note that the
~/.minetest/mods/latticesurgeryshould be the top level directory of the git repo, i.e. the lua file should be~/.minetest/mods/latticesurgery/init.lua
- Note that the
- run
python3 generate_tyles.pyfor which you might need topip3 install pillow - IDE support for lua with minetest is not great yet. I use VSCode with the lua language server extesion from the marketplace
- Mod setup:
a. Create a new world (set
flatfor world generator) b. From the main menu, make sure the world you just created is selected and then click onSelect Modsc. From the mods menu, selectlatticesurgeryand click theenabledcheckmark
touch minetest.conf
and include the following line
secure.enable_security = false
- Select the world you just created and click
Play - Once the world loaded, press
tand then type/do_compile - Slices should appear in your world at this point
- Compile slices with
lsqecca. To get slices where ancilla is routed in 3d, you need to do the following b. Check out the3d-routingbranch of the compiler c. Build d. Compile your slices with the-P 3doption - Move the
.jsonslices produced above under~/.minetest/mods/latticesurgery - Adjust
insecure_load_crossings()ininit.luato make sure do_compile loads the right files
/do_compilemake a sample compilation appear into the world/crossings j(where 0<=j<=8) display a compilation made of 8 instructions, one at a time depending onj. Note how this results in fewer than 8 slices, even though there are 8 instructions
- Uncomment occurrences of
falling_node=2to get nodes to fall like Minecraft sand - Change the position behaviour of where slices appear: edit
set_pos. Defaults to player position
