This Commandline Interface allows you to build CAD-Objects in luanti. For example the benchy from here: https://www.thingiverse.com/thing:763622. The game used to be called minetest, but now it's called luanti, so this description is a mixture of minetest and luanti.
It's depending on miney
a python interface for luanti.
Getting help.
luci --help
Build a CAD-Object in the STL format with luci
.
luci build --help
luci build data/some_stl_file.stl
# get all wool blocks
luci blocks --filter wool
# build object with green wool
luci build data/some_stl_file.stl --block-type wool:green
# scale by factor 2
luci build data/some_stl_file.stl --scale 2
Erase this CAD-Object.
luci erase --help
luci erase data/some_stl_file.stl
# erase scale by factor 2
luci erase data/some_stl_file.stl --scale 2
If you like to use luci
you have to follow this steps.
-
Install luanti (see here: https://www.luanti.org/downloads/) and dependencies for
miney-socket
. I use Debian and therefore install it like this:sudo apt update sudo apt install minetest lua-socket lua-cjson -y
You should now be possible to start luanti.
minetest
-
(Optional) Install
Minetest Game
as the classic game. This is required in newer versions ofluanti
.You now can click twice Back and are ready to play
luanti
withoutluci
. -
Close
luanti
and install theminey-socket
mod, which is needed for theminey
python interface.mkdir -p ~/.minetest/mods # via git git clone https://github.com/miney-py/mineysocket ~/.minetest/mods/mineysocket echo "secure.trusted_mods = mineysocket" >> ~/.minetest/minetest.conf
-
Install
luci
with pipx.sudo apt install pipx -y pipx ensurepath pipx install git+https://github.com/lookslikematrix/luci.git
-
Create game, enable
mineysocket
mod and start game. -
Build a STL-Object.
luci build data/some_stl_file.stl # and erase it luci erase data/some_stl_file.stl
git clone https://github.com/lookslikematrix/luci
cd luci
sudo apt install pipx
pipx install poetry
poetry install
poetry shell
❤️ A thousand thanks to the developers of the miney-socket
and miney
Python interface: https://github.com/miney-py
❤️ Everyone is welcome to make a contribution to this project.