Skip to content

Commit

Permalink
Mod-Compat Meteors use Forge Conditional Recipes
Browse files Browse the repository at this point in the history
The proper way to make recipes depend on another mod being installed.
  • Loading branch information
VT-14 committed Sep 27, 2023
1 parent 9070f40 commit ece7d51
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 175 deletions.
73 changes: 43 additions & 30 deletions src/main/resources/data/bloodmagic/recipes/meteor/ae2.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,52 @@
{
"type": "bloodmagic:meteor",
"input": {
"tag": "forge:gems/certus_quartz"
},
"syphon": 500000,
"explosion": 24.0,
"layers": [
"type": "forge:conditional",
"recipes": [
{
"radius": 2,
"additionalWeight": 0,
"minWeight": 0,
"weightMap": [
"conditions": [
{
"tag": "appliedenergistics2:fluix_block",
"weight": 100
"type": "forge:mod_loaded",
"modid": "appliedenergistics2"
}
],
"fill": "appliedenergistics2:sky_stone_block"
},
{
"radius": 7,
"additionalWeight": 200,
"minWeight": 0,
"weightMap": [
{
"tag": "#forge:ores/certus_quartz#0",
"weight": 100
"recipe": {
"type": "bloodmagic:meteor",
"input": {
"tag": "forge:gems/certus_quartz"
},
{
"tag": "#forge:storage_blocks/quartz#0",
"weight": 50
}
],
"fill": "appliedenergistics2:sky_stone_block",
"shell": "appliedenergistics2:sky_stone_block"
"syphon": 500000,
"explosion": 24.0,
"layers": [
{
"radius": 2,
"additionalWeight": 0,
"minWeight": 0,
"weightMap": [
{
"tag": "appliedenergistics2:fluix_block",
"weight": 100
}
],
"fill": "appliedenergistics2:sky_stone_block"
},
{
"radius": 7,
"additionalWeight": 200,
"minWeight": 0,
"weightMap": [
{
"tag": "#forge:ores/certus_quartz#0",
"weight": 100
},
{
"tag": "#forge:storage_blocks/quartz#0",
"weight": 50
}
],
"fill": "appliedenergistics2:sky_stone_block",
"shell": "appliedenergistics2:sky_stone_block"
}
]
}
}
]
}
57 changes: 35 additions & 22 deletions src/main/resources/data/bloodmagic/recipes/meteor/create.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,43 @@
{
"type": "bloodmagic:meteor",
"input": {
"item": "create:andesite_alloy"
},
"syphon": 500000,
"explosion": 24.0,
"layers": [
"type": "forge:conditional",
"recipes": [
{
"radius": 6,
"additionalWeight": 200,
"minWeight": 0,
"weightMap": [
"conditions": [
{
"tag": "#forge:ores/copper#0",
"weight": 100
},
{
"tag": "#forge:ores/zinc#0",
"weight": 100
},
{
"tag": "minecraft:iron_ore",
"weight": 50
"type": "forge:mod_loaded",
"modid": "create"
}
],
"fill": "minecraft:andesite"
"recipe": {
"type": "bloodmagic:meteor",
"input": {
"item": "create:andesite_alloy"
},
"syphon": 500000,
"explosion": 24.0,
"layers": [
{
"radius": 6,
"additionalWeight": 200,
"minWeight": 0,
"weightMap": [
{
"tag": "#forge:ores/copper#0",
"weight": 100
},
{
"tag": "#forge:ores/zinc#0",
"weight": 100
},
{
"tag": "minecraft:iron_ore",
"weight": 50
}
],
"fill": "minecraft:andesite"
}
]
}
}
]
}
Original file line number Diff line number Diff line change
@@ -1,42 +1,55 @@
{
"type": "bloodmagic:meteor",
"input": {
"item": "immersiveengineering:wirecoil_copper"
},
"syphon": 500000,
"explosion": 24.0,
"layers": [
"type": "forge:conditional",
"recipes": [
{
"radius": 8,
"additionalWeight": 200,
"minWeight": 0,
"weightMap": [
"conditions": [
{
"tag": "#forge:ores/copper#0",
"weight": 100
},
{
"tag": "#forge:ores/lead#0",
"weight": 60
},
{
"tag": "#forge:ores/nickel#0",
"weight": 50
},
{
"tag": "#forge:ores/aluminum#0",
"weight": 50
},
{
"tag": "#forge:ores/silver#0",
"weight": 50
},
{
"tag": "#forge:ores/uranium#0",
"weight": 50
"type": "forge:mod_loaded",
"modid": "immersiveengineering"
}
],
"fill": "minecraft:stone"
"recipe": {
"type": "bloodmagic:meteor",
"input": {
"item": "immersiveengineering:wirecoil_copper"
},
"syphon": 500000,
"explosion": 24.0,
"layers": [
{
"radius": 8,
"additionalWeight": 200,
"minWeight": 0,
"weightMap": [
{
"tag": "#forge:ores/copper#0",
"weight": 100
},
{
"tag": "#forge:ores/lead#0",
"weight": 60
},
{
"tag": "#forge:ores/nickel#0",
"weight": 50
},
{
"tag": "#forge:ores/aluminum#0",
"weight": 50
},
{
"tag": "#forge:ores/silver#0",
"weight": 50
},
{
"tag": "#forge:ores/uranium#0",
"weight": 50
}
],
"fill": "minecraft:stone"
}
]
}
}
]
}
89 changes: 51 additions & 38 deletions src/main/resources/data/bloodmagic/recipes/meteor/myst_ag.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,59 @@
{
"type": "bloodmagic:meteor",
"input": {
"item": "mysticalagriculture:prosperity_shard"
},
"syphon": 500000,
"explosion": 24.0,
"layers": [
"type": "forge:conditional",
"recipes": [
{
"radius": 7,
"additionalWeight": 200,
"minWeight": 0,
"weightMap": [
"conditions": [
{
"tag": "#forge:ores/prosperity#0",
"weight": 100
},
{
"tag": "#forge:ores/inferium#0",
"weight": 100
"type": "forge:mod_loaded",
"modid": "mysticalagriculture"
}
],
"fill": "minecraft:stone"
},
{
"radius": 3,
"additionalWeight": 0,
"minWeight": 0,
"weightMap": [
{
"tag": "#forge:ores/soulium#0",
"weight": 100
"recipe": {
"type": "bloodmagic:meteor",
"input": {
"item": "mysticalagriculture:prosperity_shard"
},
{
"tag": "minecraft:soul_sand",
"weight": 50
},
{
"tag": "minecraft:soul_soil",
"weight": 50
}
],
"fill": "minecraft:stone"
"syphon": 500000,
"explosion": 24.0,
"layers": [
{
"radius": 7,
"additionalWeight": 200,
"minWeight": 0,
"weightMap": [
{
"tag": "#forge:ores/prosperity#0",
"weight": 100
},
{
"tag": "#forge:ores/inferium#0",
"weight": 100
}
],
"fill": "minecraft:stone"
},
{
"radius": 3,
"additionalWeight": 0,
"minWeight": 0,
"weightMap": [
{
"tag": "#forge:ores/soulium#0",
"weight": 100
},
{
"tag": "minecraft:soul_sand",
"weight": 50
},
{
"tag": "minecraft:soul_soil",
"weight": 50
}
],
"fill": "minecraft:stone"
}
]
}
}
]
}
}
Loading

0 comments on commit ece7d51

Please sign in to comment.