[DEV] OddItem 0.9.5 - Unified custom items list and parser [1.2.5-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by petteyg359, Feb 16, 2011.

     
  1. Offline

    petteyg359

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    See OddItem on dev.bukkit.org.

    A database of item ids, damage values, and aliases. Provides an API so that a single set of aliases may be shared among all plugins.

    Allows players to show all aliases of their currently held item, or any other alias.

    Allows maintaining groups of items (e.g. kits) that may be accessed by multiple plugins, with arbitrary metadata in ConfigurationSection format.

    See OddItem on dev.bukkit.org.

    This post has been edited 17 times. It was last edited by petteyg359 Apr 10, 2012.
    Rowanzy, MasterMeNL, KingPin and 2 others like this.
  2.  
  3. Offline

    petteyg359

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The next update will include a default item.txt which will be automatically written to disk if you don't already have one.
  4. Offline

    MasterMeNL

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    With this you mean you have been making your own or will you use the one I posted?
    Anyway, I wish you good luck with this plugin.
  5. Offline

    petteyg359

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yours, since you posted it :)
  6. Offline

    MasterMeNL

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If that's the case, I will keep it up-to-date by editing that post (the reason for the awesome professional changelog xD).
    EDIT: you might want to update your main post with a link to my item.txt instead of the old one (no offense / anything else).
  7. Offline

    petteyg359

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Major update in progress. I'll try very hard to avoid any vaporware :)

    • several different "suggesters" - a couple of them are specifically designed for foreign languages
    • configuration will allow grouping items
      • allows other plugins to reference specific sets of items for querying - just pull an OddItem group instead of requiring a separate list of items in other plugin configurations
    • configuration will be in YAML
      • don't worry, it's still simple and shouldn't confuse anybody
        • the list posted earlier by MasterMeNL is included in the jar, and will automatically be written on first load, so you don't even have to worry about writing YAML unless you want to change things
  8. Offline

    MasterMeNL

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    How will the YAML config look?
    Something like this?
    Code:
    OddItem:
        Group1:
            1:rock|stone
            46:tnt|boom
        Group2:
            etc...
    Anyway, I would be happy to still keep the item list up to date and keep adding alternate names when needed (Will upload an update for more half-step/slab names soon).

    EDIT: It's up and a lot more has been added here.

    Greetings,
    MasterMe.
  9. Offline

    petteyg359

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    A basic config will look like http://bukkit.somethingodd.info/OddItem.yml.html
    Groups will be something like (I'm not sure if the numbers need to be quoted when they're leaves rather than branches)
    Code:
    groups:
      admin: [7,10,11]
      circuits: [24,41,42]
    
  10. Offline

    MasterMeNL

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I will start updating this today and will probably finish it too.
    Also, since I keep updating the current item.txt (updated it yesterday) I could send you a PM every time I update it so you could update your site's item file as well.

    Greetings,
    MasterMe.
  11. Offline

    Lathanael

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Since you are updating the txt, etc.

    How about adding slimeball|sball for the slimeorb, cause thats how it is called ingame ;)
  12. Offline

    Celtic Minstrel

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Or even just slime.
  13. Offline

    Nitnelave

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Well, the point of this plugin is that you can add any alias you'd like. They provide you with a default config, but it's yours to modify! Maybe not everybody wants to call it slime or slimeorb, maybe some will call it snot!
  14. Offline

    MasterMeNL

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Did you look here? :p
    I will update this and will update post in around 10 minutes.
    EDIT: Updated! (On a side note, I didn't add snot, since I don't call a sponge spongebob either xP)

    Greetings,
    MasterMe.
  15. Offline

    Nitnelave

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm just saying that no matter how great your default config is, it won't suit everybody, and the point of the plugin is to be able to customise it. But thanks for your work anyway, along with petteyg359!
  16. Offline

    Dothackking

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Will this change the name of an item when you hover over it, or just when you search it?
  17. Offline

    petteyg359

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This is not a client mod; it cannot change the name shown by the client. I may attempt a client mod after I get this new version finished.

    EDIT: BukkitContrib appears to allow support for this. Will look into it for the next version.
  18. Offline

    MasterMeNL

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Item.txt file updated to V1.04.
    Also, any news when the new .yml format will come and what will be the definite format, so I can start updating it already.

    Greetings,
    MasterMe.
  19. Offline

    petteyg359

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Getting there. Going to have a new plugin that will make use of the groups as an example, just like OddGive was an example of how to use OddItem at first :) The new plugin will also be much more useful than "just an example", just like OddGive :)
  20. Offline

    MasterMeNL

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Intresting...
  21. Offline

    Dark_Balor

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  22. Offline

    Nitnelave

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Nice ^^
  23. Offline

    petteyg359

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  24. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @petteyg359
    It seems like a nice API, but I am just back from my holidays and I have to rest a bit :p
  25. Offline

    Dark_Balor

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If I understand the idea behind the group add. It's some kind of "kit" ?
    Allowing user to definite some group with all the wanted item in it, and allow us dev to get that group ?
    I'll have to make some change to make the group thing works but nothing that I can't do ^^
  26. Offline

    petteyg359

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    User could add to OddItem.yml like this:
    Code:
    groups:
     pluginA: [redwool,yellowwool,greenwool]
     pluginB: [ironblock,goldblock,sandstone]
     pluginC: [feather,bone,compass]
    
    Then, pluginA could ask OddItem whether a group is defined for pluginA, and if so, grab those items instead of having its own list in a separate file (consolidation; if you have 10 plugins that have configurable items for usage, then it is easier to edit one file rather than ten files).

    This post has been edited 1 time. It was last edited by petteyg359 Aug 9, 2011.
  27. Offline

    Dark_Balor

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @petteyg359
    Okay it's what I thought and it's really useful :)
    I'll update my plugin to make it works with the new API.
  28. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @petteyg359
    Hey, I have looked at it - it looks very nice, however it would be hard for me to implement this at the moment :)
  29. Offline

    petteyg359

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No need to, really, unless you want to make use of the groups. The getItemStack signature is the same.

    This post has been edited 1 time. It was last edited by petteyg359 Aug 10, 2011.
  30. Offline

    MasterMeNL

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Currently updating the item list to support OddItem 0.7 (I just saw it).

    This post has been edited 1 time. It was last edited by MasterMeNL Aug 10, 2011.
  31. Offline

    Lathanael

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    hmm it did create the odditem.yml in the main plugin folder where all the .jars are. Shouldn't it be inside the folder odd?
  32. Offline

    petteyg359

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Nope. I moved it. Everybody needed a new file anyway, so I wanted to make it as obvious as possible where the new file was, so anybody will look in their plugins folder and immediately see the relevant file. Will be doing the same thing to OddGive in the next version.

    This post has been edited 2 times. It was last edited by petteyg359 Aug 12, 2011.

Share This Page