[BUG] [AUTHOR] name = "Doniazade" email = "86292752+Doniazade@users.noreply.github.com" [AUTHOR] Co-authored-by: Doniazade <86292752+Doniazade@users.noreply.github.com>
65 lines
2.1 KiB
Groovy
65 lines
2.1 KiB
Groovy
import com.nomiceu.nomilabs.util.LabsModeHelper
|
|
import net.minecraft.enchantment.Enchantment
|
|
import net.minecraft.item.ItemStack
|
|
|
|
import static gregtech.api.GTValues.*
|
|
|
|
/* Airtight Seal Recipes */
|
|
// Industrial Rebreather Kit -> Airtight Seal
|
|
mods.enderio.enchanter.recipeBuilder()
|
|
.enchantment(enchantment('advancedrocketry:spacebreathing'))
|
|
.input(item('nomilabs:industrial_rebreather_kit'))
|
|
.amountPerLevel(1)
|
|
.xpCostMultiplier(3) // 27 Levels, 15 Lapis
|
|
.register()
|
|
|
|
// Recipes for Industrial Rebreather Kit
|
|
int airtightId = Enchantment.getEnchantmentID(enchantment('advancedrocketry:spacebreathing'))
|
|
ItemStack airtight = item('minecraft:enchanted_book').withNbt(['StoredEnchantments': [['id': (short) airtightId, 'lvl': (short) 1]]])
|
|
|
|
if (LabsModeHelper.normal) {
|
|
mods.gregtech.assembler.recipeBuilder()
|
|
.inputs(
|
|
ore('foilAluminium') * 32,
|
|
metaitem('duct_tape') * 16,
|
|
item('nomilabs:cloth') * 8,
|
|
metaitem('carbon.mesh') * 4,
|
|
metaitem('fluid.regulator.hv'),
|
|
metaitem('gas_collector.mv'),
|
|
item('advancedrocketry:pressuretank', 1), // Normal Pressure Tank
|
|
).fluidInputs(fluid('rubber') * 1296)
|
|
.outputs(item('nomilabs:industrial_rebreather_kit'))
|
|
.duration(500).EUt(VA[HV])
|
|
.buildAndRegister()
|
|
} else {
|
|
ItemStack respiration = item('minecraft:enchanted_book')
|
|
ItemStack holding = respiration.copy()
|
|
|
|
respiration.addEnchantment(enchantment('minecraft:respiration'), 1)
|
|
holding.addEnchantment(enchantment('cofhcore:holding'), 1)
|
|
|
|
mods.extendedcrafting.table_crafting.shapedBuilder()
|
|
.tierAdvanced()
|
|
.output(item('nomilabs:industrial_rebreather_kit'))
|
|
.matrix(
|
|
'RMCMR',
|
|
'TAZAT',
|
|
'FDPDF',
|
|
'TAYAT',
|
|
'RXBXR',
|
|
)
|
|
.key('R', ore('ringStyreneButadieneRubber'))
|
|
.key('M', metaitem('carbon.mesh'))
|
|
.key('C', metaitem('gas_collector.mv'))
|
|
.key('T', ore('plateDoubleTitanium'))
|
|
.key('P', item('advancedrocketry:pressuretank', 1)) // Normal Pressure Tank
|
|
.key('Z', respiration)
|
|
.key('F', metaitem('fluid.regulator.ev'))
|
|
.key('A', metaitem('pipeSmallFluidPolytetrafluoroethylene'))
|
|
.key('D', ore('dustQuicklime'))
|
|
.key('Y', holding)
|
|
.key('B', metaitem('chemical_reactor.mv'))
|
|
.key('X', metaitem('duct_tape'))
|
|
.register()
|
|
}
|