Skip to content

Commit

Permalink
added recipes for serial redstone block and send serial message block
Browse files Browse the repository at this point in the history
  • Loading branch information
jallwine committed Jul 27, 2017
1 parent 0676e3c commit b399bb9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,44 @@
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.world.World;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;

public class CommonProxy {

@EventHandler
@EventHandler
public void preinit(FMLPreInitializationEvent event) {

}
}

@EventHandler
public void init(FMLInitializationEvent event) {
BlockSerialRedstone serialRedstoneBlock = new BlockSerialRedstone();
BlockSendSerialMessage sendSerialMessageBlock = new BlockSendSerialMessage();

GameRegistry.registerTileEntity(TileEntitySerialRedstone.class, "serialRedstone");
GameRegistry.registerBlock(new BlockSerialRedstone(), "serialRedstone");
GameRegistry.registerBlock(serialRedstoneBlock, "serialRedstone");

GameRegistry.registerTileEntity(TileEntitySendSerialMessage.class, "sendSerialMessageBlock");
GameRegistry.registerBlock(new BlockSendSerialMessage(), "sendSerialMessageBlock");
GameRegistry.registerBlock(sendSerialMessageBlock, "sendSerialMessageBlock");

GameRegistry.addRecipe(new ItemStack(serialRedstoneBlock), new Object[]{
"ABA",
"BCB",
"ADA",
'A', Blocks.redstone_block,
'B', Blocks.redstone_ore,
'C', Items.clock,
'D', Items.sign
});
GameRegistry.addRecipe(new ItemStack(sendSerialMessageBlock), new Object[]{
"ABA",
"BCB",
"ADA",
'A', Blocks.iron_block,
'B', Blocks.redstone_ore,
'C', Items.clock,
'D', Items.sign
});

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class SerialCraft {
public static SerialCraft instance;

public static final String MODID = "SerialCraft";
public static final String VERSION = "1.7.10-0.3-dev";
public static final String VERSION = "1.7.10-0.4-dev";

public static SimpleNetworkWrapper network;

Expand Down

0 comments on commit b399bb9

Please sign in to comment.