Initial commit
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
Copyright (C) 2019 bzt (bztsrc@gitlab)
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person
|
||||||
|
obtaining a copy of this software and associated documentation
|
||||||
|
files (the "Software"), to deal in the Software without
|
||||||
|
restriction, including without limitation the rights to use, copy,
|
||||||
|
modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||||
|
of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||||
|
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
DEALINGS IN THE SOFTWARE.
|
43
README.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
Minetest MTS Editor
|
||||||
|
===================
|
||||||
|
|
||||||
|
This is a simple editor for [Minetest](https://www.minetest.net) Schematic files
|
||||||
|
([MTS](https://gitlab.com/bztsrc/mtsedit/blob/master/docs/mts_format.md))
|
||||||
|
|
||||||
|
```
|
||||||
|
MineTest Schematics Editor by bzt Copyright (C) 2019 MIT license
|
||||||
|
|
||||||
|
./mtsedit [-d|-p|-P|-g] [-m map] <.mts|.schematic> [out.mts]
|
||||||
|
|
||||||
|
-d: dump layers to output
|
||||||
|
-p: save preview
|
||||||
|
-P: preview structure cut in half
|
||||||
|
-g: generate slab and stairs from block image
|
||||||
|
-m map: replace block type mapping
|
||||||
|
out.mts: output to file
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Batch Mode
|
||||||
|
----------
|
||||||
|
|
||||||
|
You can convert MTS files and generate preview images for them from script with this tool.
|
||||||
|
[Read more](https://gitlab.com/bztsrc/mtsedit/blob/master/docs/usage.md).
|
||||||
|
|
||||||
|
Interactive Mode
|
||||||
|
----------------
|
||||||
|
|
||||||
|
A picture can be more informative than thousand words. [Read more](https://gitlab.com/bztsrc/mtsedit/blob/master/docs/usage.md).
|
||||||
|
|
||||||
|
<img src="https://gitlab.com/bztsrc/mtsedit/raw/master/docs/mtsedit.png">
|
||||||
|
|
||||||
|
Compilation
|
||||||
|
-----------
|
||||||
|
|
||||||
|
It is very simple, written in ANSI C. The one and only dependency it has is the SDL2 library. Just issue `make` in the "src"
|
||||||
|
directory, and that will autodetect your operating system (Linux, BSD, MacOSX and Windows with mingw).
|
||||||
|
|
||||||
|
It also needs some [data files](https://gitlab.com/bztsrc/mtsedit/blob/master/docs/blocks.md), which can be found
|
||||||
|
[here](https://gitlab.com/bztsrc/mtsedit/tree/master/data).
|
||||||
|
|
||||||
|
bzt
|
BIN
data/Andesite_00.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
data/Bed_Red_00.png
Normal file
After Width: | Height: | Size: 659 B |
BIN
data/Bed_Red_01.png
Normal file
After Width: | Height: | Size: 639 B |
BIN
data/Bedrock_00.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
data/Bookshelf_00.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
data/Brewing_Stand_00.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
data/Brick_Block_00.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
data/Cactus_00.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
data/Carpet_White_00.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
data/Cauldron_00.png
Normal file
After Width: | Height: | Size: 409 B |
BIN
data/Chest_00.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
data/Chest_01.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
data/Cobblestone_00.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
data/Cobblestone_Slab_00.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
data/Cobblestone_Stair_00.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
data/Cobblestone_Stair_01.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
data/Cobblestone_Stair_02.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
data/Cobblestone_Stair_03.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
data/Cobblestone_Wall_00.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
data/Cobweb_00.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
data/Crafting_Table_00.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
data/Crafting_Table_01.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
data/Dandelion_00.png
Normal file
After Width: | Height: | Size: 194 B |
BIN
data/Dirt_00.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
data/End_Portal_Frame_00.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
data/Fence_00.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
data/Fence_01.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
data/Furnace_00.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
data/Furnace_01.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
data/Glass_00.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
data/Gold_Block_00.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
data/Grass_00.png
Normal file
After Width: | Height: | Size: 706 B |
BIN
data/Grass_Block_00.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
data/Ice_00.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
data/Iron_Bar_00.png
Normal file
After Width: | Height: | Size: 911 B |
BIN
data/Iron_Bar_01.png
Normal file
After Width: | Height: | Size: 894 B |
BIN
data/Iron_Door_00.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
data/Iron_Door_01.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
data/Iron_Trapdoor_00.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
data/Ladder_00.png
Normal file
After Width: | Height: | Size: 928 B |
BIN
data/Ladder_01.png
Normal file
After Width: | Height: | Size: 928 B |
BIN
data/Lava_Source_00.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
data/Leaves_00.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
data/Mob_Spawner_00.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
data/Mossy_Cobblestone_00.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
data/Oak_Door_00.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
data/Oak_Door_01.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
data/Oak_Pressure_Plate_00.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
data/Oak_Wall_Sign_00.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
data/Oak_Wall_Sign_01.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
data/Oak_Wood_00.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
data/Oak_Wood_Planks_00.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
data/Oak_Wood_Slab_00.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
data/Oak_Wood_Stair_00.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
data/Oak_Wood_Stair_01.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
data/Oak_Wood_Stair_02.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
data/Oak_Wood_Stair_03.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
data/Obsidian_00.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
data/Poppy_00.png
Normal file
After Width: | Height: | Size: 214 B |
BIN
data/Prismarine_00.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
data/Prismarine_Brick_00.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
data/Prismarine_Dark_00.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
data/Red_Mushroom_00.png
Normal file
After Width: | Height: | Size: 272 B |
BIN
data/Sandstone_00.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
data/Sandstone_Carved_00.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
data/Sandstone_Slab_00.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
data/Sandstone_Smooth_00.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
data/Sandstone_Stair_00.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
data/Sandstone_Stair_01.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
data/Sandstone_Stair_02.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
data/Sandstone_Stair_03.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
data/Sea_Lantern_00.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
data/Snow_00.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
data/Snow_Layer_00.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
data/Spruce_Fence_00.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
data/Spruce_Fence_01.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
data/Sprucewood_00.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
data/Sprucewood_Slab_00.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
data/Sprucewood_Stair_00.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
data/Sprucewood_Stair_01.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
data/Sprucewood_Stair_02.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
data/Sprucewood_Stair_03.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
data/Stone_00.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
data/Stone_Brick_00.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
data/Stone_Brick_Carved_00.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
data/Stone_Brick_Cracked_00.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
data/Stone_Brick_Slab_00.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
data/Stone_Brick_Stair_00.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
data/Stone_Brick_Stair_01.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
data/Stone_Brick_Stair_02.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
data/Stone_Brick_Stair_03.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
data/Stone_Brick_Wall_00.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
data/Stone_Button_00.png
Normal file
After Width: | Height: | Size: 885 B |
BIN
data/Stone_Button_01.png
Normal file
After Width: | Height: | Size: 303 B |
BIN
data/Stone_Pressure_Plate_00.png
Normal file
After Width: | Height: | Size: 1008 B |
BIN
data/Stone_Slab_00.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
data/Stone_Stair_00.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
data/Stone_Stair_01.png
Normal file
After Width: | Height: | Size: 1.8 KiB |