fixes + improvements for emi world interaction page
This commit is contained in:
11
kubejs/client_scripts/main_client_script.js
Normal file
11
kubejs/client_scripts/main_client_script.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// priority: 1
|
||||
|
||||
console.log('TerraFirmaGreg the best modpack in the world :)')
|
||||
|
||||
/**
|
||||
* Событие регистрации любых ассетов на клиентской стороне.
|
||||
*/
|
||||
ClientEvents.highPriorityAssets(event => {
|
||||
registerMinecraftAssets(event)
|
||||
registerTFCAssets(event)
|
||||
})
|
||||
25
kubejs/client_scripts/minecraft/assets.js
Normal file
25
kubejs/client_scripts/minecraft/assets.js
Normal file
@@ -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
|
||||
}
|
||||
25
kubejs/client_scripts/tfc/assets.js
Normal file
25
kubejs/client_scripts/tfc/assets.js
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user