Hello, I found this cool plugin and I would love if someon could point me in the right direction or give me a little tutorial on how to code this: I know how to make a simpler version, but this one tops it all in my eyes. Regards, Your love aka BeastyBoo
@BeastyBoo Here's what you need Code for Keys Code for all items that can be give code for the rarity of the items code for randomly selecting the items Events that get triggered. (for display names) Invisible entities with custom names
@Zombie_Striker Thanks, but what I dont know how to do in this plugin is making the items switch place in order. any better detailed tutoiral there? And yes I know java, just new to bukkit.
Ah since you know Java then, you should have no problem understanding when I tell you that you need to use a BukkitRunnable(), and set the contents of the inventory each time with Inventory#setContents()
@Scimiguy Ok? but whats up with you, so far you have only posted posts with "Negative Meanings" on this thread. Please stop commenting unless you want to be a bit more positive?
@BeastyBoo some people on this site can jerky. Essentially create a runnable task, and change the order of items using a integer, so for example inv.setItem(integer, itemstack);
@BeastyBoo If that's "negative", I honestly can't think of anyone that would be considered "positive" without spoonfeeding you code with a smile on their face. What @Scimiguy posted is what you need to do. Follow what he said and mark this thread as solved.
@BeastyBoo I can admit, @Scimiguy can be a bit 'hard' sometimes but his comments have what you need to do in them. All you really have to do is if they are right clicking on a chest and if they hold a tripwire hook (Or what ever) then give them a random thing/command
@Binner_Done True, but this is not one of those times. @BeastyBoo The reason there are some people who respond "negatively" to threads might because: The Op posted about something that a simple google search would have answered The Op posted a problem which can be fixed by adding/removing one line, meaning you just had to re-read your code The OP poted a problem without all the code/ did not post the error (meaning we can't help you) The Op posted "it doesn't work", which we don't know what that means The OP (you) are asking for guidance in a forum for "problematic code" The Op (you) did not show/do anything yet.
Why not jsut use that plugin? https://www.spigotmc.org/resources/cratesplus-custom-crates-free.5018/ EDIT: Nevermind, Just realised that's not exactly what you wanted!
@MasterDoctor He wants the plugin to look like the video above, which I don't think that plugin does.