Skip to content

Commit

Permalink
Tweak bloomery recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
lonevox committed Jul 17, 2024
1 parent 6d6f694 commit 221b7fc
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions kubejs/server_scripts/Mods/Greg/Bloomery.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ServerEvents.recipes(event => {
bloomeryRecipe('gtceu:bronze_bloom', 900, '4x gtceu:bronze_bloom', ['3x minecraft:copper_ingot', 'gtceu:tin_ingot', '2x #minecraft:coals'])
bloomeryRecipe('gtceu:andesite_alloy_bloom', 900, 'gtceu:andesite_alloy_bloom', ['gtceu:wrought_iron_ingot', 'minecraft:andesite', '2x #minecraft:coals'])
bloomeryRecipe('gtceu:redstone_bloom', 900, 'gtceu:redstone_bloom', ['gtceu:raw_redstone', '#minecraft:coals'])
bloomeryRecipe('gtceu:iron_bloom', 900, 'gtceu:iron_bloom', ['gtceu:wrought_iron_nugget', '#minecraft:coals'])
bloomeryRecipe('gtceu:iron_bloom', 300, 'gtceu:iron_bloom', ['gtceu:wrought_iron_nugget', '#minecraft:coals'])

// Other bloomery recipes
bloomeryRecipe('kubejs:stone', 300, 'minecraft:stone', ['minecraft:cobblestone', '#minecraft:coals'])
Expand All @@ -30,17 +30,27 @@ ServerEvents.recipes(event => {
metalworkingRecipe('9x gtceu:wrought_iron_nugget', 'gtceu:wrought_iron_bloom', 'kubejs:nugget_wooden_form')
metalworkingRecipe('gtceu:andesite_alloy_ingot', 'gtceu:andesite_alloy_bloom', 'gtceu:brick_wooden_form')
metalworkingRecipe('9x gtceu:andesite_alloy_nugget', 'gtceu:andesite_alloy_bloom', 'kubejs:nugget_wooden_form')
metalworkingRecipe('minecraft:redstone', 'gtceu:redstone_bloom', 'gtceu:brick_wooden_form')
metalworkingRecipe('minecraft:redstone', 'gtceu:redstone_bloom')
metalworkingRecipe('minecraft:iron_nugget', 'gtceu:iron_bloom', 'kubejs:nugget_wooden_form')

function metalworkingRecipe(output, input, form) {
event.shapeless(
Item.of(output),
[
form,
['kubejs:stone_hammer', '#forge:tools/hammers'],
input
]
).keepIngredient(form).damageIngredient('kubejs:stone_hammer')
if (form != undefined) {
event.shapeless(
Item.of(output),
[
form,
['kubejs:stone_hammer', '#forge:tools/hammers'],
input
]
).keepIngredient(form).damageIngredient('kubejs:stone_hammer')
} else {
event.shapeless(
Item.of(output),
[
['kubejs:stone_hammer', '#forge:tools/hammers'],
input
]
).damageIngredient('kubejs:stone_hammer')
}
}
})

0 comments on commit 221b7fc

Please sign in to comment.