Skip to content

Commit

Permalink
Merge pull request #2766 from MikaylaFischler/pcr-mek-plastic-conflict
Browse files Browse the repository at this point in the history
Resolve conflict between transparent plastic blocks and construction bricks
  • Loading branch information
jeremiahwinsley authored Dec 5, 2021
2 parents 4fc985c + 806cf6d commit 3888eb7
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 3888eb7

Please sign in to comment.