Random loot chest

Discussion in 'Spigot Plugin Development' started by GABBOGA99, Aug 13, 2015.

  1. Yeah but i want to spawn randomly a chest with a random loot, with established locations
  2. Well you'd need a collection/list of locations and loot items and use Java's Random class to choose a location and loot for the chest.
    • Agree Agree x 1
  3. Ok and when i spawn a chest i want to apply them a particle effect how cani to this? How can i take the chest object to apply particle?
  4. You'd have to store all the active chest locations in a list. And then run a scheduler task to constantly apply particle effects to said chest.