Unfuck this situation

This commit is contained in:
jordan4ibanez 2024-04-15 02:34:13 -04:00
parent e8e921b265
commit 6c8493099f

View File

@ -1,3 +1,5 @@
import { DecorationType } from "../utility/enums"
namespace world { namespace world {
// Solids // Solids
minetest.register_alias("mapgen_stone", "stone") minetest.register_alias("mapgen_stone", "stone")
@ -45,7 +47,7 @@ namespace world {
const create = vector.create; const create = vector.create;
const smallOak = generateSchematic( const smallOak = generateSchematic(
create(5,5,5), create(5, 5, 5),
{ {
" ": "air", " ": "air",
"I": "oak_tree", "I": "oak_tree",
@ -86,16 +88,16 @@ namespace world {
" " " "
), ),
[ [
253,253,253,253,253, 253, 253, 253, 253, 253,
253,254,254,254,253, 253, 254, 254, 254, 253,
253,254,255,254,253, 253, 254, 255, 254, 253,
253,254,254,254,253, 253, 254, 254, 254, 253,
253,253,253,253,253 253, 253, 253, 253, 253
] ]
) )
const mediumOak = generateSchematic( const mediumOak = generateSchematic(
create(7,7,7), create(7, 7, 7),
{ {
" ": "air", " ": "air",
"I": "oak_tree", "I": "oak_tree",
@ -162,18 +164,18 @@ namespace world {
" " " "
), ),
[ [
252,252,252,252,252,252,252, 252, 252, 252, 252, 252, 252, 252,
252,253,253,253,253,253,252, 252, 253, 253, 253, 253, 253, 252,
252,253,254,254,254,253,252, 252, 253, 254, 254, 254, 253, 252,
252,253,254,255,254,253,252, 252, 253, 254, 255, 254, 253, 252,
252,253,254,254,254,253,252, 252, 253, 254, 254, 254, 253, 252,
252,253,253,253,253,253,252, 252, 253, 253, 253, 253, 253, 252,
252,252,252,252,252,252,252, 252, 252, 252, 252, 252, 252, 252,
] ]
) )
const largeOak = generateSchematic( const largeOak = generateSchematic(
create(9,9,9), create(9, 9, 9),
{ {
" ": "air", " ": "air",
"I": "oak_tree", "I": "oak_tree",
@ -273,15 +275,15 @@ namespace world {
" " " "
), ),
[ [
251,251,251,251,251,251,251,251,251, 251, 251, 251, 251, 251, 251, 251, 251, 251,
251,252,252,252,252,252,252,252,251, 251, 252, 252, 252, 252, 252, 252, 252, 251,
251,252,253,253,253,253,253,252,251, 251, 252, 253, 253, 253, 253, 253, 252, 251,
251,252,253,254,254,254,253,252,251, 251, 252, 253, 254, 254, 254, 253, 252, 251,
251,252,253,254,255,254,253,252,251, 251, 252, 253, 254, 255, 254, 253, 252, 251,
251,252,253,254,254,254,253,252,251, 251, 252, 253, 254, 254, 254, 253, 252, 251,
251,252,253,253,253,253,253,252,251, 251, 252, 253, 253, 253, 253, 253, 252, 251,
251,252,252,252,252,252,252,252,251, 251, 252, 252, 252, 252, 252, 252, 252, 251,
251,251,251,251,251,251,251,251,251, 251, 251, 251, 251, 251, 251, 251, 251, 251,
] ]
) )
{ {
@ -292,7 +294,7 @@ namespace world {
const oakIDs = [smallID, mediumID, largeID] const oakIDs = [smallID, mediumID, largeID]
oakIDs.forEach((id, key) => { oakIDs.forEach((id, key) => {
minetest.register_decoration({ minetest.register_decoration({
name:"oak_" + oakSize[key], name: "oak_" + oakSize[key],
deco_type: DecorationType.schematic, deco_type: DecorationType.schematic,
place_on: "grass", place_on: "grass",
biomes: ["Forgotten Fields"], biomes: ["Forgotten Fields"],