Version 1.0.19b
This commit is contained in:
28
minecraft/kubejs/client_scripts/mekanismClient.js
Normal file
28
minecraft/kubejs/client_scripts/mekanismClient.js
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
Mekanism items for processing stack
|
||||
Authored by EnigmaQuip
|
||||
|
||||
DO NOT EDIT BELOW
|
||||
only the startup script should need editing
|
||||
*/
|
||||
|
||||
ClientEvents.highPriorityAssets(event => {
|
||||
const mekItems = ['clump', 'crystal', 'dirty_dust', 'shard']
|
||||
global.mekStackAdditions.forEach(entry => {
|
||||
event.addLang(`slurry.kubejs.clean_${entry.material}`, snakeCaseToUpperCase(`clean_${entry.material}_slurry`))
|
||||
event.addLang(`slurry.kubejs.dirty_${entry.material}`, snakeCaseToUpperCase(`dirty_${entry.material}_slurry`))
|
||||
mekItems.forEach(type => {
|
||||
event.addLang(`item.kubejs.${type}_${entry.material}`, snakeCaseToUpperCase(`${entry.material}_${type}`))
|
||||
})
|
||||
if (entry.makeDust) {
|
||||
event.addLang(`item.kubejs.dust_${entry.material}`, snakeCaseToUpperCase(`${entry.material}_dust`))
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
function snakeCaseToUpperCase(input) {
|
||||
return String(input)
|
||||
.split("_")
|
||||
.map((word) => `${word[0].toUpperCase()}${word.slice(1)}`)
|
||||
.join(" ");
|
||||
}
|
||||
Reference in New Issue
Block a user