Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry committed Jun 2, 2024
1 parent ccfa3ad commit c4b73a2
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
37 changes: 37 additions & 0 deletions kubejs/startup_scripts/gtceu/material_info.js
Original file line number Diff line number Diff line change
@@ -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);
};
6 changes: 3 additions & 3 deletions kubejs/startup_scripts/main_startup_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ GTCEuStartupEvents.registry('gtceu:machine', event => {
/**
* Событие регистрации информации о составе предмета.
*/
TFGStartupEvents.materialInfo(event => {
registerGTCEuMaterialInfo(event)
})
// TFGStartupEvents.materialInfo(event => {
// registerGTCEuMaterialInfo(event)
// })

0 comments on commit c4b73a2

Please sign in to comment.