Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class blockWire extends BlockContainer{
- public TileEntityWire wire;
- protected blockWire() {
- super(Material.carpet); //this sets what the block can be harvested ex. you need a pick to mine stone
- }
- public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ){
- if(!world.isRemote){
- FMLNetworkHandler.openGui(player, TrialMod.instance, TrialMod.guiIDWire, world, x, y, z);
- System.out.println("Right Clicked");
- }
- return true;
- }
- public TileEntity createNewTileEntity(World var1, int var2) {
- return new TileEntityWire();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment