ItemEvents.toolTierRegistry((event) => {
for (var i = 0; i < cases.length; i++) {
event.add("kubejs:" + cases[i][0], global.tooltipCase(cases[i][0]));
}
});
const cases = [
['bonus_case', 'Bonus кейс'],
['silver_case', 'Silver кейс'],
['gold_case', 'Gold кейс'],
['diamond_case', 'Diamond кейс'],
['draconic_case', 'Draconic кейс'],
['botania_case', 'Botania кейс'],
['solar_case', 'Solar кейс']
];
global.getCases = function(){
return cases;
}
StartupEvents.registry('item', e => {
for(var i = 0; i < cases.length; i++){
e.create(cases[i][0]).displayName(cases[i][1]).maxStackSize(64);
}
});
global.getCaseContent = function(id){
switch(id){
case 'bonus_case':
return [
['32x minecraft:lapis_lazuli',
'32x minecraft:redstone',
'32x minecraft:string',
'16x minecraft:feather',
'16x minecraft:leather',
'16x minecraft:slime_ball',
'minecraft:cake',
'64x minecraft:cooked_porkchop'],
['16x minecraft:copper_ingot',
'16x create:brass_ingot',
'16x minecraft:iron_ingot',
'16x minecraft:gold_ingot',
'64x minecraft:glowstone_dust'],
['16x minecraft:diamond',
'4x minecraft:ghast_tear',
'4x minecraft:gold_block',
'4x minecraft:iron_block',
'4x minecraft:diamond_block'],
['minecraft:netherite_sword',
'minecraft:netherite_pickaxe',
'minecraft:netherite_chestplate'],
['minecraft:elytra',
'minecraft:nether_star']
];
case 'silver_case':
return [
['32x minecraft:iron_ingot',
'32x minecraft:ingot_copper',
'32x mekanism:ingot_tin',
'16x minecraft:diamond'],
['16x immersiveengineering:steel_scaffolding_standard',
'8x immersiveengineering:rs_engineering',
'8x immersiveengineering:heavy_engineering',
'8x immersiveengineering:light_engineering',
'16x minecraft:emerald'],
['2x mekanism:pellet_antimatter'],
['32x minecraft:diamond'],
['2x minecraft:nether_star']
];
case 'gold_case':
return [                
['8x mekanism:upgrade_speed',
'8x mekanism:upgrade_energy',
'8x mekanism:basic_control_circuit'],
['8x mekanism:basic_tier_installer',
'8x mekanism:steel_casing',
'8x mekanism:advanced_control_circuit'],
['8x mekanism:advanced_tier_installer',
'8x mekanism:elite_tier_installer',
'mekanism:ultimate_energy_cube',
'8x mekanism:elite_control_circuit'],
['8x mekanism:ultimate_control_circuit',
'64x mekanism:ultimate_universal_cable',
'8x mekanism:ultimate_tier_installer'],
['8x minecraft:nether_star']
];
case 'diamond_case':
return [                
['32x mekanism:block_tin',
'32x mekanism:block_lead',
'32x mekanism:block_uranium',
'64x minecraft:gold_block',
'64x minecraft:iron_block',
'24x mekanism:block_osmium',
'16x minecraft:diamond_block'],
['mekanism:ultimate_energy_cube',
'64x mekanism:basic_control_circuit',
'32x minecraft:copper_block'],
['64x mekanism:advanced_control_circuit',
'64x mekanism:elite_control_circuit',
'64x mekanism:ultimate_control_circuit',
'32x minecraft:nether_star'],
['8x minecraft:netherite_scrap',
'12x minecraft:dragon_breath',
'8x dragonsurvival:elder_dragon_bone'],
['3x iceandfire:dread_key',
'7x iceandfire:ghost_ingot']
];
case 'botania_case':
return [                
['16x botania:rune_water', 
'16x botania:rune_earth', 
'16x botania:rune_mana', 
'24x botania:manasteel_ingot', 
'64x botania:fertilizer', 
'32x botania:mana_powder', 
'16x botania:rune_fire', 
'16x botania:rune_air', 
'16x botania:mana_diamond', 
'32x botania:mana_string', 
'32x botania:ender_air_bottle', 
'24x botania:mana_pearl',
'4x botania:terrasteel_ingot'],
['16x botania:manaweave_cloth', 
'8x botania:rune_spring', 
'8x botania:rune_autumn', 
'8x botania:rune_winter', 
'botania:mana_ring', 
'botania:mana_tablet', 
'8x botania:rune_summer', 
'64x botania:elementium_ingot'],
['4x botania:kekimurus', 
'6x botania:rune_lust', 
'12x botania:dragonstone', 
'16x botania:pixie_dust', 
'6x botania:rune_wrath', 
'6x botania:rune_greed', 
'6x botania:rune_sloth', 
'6x botania:rune_gluttony', 
'6x botania:rune_pride', 
'4x botania:floating_kekimurus', 
'6x botania:rune_envy', 
'6x botania:terrasteel_ingot', 
'4x botania:life_essence', 
'botania:mana_ring_greater',
'botania:terrasteel_ingot',
'16x botania:manasteel_ingot',
'16x botania:mana_pearl',
'16x botania:mana_diamond',
'4x botania:blacker_lotus',
'botania:magnet_ring',
'16x botania:elementium_ingot',
'8x botania:gaia_ingot',
'16x botania:dragonstone',
'16x botania:pixie_dust',
'32x botania:elementium_ingot',
'64x botania:blacker_lotus'
],
['botania:terrasteel_boots', 
'botania:terra_axe',
'botania:terra_sword', 
'botania:dice', 
'botania:terra_pick',
'botania:terrasteel_leggings',
'botania:terrasteel_chestplate',
'botania:terrasteel_helmet'],
['kubejs:rune_of_dragon',
'kubejs:sin_rune',
'kubejs:rune_of_sins']
];
case 'solar_case':
return [                
['mekanismgenerators:solar_generator', 'mekanismadvancedgenerators:advanced_solar_panel'],
['mekanismadvancedgenerators:hybrid_solar_panel', 'mekanismadvancedgenerators:ultimate_hybrid_solar_panel'],
['mekanismadvancedgenerators:quantum_solar_panel', 'mekanismadvancedgenerators:spectral_solar_panel'],
['mekanismadvancedgenerators:singular_solar_panel', 'mekanismadvancedgenerators:light_absorbing_solar_panel'],
['mekanismadvancedgenerators:photonic_solar_panel', 'mekanismadvancedgenerators:creative_solar_panel']
];
case 'draconic_case':
return [                
['32x draconicevolution:draconium_block',
'24x draconicevolution:draconium_core'],
['16x draconicevolution:wyvern_core',
'draconicevolution:wyvern_capacitor',
'draconicevolution:wyvern_sword',
'draconicevolution:wyvern_hoe',
'draconicevolution:wyvern_shovel',
'draconicevolution:wyvern_axe',
'draconicevolution:item_draconium_energy',
'draconicevolution:item_wyvern_energy',
'draconicevolution:item_draconic_energy',
'draconicevolution:item_wyvern_hill_step',
'draconicevolution:item_wyvern_aoe'],
['2x draconicevolution:awakened_core',
'draconicevolution:draconic_chestpiece',
'draconicevolution:draconic_capacitor',
'4x draconicevolution:awakened_draconium_block',
'draconicevolution:dragon_heart',
'draconicevolution:draconic_pickaxe',
'draconicevolution:draconic_sword',
'draconicevolution:draconic_shovel',
'draconicevolution:draconic_axe'],
['draconicevolution:chaos_shard',
'draconicevolution:draconic_staff'],
['64x minecraft:nether_star']
];
}
return 'Предметы не обнаружены'
}