Тестовое использование собственного события регистрации информации о предмете в GTM хранилище
This commit is contained in:
@@ -45,4 +45,20 @@ GTCEuStartupEvents.registry('gtceu:recipe_type', 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)
|
||||
})
|
||||
Reference in New Issue
Block a user