Skip to content

Commit

Permalink
Merge pull request #1207 from AllTheMods/MekCobalt
Browse files Browse the repository at this point in the history
Add entire mek processing stack for Cobalt
  • Loading branch information
whatthedrunk authored Jul 13, 2022
2 parents 82cc7d7 + 6fd6dc3 commit f5ffbd0
Show file tree
Hide file tree
Showing 6 changed files with 244 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
233 changes: 233 additions & 0 deletions kubejs/server_scripts/mod_specific/mekanism/cobalt.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
onEvent('tags.items', event => {
event.add('mekanism:clumps', 'kubejs:clump_cobalt')
event.add('mekanism:clumps/cobalt', 'kubejs:clump_cobalt')
event.add('mekanism:shards', 'kubejs:shard_cobalt')
event.add('mekanism:shards/cobalt', 'kubejs:shard_cobalt')
event.add('mekanism:crystals', 'kubejs:crystal_cobalt')
event.add('mekanism:crystals/cobalt', 'kubejs:crystal_cobalt')
event.add('mekanism:dirty_dusts', 'kubejs:dirty_dust_cobalt')
event.add('mekanism:dirty_dusts/cobalt', 'kubejs:dirty_dust_cobalt')
})

onEvent('recipes', event => {
event.custom({
'type': 'mekanism:dissolution',
'output': {
"slurry": "kubejs:dirty_cobalt",
"amount": 6000,
"chemicalType": "slurry"
},
'gasInput': {
"amount": 2,
"gas": "mekanism:sulfuric_acid"
},
'itemInput': Ingredient.of('#forge:storage_blocks/raw_cobalt')
}).id('kubejs:processing/cobalt/slurry/dirty/from_raw_block')
event.custom({
'type': 'mekanism:dissolution',
'output': {
"slurry": "kubejs:dirty_cobalt",
"amount": 1000,
"chemicalType": "slurry"
},
'gasInput': {
"amount": 1,
"gas": "mekanism:sulfuric_acid"
},
'itemInput': Ingredient.of('#forge:ores/cobalt')
}).id('kubejs:processing/cobalt/slurry/dirty/from_ore')
event.custom({
'type': 'mekanism:dissolution',
'output': {
"slurry": "kubejs:dirty_cobalt",
"amount": 2000,
"chemicalType": "slurry"
},
'gasInput': {
"amount": 1,
"gas": "mekanism:sulfuric_acid"
},
'itemInput': Ingredient.of('#forge:raw_materials/cobalt').withCount(3)
}).id('kubejs:processing/cobalt/slurry/dirty/from_raw_ore')

event.custom({
"type": "mekanism:washing",
"fluidInput": {
"amount": 5,
"tag": "minecraft:water"
},
"slurryInput": {
"amount": 1,
"slurry": "kubejs:dirty_cobalt"
},
"output": {
"slurry": "kubejs:clean_cobalt",
"amount": 1
}
}).id('kubejs:processing/cobalt/slurry/clean')

event.custom({
"type": "mekanism:crystallizing",
"chemicalType": "slurry",
"input": {
"amount": 200,
"slurry": "kubejs:clean_cobalt"
},
"output": {
"item": "kubejs:crystal_cobalt"
}
}).id('kubejs:processing/cobalt/crystal/from_slurry')

event.custom({
"type": "mekanism:injecting",
"itemInput": {
"ingredient": {
"tag": "forge:ores/cobalt"
}
},
"chemicalInput": {
"amount": 1,
"gas": "mekanism:hydrogen_chloride"
},
"output": {
"item": "kubejs:shard_cobalt",
"count": 4
}
}).id('kubejs:processing/cobalt/shard/from_ore')
event.custom({
"type": "mekanism:injecting",
"itemInput": {
"amount": 3,
"ingredient": {
"tag": "forge:raw_materials/cobalt"
}
},
"chemicalInput": {
"amount": 1,
"gas": "mekanism:hydrogen_chloride"
},
"output": {
"item": "kubejs:shard_cobalt",
"count": 8
}
}).id('kubejs:processing/cobalt/shard/from_raw_ore')
event.custom({
"type": "mekanism:injecting",
"itemInput": {
"ingredient": {
"tag": "mekanism:crystals/cobalt"
}
},
"chemicalInput": {
"amount": 1,
"gas": "mekanism:hydrogen_chloride"
},
"output": {
"item": "kubejs:shard_cobalt"
}
}).id('kubejs:processing/cobalt/shard/from_crystal')
event.custom({
"type": "mekanism:injecting",
"itemInput": {
"ingredient": {
"tag": "forge:storage_blocks/raw_cobalt"
}
},
"chemicalInput": {
"amount": 2,
"gas": "mekanism:hydrogen_chloride"
},
"output": {
"item": "kubejs:shard_cobalt",
"count": 24
}
}).id('kubejs:processing/cobalt/shard/from_raw_block')

event.custom({
"type": "mekanism:purifying",
"itemInput": {
"ingredient": {
"tag": "forge:storage_blocks/raw_cobalt"
}
},
"chemicalInput": {
"amount": 2,
"gas": "mekanism:oxygen"
},
"output": {
"item": "kubejs:clump_cobalt",
"count": 18
}
}).id('kubejs:processing/cobalt/clump/from_raw_block')
event.custom({
"type": "mekanism:purifying",
"itemInput": {
"ingredient": {
"tag": "mekanism:shards/cobalt"
}
},
"chemicalInput": {
"amount": 1,
"gas": "mekanism:oxygen"
},
"output": {
"item": "kubejs:clump_cobalt"
}
}).id('kubejs:processing/cobalt/clump/from_shard')
event.custom({
"type": "mekanism:purifying",
"itemInput": {
"ingredient": {
"tag": "forge:ores/cobalt"
}
},
"chemicalInput": {
"amount": 1,
"gas": "mekanism:oxygen"
},
"output": {
"item": "kubejs:clump_cobalt",
"count": 3
}
}).id('kubejs:processing/cobalt/clump/from_ore')
event.custom({
"type": "mekanism:purifying",
"itemInput": {
"ingredient": {
"tag": "forge:raw_materials/cobalt"
}
},
"chemicalInput": {
"amount": 1,
"gas": "mekanism:oxygen"
},
"output": {
"item": "kubejs:clump_cobalt",
"count": 2
}
}).id('kubejs:processing/cobalt/clump/from_raw_ore')

event.custom({
"type": "mekanism:crushing",
"input": {
"ingredient": {
"tag": "mekanism:clumps/cobalt"
}
},
"output": {
"item": "kubejs:dirty_dust_cobalt"
}
}).id('kubejs:processing/cobalt/dirty_dust/from_clump')

event.custom({
"type": "mekanism:enriching",
"input": {
"ingredient": {
"tag": "mekanism:dirty_dusts/cobalt"
}
},
"output": {
"item": "kubejs:cobalt_dust"
}
}).id('kubejs:processing/cobalt/dust/from_dirty_dust')
})
11 changes: 11 additions & 0 deletions kubejs/startup_scripts/customMekanism.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
onEvent('mekanism.slurry.registry', event => {
event.create("dirty_cobalt", "dirty").color(0x0043A5).ore('forge:ores/cobalt')
event.create("clean_cobalt", "clean").color(0x0043A5).ore('forge:ores/cobalt')
})

onEvent('item.registry',event => {
event.create('clump_cobalt').displayName('Cobalt Clump')
event.create('crystal_cobalt').displayName('Cobalt Crystal')
event.create('dirty_dust_cobalt').displayName('Dirty Cobalt Dust')
event.create('shard_cobalt').displayName('Cobalt Shard')
})

0 comments on commit f5ffbd0

Please sign in to comment.