Hi! How can i create a random loot chest plugin like wynncraft, any idea? Screen1: http://prntscr.com/84680v Screen2: http://prntscr.com/84687m
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.
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?
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.