Skip to content

Commit

Permalink
Resolve conflict between Mekanism transparent plastic blocks and Pneu…
Browse files Browse the repository at this point in the history
…maticCraft construction bricks
  • Loading branch information
MikaylaFischler committed Dec 5, 2021
1 parent 4fc985c commit 806cf6d
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,15 @@ onEvent('recipes', e => {
'count': 1
}], 'pneumaticcraft:empty_pcb', 3, 1.5)
e.remove({ id: 'pneumaticcraft:pressure_chamber/empty_pcb' })

// change construction bricks to only take pneumaticcraft:plastic
function brickRecipe(color) {
e.shaped(`pneumaticcraft:plastic_brick_${color}`, ['PPP', 'PDP', 'PPP'], {
P: 'pneumaticcraft:plastic',
D: `#forge:dyes/${color}`
}).id(`kubejs:pneumaticcraft/plastic_brick_${color}`)
e.remove({ id: `pneumaticcraft:plastic_brick_${color}` })
}

colors.forEach(color => brickRecipe(color))
})

0 comments on commit 806cf6d

Please sign in to comment.