BlockPlaceEvent, my only option?

Discussion in 'Plugin Development' started by SpielMC, Feb 20, 2015.

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

    SpielMC

    Hello! I'd like some assistance. I am making a plugin for something similar to Clash of Clans, where the player can get a gold ore block using /goldmine get [number of blocks]. I need to build a structure when these specific blocks are placed, each has a separate ItemMeta name Gold Mine to differentiate from regular gold ores. I'm wondering if there is any other efficient way to check when these specific gold ores will be placed other than using BlockPlaceEvent and grabbing the item name? I was looking for something along the lines of attaching a listener to these specific blocks, not every block placed in world but I am not so sure where to start even there.
    Thank you to those you try to help.
     
  2. Offline

    teej107

    Yes
     
    FerusGrim and MordorKing78 like this.
  3. Offline

    MordorKing78

    Uhhmm.. What is wrong with getting the name? If it works fine why would you want to do it in another way? Just return it if its not the .. block.
     
Thread Status:
Not open for further replies.

Share This Page