Getting all Trapped Chests in a world.

Discussion in 'Plugin Development' started by Dupstal, Feb 8, 2015.

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

    Dupstal

    Hey Everyone!

    I am making a loot plugin where all trapped chests have some particles around them.

    How can I get the location of those blocks?

    Thanks in advance :p
     
  2. @Dupstal What I suggest is have a listener which checks if a player is near a trapped chest and then show the particles. Otherwise, you'll end up trying to show particles which no one will see and that'll just be pointless (and use up memory and stuff).
     
    Dupstal likes this.
  3. Offline

    Dupstal

    @DJSkepter Yea :D Thanks, I didn't think it is that easy.
     
  4. Offline

    tomudding

    If the chest are placed save xyz coordinates in a config and when a player is in a cuboid (or something you like to work with) region from these coordinates show particles.
     
Thread Status:
Not open for further replies.

Share This Page