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

View File

View File

@ -0,0 +1,6 @@
events.listen('player.logged_in', (event) => {
if (!event.hasGameStage('starting_items')) {
event.player.give(item.of('ftbquests:book'));
event.addGameStage('starting_items');
}
});

View File

@ -0,0 +1,11 @@
events.listen('recipes', (event) => {
// Additional Lights
event.remove({output: 'additional_lights:fire_for_standing_torch_s'});
event.remove({output: 'additional_lights:fire_for_standing_torch_l'});
event.remove({output: 'additional_lights:fire_for_fire_pit_s'});
event.remove({output: 'additional_lights:fire_for_fire_pit_l'});
event.remove({output: 'additional_lights:soul_fire_for_standing_torch_s'});
event.remove({output: 'additional_lights:soul_fire_for_standing_torch_l'});
event.remove({output: 'additional_lights:soul_fire_for_fire_pit_s'});
event.remove({output: 'additional_lights:soul_fire_for_fire_pit_l'});
});

View File

@ -0,0 +1,11 @@
events.listen('recipes', (event) => {
// Additional Lights
event.shapeless('additional_lights:fire_for_standing_torch_s', ['#fellies:minicoal']);
event.shapeless('additional_lights:fire_for_standing_torch_l', ['#fellies:minicoal', '#fellies:minicoal']);
event.shapeless('additional_lights:fire_for_fire_pit_s', ['#fellies:minicoal', '#fellies:minicoal','#fellies:minicoal']);
event.shapeless('additional_lights:fire_for_fire_pit_l', ['#fellies:minicoal', '#fellies:minicoal','#fellies:minicoal','#fellies:minicoal']);
event.shapeless('additional_lights:soul_fire_for_standing_torch_s', ['#fellies:minicoal', '#forge:soul_sand']);
event.shapeless('additional_lights:soul_fire_for_standing_torch_l', ['#fellies:minicoal', '#fellies:minicoal', '#forge:soul_sand']);
event.shapeless('additional_lights:soul_fire_for_fire_pit_s', ['#fellies:minicoal', '#fellies:minicoal','#fellies:minicoal', '#forge:soul_sand']);
event.shapeless('additional_lights:soul_fire_for_fire_pit_l', ['#fellies:minicoal', '#fellies:minicoal','#fellies:minicoal','#fellies:minicoal', '#forge:soul_sand']);
});

View File

@ -0,0 +1,4 @@
events.listen('item.tags', function (event) {
event.add('fellies:minicoal', 'minicoal2:minicoal')
event.add('fellies:minicoal', 'minicoal2:minicharcoal')
});

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'];
});
});