Make blocks face opposite directions?

Discussion in 'Plugin Development' started by TopGear93, Aug 27, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    TopGear93

    Im having a difficult time trying to figure out how to make the chests face opposite directions. Currently the chests are doing the same way. What is needed to correct the facing direction?

    Show Spoiler

    [​IMG]


    PHP:
        @EventHandler
        
    public void onSignChange(SignChangeEvent event){
            
    Block block event.getBlock();
            
    Player player event.getPlayer();
            
    BlockState signState block.getState();
            
    Sign sign = (Sign)signState;
            if(
    event.getLine(0).equals("[bacon]")){
                
    sign.setLine(2"Linked");
                
    block.getRelative(BlockFace.EAST).setType(Material.CHEST);
                
    block.getRelative(BlockFace.WEST).setType(Material.CHEST);
                
    sign.update();
            }
     
Thread Status:
Not open for further replies.

Share This Page