a mod allowing to import 3d models to minetest
Find a file
2022-02-13 18:41:31 +01:00
schems added azer models 2022-02-13 17:59:12 +01:00
.gitignore ignore eclipse 2020-12-30 16:02:15 +01:00
init.lua fix light around 2021-02-15 19:37:00 +01:00
LICENSE added license and readme 2022-02-13 17:28:55 +01:00
palettes.lua initial commit 2020-12-30 16:02:27 +01:00
README.md Update 'README.md' 2022-02-13 18:41:31 +01:00

matmod

a mod allowing to import 3d models to minetest

usage

Models are loaded from /schems/.txt or /schems/.txt A model file contains one pixel per line in x,y,z coordinates and optionally r,g,b values, see azer.txt and azer_rgb.txt

Material is either a mcl material name ( without mcl prefix) like you can find in nodes_base.lua or a palette with pal: prefix. The default material is mcl_core:stone.

/place <name> <material> - loads model file for placement on next punch ie /place azer or /place azer goldblock or for rgb models only /place azer_rgb pal:concrete

now punch the node, where you want to place the model. Look around, sometimes the models are bhind you and surprisingly big.

/place scale <percentage> - sclaes the last placed model in place, is either 0..1 or 1..100

/place undo - removes the last placed model. You may need to fly into

/place shift <x>,<y>,<z> - moves the last placed model around ie /place shift ,,`

/place mult <x>,<y>,<z> - multiplies the coordinate matrix , ie /place mult 1,-1,1 turns the model upside down (you might want to /place shift 0,50,0 or similar to get it out of the ground)

/place flip - rotates the model +/- 90° in the x/z plane while preserving y (the height)

/place clear - clear the undo cache