mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-17 11:15:07 +00:00
The Great Refractor!
This commit is contained in:
1 parent
aa52debeb5
commit
5b5e29a8ce
92 files changed
+1616
-1452
No files matched your search
@@ -0,0 +1,37 @@
|
||||
package info.jbcs.minecraft.chisel.compat;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import info.jbcs.minecraft.chisel.ChiselModCompatibility;
|
||||
import info.jbcs.minecraft.chisel.carving.Carving;
|
||||
|
||||
public class Compatibility
|
||||
{
|
||||
|
||||
public static void init(FMLPostInitializationEvent event)
|
||||
{
|
||||
new ChiselModCompatibility().postInit(event);
|
||||
|
||||
addSupport("ProjRed|Exploration", "projectred.exploration.stone", "marble", 0, 99);
|
||||
addSupport("bluepower", "marble", "marble", 0, 99);
|
||||
|
||||
addSupport("PFAAGeologica", "strongStone", "marble", 5, 99);
|
||||
addSupport("PFAAGeologica", "strongStoneSlab", "marbleSlab", 5, 99);
|
||||
addSupport("PFAAGeologica", "strongStoneBrickStairs.marble", "marbleStairs", 0, 99);
|
||||
addSupport("PFAAGeologica", "mediumStone", "limestone", 0, 99);
|
||||
addSupport("PFAAGeologica", "mediumStoneSlab", "limestoneSlab", 0, 99);
|
||||
addSupport("PFAAGeologica", "mediumStoneBrickStairs.limestone", "limestoneStairs", 0, 99);
|
||||
addSupport("PFAAGeologica", "strongStoneBrick", "stoneBrick", 3, 99);
|
||||
addSupport("PFAAGeologica", "strongCobble", "cobblestone", 3, 99);
|
||||
}
|
||||
|
||||
public static void addSupport(String modname, String blockname, String name, int metadata, int order)
|
||||
{
|
||||
if(Loader.isModLoaded(modname) && GameRegistry.findBlock(modname, blockname) != null)
|
||||
{
|
||||
Carving.chisel.addVariation(name, GameRegistry.findBlock(modname, blockname), metadata, order);
|
||||
GameRegistry.findBlock(modname, blockname).setHarvestLevel("chisel", 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user