neuralgia/kubejs/startup_scripts/main_startup_script.js

64 lines
No EOL
1.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// priority: 1
/**
* Событие регистрации предметов.
*/
StartupEvents.registry('item', event => {
registerGTCEuItems(event)
})
/**
* Событие регистрации блоков.
*/
StartupEvents.registry('block', event => {
registerGTCEuBlocks(event)
})
/**
* Событие изменения блоков.
*/
BlockEvents.modification(event => {
modifyFirmaCivBlocks(event)
})
/**
* Событие изменения предметов.
*/
ItemEvents.modification(event => {})
/**
* Событие регистрации жидкостей.
*/
StartupEvents.registry('fluid', event => {})
/**
* Событие регистрации типов рецептов.
*/
GTCEuStartupEvents.registry('gtceu:recipe_type', event => {
registerGTCEuRecipeTypes(event)
})
/**
* Событие регистрации механизмов.
*/
GTCEuStartupEvents.registry('gtceu:machine', event => {
registerGTCEuMachines(event)
})
/**
* Событие регистрации информации о составе предмета.
*/
TFGStartupEvents.materialInfo(event => {
const testMaterial1 = GTMaterials.Copper;
const testMaterial2 = GTMaterials.Tin;
const b = new ItemMaterialInfo(new MaterialStack(testMaterial1, GTValues.M), new MaterialStack(testMaterial2, GTValues.M))
event.remove('minecraft:acacia_planks')
event.add('minecraft:acacia_planks', b)
})