mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Experimenta: native FMP support for the bocks *sawsaw*
This commit is contained in:
1 parent
c4d9ebd505
commit
011298e0b8
4 files changed
+61
-1
No files matched your search
@@ -32,6 +32,7 @@ import tconstruct.library.crafting.LiquidCasting;
|
||||
import tconstruct.mechworks.TinkerMechworks;
|
||||
import tconstruct.mechworks.landmine.behavior.Behavior;
|
||||
import tconstruct.mechworks.landmine.behavior.stackCombo.SpecialStackHandler;
|
||||
import tconstruct.plugins.fmp.TinkerFMP;
|
||||
import tconstruct.plugins.ic2.TinkerIC2;
|
||||
import tconstruct.plugins.imc.TinkerAE2;
|
||||
import tconstruct.plugins.imc.TinkerBuildCraft;
|
||||
@@ -134,6 +135,7 @@ public class TConstruct
|
||||
pulsar.registerPulse(new TinkerMystcraft());
|
||||
pulsar.registerPulse(new TinkerMFR());
|
||||
pulsar.registerPulse(new TinkerTE4());
|
||||
pulsar.registerPulse(new TinkerFMP());
|
||||
/*pulsar.registerPulse(new TinkerPrayers());
|
||||
pulsar.registerPulse(new TinkerCropify());*/
|
||||
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
package tconstruct.plugins.fmp;
|
||||
|
||||
import codechicken.microblock.BlockMicroMaterial;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import mantle.pulsar.pulse.Handler;
|
||||
import mantle.pulsar.pulse.Pulse;
|
||||
import tconstruct.TConstruct;
|
||||
import tconstruct.smeltery.TinkerSmeltery;
|
||||
import tconstruct.tools.TinkerTools;
|
||||
import tconstruct.world.TinkerWorld;
|
||||
|
||||
@Pulse(id = "Tinkers FMP Compatibility", description = "Makes Tinkers Blocks Multipart compatible", modsRequired = "ForgeMultipart", forced = true)
|
||||
public class TinkerFMP {
|
||||
@Handler
|
||||
public void init(FMLInitializationEvent event)
|
||||
{
|
||||
|
||||
TConstruct.logger.info("ForgeMultipart detected. Registering TConstruct decorative blocks with FMP.");
|
||||
|
||||
//make Tconstruct blocks multipartable!
|
||||
if(TinkerWorld.metalBlock != null) {
|
||||
// metal blocks
|
||||
for (int i = 0; i < 11; i++)
|
||||
BlockMicroMaterial.createAndRegister(TinkerWorld.metalBlock, i);
|
||||
}
|
||||
|
||||
if(TinkerSmeltery.smeltery != null) {
|
||||
// smeltery bricks
|
||||
for (int i = 2; i < 12; i++) {
|
||||
if (i == 3)
|
||||
continue;
|
||||
BlockMicroMaterial.createAndRegister(TinkerSmeltery.smeltery, i);
|
||||
BlockMicroMaterial.createAndRegister(TinkerSmeltery.smelteryNether, i, TinkerSmeltery.smelteryNether.getUnlocalizedName() + "Nether");
|
||||
}
|
||||
|
||||
// brownstone
|
||||
for (int i = 0; i < 7; i++)
|
||||
BlockMicroMaterial.createAndRegister(TinkerSmeltery.speedBlock, i);
|
||||
|
||||
// clear glass
|
||||
BlockMicroMaterial.createAndRegister(TinkerSmeltery.clearGlass, 0);
|
||||
for (int i = 0; i < 16; i++)
|
||||
BlockMicroMaterial.createAndRegister(TinkerSmeltery.stainedGlassClear, i);
|
||||
}
|
||||
|
||||
if(TinkerTools.multiBrick != null) {
|
||||
// chisel bricks
|
||||
for (int i = 0; i < 14; i++)
|
||||
BlockMicroMaterial.createAndRegister(TinkerTools.multiBrick, i);
|
||||
|
||||
for (int i = 0; i < 16; i++)
|
||||
BlockMicroMaterial.createAndRegister(TinkerTools.multiBrickFancy, i);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user