mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-23 15:20:19 +01:00
Tree log decorations: Replace lua tables with .mts files
This commit is contained in:
parent
8715b83ff0
commit
1470b9df79
@ -1204,20 +1204,7 @@ function default.register_decorations()
|
|||||||
biomes = {"deciduous_forest"},
|
biomes = {"deciduous_forest"},
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
y_max = 31000,
|
y_max = 31000,
|
||||||
schematic = {
|
schematic = minetest.get_modpath("default") .. "/schematics/apple_log.mts",
|
||||||
size = {x = 3, y = 3, z = 1},
|
|
||||||
data = {
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "default:tree", param2 = 12, prob = 191},
|
|
||||||
{name = "default:tree", param2 = 12},
|
|
||||||
{name = "default:tree", param2 = 12, prob = 127},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "flowers:mushroom_brown", prob = 63},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
flags = "place_center_x",
|
flags = "place_center_x",
|
||||||
rotation = "random",
|
rotation = "random",
|
||||||
})
|
})
|
||||||
@ -1245,20 +1232,7 @@ function default.register_decorations()
|
|||||||
biomes = {"rainforest", "rainforest_swamp"},
|
biomes = {"rainforest", "rainforest_swamp"},
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
y_max = 31000,
|
y_max = 31000,
|
||||||
schematic = {
|
schematic = minetest.get_modpath("default") .. "/schematics/jungle_log.mts",
|
||||||
size = {x = 3, y = 3, z = 1},
|
|
||||||
data = {
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "default:jungletree", param2 = 12, prob = 191},
|
|
||||||
{name = "default:jungletree", param2 = 12},
|
|
||||||
{name = "default:jungletree", param2 = 12, prob = 127},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "flowers:mushroom_brown", prob = 127},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
flags = "place_center_x",
|
flags = "place_center_x",
|
||||||
rotation = "random",
|
rotation = "random",
|
||||||
})
|
})
|
||||||
@ -1299,20 +1273,7 @@ function default.register_decorations()
|
|||||||
biomes = {"taiga", "coniferous_forest"},
|
biomes = {"taiga", "coniferous_forest"},
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
y_max = 31000,
|
y_max = 31000,
|
||||||
schematic = {
|
schematic = minetest.get_modpath("default") .. "/schematics/pine_log.mts",
|
||||||
size = {x = 3, y = 3, z = 1},
|
|
||||||
data = {
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "default:pine_tree", param2 = 12, prob = 191},
|
|
||||||
{name = "default:pine_tree", param2 = 12},
|
|
||||||
{name = "default:pine_tree", param2 = 12, prob = 127},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "flowers:mushroom_red", prob = 63},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
flags = "place_center_x",
|
flags = "place_center_x",
|
||||||
rotation = "random",
|
rotation = "random",
|
||||||
})
|
})
|
||||||
@ -1354,17 +1315,7 @@ function default.register_decorations()
|
|||||||
biomes = {"savanna"},
|
biomes = {"savanna"},
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
y_max = 31000,
|
y_max = 31000,
|
||||||
schematic = {
|
schematic = minetest.get_modpath("default") .. "/schematics/acacia_log.mts",
|
||||||
size = {x = 3, y = 2, z = 1},
|
|
||||||
data = {
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "default:acacia_tree", param2 = 12, prob = 191},
|
|
||||||
{name = "default:acacia_tree", param2 = 12},
|
|
||||||
{name = "default:acacia_tree", param2 = 12, prob = 127},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
flags = "place_center_x",
|
flags = "place_center_x",
|
||||||
rotation = "random",
|
rotation = "random",
|
||||||
})
|
})
|
||||||
@ -1405,20 +1356,7 @@ function default.register_decorations()
|
|||||||
biomes = {"deciduous_forest"},
|
biomes = {"deciduous_forest"},
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
y_max = 31000,
|
y_max = 31000,
|
||||||
schematic = {
|
schematic = minetest.get_modpath("default") .. "/schematics/aspen_log.mts",
|
||||||
size = {x = 3, y = 3, z = 1},
|
|
||||||
data = {
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
{name = "default:aspen_tree", param2 = 12},
|
|
||||||
{name = "default:aspen_tree", param2 = 12},
|
|
||||||
{name = "default:aspen_tree", param2 = 12, prob = 127},
|
|
||||||
{name = "flowers:mushroom_red", prob = 63},
|
|
||||||
{name = "flowers:mushroom_brown", prob = 63},
|
|
||||||
{name = "air", prob = 0},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
flags = "place_center_x",
|
flags = "place_center_x",
|
||||||
rotation = "random",
|
rotation = "random",
|
||||||
})
|
})
|
||||||
|
BIN
mods/default/schematics/acacia_log.mts
Normal file
BIN
mods/default/schematics/acacia_log.mts
Normal file
Binary file not shown.
BIN
mods/default/schematics/apple_log.mts
Normal file
BIN
mods/default/schematics/apple_log.mts
Normal file
Binary file not shown.
BIN
mods/default/schematics/aspen_log.mts
Normal file
BIN
mods/default/schematics/aspen_log.mts
Normal file
Binary file not shown.
BIN
mods/default/schematics/jungle_log.mts
Normal file
BIN
mods/default/schematics/jungle_log.mts
Normal file
Binary file not shown.
BIN
mods/default/schematics/pine_log.mts
Normal file
BIN
mods/default/schematics/pine_log.mts
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user