Тестовое использование собственного события регистрации информации о предмете в GTM хранилище
This commit is contained in:
parent
9df416bee0
commit
236f05db27
1 changed files with 16 additions and 0 deletions
|
|
@ -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)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue