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