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

Add Enigmatica6 kubejs files

This commit is contained in:
2021-01-28 23:28:10 +01:00
parent 32b1313fdc
commit 98e6743204
694 changed files with 49010 additions and 0 deletions

View File

@ -0,0 +1,17 @@
//TODO: Remove in 0.4.0
// events.listen('block.registry', function (event) {
// for (var i = 0; i < materials.length; i++) {
// for (var j = 0; j < materials[i].blockParts.length; j++) {
// var block = materials[i].blockParts[j];
// var registryName = materials[i].name + '_' + block.name;
// event
// .create(registryName)
// .texture('kubejs:block/' + registryName)
// .material(block.material)
// .harvestTool(block.harvestTool, block.harvestLevel)
// .hardness(block.hardness)
// .resistance(block.resistance);
// }
// }
// });

View File

@ -0,0 +1,17 @@
events.listen('item.registry', function (event) {
const items = [
'rare_lootbox',
'epic_lootbox',
'legendary_lootbox',
'miners_delight',
'sorcerers_delight',
'farmers_delight',
'blacksmiths_delight',
'scavengers_delight',
'alchemists_delight'
];
items.forEach((item) => {
event.create(item).group('KubeJS').texture(`kubejs:item/${item}`);
});
});

View File

@ -0,0 +1,10 @@
//TODO: Remove in 0.4.0
// //priority: 1000
// function material(n, c, i, b) {
// return { name: n, color: c, itemParts: i, blockParts: b };
// }
// function blockWithProperties(n, m, h, hl, ha, r) {
// return { name: n, material: m, harvestTool: h, harvestLevel: hl, hardness: ha, resistance: r };
// }

View File

@ -0,0 +1,131 @@
//TODO: Remove in 0.4.0
// const disabledItems = [
// 'aquaculture:wooden_fillet_knife',
// 'aquaculture:stone_fillet_knife',
// 'aquaculture:iron_fillet_knife',
// 'aquaculture:gold_fillet_knife',
// 'aquaculture:diamond_fillet_knife',
// 'byg:ametrine_block',
// 'byg:ametrine_boots',
// 'byg:ametrine_chestplate',
// 'byg:ametrine_gems',
// 'byg:ametrine_helmet',
// 'byg:ametrine_horse_armor',
// 'byg:ametrine_leggings',
// 'byg:ametrine_ore',
// 'byg:pendorite_axe',
// 'byg:pendorite_battleaxe',
// 'byg:pendorite_block',
// 'byg:pendorite_hoe',
// 'byg:pendorite_horse_armor',
// 'byg:pendorite_ore',
// 'byg:pendorite_pickaxe',
// 'byg:pendorite_scraps',
// 'byg:pendorite_shovel',
// 'byg:pendorite_sword',
// 'mapperbase:steel_fence',
// 'mythicbotany:raindeletia',
// 'mythicbotany:raindeletia_floating',
// 'mythicbotany:wither_aconite',
// 'mythicbotany:wither_aconite_floating',
// 'quark:pipe'
// ];
// global.disabledItems = disabledItems;
// var air = 'minecraft:air';
// global.air = air;
// var colors = [
// 'cyan',
// 'purple',
// 'blue',
// 'brown',
// 'green',
// 'red',
// 'black',
// 'white',
// 'orange',
// 'magenta',
// 'light_blue',
// 'yellow',
// 'lime',
// 'pink',
// 'gray',
// 'light_gray'
// ];
// global.colors = colors;
// var typesToUnify = ['nugget', 'ingot', 'gem', 'storage_block', 'ore', 'dust', 'gear', 'plate', 'rod'];
// global.typesToUnify = typesToUnify;
// var materialsToUnify = [
// 'iron',
// 'gold',
// 'copper',
// 'silver',
// 'zinc',
// 'brass',
// 'lead',
// 'tin',
// 'compressed_iron',
// 'nickel',
// 'aluminum',
// 'uranium',
// 'bronze',
// 'electrum',
// 'constantan',
// 'steel',
// 'osmium',
// 'diamond',
// 'lapis',
// 'emerald',
// 'quartz',
// 'coal',
// 'charcoal',
// 'obsidian',
// 'ender',
// 'fluix',
// 'saltpeter',
// 'fluorite',
// 'invar',
// 'signalum',
// 'lumium',
// 'enderium',
// 'sulfur',
// 'cinnabar',
// 'niter',
// 'potassium_nitrate',
// 'saltpeter',
// 'apatite',
// 'bitumen',
// 'redstone',
// 'glowstone',
// 'arcane',
// 'certus_quartz',
// 'charged_certus_quartz'
// ];
// global.materialsToUnify = materialsToUnify;
// var modPriorities = [
// 'emendatusenigmatica',
// 'minecraft',
// 'immersiveengineering',
// 'thermal',
// 'mekanism',
// 'jaopca',
// 'kubejs',
// 'pneumaticcraft',
// 'tmechworks',
// 'industrialforegoing',
// 'botania',
// 'quark',
// 'pedestals',
// 'refinedstorage',
// 'mapperbase'
// ];
// global.modPriorities = modPriorities;

View File

@ -0,0 +1,37 @@
//TODO: Remove in 0.4.0
// //priority: 999
// var oreBlock = blockWithProperties('ore', block.material.rock, TOOL_TYPE_PICKAXE, 1, 3.0, 20.0);
// var oreDepositBlock = blockWithProperties('ore_deposit', block.material.earth, TOOL_TYPE_SHOVEL, 1, 3.0, 15.0);
// var defaultStorageBlock = blockWithProperties('storage_block', block.material.iron, TOOL_TYPE_PICKAXE, 1, 5.0, 30.0);
// var defaultDenseOreBlock = blockWithProperties('dense_ore', block.material.rock, TOOL_TYPE_PICKAXE, 2, 5.0, 30.0);
// var materials = [
// material('aluminum', 0xb2bcc4, [], [oreDepositBlock]),
// material('bronze', 0xcd7f32, [], []),
// material('coal', 0x232326, [], [oreDepositBlock]),
// material('copper', 0x89510d, [], [oreDepositBlock]),
// material('diamond', 0x8cf4e2, [], [oreDepositBlock]),
// material('electrum', 0xd3c34a, [], []),
// material('emerald', 0x21ce43, [], [oreDepositBlock]),
// material('gold', 0xffff0b, [], [oreDepositBlock]),
// material('iron', 0xd8d8d8, [], [oreDepositBlock]),
// material('lapis', 0x1b09a3, [], [oreDepositBlock]),
// material('lead', 0x38375b, [], [oreDepositBlock]),
// material('redstone', 0xa30808, [], [oreDepositBlock]),
// material('silver', 0xc8c7e0, [], [oreDepositBlock]),
// material('uranium', 0x314736, [], [oreDepositBlock]),
// material('tin', 0x9cc9d6, [], [oreDepositBlock])
// //material("quartz", 0xfffff7, [], []),
// //material("tungsten", 0x3d3b3a, itemPartNames, oreBlocks),
// //material("titanium", 0xe5e5e5, itemPartNames, oreBlocks),
// //material("iridium", 0xdfdee8, itemPartNames, oreBlocks),
// //material("chrome", 0x778481, itemPartNames, oreBlocks),
// //material("adamantium", 0x021A20, itemPartNames, []),
// //material("manganese", 0x562b15, itemPartNames, oreBlocks),
// //material("nickel", 0xd1c3b1, itemPartNames, oreBlocks),
// //material("platinum", 0x3a9ba8, itemPartNames, oreBlocks),
// ];
// global.materials = materials;

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