Skip to content

Commit

Permalink
feat: 🩸Blood Magic expansion
Browse files Browse the repository at this point in the history
- [Block of Dilithium] meteor now +1 bigger in radius
- `Meteor` ritual now required for Skyblock progression since it would be only source of [Oxidised Ferric Sand]. Previous source from Asteroid Mining replaced to [Moon Turf]
- All meteors now x2 times cheaper, from 300K to 1M LP
- Nuclear meteor now require [Uranium Block] instead of [Thorium Block]
- **Meteors** now leave smoke traces
- **Meteors** now spawning constantly at `Kepler 0119` (dim 123) and `Kepler 0118` (dim 122)
- Fix **Nether** meteor had stone blocks
- `Meteor` HEI tab now shows actual numbers of blocks in each meteor https://i.imgur.com/1zn63sa.png
- All chunk benefication like [Gold Rocky Chunk] => [Gold Chunk] in [Alchemy Table] now require [Explosive Powder] instead of [Cutting Fluid]. Also inputs and outputs increased x2.
- Remove [Plant Oil] from the game since other modded items will be used in recipes instead
- [Antiseptic][Basic Cutting Fluid][Explosive Powder] now using modded items in recipes https://i.imgur.com/dF8K60d.png
- [Titanium Iridium Alloy Sheet] and all other Sheets can be made using Blood magic
- Add 12 new alloy recipes in [Alchemy Table] unsing dusts and [Neuro Toxin]. List of all added recipes: [<advancedrocketry:productdust:1>][<advancedrocketry:productdust>][<qmd:chemical_dust:7>][<thermalfoundation:material:96>][<thermalfoundation:material:96>][<thermalfoundation:material:96>][<thermalfoundation:material:97>][<thermalfoundation:material:98>][<thermalfoundation:material:99>][<thermalfoundation:material:100>][<thermalfoundation:material:101>][<thermalfoundation:material:102>]
  • Loading branch information
Krutoy242 committed May 27, 2024
1 parent d8b3aa1 commit affeb44
Show file tree
Hide file tree
Showing 14 changed files with 365 additions and 76 deletions.
35 changes: 24 additions & 11 deletions config/advRocketry/asteroidConfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,50 +5,63 @@
</asteroid>
<asteroid name="Draconium" distance="75" mass="64" massVariability="1" probability="5" richness="0.7" richnessVariability="0.5">
<ore itemStack="draconicevolution:draconium_ore" chance="100"/>
<ore itemStack="advancedrocketry:hotturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf_dark" chance="25"/>
</asteroid>
<asteroid name="Prosperity" distance="75" mass="64" massVariability="1" probability="5" richness="0.7" richnessVariability="0.5">
<ore itemStack="mysticalagriculture:prosperity_ore" chance="100"/>
<ore itemStack="advancedrocketry:hotturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf_dark" chance="25"/>
</asteroid>
<asteroid name="Dimensional Shard" distance="75" mass="64" massVariability="1" probability="5" richness="0.7" richnessVariability="0.5">
<ore itemStack="rftools:dimensional_shard_ore" chance="100"/>
<ore itemStack="advancedrocketry:hotturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf_dark" chance="25"/>
</asteroid>
<asteroid name="Mana Infused" distance="75" mass="64" massVariability="1" probability="5" richness="0.7" richnessVariability="0.5">
<ore itemStack="thermalfoundation:ore 8" chance="100"/>
<ore itemStack="advancedrocketry:hotturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf_dark" chance="25"/>
</asteroid>
<asteroid name="Destabilized Redstone" distance="75" mass="64" massVariability="1" probability="5" richness="0.7" richnessVariability="0.5">
<ore itemStack="thermalfoundation:ore_fluid 2" chance="100"/>
<ore itemStack="advancedrocketry:hotturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf_dark" chance="25"/>
</asteroid>
<asteroid name="Energized Netherrack" distance="75" mass="64" massVariability="1" probability="5" richness="0.7" richnessVariability="0.5">
<ore itemStack="thermalfoundation:ore_fluid 3" chance="100"/>
<ore itemStack="advancedrocketry:hotturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf_dark" chance="25"/>
</asteroid>
<asteroid name="Resonant End Stone" distance="75" mass="64" massVariability="1" probability="5" richness="0.7" richnessVariability="0.5">
<ore itemStack="thermalfoundation:ore_fluid 4" chance="100"/>
<ore itemStack="advancedrocketry:hotturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf_dark" chance="25"/>
</asteroid>
<asteroid name="Dilithium" distance="75" mass="64" massVariability="1" probability="5" richness="0.7" richnessVariability="0.5">
<ore itemStack="netherendingores:ore_end_modded_1 14" chance="100"/>
<ore itemStack="advancedrocketry:hotturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf_dark" chance="25"/>
</asteroid>
<asteroid name="Titanium" distance="75" mass="64" massVariability="1" probability="5" richness="0.7" richnessVariability="0.5">
<ore itemStack="libvulpes:ore0 8" chance="100"/>
<ore itemStack="advancedrocketry:hotturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf_dark" chance="25"/>
</asteroid>
<asteroid name="Starmetal" distance="75" mass="64" massVariability="1" probability="5" richness="0.7" richnessVariability="0.5">
<ore itemStack="astralsorcery:blockcustomore 1" chance="100"/>
<ore itemStack="advancedrocketry:hotturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf_dark" chance="25"/>
</asteroid>
<asteroid name="Rock Crystal" distance="75" mass="64" massVariability="1" probability="5" richness="0.7" richnessVariability="0.5">
<ore itemStack="mysticalagriculture:rock_crystal_essence" chance="100"/>
<ore itemStack="advancedrocketry:moonturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf_dark" chance="25"/>
</asteroid>
<asteroid name="Steel" distance="75" mass="64" massVariability="1" probability="7" richness="0.3" richnessVariability="0.2">
<ore itemStack="thermalfoundation:storage_alloy" chance="100"/>
<ore itemStack="advancedrocketry:hotturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf" chance="25"/>
<ore itemStack="advancedrocketry:moonturf_dark" chance="25"/>
</asteroid>
<asteroid name="Moon Turf" distance="50" mass="64" massVariability="1" probability="8" richness="0.9" richnessVariability="0.1">
<ore itemStack="advancedrocketry:moonturf" chance="50"/>
Expand Down
2 changes: 1 addition & 1 deletion config/bloodmagic/meteors/1_iron.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"radius": 7,
"maxWeight": 1180,
"version": 3,
"cost": 600000
"cost": 300000
}
2 changes: 1 addition & 1 deletion config/bloodmagic/meteors/3_iridium.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
"radius": 5,
"maxWeight": 900,
"version": 4,
"cost": 1000000
"cost": 500000
}
8 changes: 4 additions & 4 deletions config/bloodmagic/meteors/4_nuclearcraft.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"catalystStack": {
"registryName": {
"domain": "nuclearcraft",
"path": "ingot_block"
"domain": "immersiveengineering",
"path": "storage"
},
"meta": 3
"meta": 5
},
"components": [
{ "weight": 30,"oreName": "oreThorium"}
Expand All @@ -16,5 +16,5 @@
"radius": 4,
"maxWeight": 100,
"version": 4,
"cost": 1100000
"cost": 550000
}
2 changes: 1 addition & 1 deletion config/bloodmagic/meteors/5_gems.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
"radius": 3,
"maxWeight": 1050,
"version": 4,
"cost": 1400000
"cost": 700000
}
4 changes: 2 additions & 2 deletions config/bloodmagic/meteors/6_nether.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],
"explosionStrength": 18.0,
"radius": 5,
"maxWeight": 1660,
"maxWeight": 1590,
"version": 4,
"cost": 1700000
"cost": 850000
}
15 changes: 8 additions & 7 deletions config/bloodmagic/meteors/7_space.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
"meta": 0
},
"components": [
{ "weight":150,"oreName": "oreEndDilithium"}
,{"weight": 60,"oreName" : "oreClathrateRedstone"}
,{"weight": 60,"oreName" : "oreClathrateEnder"}
,{"weight": 60,"oreName" : "oreClathrateGlowstone"}
{"weight":300,"oreName": "sandOxidisedFerric"}
,{"weight":150,"oreName": "oreEndDilithium"}
,{"weight": 60,"oreName": "oreClathrateRedstone"}
,{"weight": 60,"oreName": "oreClathrateEnder"}
,{"weight": 60,"oreName": "oreClathrateGlowstone"}
],
"explosionStrength": 12.0,
"radius": 3,
"maxWeight": 330,
"radius": 4,
"maxWeight": 630,
"version": 4,
"cost": 2000000
"cost": 1000000
}
1 change: 1 addition & 0 deletions config/jei/itemBlacklist.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ advanced {
bloodmagic:activation_crystal:2
bloodmagic:alchemic_vial
bloodmagic:blood_rune:2
bloodmagic:component:22
bloodmagic:component:23
bloodmagic:component:24
computercraft:turtle_advanced
Expand Down
4 changes: 2 additions & 2 deletions scripts/category/magicProcessing.zs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ function magicProcessing(nativeClusterOreEntry as IOreDictEntry, ore_name as str
furnace.addRecipe(dirtyGem * 10, currItem);

// mods.bloodmagic.AlchemyTable.addRecipe(IItemStack output, IItemStack[] inputs, int syphon, int ticks, int minTier);
mods.bloodmagic.AlchemyTable.addRecipe(currItem, [
prevItem, <bloodmagic:component:8>, <bloodmagic:cutting_fluid>, prevItem,
mods.bloodmagic.AlchemyTable.addRecipe(currItem * 2, [
prevItem, prevItem, <bloodmagic:component:8>, prevItem, prevItem, <bloodmagic:cutting_fluid:1>,
], 20000, 400, 4);

// ██╗ ██╗
Expand Down
24 changes: 12 additions & 12 deletions scripts/jei/mod/advancedrocketry.zs
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ xml_to_js(loadText('config/advRocketry/asteroidConfig.xml')).elements[0].element
.join(', ')}]);`]
)) */
addAsteroid('Iridium Enriched' , [25, 100, 0.8, 3, 1, 0.2], [{ <minecraft:iron_ore>: 25 }, { <thermalfoundation:ore:7>: 25 }]);
addAsteroid('Draconium' , [64, 75, 0.7, 5, 1, 0.5] , [{ <draconicevolution:draconium_ore>: 100 }, { <advancedrocketry:hotturf>: 25 }]);
addAsteroid('Prosperity' , [64, 75, 0.7, 5, 1, 0.5] , [{ <mysticalagriculture:prosperity_ore>: 100 }, { <advancedrocketry:hotturf>: 25 }]);
addAsteroid('Dimensional Shard' , [64, 75, 0.7, 5, 1, 0.5] , [{ <rftools:dimensional_shard_ore>: 100 }, { <advancedrocketry:hotturf>: 25 }]);
addAsteroid('Mana Infused' , [64, 75, 0.7, 5, 1, 0.5] , [{ <thermalfoundation:ore:8>: 100 }, { <advancedrocketry:hotturf>: 25 }]);
addAsteroid('Destabilized Redstone', [64, 75, 0.7, 5, 1, 0.5] , [{ <thermalfoundation:ore_fluid:2>: 100 }, { <advancedrocketry:hotturf>: 25 }]);
addAsteroid('Energized Netherrack' , [64, 75, 0.7, 5, 1, 0.5] , [{ <thermalfoundation:ore_fluid:3>: 100 }, { <advancedrocketry:hotturf>: 25 }]);
addAsteroid('Resonant End Stone' , [64, 75, 0.7, 5, 1, 0.5] , [{ <thermalfoundation:ore_fluid:4>: 100 }, { <advancedrocketry:hotturf>: 25 }]);
addAsteroid('Dilithium' , [64, 75, 0.7, 5, 1, 0.5] , [{ <netherendingores:ore_end_modded_1:14>: 100 }, { <advancedrocketry:hotturf>: 25 }]);
addAsteroid('Titanium' , [64, 75, 0.7, 5, 1, 0.5] , [{ <libvulpes:ore0:8>: 100 }, { <advancedrocketry:hotturf>: 25 }]);
addAsteroid('Starmetal' , [64, 75, 0.7, 5, 1, 0.5] , [{ <astralsorcery:blockcustomore:1>: 100 }, { <advancedrocketry:hotturf>: 25 }]);
addAsteroid('Rock Crystal' , [64, 75, 0.7, 5, 1, 0.5] , [{ <mysticalagriculture:rock_crystal_essence>: 100 }, { <advancedrocketry:hotturf>: 25 }]);
addAsteroid('Steel' , [64, 75, 0.3, 7, 1, 0.2] , [{ <thermalfoundation:storage_alloy>: 100 }, { <advancedrocketry:hotturf>: 25 }]);
addAsteroid('Draconium' , [64, 75, 0.7, 5, 1, 0.5] , [{ <draconicevolution:draconium_ore>: 100 }, { <advancedrocketry:moonturf>: 25 }, { <advancedrocketry:moonturf_dark>: 25 }]);
addAsteroid('Prosperity' , [64, 75, 0.7, 5, 1, 0.5] , [{ <mysticalagriculture:prosperity_ore>: 100 }, { <advancedrocketry:moonturf>: 25 }, { <advancedrocketry:moonturf_dark>: 25 }]);
addAsteroid('Dimensional Shard' , [64, 75, 0.7, 5, 1, 0.5] , [{ <rftools:dimensional_shard_ore>: 100 }, { <advancedrocketry:moonturf>: 25 }, { <advancedrocketry:moonturf_dark>: 25 }]);
addAsteroid('Mana Infused' , [64, 75, 0.7, 5, 1, 0.5] , [{ <thermalfoundation:ore:8>: 100 }, { <advancedrocketry:moonturf>: 25 }, { <advancedrocketry:moonturf_dark>: 25 }]);
addAsteroid('Destabilized Redstone', [64, 75, 0.7, 5, 1, 0.5] , [{ <thermalfoundation:ore_fluid:2>: 100 }, { <advancedrocketry:moonturf>: 25 }, { <advancedrocketry:moonturf_dark>: 25 }]);
addAsteroid('Energized Netherrack' , [64, 75, 0.7, 5, 1, 0.5] , [{ <thermalfoundation:ore_fluid:3>: 100 }, { <advancedrocketry:moonturf>: 25 }, { <advancedrocketry:moonturf_dark>: 25 }]);
addAsteroid('Resonant End Stone' , [64, 75, 0.7, 5, 1, 0.5] , [{ <thermalfoundation:ore_fluid:4>: 100 }, { <advancedrocketry:moonturf>: 25 }, { <advancedrocketry:moonturf_dark>: 25 }]);
addAsteroid('Dilithium' , [64, 75, 0.7, 5, 1, 0.5] , [{ <netherendingores:ore_end_modded_1:14>: 100 }, { <advancedrocketry:moonturf>: 25 }, { <advancedrocketry:moonturf_dark>: 25 }]);
addAsteroid('Titanium' , [64, 75, 0.7, 5, 1, 0.5] , [{ <libvulpes:ore0:8>: 100 }, { <advancedrocketry:moonturf>: 25 }, { <advancedrocketry:moonturf_dark>: 25 }]);
addAsteroid('Starmetal' , [64, 75, 0.7, 5, 1, 0.5] , [{ <astralsorcery:blockcustomore:1>: 100 }, { <advancedrocketry:moonturf>: 25 }, { <advancedrocketry:moonturf_dark>: 25 }]);
addAsteroid('Rock Crystal' , [64, 75, 0.7, 5, 1, 0.5] , [{ <mysticalagriculture:rock_crystal_essence>: 100 }, { <advancedrocketry:moonturf>: 25 }, { <advancedrocketry:moonturf_dark>: 25 }]);
addAsteroid('Steel' , [64, 75, 0.3, 7, 1, 0.2] , [{ <thermalfoundation:storage_alloy>: 100 }, { <advancedrocketry:moonturf>: 25 }, { <advancedrocketry:moonturf_dark>: 25 }]);
addAsteroid('Moon Turf' , [64, 50, 0.9, 8, 1, 0.1] , [{ <advancedrocketry:moonturf>: 50 }, { <advancedrocketry:moonturf_dark>: 50 }]);
/**/

Expand Down
75 changes: 41 additions & 34 deletions scripts/jei/mod/bloodmagic.zs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#modloaded bloodmagic

import mods.requious.AssemblyRecipe;
import crafttweaker.item.IIngredient;
import crafttweaker.item.IItemStack;

// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
Expand All @@ -11,47 +13,52 @@ x.setJEIDurationSlot(1, 1, 'duration', scripts.jei.requious.getVisGauge(1, 8));
x.setJEIItemSlot (0, 1, 'f0');
x.setJEIFluidSlot(0, 0, 'f1');

static meteors as string[][] = [
var k = 0;
for _y in 0 .. 3 {
for _x in 2 .. 9 {
x.setJEIItemSlot(_x, _y, 'output');
k += 1;
}
}

/* Inject_js(
glob.sync('config/bloodmagic/meteors/*.json')
.map(loadJson)
.map(f=>
[
`${f.catalystStack.registryName.domain}:${f.catalystStack.registryName.path}`,
f.catalystStack.meta,
f.cost,
...f.components.map(c=>c.oreName)
.map((f) => {
const weightName = f.components
.map(c => [c.weight, c.oreName])
.sort(([a], [b]) => b - a)
const volume = 4.0 / 3.0 * Math.PI * (0.2 + f.radius) ** 3
const totalWeight = weightName.reduce((acc, [w]) => acc + w, 0)
return [
`addMeteor(`,
`<${f.catalystStack.registryName.domain}:${f.catalystStack.registryName.path}:${f.catalystStack.meta}>`,
`, `,
f.cost,
`, [`,
`${
weightName
.map(([weight, name]) => `<ore:${name}> * ${weight / totalWeight * volume | 0}`)
.join(', ')
}]);`,
]
.map(s=>`'${s}'`).join(', ')
).map(s=>` [${s}],`).sort(naturalSort).join('\n')
}).sort((a, b) => b[2] - a[2])
) */
['jaopca:block_blockdilithium', '0', '2000000', 'oreEndDilithium', 'oreClathrateRedstone', 'oreClathrateEnder', 'oreClathrateGlowstone'],
['minecraft:emerald_block', '0', '1400000', 'oreLapis', 'oreDiamond', 'oreCoal', 'oreRuby', 'orePeridot', 'oreTopaz', 'oreTanzanite', 'oreMalachite', 'oreSapphire', 'oreAmber', 'oreApatite', 'oreCertusQuartz', 'oreCinnabar', 'oreProsperity', 'oreQuartzBlack'],
['minecraft:iron_block', '0', '600000', 'oreIron', 'oreCopper', 'oreTin', 'oreSilver', 'oreLead', 'oreGold', 'oreLapis', 'oreRedstone', 'oreAluminum'],
['nuclearcraft:ingot_block', '3', '1100000', 'oreThorium', 'oreBoron', 'oreLithium', 'oreMagnesium'],
['tconstruct:metal', '1', '1700000', 'oreQuartz', 'oreNetherAluminum', 'oreNetherCopper', 'oreNetherLead', 'oreNetherNickel', 'oreNetherRedstone', 'oreNetherLapis', 'oreNetherIron', 'oreNetherGold', 'oreNetherDiamond', 'oreNetherCoal', 'oreNetherPlatinum', 'oreNetherSilver', 'oreNetherTin', 'oreNetherCertusQuartz', 'oreNetherChargedCertusQuartz', 'oreNetherOsmium', 'oreNetherUranium', 'oreCobalt', 'oreArdite'],
['thermalfoundation:storage', '7', '1000000', 'oreDraconium', 'oreAstralStarmetal', 'oreRutile', 'oreMithril', 'orePlatinum', 'oreIridium', 'mica'],
addMeteor(<jaopca:block_blockdilithium:0> , 1000000, [<ore:sandOxidisedFerric> * 147, <ore:oreEndDilithium> * 73, <ore:oreClathrateRedstone> * 29, <ore:oreClathrateEnder> * 29, <ore:oreClathrateGlowstone> * 29]);
addMeteor(<tconstruct:metal:1> , 850000 , [<ore:oreCobalt> * 62, <ore:oreArdite> * 62, <ore:oreQuartz> * 55, <ore:oreNetherCoal> * 48, <ore:oreNetherRedstone> * 40, <ore:oreNetherLapis> * 37, <ore:oreNetherIron> * 33, <ore:oreNetherGold> * 29, <ore:oreNetherTin> * 25, <ore:oreNetherAluminum> * 22, <ore:oreNetherCopper> * 22, <ore:oreNetherLead> * 22, <ore:oreNetherDiamond> * 22, <ore:oreNetherNickel> * 18, <ore:oreNetherSilver> * 18, <ore:oreNetherCertusQuartz> * 18, <ore:oreNetherChargedCertusQuartz> * 14, <ore:oreNetherPlatinum> * 11, <ore:oreNetherOsmium> * 11, <ore:oreNetherUranium> * 11]);
addMeteor(<minecraft:emerald_block:0> , 700000 , [<ore:oreAmber> * 25, <ore:oreDiamond> * 20, <ore:oreLapis> * 18, <ore:oreCertusQuartz> * 18, <ore:oreCinnabar> * 14, <ore:oreProsperity> * 11, <ore:oreCoal> * 3, <ore:oreRuby> * 3, <ore:orePeridot> * 3, <ore:oreTopaz> * 3, <ore:oreTanzanite> * 3, <ore:oreMalachite> * 3, <ore:oreSapphire> * 3, <ore:oreApatite> * 3, <ore:oreQuartzBlack> * 3]);
addMeteor(<immersiveengineering:storage:5>, 550000 , [<ore:oreBoron> * 108, <ore:oreThorium> * 93, <ore:oreLithium> * 62, <ore:oreMagnesium> * 46]);
addMeteor(<thermalfoundation:storage:7> , 500000 , [<ore:mica> * 196, <ore:oreIridium> * 130, <ore:orePlatinum> * 91, <ore:oreMithril> * 65, <ore:oreRutile> * 45, <ore:oreAstralStarmetal> * 32, <ore:oreDraconium> * 26]);
addMeteor(<minecraft:iron_block:0> , 300000 , [<ore:oreIron> * 529, <ore:oreCopper> * 264, <ore:oreTin> * 185, <ore:oreRedstone> * 132, <ore:oreAluminum> * 132, <ore:oreLead> * 105, <ore:oreSilver> * 92, <ore:oreLapis> * 79, <ore:oreGold> * 39]);
/**/
];

var k = 0;
var maxRows = 0;
for t in meteors { if (t.length > maxRows) maxRows = t.length; }
for _y in 0 .. (maxRows - 4) / 7 + 1 {
for _x in 2 .. 9 {
x.setJEIItemSlot(_x, _y, 'i' ~ k);
k += 1;
}
}

for i, meteor in meteors {
val meteorAss = AssemblyRecipe.create(function (container) {
for i, ore in meteor {
if (i < 3) continue;
container.addItemOutput('i' ~ (i - 3), oreDict.get(ore).firstItem);
function addMeteor(catalyst as IItemStack, cost as int, oreList as IIngredient[]) as void {
val ass = AssemblyRecipe.create(function (container) {
for ore in oreList {
container.addItemOutput('output', ore.items[0] * ore.amount);
}
});
meteorAss.requireItem('f0', itemUtils.getItem(meteor[0], meteor[1]));
meteorAss.requireFluid('f1', <fluid:lifeessence> * (meteor[2] as int));
x.addJEIRecipe(meteorAss);
ass.requireItem('f0', catalyst);
ass.requireFluid('f1', <fluid:lifeessence> * cost);
<assembly:meteor>.addJEIRecipe(ass);
}
Loading

0 comments on commit affeb44

Please sign in to comment.