How do I get ItemMeta of a placed block using BlockPlacedEvent

Discussion in 'Plugin Development' started by CaLxCyMru, Aug 14, 2013.

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

    CaLxCyMru

    Hello, I wanted to know if it is possible to get the ItemMeta of the block placed, I want this to check if a block has a certain name because I want to have different tier of the block/blocks and might want to use the block to build.

    I am usinig the BlockPlacedEvent if that helps.
     
  2. afaik you can't name blocks, you can name the itemstack in your hand, but the name won't transfer to the block.
     
  3. Offline

    CaLxCyMru

    Ah okay..
     
  4. Offline

    Krath Of Kiel

    Yea it does. Its just when you break the block it drops a new type of that block. But if you have rename a dispenser, place it and then open it at the top it says whatever you named the block as.
     
  5. Offline

    metalhedd

    The name of the block is the DisplayName of event.getItemInHand() during BlockPlaceEvent
     
Thread Status:
Not open for further replies.

Share This Page