Ejemplo n.º 1
0
  public void load() {

    ModLoader.registerBlock(AntarticaSnow);
    ModLoader.registerBlock(AntarticaIce);

    ModLoader.registerBlock(ForbiddenPortal);

    ModLoader.registerBlock(MysticalStone);
    ModLoader.addName(MysticalStone, "MysticalStone");

    ModLoader.addRecipe(
        new ItemStack(MysticalStone, 64), new Object[] {"ddd", Character.valueOf('d'), Block.dirt});
    ModLoader.addRecipe(
        new ItemStack(ForbiddenPortal, 64),
        new Object[] {
          "XXX",
          "ddd",
          "ZZZ",
          Character.valueOf('d'),
          Block.dirt,
          Character.valueOf('X'),
          Block.sand,
          Character.valueOf('Z'),
          Block.planks
        });
  }
Ejemplo n.º 2
0
public class mod_Antartica extends BaseMod {

  public static final Block AntarticaSnow =
      (new BlockSnow(210, ModLoader.addOverride("/terrain.png", "/Blocks/SnowBlock.png"))
          .setStepSound(Block.soundWoodFootstep)
          .setHardness(0.5F)
          .setResistance(1F)
          .setBlockName("AntarticaSnow"));
  public static final Block AntarticaIce =
      (new BlockIce(211, ModLoader.addOverride("/terrain.png", "/Blocks/IceBlock.png"))
          .setStepSound(Block.soundWoodFootstep)
          .setHardness(0.5F)
          .setResistance(1F)
          .setBlockName("AntarticaSnow"));
  public static final BlockAntarticaPortal ForbiddenPortal =
      (BlockAntarticaPortal)
          (new BlockAntarticaPortal(212)
              .setStepSound(Block.soundWoodFootstep)
              .setHardness(0.5F)
              .setResistance(1F)
              .setBlockName("AntarticaPortalBlock"));
  public static final Block MysticalStone =
      (new MysticalStone(213, ModLoader.addOverride("/terrain.png", "/Blocks/PortalShell.png"))
          .setStepSound(Block.soundWoodFootstep)
          .setHardness(0.5F)
          .setResistance(1F)
          .setBlockName("MysticShell"));

  public mod_Antartica() {
    DimensionAPI.registerDimension(new WorldProviderAntartica());
  }

  public void load() {

    ModLoader.registerBlock(AntarticaSnow);
    ModLoader.registerBlock(AntarticaIce);

    ModLoader.registerBlock(ForbiddenPortal);

    ModLoader.registerBlock(MysticalStone);
    ModLoader.addName(MysticalStone, "MysticalStone");

    ModLoader.addRecipe(
        new ItemStack(MysticalStone, 64), new Object[] {"ddd", Character.valueOf('d'), Block.dirt});
    ModLoader.addRecipe(
        new ItemStack(ForbiddenPortal, 64),
        new Object[] {
          "XXX",
          "ddd",
          "ZZZ",
          Character.valueOf('d'),
          Block.dirt,
          Character.valueOf('X'),
          Block.sand,
          Character.valueOf('Z'),
          Block.planks
        });
  }

  public String getVersion() {
    return " Antartica Mod By TheInstitutions & His Awesome Subscribers";
  }
}