[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

    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.
     
    Rowanzy, MasterMeNL, KingPin and 2 others like this.
  2. Offline

    xngen

    I really like this idea, especially for translations!

    The only thing missing I can see (as I don't care much about Levenshtein) would be to have byte data next to item ids too, like:
    Code:
    ...
    35;6:pinkwool
    35;7:graywool
    ...
    A big like on the idea, keep it up!
     
  3. Offline

    petteyg359

    In progress :)
     
  4. Offline

    Gicon

    dead link mate. :)
     
  5. Offline

    petteyg359

    Version 0.2 up. New API returns ItemStack to support damage and limits commands to ops.
     
  6. Offline

    Eplemosen

    Good plugin! :D
     
  7. Offline

    SeeD419

    Hmm, looks like I still can't get cocobeans though.

    Too bad I can't spawn a gear or a quiver with this. That'd be awesome.
     
  8. Offline

    petteyg359

    1. If they have an ID you can get it. If it has no ID, then of course you can't get it.
    2. What's a gear?
    3. What's a quiver?

    If you're referring to items that don't exist anymore, then of course you can't spawn them. You can't spawn anything at all with just this plugin, anyway. You need a plugin with a give command to go along with this.
     
  9. Offline

    SeeD419

    http://tcrf.net/Minecraft

    After doing some research, I believe these items are unobtainable. Even though they have item ID's, they are the exact same item ID's as other items.

    However, I checked the item.png and the quiver still remains in the current build of Minecraft....you just can't get it I guess....
     
  10. Offline

    petteyg359

    0.3 is a minor update for latest Craftbukkit "recommended build" 53.
     
  11. Offline

    ImontypythonI

    i installed the plugin, and downloaded the items list, but when i /i *name* it still says, "unknown material *name*"
     
  12. Offline

    petteyg359

    What is *name*? Are you sure it's in your item.txt?
     
  13. Offline

    SeeD419

    Yeah, I used the item.txt in this thread. I could never get this thing to work even once :/
     
  14. Offline

    petteyg359

    Just tested with 53 and 432 (previous and current recommended builds) with item.txt from above, and it works fine.

    What craftbukkit build are you using?
    What other plugins do you have?
     
  15. Offline

    MasterMeNL

    I like this plugin, I decided to update Eplemosen's item file with beta 1.3.
    Changes made:
    - Bed added (bed)
    - Redstone repeater (rsrepeater,redrepeater, redstonerepeater)
    - Added Diamond Leggins since they were the ingame name. (dleggins, diamondleggins)

    - MasterMe
     

    Attached Files:

  16. Offline

    maxyboy

    very nice first one that works but cut you add that you can say give player item valu its easer becouse i got the to many items mod it gives you a ingame invetory editor when you open up your invetory you only have to click on a picture and you wil get 64 or if right clik 1 of it ok?
     
  17. Offline

    petteyg359

    0.4 adds support for Permissions. Tested with Permissions 2.5. Not sure if it will work with older versions.
     
  18. Offline

    petteyg359

    0.6 adds an alias list, and no longer tries to find queries in Bukkit's Material ENUM.
     
  19. Offline

    furt

    still showing 0.4.2 in console is it the right jar uploaded or did u just forget to update plugin.yml? [​IMG]
     
  20. Offline

    petteyg359

    Are you sure you downloaded the latest version (and put it in your plugins folder overwriting the old one)? If you just used `wget http://bukkit.somethingodd.info/files/OddItem.jar` and you already had an OddItem.jar, wget will rename the new one with a "-1" at the end.
     
  21. Offline

    furt

    Im sure im on win7 i renamed the old one and downloaded the new version ill try again just to see.

    Edit: ok nvm that was my mistake i forgot to move the old one b4 started up the server so it was running both of them lol
     
  22. Offline

    Gregory

     
  23. Offline

    petteyg359

    Fix the quote tags and read the first post. Why are you even quoting that in the first place?
     
  24. Offline

    taiiat

    seem to have a broken pointer here.
    Code:
    19:16:20 [SEVERE] null loading OddItem v0.6.1 (Is it up to date?)
    java.lang.NullPointerException
            at info.somethingodd.bukkit.OddItem.OddItem.onEnable(OddItem.java:136)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
    i don't think these are conflicting but just in case, here are my plugins.
    imgur.com

    also, as a suggestion for the future, i'd like to be able to use /oitem or /odd - or something else, anything nice and compact. speediness is definitely a good thing.
     
  25. Offline

    petteyg359

    Your craftbukkit doesn't have onLoad(). Current recommended build is 556.
     
  26. Offline

    taiiat

    hmm. updated to revision 556, fixed another plugins' issue, but not this ones'.
    Code:
    20:18:54 [INFO] [OddItem] 0.6.1 enabled
    20:18:54 [SEVERE] 1 loading OddItem v0.6.1 (Is it up to date?)
    java.lang.ArrayIndexOutOfBoundsException: 1
            at info.somethingodd.bukkit.OddItem.OddItem.parseConfig(OddItem.java:167)
            at info.somethingodd.bukkit.OddItem.OddItem.getItems(OddItem.java:78)
            at info.somethingodd.bukkit.OddItem.OddItem.onEnable(OddItem.java:144)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
     
  27. Offline

    petteyg359

    Paste your config file (plugins/Odd/item.txt).
     
  28. Offline

    taiiat

    the only thing i can see that is off from the syntax of the config are the two top lines which i added as this will be a hosted list of items and their aliases for my users.
    i don't suppose commenting isn't supported with this file?
    Show Spoiler

    Code:
    #command operation:
    #/odditem (item ID, or alias)
    
    0:empty|air|sky
    1:rock|smoothstone|stone
    2:grass
    3:dirt|derp
    4:cobblestone|cobble|cob
    5:wood|plank|woodenplank
    6:sapling|seedling
    7:adminium|bedrock
    8:water
    9:stillwater|swater
    10:lava
    11:stilllava|slava
    12:sand
    13:gravel|grav
    14:goldore|gore
    15:ironore|iore
    16:coalore|core
    17;0:tree|log
    17;1:redwood|pinetree
    17;2:birch|birchwood
    18:leaves|leaf
    19:sponge
    20:glass
    21:lapislazuliore|lapisore|llore|lore
    22:lapislazuliblock|lapisblock|llblock|lblock
    23:dispenser
    24:sandstone|sstone
    25:noteblock|musicblock
    35;0:cloth|wool|whitewool|whitecloth
    35;1:orangewool|orangecloth
    35;2:magentawool|magentacloth
    35;3:lightbluewool|lightbluecloth
    35;4:yellowwool|yellowcloth
    35;5:lightgreenwool|lightgreencloth
    35;6:pinkwool|pinkcloth
    35;7:graywool|graycloth
    35;8:ligthgraywool|lightgraycloth
    35;9:cyanwool|cyancloth
    35;10:purplewool|purplecloth
    35;11:bluewool|bluecloth
    35;12:brownwool|browncloth
    35;13:greenwool|greencloth|darkgreenwool|darkgreencloth
    35;14:redwool|redcloth
    35;15:blackwool|blackcloth
    37:flower|yflower|yellowflower
    38:rose|reflower|rflower
    39:brownmushroom|bmush
    40:redmushroom|rmush
    41:gold|goldblock|gblock
    42:iron|ironblock|iblock
    43:doublestair|doublestep
    44:stair|stairs|step|slab
    45:brickwall|brickblock
    46:tnt|bomb
    47:bookshelf|bookcase
    48:mossycobblestone|mossycobble|mossy|moss
    49:obsidian|obs|lavarock
    50:torch|light
    51:fire
    52:mobspawner|spawner
    53:woodstairs|woodenstairs|woodstair|woodenstair|wstair|wstairs
    54:chest|crate|box
    55:redstoneblock|rsblock
    56:diamondore|dore
    57:diamondblock|dblock
    58:workbench|worktable|work|crafter|crafttable|craft
    59:cropblock|wheatblock
    60:soil|farm|farmground
    61:furnace
    62:litfurnace|lfurnace
    63:signblock|sblock
    64:wooddoorblock|fencegate|gate
    65:ladder|ladders
    66:rails|tracks|rail|track
    67:cobblestonestairs|cobblestairs|cobstairs|cstairs
    68:signblocktop
    69:lever
    70:rockplate|rockpressureplate
    71:irondoorblock
    72:woodplate|woodpressureplate
    73:redstoneore|rsore
    74:redstoneorealt|rsorealt|redstoneorelit|rsorelit
    75:redstonetorchoff|rstorchoff
    76:redstonetorchon|rstorchon|redstonetorch|rstorch|rst
    77:button
    78:snow
    79:ice
    80:snowblock
    81:cactus|cacti
    82:clayblock
    83:reedblock
    84:jukebox|juke
    85:fence
    86:pumpkin
    87:brimstone|redsand|hellsand|nethersand|netherblock|nether|netherrack|netherstone|bloodstone|hell
    88:slowsand|soulsand|mud
    89:lightstone|lightblock|glowstone|glowblock|glow
    90:portal|portalblock
    91:lantern|jack|jackolantern|pumpkintorch|pumpkinlantern
    92:cakeblock
    256:ironshovel|ischovel|is
    257:ironpickaxe|ipick|ip|ironpick
    258:ironaxe|iaxe|ia
    259:flintandsteel|firestarter|fands|fas|lighter
    260:apple
    261:bow
    262:arrow
    263;0:coal
    263;1:charcoal
    264:diamond|d
    265:ironbar|i|ironingot
    266:goldbar|g|goldingot
    267:ironsword|isw|isword
    268:woodsword|wsw|wsword
    269:woodshovel|ws|wshovel
    270:woodpickaxe|woodpick|wp|pick
    271:woodaxe|wa|waxe
    272:stonesword|ssword|ssw
    273:stoneshovel|sshovel|ss
    274:stonepickaxe|stonepick|sp|spick
    275:stoneaxe|sa|saxe
    276:diamondsword|dsw|dsword
    277:diamondshovel|ds|dshovel
    278:diamondpickaxe|dp|diamondpick|dpick
    279:diamondaxe|da|daxe
    280:stick
    281:bowl
    282:soup|mushroomsoup|mushysoup|mushroomstew|stew|mushystew
    283:goldsword|gsw|gsword
    284:goldshovel|gs|gshovel
    285:goldpickaxe|gp|goldpick|gpick
    286:goldaxe|ga|gaxe
    287:string|thread
    288:feather
    289:gunpowder
    290:woodhoe|wh
    291:stonehoe|sh
    292:ironhoe|ih
    293:diamondhoe|dh
    294:goldhoe|gh
    295:seeds|seed
    296:wheat|crop
    297:bread
    298:leatherhelmet|lhelm
    299:leatherchestplate|leatherchest|lchest|leatherbody|leathershirt
    300:leatherpants|lpants
    301:leatherboots|lboots
    302:chainmailhelmet|chhelm|chainhelmet
    303:chainmailchestplate|chainchest|chchest|chainbody|chainshirt|chainchestplate
    304:chainmailpants|chpants|chainpants
    305:chboots|chainmailboots
    305:chainboots
    306:ironhelmet|ihelm
    307:ironchestplate|ironchest|ichest|ironbody|ironshirt
    308:ironpants|ipants
    309:ironboots|iboots
    310:diamondhelmet|dhelm
    311:diamondchestplate|diamondchest|dchest|diamondbody|diamondshirt
    312:diamondpants|dpants|diamondleggings|dleggings
    313:diamondboots|dboots
    314:goldhelmet|ghelm
    315:goldchestplate|goldchest|gchest|goldbody|goldshirt
    316:goldpants|gpants
    317:goldboots|gboots
    318:flint
    319:meat|pork
    320:cookedmeat|cmeat|cpork|cookedpork
    321:painting
    322:goldenapple|goldapple|gapple
    323:sign
    324:wooddoor|woodendoor|wdoor
    325:bucket
    326:waterbucket|wbucket|wbuck
    327:lavabucket|lbucket|lbuck
    328:minecart|cart
    329:saddle
    330:irondoor|idoor
    331:redstonedust|redstone|rsdust|rs
    332:snowball
    333:boat
    334:leather
    335:milkbucket
    336:brick
    337:clay
    338:reed|sugarcane|sugarcanes|bamboo
    339:paper
    340:book
    341:slimeorb
    342:storageminecart|sminecart|scart
    343:poweredminecart|pminecart|pcart
    344:egg
    345:compass
    346:fishingrod|rod
    347:watch|clock
    348:lightstonedust|lsdust|lightdust|glowdust|gsdust|glowstonedust
    349:fish|rawfish
    350:cookedfish|cfish
    351;0:black|blackdye|ink|inksack|inksac
    351;1:red|reddye|rosered
    351;2:green|greendye|cactusgreen
    351;3:brown|browndye|cocobeans
    351;4:blue|bluedye|lapislazuli|lapis
    351;5:purple|purpledye
    351;6:cyan|cyandye
    351;7:lightgray|lightgraydye
    351;8:gray|graydye
    351;9:pink|pinkdye
    351;10:lime|limedye
    351;11:yellow|yellowdye|dandelionyellow
    351;12:lightblue|lightbluedye
    351;13:magenta|magentadye
    351;14:orange|orangedye
    351;15:white|whitedye|bonemeal
    352:bone
    353:sugar
    354:cake
    355:bed
    356:redstonerepeater|rsrepeater|redrepeater|rrepeater
    2256:yellowrecord|thirteen
    2257:greenrecord|cat
    
     
  29. Offline

    petteyg359

    Your problem is the first three lines. I can add support for #comments, but right now it just expects an item per line and nothing else.
     
  30. Offline

    taiiat

    alright. if that's the problem, i'll fix that.
     

Share This Page