Skip to main content

📦️ LuCI - Luanti Commandline Interface

Project description

📦️ LuCI - Luanti Commandline Interface

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.

Benchy

It's depending on miney a python interface for luanti.

Usage

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
# build object at exact position. Default is at the players position.
luci build data/some_stl_file.stl -x 100 -y 150 -z 50

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

Installation

If you like to use luci you have to follow this steps.

  1. Install luanti (see here: https://www.luanti.org/downloads/) and the miney mod. I use Debian and therefore install it like this:

    sudo apt update
    sudo apt install luanti -y
    

    You should now be possible to start luanti.

    luanti
    
  2. Install luci with pipx.

    sudo apt install pipx -y
    pipx ensurepath
    pipx install git+https://github.com/lookslikematrix/luci.git
    pipx upgrade luci
    
  3. (Optional) Install Minetest Game as the classic game. This is required in newer versions of luanti.

    Install game

    Minetest game

    Install Button

    You now can click twice Back and are ready to play luanti without luci.

  4. Create game, install miney mod, enable miney mod, enable server and start game.

    New game

    Create game

    Select mods

    Find and install miney

    Select miney and save

    Enable host and start

  5. Grant player luci all privileges.

    • Shift + /

    • Type /grant luci all

    • Hit enter.

  6. Build a STL-Object.

    luci build data/some_stl_file.stl
    # and erase it
    luci erase data/some_stl_file.stl
    

Development

git clone https://github.com/lookslikematrix/luci
cd luci
python -m venv --prompt "📦️ luci" .venv
source .venv/bin/activate
pip install -e .[test]
pytest

❤️ A thousand thanks to the developers of miney Python interface: https://github.com/miney-py

❤️ Everyone is welcome to make a contribution to this project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

luanti_cli-2.0.9.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

luanti_cli-2.0.9-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file luanti_cli-2.0.9.tar.gz.

File metadata

  • Download URL: luanti_cli-2.0.9.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for luanti_cli-2.0.9.tar.gz
Algorithm Hash digest
SHA256 c815c6b7db9cef408559ada8f7a9c4a61566b044b447e36233ab6ecea2b134ca
MD5 c7531a572885154aa01a3f5d9bd24b3e
BLAKE2b-256 0504a653fa32265bc4a7c8772d5f15defd066e43ff3c1faff224db106770e668

See more details on using hashes here.

File details

Details for the file luanti_cli-2.0.9-py3-none-any.whl.

File metadata

  • Download URL: luanti_cli-2.0.9-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for luanti_cli-2.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9a68e9c147ac9b9d149421dc901b5e5e2ae76b22269b2b2548e997765b497b1e
MD5 7895594bcfefc7acb040f6c354394877
BLAKE2b-256 d4fdcb33a65aa6ad55910e66d50038a2de270d519e19ad696d086c2ec775a6d1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page