Plugin category: Mechanics Minecraft version: Spigot 1.8.8 Suggested name: RandomLores What I want: A plugin that gives the item a random lore that is set in the config if the item has a placeholder in it's lore. If an item has a lore that contains "&7%lore%", upon getting interacted in the player's inventory it'll randomly change to a lore that is in the config. Example: Diamond Leggings have the lore "&7%lore%" and a player moves them in their inventory, it'll pick out a random lore from the config and replace the "%lore%" with the one that it picked. Each lore will have a percentage. (chance). To make some lores rarer than others. Config.yml: Code: lore1: - "&6Mighty Item" Chance: 20 lore2: - "&eAwesome Item" Chance: 75 lore3: - "&bBest Item Ever!" Chance: 5 Ideas for commands: No commands needed for this plugin. Ideas for permissions: When I'd like it by: ASAP
My team can almost certainly do this. Just to clear something up, do you want it to be a different lore every time they click it? Or will it just pick a random one the first time they interact with it?
A random lore when a player interacts with it for the first time, if the player interacts with the item again, nothing will happen as the placeholder ,%lore%, has already been replaced by a random lore in the config
That's what I figured you meant. Sorry I didn't respond immediately... Bukkit's been screwy the last few days and sometimes it takes up to an hour for me to get an email notification when someone tahgs/quotes me. My team and I can EASILY do this one for ya, I'll let you know when it's done. So just to confirm, a config full of colorable lores with percent chances? Sounds easy as pi. - Rayzr
Alright. Just curious, how can you make sure that they're going to click on it? They could open their inventory and see that there's an item with %lore% on it... I guess we could just listen to a bunch more events.