1
0
mirror of https://git.fellies.tech/minecraft/fellies.git synced 2021-02-13 10:18:48 +00:00

Fix configs and kubejs

This commit is contained in:
2021-01-29 20:05:32 +01:00
parent 98e6743204
commit 65de71227e
48 changed files with 2241 additions and 46 deletions

View File

@ -0,0 +1,88 @@
events.listen('worldgen.add', (event) => {
var data = {
stones: [
{
block: 'create:natural_scoria',
clusterMinSize: 128,
clusterMaxSize: 128,
minHeight: 0,
maxHeight: 8,
clusterCount: 1
},
{
block: 'quark:jasper',
clusterMinSize: 128,
clusterMaxSize: 128,
minHeight: 8,
maxHeight: 16,
clusterCount: 1
},
{
block: 'create:gabbro',
clusterMinSize: 128,
clusterMaxSize: 128,
minHeight: 16,
maxHeight: 24,
clusterCount: 1
},
{
block: 'quark:slate',
clusterMinSize: 128,
clusterMaxSize: 128,
minHeight: 24,
maxHeight: 32,
clusterCount: 1
},
{
block: 'quark:marble',
clusterMinSize: 128,
clusterMaxSize: 128,
minHeight: 32,
maxHeight: 40,
clusterCount: 1
},
{
block: 'minecraft:andesite',
clusterMinSize: 128,
clusterMaxSize: 128,
minHeight: 40,
maxHeight: 48,
clusterCount: 1
},
{
block: 'create:limestone',
clusterMinSize: 128,
clusterMaxSize: 128,
minHeight: 48,
maxHeight: 56,
clusterCount: 1
},
{
block: 'create:weather_limestone',
clusterMinSize: 128,
clusterMaxSize: 128,
minHeight: 56,
maxHeight: 64,
clusterCount: 1
}
]
};
let i = 1;
data.stones.forEach((stone) => {
let minHeight = i * 8 - 4;
let maxHeight = i * 8 + 4;
event.addOre((ore) => {
ore.block = stone.block;
ore.clusterMinSize = stone.clusterMinSize;
ore.clusterMaxSize = stone.clusterMaxSize;
ore.minHeight = minHeight;
ore.maxHeight = maxHeight;
ore.clusterCount = stone.clusterCount;
// WorldgenLayer is specified to ensure Emendatus Enigmatica can spawn ores in the stones we generate
ore.worldgenLayer = 'local_modifications';
});
i++;
});
});

View File

@ -0,0 +1,5 @@
events.listen('worldgen.remove', (event) => {
event.removeOres((ores) => {
ores.blocks = ['minecraft:granite', 'minecraft:diorite', 'minecraft:andesite', 'minecraft:dirt'];
});
});