As someone who created a mod to convert lua schematics to mts, this mod makes my mod a whole lot less useful. I guess mine would be good if you wanted to do a search and replace for random percentages of node being generated. But I really appreciate that this mod has been created. It gives us a whole new way of dealing with schematics. The more useful tools here the better.
To convert an .mts file to an ascii art schematic lua:
Made sure that mod that contained .mts file was enabled in world.
I used this mod's library in my boulder_dig mod. In order to use ascii art schematic library:
Boulder_dig:
Init.lua
-- Ensure modname is defined
local modname = minetest.get_current_modname()
-- Get the schematic path
local modpath = minetest.get_modpath(modname)
if not modpath then
error("Mod path for " .. modname .. " not found")
end
local schematic_path1 = modpath .. "\\schematics\\bomb_butterfly.lua"
\schematics\bomb_butterfly.lua
Scripted_world_editor:
mod.config
depends = default, aaschemlib
Init.lua
Added:
function build_ascii_schematic(StartPosition, path)
local ascii = dofile(path)
local schematic = aaschemlib.asciiart_to_schematic(ascii)
if schematic then
flags_rotate = 0
flags_force_placement = true
success = minetest.place_schematic(StartPosition, schematic, flags_rotate, nil, flags_force_placement)
end
end
As someone who created a mod to convert lua schematics to mts, this mod makes my mod a whole lot less useful. I guess mine would be good if you wanted to do a search and replace for random percentages of node being generated. But I really appreciate that this mod has been created. It gives us a whole new way of dealing with schematics. The more useful tools here the better.
To convert an .mts file to an ascii art schematic lua:
/mts2aa terraria:schematics\beech_bush_1.mts beech_bush_1.lua
I used this mod's library in my boulder_dig mod. In order to use ascii art schematic library:
Boulder_dig:
Scripted_world_editor:
mod.config
depends = default, aaschemlib
Init.lua