From 236f05db27ca3faa7ffd9c572cafd81a5d78589e Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sat, 1 Jun 2024 23:47:16 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D1=81=D1=82=D0=BE=D0=B2=D0=BE?= =?UTF-8?q?=D0=B5=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=81=D0=BE=D0=B1=D1=81=D1=82=D0=B2?= =?UTF-8?q?=D0=B5=D0=BD=D0=BD=D0=BE=D0=B3=D0=BE=20=D1=81=D0=BE=D0=B1=D1=8B?= =?UTF-8?q?=D1=82=D0=B8=D1=8F=20=D1=80=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=B8=20=D0=B8=D0=BD=D1=84=D0=BE=D1=80=D0=BC?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=B8=20=D0=BE=20=D0=BF=D1=80=D0=B5=D0=B4?= =?UTF-8?q?=D0=BC=D0=B5=D1=82=D0=B5=20=D0=B2=20GTM=20=D1=85=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=BB=D0=B8=D1=89=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kubejs/startup_scripts/main_startup_script.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/kubejs/startup_scripts/main_startup_script.js b/kubejs/startup_scripts/main_startup_script.js index fcf3f4ac..6f9a352f 100644 --- a/kubejs/startup_scripts/main_startup_script.js +++ b/kubejs/startup_scripts/main_startup_script.js @@ -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) }) \ No newline at end of file