added kubejs

This commit is contained in:
2025-02-21 04:18:23 -06:00
parent c8f2676bfc
commit ec7bc660d3
186 changed files with 1774 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.
ServerEvents.recipes(allthemods => {
// Snow Fixes
allthemods.remove({ id: 'allthecompressed:compress/snow_1x'})
allthemods.remove({ id: 'allthecompressed:decompress/snow_1x'})
allthemods.shapeless('9x minecraft:snow_block', ['allthecompressed:snow_1x'])
allthemods.shapeless('allthecompressed:snow_1x', ['9x minecraft:snow_block'])
const blockedMods = [ 'modern_industrialization', 'mysticalagriculture', 'mysticalagradditions', 'extendedae', 'mekanism' ]
let ingots = []
Ingredient.of('#c:ingots').itemIds.forEach(id => {
let idArr = id.split(":")
let material = {resource: idArr[1], mod: idArr[0]}
if(!blockedMods.includes(idArr[0])){
material.resource = material.resource.replace('ingot_', '')
material.resource = material.resource.replace('_ingot', '')
if(Item.exists(`${material.mod}:${material.resource}_dust`) || Item.exists(`${material.mod}:dust_${material.resource}`) || Item.exists(`alltheores:${material.resource}_dust`)){ //check if dust for item exists
if(!JSON.stringify(ingots).includes(material.resource)){ //check if material already added to array of unique ingots
material.dust = `${material.mod}:${material.resource}_dust`
ingots.push(material) //add to array of sorted materials
}
}
}
})
//ingots = [resource, mod, dust]
let dust = ''
ingots.forEach(id => {
if(!allthemods.countRecipes({input: `#c:ingots/${id.resource}`, output: `#c:dusts/${id.resource}`, type: 'minecraft:crafting_shapeless'})){
if(AlmostUnified.getTagTargetItem(`c:dusts/${id.resource}`) !== 'minecraft:air'){ dust = AlmostUnified.getTagTargetItem(`c:dusts/${id.resource}`)} else {dust = id.dust} //prefer unified dust
//console.log(id.resource)
allthemods.shapeless(dust, [`#c:ingots/${id.resource}`, '#alltheores:ore_hammers']).id(`alltheores:processing/ore_hammer/${id.resource}_dust_from_ingot`)
}
})
})
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.

View File

@@ -0,0 +1,11 @@
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.
ServerEvents.tags('item', allthemods => {
allthemods.add('c:dusts', 'alltheores:netherite_dust')
allthemods.add('c:dusts/netherite', 'alltheores:netherite_dust')
allthemods.add('c:storage_blocks/sulfur', 'alltheores:sulfur_block')
})
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.

View File

@@ -0,0 +1,28 @@
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.
ServerEvents.recipes(allthemods => {
allthemods.shapeless(' 9x allthemodium:piglich_heart', ['allthemodium:piglich_heart_block']).id('allthemods:allthemodium/heart_decompression')
allthemods.smithing(
Item.of('kubejs:silent_allthemodium_plate'),
'#c:plates/allthemodium',
'allthemodium:allthemodium_upgrade_smithing_template',
'#c:ingots/netherite'
)
allthemods.smithing(
Item.of('kubejs:silent_vibranium_plate'),
'#c:plates/vibranium',
'allthemodium:vibranium_upgrade_smithing_template',
'#c:ingots/allthemodium'
)
allthemods.smithing(
Item.of('kubejs:silent_unobtainium_plate'),
'#c:plates/unobtainium',
'allthemodium:unobtainium_upgrade_smithing_template',
'#c:ingots/vibranium'
)
})
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.

View File

@@ -0,0 +1,70 @@
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.
ServerEvents.recipes(allthemods => {
function cell(output, item, typeA, typeB, component){
allthemods.shaped(output, [
'GIG',
'XCY',
'AVU'
], {
G: 'ae2:quartz_glass',
I: item,
X: typeA,
C: component,
Y: typeB,
A: 'allthemodium:allthemodium_ingot',
V: 'allthemodium:unobtainium_ingot',
U: 'allthemodium:vibranium_ingot'
}
)
}
cell('kubejs:lava_cell', 'allthecompressed:blazing_crystal_block_3x', 'minecraft:lava_bucket', 'minecraft:lava_bucket', 'megacells:cell_component_256m')
cell('kubejs:dirt_cell', 'allthecompressed:dirt_5x', 'minecraft:water_bucket', 'minecraft:mud', 'megacells:cell_component_256m')
cell('kubejs:moss_cell', 'allthecompressed:moss_block_5x', 'minecraft:bone_block', 'minecraft:bone_block', 'megacells:cell_component_256m')
cell('kubejs:andesite_cell', 'allthecompressed:andesite_5x', 'minecraft:water_bucket', 'minecraft:lava_bucket', 'megacells:cell_component_256m')
cell('kubejs:diorite_cell', 'allthecompressed:diorite_5x', 'minecraft:water_bucket', 'minecraft:lava_bucket', 'megacells:cell_component_256m')
cell('kubejs:granite_cell', 'allthecompressed:granite_5x', 'minecraft:water_bucket', 'minecraft:lava_bucket', 'megacells:cell_component_256m')
cell('kubejs:tuff_cell', 'allthecompressed:tuff_5x', 'minecraft:water_bucket', 'minecraft:lava_bucket', 'megacells:cell_component_256m')
cell('kubejs:gravel_cell', 'allthecompressed:gravel_5x', 'mekanism:crusher', 'mekanism:crusher', 'extendedae:infinity_cobblestone_cell')
cell('kubejs:sand_cell', 'allthecompressed:sand_5x', 'mekanism:crusher', 'mekanism:crusher', 'kubejs:gravel_cell')
cell('kubejs:red_sand_cell', 'allthecompressed:red_sand_5x', 'minecraft:lava_bucket', 'minecraft:lava_bucket', 'kubejs:sand_cell')
cell('kubejs:end_stone_cell', 'allthecompressed:end_stone_5x', 'minecraft:purpur_block', 'minecraft:purpur_block', 'megacells:cell_component_256m')
cell('kubejs:netherrack_cell', 'allthecompressed:netherrack_5x', 'minecraft:lava_bucket', 'minecraft:gravel', 'megacells:cell_component_256m')
cell('kubejs:clay_cell', 'allthecompressed:clay_5x', 'minecraft:mud', 'minecraft:mud', 'megacells:cell_component_256m')
cell('kubejs:blackstone_cell', 'allthecompressed:blackstone_5x', 'minecraft:lava_bucket', 'minecraft:blue_ice', 'megacells:cell_component_256m')
cell('kubejs:basalt_cell', 'allthecompressed:basalt_5x', 'minecraft:lava_bucket', 'minecraft:blue_ice', 'megacells:cell_component_256m')
cell('kubejs:calcite_cell', 'allthecompressed:calcite_5x', 'minecraft:water_bucket', 'minecraft:bone_block', 'megacells:cell_component_256m')
cell('kubejs:cobbled_deepslate_cell', 'allthecompressed:cobbled_deepslate_5x', 'minecraft:lava_bucket', 'minecraft:packed_ice', 'megacells:cell_component_256m')
cell('kubejs:soul_sand_cell', 'allthecompressed:soul_sand_5x', 'minecraft:lava_bucket', 'minecraft:sand', 'megacells:cell_component_256m')
cell('kubejs:sky_stone_cell', 'allthecompressed:sky_stone_block_5x', 'minecraft:lava_bucket', 'ae2:sky_dust', 'megacells:cell_component_256m')
cell('kubejs:kivi_cell', 'allthecompressed:kivi_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:ancient_stone_cell', 'allthecompressed:ancient_stone_5x', 'minecraft:lava_bucket', 'minecraft:lava_bucket', 'megacells:cell_component_256m')
cell('kubejs:certus_quartz_cell', 'allthecompressed:certus_quartz_block_5x', 'minecraft:lava_bucket', 'minecraft:lava_bucket', 'megacells:cell_component_256m')
cell('kubejs:redstone_cell', 'allthecompressed:redstone_block_5x', 'minecraft:lava_bucket', 'minecraft:lava_bucket', 'megacells:cell_component_256m')
cell('kubejs:glowstone_cell', 'allthecompressed:glowstone_5x', 'minecraft:lava_bucket', 'minecraft:lava_bucket', 'megacells:cell_component_256m')
cell('kubejs:stone_cell', 'allthecompressed:stone_5x', 'minecraft:water_bucket', 'minecraft:lava_bucket', 'megacells:cell_component_256m')
cell('kubejs:obsidian_cell', 'allthecompressed:obsidian_5x', 'minecraft:water_bucket', 'minecraft:lava_bucket', 'megacells:cell_component_256m')
cell('kubejs:white_cell', 'allthecompressed:white_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:light_gray_cell', 'allthecompressed:light_gray_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:gray_cell', 'allthecompressed:gray_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:black_cell', 'allthecompressed:black_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:brown_cell', 'allthecompressed:brown_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:red_cell', 'allthecompressed:red_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:orange_cell', 'allthecompressed:orange_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:yellow_cell', 'allthecompressed:yellow_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:green_cell', 'allthecompressed:green_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:lime_cell', 'allthecompressed:lime_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:cyan_cell', 'allthecompressed:cyan_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:light_blue_cell', 'allthecompressed:light_blue_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:blue_cell', 'allthecompressed:blue_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:purple_cell', 'allthecompressed:purple_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:magenta_cell', 'allthecompressed:magenta_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
cell('kubejs:pink_cell', 'allthecompressed:pink_concrete_5x', 'minecraft:lava_bucket', 'minecraft:water_bucket', 'megacells:cell_component_256m')
})
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.

View File

@@ -0,0 +1,24 @@
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.
ServerEvents.recipes(allthemods => {
global.potions_server.forEach(potion => {
allthemods.shaped(`potionsmaster:${potion.id}_oresight_powder`, [
'EGR',
'OPM',
' '
],{
E: 'potionsmaster:ender_powder',
G: 'minecraft:glowstone_dust',
M: 'potionsmaster:tile_mortar',
P: 'potionsmaster:pestle',
R: 'minecraft:redstone',
O: `${potion.item}`
})
allthemods.blasting(`1x potionsmaster:calcinated_${potion.id}_oresight_powder`, `potionsmaster:${potion.id}_oresight_powder`, 5,200)
})
})
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.

View File

@@ -0,0 +1,14 @@
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.
ServerEvents.tags('item', allthemods => {
//Potionsmaster
global.potions_server.forEach(potion => {
allthemods.add(`potionsmaster:calcinated/${potion.id}`, `potionsmaster:calcinated_${potion.id}_oresight_powder`)
})
})
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.

View File

@@ -0,0 +1,94 @@
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.
ServerEvents.tags('item', allthemods => {
allthemods.add('c:storage_blocks/blaze_powder', 'kubejs:blaze_powder_block')
allthemods.add('c:storage_blocks/blaze_rod', 'kubejs:blaze_block')
})
ServerEvents.recipes(allthemods => {
//Blaze Powder
allthemods.shaped('kubejs:blaze_powder_block', [
'SSS',
'SSS',
'SSS'
], {
S: 'minecraft:blaze_powder'
})
allthemods.shapeless('9x minecraft:blaze_powder', [ // arg 1: output
'kubejs:blaze_powder_block'
])
//Blaze Block
// allthemods.shaped('kubejs:blaze_block', [
// 'SSS',
// 'SSS',
// 'SSS'
// ], {
// S: 'minecraft:blaze_rod'
// })
// allthemods.shapeless('9x minecraft:blaze_rod', [ // arg 1: output
// 'kubejs:blaze_block'
// ])
function bulk_energizing(input, input_number, output, energy, id) {
allthemods.remove({id: `powah:energizing/${id}`})
let loop = 0
let ingredients = []
while (loop <= 5) {
for(let item = 1;item <= input_number; item++ ){
ingredients.push({ tag: input });
}
allthemods.custom(
{
type: "powah:energizing",
energy: energy * (ingredients.length / input_number),
ingredients: ingredients,
result: {
count: (loop + input_number) / input_number,
id: output
}
}
).id(`kubejs:energizing/${(loop + input_number) / input_number}x_${id}`)
loop = loop + input_number
}
}
function energizing(input, output, energy, id) {
let recipe = {
"type": "powah:energizing",
"energy": energy,
"ingredients": [],
"result": {
"count": output.count || 1,
"id": output.item
}
};
for(let item = 1;item <= input.count; item++ ){
let ingredients = {}
if (input.tag) {
ingredients.tag = input.tag;
} else {
ingredients.item = input.item;
}
recipe.ingredients.push(ingredients);
}
allthemods.custom(recipe).id(`kubejs:energizing/${id}`);
}
bulk_energizing('c:gems/certus_quartz', 1, 'ae2:charged_certus_quartz_crystal', 20000, 'charged_certus_quartz_crystal')
bulk_energizing('c:ices/blue', 2, 'powah:dry_ice', 10000, 'dry_ice')
bulk_energizing('c:gems/redstone', 1, 'appflux:charged_redstone', 20000, 'charged_redstone')
bulk_energizing('c:storage_blocks/redstone', 1, 'appflux:charged_redstone_block', 180000, 'charged_redstone_block')
bulk_energizing('c:ingots/uranium', 1, 'powah:uraninite', 30000, 'uraninite_from_uranium')
bulk_energizing('c:raw_materials/uraninite', 1, 'powah:uraninite', 2000, 'uraninite_from_raw')
bulk_energizing('c:storage_blocks/uranium', 1, 'powah:uraninite_block', 270000, 'uraninite_from_uranium_block')
energizing({tag: 'c:storage_blocks/blaze_powder', count: 4 }, {item: 'powah:blazing_crystal_block'},1080000, 'blazing_crystal_from_powder_block')
energizing({tag: 'c:storage_blocks/blaze_rod', count: 1}, {item: 'powah:blazing_crystal_block'},1080000, 'blazing_crystal_from_block')
})
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.

View File

@@ -0,0 +1,9 @@
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.
ServerEvents.tags('item',allthemods => {
allthemods.add('c:storage_blocks/blaze_rod', 'allthecompressed:blaze_rod_block')
})
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.