New schematics, various updates

Update aspen tree, papyrus, waterlily schematics to latest versions.
Add corals, bush and acacia bush schematics.
Update depends to include flowers.
Change licenses to MIT and CC BY-SA and credit sofar.
Update README.
Clean up init.lua.
This commit is contained in:
paramat 2016-12-08 06:45:11 +00:00
parent 8887ffcc49
commit a01d3997cb
4 changed files with 266 additions and 81 deletions

View File

@ -1,7 +1,7 @@
saveschems 0.2.0 by paramat
saveschems 0.2.1 by paramat
For Minetest 0.4.13 and later
Depends default
Licenses: Code WTFPL. Schematics CC BY-SA
Depends default flowers
Licenses: Code MIT. Schematics CC BY-SA 3.0
This mod exists to help create (mostly tree) decorations for the
in-game mapgen code. The code in this mod is used to create the

View File

@ -1 +1,2 @@
default
flowers

274
init.lua
View File

@ -1,4 +1,3 @@
-- Schematic file format version 4
local mts_save = function(name, schematic)
@ -15,139 +14,189 @@ local mts_save = function(name, schematic)
print("Wrote: " .. filename)
end
-- Mapgen Aspen tree
-- This node will not replace existing world nodes
local _ = {name = "air", prob = 0}
-- Mapgen Aspen tree
local T = {name = "default:aspen_tree", prob = 255, force_place = true}
local B = {name = "default:aspen_tree", prob = 255}
local L = {name = "default:aspen_leaves", prob = 255}
local O = {name = "default:aspen_leaves", prob = 127}
local M = {name = "default:aspen_leaves", prob = 223}
local N = {name = "default:aspen_leaves", prob = 127}
mts_save("aspen_tree", {
size = { x = 5, y = 10, z = 5 },
size = {x = 5, y = 14, z = 5},
data = {
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, L, _, _,
_, L, L, L, _,
O, L, L, L, O,
O, L, _, L, O,
_, _, _, _, _,
_, _, _, _, _,
N, M, L, M, N,
_, _, _, _, _,
N, M, L, M, N,
_, _, _, _, _,
N, M, L, M, N,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, O, _, _,
_, _, L, _, _,
_, L, L, L, _,
L, L, L, L, L,
L, L, L, L, L,
L, L, L, L, L,
_, O, L, O, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, M, L, M, _,
M, L, L, L, M,
_, M, L, M, _,
M, L, L, L, M,
_, M, L, M, _,
M, L, L, L, M,
_, M, L, M, _,
_, _, _, _, _,
_, _, T, _, _,
_, _, T, _, _,
_, _, T, _, _,
_, O, T, O, _,
_, _, T, _, _,
_, _, T, _, _,
_, _, T, _, _,
_, L, T, L, _,
L, L, T, L, L,
_, L, T, L, _,
L, L, T, L, L,
_, L, T, L, _,
L, L, L, L, L,
_, L, L, L, _,
_, L, L, L, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, O, _, _,
_, _, L, _, _,
_, L, L, L, _,
L, L, L, L, L,
L, L, L, L, L,
L, L, L, L, L,
_, O, L, O, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, L, _, _,
_, L, L, L, _,
O, L, L, L, O,
O, L, _, L, O,
_, _, _, _, _,
_, M, L, M, _,
M, L, L, L, M,
_, M, L, M, _,
M, L, L, L, M,
_, M, L, M, _,
M, L, L, L, M,
_, M, L, M, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
N, M, L, M, N,
_, _, _, _, _,
N, M, L, M, N,
_, _, _, _, _,
N, M, L, M, N,
_, _, _, _, _,
_, _, _, _, _,
},
yslice_prob = {
{ypos = 2, prob = 191},
{ypos = 7, prob = 191},
{ypos = 2, prob = 127},
{ypos = 3, prob = 127},
{ypos = 8, prob = 127},
{ypos = 10, prob = 127},
},
})
-- Aspen tree from sapling
mts_save("aspen_tree_from_sapling", {
size = { x = 5, y = 10, z = 5 },
size = {x = 5, y = 14, z = 5},
data = {
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, L, _, _,
_, L, L, L, _,
O, L, L, L, O,
O, L, _, L, O,
_, _, _, _, _,
_, _, _, _, _,
N, M, L, M, N,
_, _, _, _, _,
N, M, L, M, N,
_, _, _, _, _,
N, M, L, M, N,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, O, _, _,
_, _, L, _, _,
_, L, L, L, _,
L, L, L, L, L,
L, L, L, L, L,
L, L, L, L, L,
_, O, L, O, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, M, L, M, _,
M, L, L, L, M,
_, M, L, M, _,
M, L, L, L, M,
_, M, L, M, _,
M, L, L, L, M,
_, M, L, M, _,
_, _, _, _, _,
_, _, B, _, _,
_, _, T, _, _,
_, _, B, _, _,
_, O, B, O, _,
_, _, B, _, _,
_, _, B, _, _,
_, _, B, _, _,
_, L, B, L, _,
L, L, B, L, L,
_, L, B, L, _,
L, L, B, L, L,
_, L, B, L, _,
L, L, L, L, L,
_, L, L, L, _,
_, L, L, L, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, O, _, _,
_, _, L, _, _,
_, L, L, L, _,
L, L, L, L, L,
L, L, L, L, L,
L, L, L, L, L,
_, O, L, O, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, L, _, _,
_, L, L, L, _,
O, L, L, L, O,
O, L, _, L, O,
_, _, _, _, _,
_, M, L, M, _,
M, L, L, L, M,
_, M, L, M, _,
M, L, L, L, M,
_, M, L, M, _,
M, L, L, L, M,
_, M, L, M, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
_, _, _, _, _,
N, M, L, M, N,
_, _, _, _, _,
N, M, L, M, N,
_, _, _, _, _,
N, M, L, M, N,
_, _, _, _, _,
_, _, _, _, _,
},
yslice_prob = {
{ypos = 2, prob = 191},
{ypos = 7, prob = 191},
{ypos = 2, prob = 127},
{ypos = 3, prob = 127},
{ypos = 8, prob = 127},
{ypos = 10, prob = 127},
},
})
@ -217,6 +266,7 @@ mts_save("apple_tree", {
})
-- Apple tree from sapling
mts_save("apple_tree_from_sapling", {
size = {x = 5, y = 8, z = 5},
data = {
@ -385,6 +435,7 @@ mts_save("jungle_tree", {
-- Jungle tree from sapling
local B = {name = "default:jungletree", prob = 255}
local C = {name = "default:jungletree", prob = 255, force_place = true}
local Y = {name = "default:jungletree", prob = 191}
local U = {name = "default:jungletree", prob = 127}
@ -428,7 +479,7 @@ mts_save("jungle_tree_from_sapling", {
_, N, N, N, _,
_, B, B, B, _,
_, B, {name = "default:jungletree", prob = 255, force_place = true}, B, _,
_, B, C, B, _,
_, U, B, U, _,
_, _, B, _, _,
_, _, B, _, _,
@ -586,6 +637,7 @@ mts_save("pine_tree", {
-- Pine tree from sapling
local T = {name = "default:pine_tree", prob = 255}
local U = {name = "default:pine_tree", prob = 255, force_place = true}
mts_save("pine_tree_from_sapling", {
size = {x = 5, y = 14, z = 5},
@ -621,7 +673,7 @@ mts_save("pine_tree_from_sapling", {
_, _, _, _, _,
_, _, T, _, _,
_, _, {name = "default:pine_tree", prob = 255, force_place = true}, _, _,
_, _, U, _, _,
_, _, T, _, _,
_, _, T, _, _,
_, _, T, _, _,
@ -771,6 +823,7 @@ mts_save("acacia_tree", {
-- Acacia tree from sapling
local T = {name = "default:acacia_tree", prob = 255}
local U = {name = "default:acacia_tree", prob = 255, force_place = true}
mts_save("acacia_tree_from_sapling", {
size = {x = 9, y = 8, z = 9},
@ -813,7 +866,7 @@ mts_save("acacia_tree_from_sapling", {
_, _, _, _, M, L, L, L, M,
_, _, _, _, T, _, _, _, _,
_, _, _, _, {name = "default:acacia_tree", prob = 255, force_place = true}, _, _, _, _,
_, _, _, _, U, _, _, _, _,
_, _, _, _, T, _, _, _, _,
_, _, _, _, T, _, _, _, _,
_, _, _, _, T, _, _, _, _,
@ -887,7 +940,7 @@ mts_save("papyrus", {
size = {x = 1, y = 7, z = 1},
data = {
{name = "default:dirt", prob = 255, force_place = true},
{name = "default:dirt_with_grass", prob = 255, force_place = true},
{name = "default:dirt", prob = 255, force_place = true},
{name = "default:papyrus", prob = 255},
{name = "default:papyrus", prob = 255},
{name = "default:papyrus", prob = 255},
@ -906,7 +959,92 @@ mts_save("waterlily", {
size = {x = 1, y = 3, z = 1},
data = {
{name = "default:dirt", prob = 255, force_place = true},
{name = "default:water_source", prob = 255},
{name = "air", prob = 0},
{name = "flowers:waterlily", prob = 255},
}
})
-- Corals
local C = {name = "default:coral_brown", prob = 255, force_place = true}
local c = {name = "default:coral_brown", prob = 191, force_place = true}
local O = {name = "default:coral_orange", prob = 255, force_place = true}
local o = {name = "default:coral_orange", prob = 191, force_place = true}
local X = {name = "default:coral_skeleton", prob = 255, force_place = true}
local x = {name = "default:coral_skeleton", prob = 63, force_place = true}
mts_save("corals", {
size = {x = 5, y = 3, z = 5},
data = {
_, _, _, _, _,
o, C, O, c, _,
_, C, x, _, _,
_, _, X, _, _,
C, O, O, C, o,
c, c, O, o, x,
_, X, X, X, _,
c, C, C, O, O,
O, C, O, C, c,
_, _, X, _, _,
x, O, C, O, C,
_, x, C, O, _,
_, _, _, _, _,
_, o, O, C, c,
_, _, o, _, _,
},
yslice_prob = {
{ypos = 2, prob = 127},
}
})
-- Bush
local L = {name = "default:bush_leaves", prob = 255}
local M = {name = "default:bush_leaves", prob = 191}
local N = {name = "default:bush_leaves", prob = 127}
local S = {name = "default:bush_stem", prob = 255, force_place = true}
mts_save("bush", {
size = {x = 3, y = 3, z = 3},
data = {
_, _, _,
M, L, M,
N, M, N,
_, _, _,
L, S, L,
M, L, M,
_, _, _,
M, L, M,
N, M, N,
},
})
-- Acaica bush
local L = {name = "default:acacia_bush_leaves", prob = 255}
local M = {name = "default:acacia_bush_leaves", prob = 191}
local N = {name = "default:acacia_bush_leaves", prob = 127}
local S = {name = "default:acacia_bush_stem", prob = 255, force_place = true}
mts_save("acacia_bush", {
size = {x = 3, y = 3, z = 3},
data = {
_, _, _,
M, L, M,
N, M, N,
_, _, _,
L, S, L,
M, L, M,
_, _, _,
M, L, M,
N, M, N,
},
})

View File

@ -1,14 +1,60 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
License of source code
----------------------
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
The MIT License (MIT)
Copyright (C) 2014-2016 paramat
Copyright (C) 2016 sofar <sofar@foo-projects.org>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
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:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
0. You just DO WHAT THE FUCK YOU WANT TO.
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.
For more details:
https://opensource.org/licenses/MIT
Licenses of media (schematics)
-----------------------------------------------
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
Copyright (C) 2014-2016 paramat
You are free to:
Share — copy and redistribute the material in any medium or format.
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
The licensor cannot revoke these freedoms as long as you follow the license terms.
Under the following terms:
Attribution — You must give appropriate credit, provide a link to the license, and
indicate if changes were made. You may do so in any reasonable manner, but not in any way
that suggests the licensor endorses you or your use.
ShareAlike — If you remix, transform, or build upon the material, you must distribute
your contributions under the same license as the original.
No additional restrictions — You may not apply legal terms or technological measures that
legally restrict others from doing anything the license permits.
Notices:
You do not have to comply with the license for elements of the material in the public
domain or where your use is permitted by an applicable exception or limitation.
No warranties are given. The license may not give you all of the permissions necessary
for your intended use. For example, other rights such as publicity, privacy, or moral
rights may limit how you use the material.
For more details:
http://creativecommons.org/licenses/by-sa/3.0/