Random Lores

Discussion in 'Plugin Requests' started by JustNoHacks, Sep 23, 2016.

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

    JustNoHacks

    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
     
  2. Offline

    BlockHeads36

    When would an item get a lore, anytime? Just when crafted?
     
  3. Offline

    JustNoHacks

    The item would normally come with a lore placeholder from a kit... etc
     
  4. Offline

    Rayzr522

    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?
     
  5. Offline

    JustNoHacks

    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
     
  6. Offline

    Rayzr522

    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 :D
     
  7. Offline

    JustNoHacks

    correct
     
  8. Offline

    Rayzr522

    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.
     
    Last edited by a moderator: Sep 28, 2016
  9. Offline

    JanTuck

    Loop through inventory on inventory open event and what more? Click, drag?

    Sent from Tapatalk
     
  10. Offline

    I Al Istannen

Thread Status:
Not open for further replies.

Share This Page