diff --git a/kubejs/client_scripts/main_client_script.js b/kubejs/client_scripts/main_client_script.js new file mode 100644 index 000000000..c4ac804c5 --- /dev/null +++ b/kubejs/client_scripts/main_client_script.js @@ -0,0 +1,11 @@ +// priority: 1 + +console.log('TerraFirmaGreg the best modpack in the world :)') + +/** + * Событие регистрации любых ассетов на клиентской стороне. + */ +ClientEvents.highPriorityAssets(event => { + registerMinecraftAssets(event) + registerTFCAssets(event) +}) \ No newline at end of file diff --git a/kubejs/client_scripts/minecraft/assets.js b/kubejs/client_scripts/minecraft/assets.js new file mode 100644 index 000000000..36ba65eaf --- /dev/null +++ b/kubejs/client_scripts/minecraft/assets.js @@ -0,0 +1,25 @@ +// priority: 0 + +const registerMinecraftAssets = (e) => { + + //#region Обработка дерева топором + global.MINECRAFT_NETHER_WOOD_TYPES.forEach(woodName => { + const logJson = { + type: 'emi:world_interaction', + left: `item:minecraft:${woodName}_stem`, + right: '#item:minecraft:axes', + output: `item:minecraft:stripped_${woodName}_stem` + } + + const woodJson = { + type: 'emi:world_interaction', + left: `item:minecraft:${woodName}_hyphae`, + right: '#item:minecraft:axes', + output: `item:minecraft:stripped_${woodName}_hyphae` + } + + e.add(`emi:recipe/additions/vanilla_nether_${woodName}_wood_conversion`, logJson) + e.add(`emi:recipe/additions/vanilla_nether_${woodName}_wood_conversion`, woodJson) + }) + //#endregion +} \ No newline at end of file diff --git a/kubejs/client_scripts/tfc/assets.js b/kubejs/client_scripts/tfc/assets.js new file mode 100644 index 000000000..8a8d590e8 --- /dev/null +++ b/kubejs/client_scripts/tfc/assets.js @@ -0,0 +1,25 @@ +// priority: 0 + +const registerTFCAssets = (e) => { + + //#region Обработка дерева топором + global.TFC_WOOD_TYPES.forEach(woodName => { + const logJson = { + type: 'emi:world_interaction', + left: `item:tfc:wood/log/${woodName}`, + right: '#item:minecraft:axes', + output: `item:tfc:wood/stripped_log/${woodName}` + } + + const woodJson = { + type: 'emi:world_interaction', + left: `item:tfc:wood/wood/${woodName}`, + right: '#item:minecraft:axes', + output: `item:tfc:wood/stripped_wood/${woodName}` + } + + e.add(`emi:recipe/additions/tfc_${woodName}_wood_conversion`, logJson) + e.add(`emi:recipe/additions/tfc_${woodName}_wood_conversion`, woodJson) + }) + //#endregion +} \ No newline at end of file