diff --git a/kubejs/startup_scripts/gtceu/material_info.js b/kubejs/startup_scripts/gtceu/material_info.js new file mode 100644 index 00000000..07238979 --- /dev/null +++ b/kubejs/startup_scripts/gtceu/material_info.js @@ -0,0 +1,37 @@ +// priority: 0 + +const registerGTCEuMaterialInfo = (event) => { + //#region Дерево + + global.VANILLA_WOOD_TYPES.forEach(woodType => { + event.remove(`minecraft:${woodType}_planks`) + event.remove(`minecraft:${woodType}_stairs`) + event.remove(`minecraft:${woodType}_slab`) + event.remove(`minecraft:${woodType}_fence`) + event.remove(`minecraft:${woodType}_fence_gate`) + event.remove(`minecraft:${woodType}_door`) + event.remove(`minecraft:${woodType}_button`) + event.remove(`minecraft:${woodType}_boat`) + }) + + // Сундуки + // removeMaterialInfo(Blocks.CHEST); + // removeMaterialInfo(Blocks.TRAPPED_CHEST); + + // Верстаки + // removeMaterialInfo(Blocks.CRAFTING_TABLE); + + //#endregion + + // 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); +}; diff --git a/kubejs/startup_scripts/main_startup_script.js b/kubejs/startup_scripts/main_startup_script.js index c9f39822..b36fa8b4 100644 --- a/kubejs/startup_scripts/main_startup_script.js +++ b/kubejs/startup_scripts/main_startup_script.js @@ -50,6 +50,6 @@ GTCEuStartupEvents.registry('gtceu:machine', event => { /** * Событие регистрации информации о составе предмета. */ -TFGStartupEvents.materialInfo(event => { - registerGTCEuMaterialInfo(event) -}) \ No newline at end of file +// TFGStartupEvents.materialInfo(event => { +// registerGTCEuMaterialInfo(event) +// }) \ No newline at end of file