Solved Creating a Chest on Click?

Discussion in 'Plugin Development' started by FuZioN720, May 26, 2013.

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

    FuZioN720

    Hello, What i'm looking for is a code or someone to help me with code so i can do what i want. What im trying to do is on Action.RIGHT_CLICK_BLOCK I want a chest to spawn. I have the code for the Right Click action i'm just having trouble on creating a chest / double chest where the player clicked please help, thanks.
     
  2. Offline

    caseif

    FuZioN720
    Code:
    event.getClickedBlock().setType(Material.CHEST);
     
  3. Offline

    FuZioN720

    AngryNerd Thats sets the ground to a chest i want the block above that, If you know what i me. So the chest is on the ground not part/ in It
     
  4. Offline

    ZeusAllMighty11 Retired Staff

    Code:
    event.getClickedBlock().getLocation().add(0,1,0).getBlock().setType(Material.CHEST);
     
    FuZioN720 likes this.
  5. Offline

    FuZioN720

Thread Status:
Not open for further replies.

Share This Page