Placing Blocks with Data Values (anvils)

Discussion in 'Plugin Development' started by electro4fun, Mar 8, 2014.

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

    electro4fun

    I am trying to make something that limits anvil usage on a server and was wondering how to place a damaged anvil.

    Code:java
    1. dropArea.get(random).setTypeIdAndData(Material.ANVIL.getId(), (byte)1, true);


    I have tried that and other variations of that, but none work. I am able to give players broken anvils but I am unable to place them :(. If anyone could help please give me a hint towards the right method or post some code.

    Thanks in advance...

    [diamond][diamond][diamond][diamond][diamond] To whoever helps me ;p.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
Thread Status:
Not open for further replies.

Share This Page