|
|
|
@ -14,12 +14,14 @@ import net.brokenmoon.afloydwiremod.tileentity.*;
|
|
|
|
|
import net.fabricmc.api.ModInitializer;
|
|
|
|
|
import net.minecraft.src.Block;
|
|
|
|
|
import net.minecraft.src.Item;
|
|
|
|
|
import net.minecraft.src.ItemStack;
|
|
|
|
|
import net.minecraft.src.Material;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import turniplabs.halplibe.helper.BlockHelper;
|
|
|
|
|
import turniplabs.halplibe.helper.EntityHelper;
|
|
|
|
|
import turniplabs.halplibe.helper.ItemHelper;
|
|
|
|
|
import turniplabs.halplibe.helper.RecipeHelper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class WireMod implements ModInitializer {
|
|
|
|
@ -38,15 +40,18 @@ public class WireMod implements ModInitializer {
|
|
|
|
|
AccessorPacket.callAddIdClassMapping(config.chipSettingsPacket, true, true, WiremodSettingsPacket.class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//Tile
|
|
|
|
|
public static Block ChipTile = BlockHelper.createBlock(MOD_ID, new ChipTile(config.chipTileID, Material.iron), "chipTile", "chip.png", Block.soundMetalFootstep,1.5f, 6f, 0 );
|
|
|
|
|
|
|
|
|
|
public static Item ToolProgrammer = ItemHelper.createItem(MOD_ID, new ToolProgrammer(config.programmerItemID), "toolProgrammer", "progtool.png");
|
|
|
|
|
public static ToolWiring ToolWiringClass = new ToolWiring(config.wiringItemID);
|
|
|
|
|
public static Item ToolWiring = ItemHelper.createItem(MOD_ID, ToolWiringClass, "toolWiring", "wiretool.png");
|
|
|
|
|
|
|
|
|
|
public static Block LinkTileInactive = BlockHelper.createBlock(MOD_ID, new RedstoneLinkTile(config.linkTileInactiveID, Material.iron, false), "linkTile", "linkOff.png", Block.soundStoneFootstep, 1.5f, 6f, 0);
|
|
|
|
|
public static Block LinkTileActive = BlockHelper.createBlock(MOD_ID, new RedstoneLinkTile(config.linkTileActiveID, Material.iron, true), "linkTile", "linkOn.png", Block.soundStoneFootstep, 1.5f, 6f, 0);
|
|
|
|
|
public static Block ScreenTile = BlockHelper.createBlock(MOD_ID, new DisplayTile(config.displayTileID, Material.glass), "displayTile", "display.png", Block.soundGlassFootstep, 1.5f, 6f, 0);
|
|
|
|
|
//Item
|
|
|
|
|
public static Item ToolProgrammer = ItemHelper.createItem(MOD_ID, new ToolProgrammer(config.programmerItemID), "toolProgrammer", "progtool.png");
|
|
|
|
|
public static ToolWiring ToolWiringClass = new ToolWiring(config.wiringItemID);
|
|
|
|
|
public static Item ToolWiring = ItemHelper.createItem(MOD_ID, ToolWiringClass, "toolWiring", "wiretool.png");
|
|
|
|
|
public static Item RedSilica = ItemHelper.createItem(MOD_ID, new Item(config.redsilicaID), "redSilica", "redsilica.png");
|
|
|
|
|
public static Item ChipDie = ItemHelper.createItem(MOD_ID, new Item(config.dieID), "chipDie", "circuitdie.png");
|
|
|
|
|
public static Item BrokenDie = ItemHelper.createItem(MOD_ID, new Item(config.dieOvercookedID), "chipDieBroken", "circuitdead.png");
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onInitialize() {
|
|
|
|
@ -56,5 +61,19 @@ public class WireMod implements ModInitializer {
|
|
|
|
|
EntityHelper.createTileEntity(RedstoneLinkTileEntity.class, "Redstone Link");
|
|
|
|
|
EntityHelper.createSpecialTileEntity(AbstractWireTileEntity.class, new TERWire(), "Wire");
|
|
|
|
|
EntityHelper.createSpecialTileEntity(DisplayTileEntity.class, new TERDisplay(), "Display");
|
|
|
|
|
|
|
|
|
|
//Recipes
|
|
|
|
|
//Silica
|
|
|
|
|
RecipeHelper.Crafting.createShapelessRecipe(RedSilica, 8, new Object[]{new ItemStack(Item.dustRedstone, 1), new ItemStack(Item.dustRedstone, 1), new ItemStack(Item.dustRedstone, 1), new ItemStack(Block.sand, 1)});
|
|
|
|
|
//Dies
|
|
|
|
|
RecipeHelper.Smelting.createRecipe(ChipDie, RedSilica);
|
|
|
|
|
RecipeHelper.Blasting.createRecipe(BrokenDie, RedSilica);
|
|
|
|
|
//Tools
|
|
|
|
|
RecipeHelper.Crafting.createRecipe(ToolWiring, 1, new Object[]{"ABC", "#D#", "#D#", 'A', Item.nuggetIron, 'B', Item.ingotIron, 'C', RedSilica, 'D', Item.stick});
|
|
|
|
|
RecipeHelper.Crafting.createRecipe(ToolProgrammer, 1, new Object[]{"ABC", "#D#", "#D#", 'A', Item.nuggetIron, 'B', Item.ingotIron, 'C', ChipDie, 'D', Item.stick});
|
|
|
|
|
//Blocks
|
|
|
|
|
RecipeHelper.Crafting.createRecipe(ChipTile, 1, new Object[]{"#A#", "ABA", "#A#", 'A', Item.nuggetIron, 'B', ChipDie});
|
|
|
|
|
RecipeHelper.Crafting.createRecipe(ScreenTile, 1, new Object[]{"#A#", "BCB", "#B#", 'A', Block.glass, 'B', Item.nuggetIron, 'C', ChipDie});
|
|
|
|
|
RecipeHelper.Crafting.createRecipe(LinkTileInactive, 1, new Object[]{"#A#", "BCB", "#B#", 'A', Block.blockRedstone, 'B', Item.nuggetIron, 'C', ChipDie});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|