[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

    Ruinheart

    Hey is there any way you could change the name when you hover over an item? like when you hover over a wooden sword it says "Wooden Sword"?
     
  3. Offline

    petteyg359

    That would require a client mod.
     
  4. Offline

    petteyg359

    0.6.3 fixed so that Material ENUM works as intended.
     
  5. Offline

    SubNoize

    hey, awesome plugin.

    I added the permissions to my permissions file but it still says it can't find them and default to op.

    Thing is i'm also an Op and can't use it.
     
    nubpro likes this.
  6. Offline

    petteyg359

    Are you sure you've got Permissions.jar (or FakePermission.jar)? Also, this plugin doesn't do much by itself (though I suppose it could be used as a Material ID search using the aliases command). Define "can't use it".
     
  7. Offline

    Puremin0rez

    Your item.txt is 404-ing. Please fix :)
     
  8. Offline

    petteyg359

    Fixed.
     
  9. Offline

    Josh1984

    Just saying hey. Any news on an update so it'll work with 1.4?
     
  10. Offline

    petteyg359

    Huh? It should work with every build since 548 or so (whenever onLoad() was added).
     
  11. Offline

    Erizo

    Hi !

    Great plugin, very usefull !

    I've a question : i have to reload manually the item.txt (/odditem reload) each time i reload all the plugin or each time i reboot the server;

    Is there a way to do it automatically ?

    Because when it's not loaded, it bugs my iConomyChestShop plugin

    -sorry for my English - ^^'
     
  12. Offline

    petteyg359

    That makes no sense, unless you're using some strange custom craftbukkit build that doesn't have onEnable().
     
  13. Offline

    Erizo

    Hum,

    I use the craftbukkit build that is installed with VeryGame Server (i think it's not a custom one)

    if i use /reload -all : All my iConomyChestShop Signs are inactive.

    The only way to repair it is to use /odditem reload

    thanks a lot for your quick answer !
     
  14. Offline

    petteyg359

    iConomyChestShop is somehow not seeing when my plugin loads. I can send the author a pull request if I can figure it out, but he'll have to release a new version of his plugin himself :)

    EDIT: It looks like it should work fine...
     
  15. Offline

    Erizo

    Ok ! thanks again for your answers !!

    EDIT : So, if i understand what you're saying, the problem doesn't come frome any of this 2 plugins ...

    :X

    do you have any idea how i could solve the problem ...

    thx for your concern.
     
  16. Offline

    petteyg359

    Can you tell me what's wrong with it?

    EDIT: Or you could just delete your post.
     
  17. Offline

    MasterMeNL

    I don't have time to test, but it seems the plugin loading something has changed on build 670+. (It's on the main page of bukkit.)
    Could you update this? :)
     
  18. Offline

    petteyg359

    0.6.5 uploaded, adds !DEFAULT and #comments support..
     
  19. Offline

    Azxdcvg

    For those of you looking for it, HERE is a complete items list. I wrote this myself, let me know if any ammendments are needed.
     
    petteyg359 likes this.
  20. Offline

    torey0

    I added/changed these in to Azxdcvg's list, wanted a way to make lapis buyable on its own so I added a lot of related items.

     
  21. Offline

    DragonSupremacy

    I have this as my odditem.yml (since item.txt wasn't being read).

    Code:
    0:empty|air|sky
    1:rock|smoothstone
    2:grass
    3:dirt
    4:cobblestone|cobble|cob
    5:wood|plank
    6:sapling|seedling
    7:adminium|bedrock
    8:water
    9:stillwater
    10:lava
    11:stilllava
    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
    22:lapislazuliblock|lapisblock|llblock
    23:dispenser
    24:sandstone
    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|limewool|limecloth
    35;6:pinkwool|pinkcloth
    35;7:graywool|graycloth
    35;8:lightgraywool|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
    38:rose|reflower
    39:brownmushroom
    40:redmushroom
    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
    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
    63:signblock
    64:wooddoorblock|fencegate
    65:ladder|ladders
    66:rails|tracks|rail|track
    67:cobblestonestairs|cobblestairs|cobstairs
    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|woodensword|wsword
    269:woodshovel|ws|woodenshovel|wshovel
    270:woodpickaxe|woodenpickaxe|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
    288:feather
    289:gunpowder
    290:woodhoe|wh
    291:stonehoe|sh
    292:ironhoe|ih
    293:diamondhoe|dh
    294:goldhoe|gh
    295:seeds|seed|crop
    296:wheat
    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
    313:diamondboots|dboots
    314:goldhelmet|ghelm
    315:goldchestplate|goldchest|gchest|goldbody|goldshirt
    316:goldpants|gpants
    317:goldboots|gboots
    318:flint
    319:meat
    320:cookedmeat
    321:painting
    322:goldenapple|goldapple
    323:sign
    324:wooddoor|woodendoor|wdoor
    325:bucket
    326:waterbucket
    327:lavabucket
    328:minecart
    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
    343:poweredminecart
    344:egg
    345:compass
    346:fishingrod
    347:watch
    348:lightstonedust|lsdust|lightdust|glowdust|gsdust|glowstonedust
    349:fish|rawfish
    350:cookedfish
    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:repeater|rsrepeater|rsrep|redstonerepeater|rep
    2256:yellowrecord
    2256:thirteen
    2257:greenrecord
    2257:cat
    
    Using Craftbukkit build #670.

    While I can use itemID's found in this file to create shops in iConomyChestShop, I am unable to use /odditem aliases.

    When I try to use /odditem aliases diamondpick, diamondpickaxe or dpick, it just says it doesn't exist.

    Any chance you could update to support build 670?
     
  22. Offline

    petteyg359

    There is no odditem.yml, and even if there was, you'd need to use YAML format.
    Find the file, and if it isn't there, there should be exceptions in the console. You can't just go and pick some random other file and expect it to work.

    This has supported 670 since before 670 existed, considering that Craftbukkit has not made any changes to break this since 553.

    The only reason it works at all for some items is because it now automatically adds the standard bukkit names (dirt, wood, stone, etc.) if item.txt is empty.
     
  23. Offline

    DragonSupremacy

    First of all: your plugin does *not* create an item.txt at all on first run, I had to add it manually.

    Secondly:
    I've had the issue where the .yml only parsed 131 entries, where the item.txt parsed all 711 entries correctly.

    What exactly was I doing wrong? (I've just removed the .yml file and am using .txt now)

    Thirdly: your plugin *does* ask for either "item.txt" or "OddItem.yml" (and this was before putting either file in, I know)
    Proof.

    Finally, is it possible you can adjust the plugin so it tries to read from the "OddItem" folder rather then "Odd"? Excuse the pun, but that's rather odd :)
     
  24. Offline

    petteyg359

    Because, like I said, there is no .yml file. It assumed you had no configuration, and loaded the 131 default names that bukkit uses (some of which are not very conveniently typed, like flint_and_steel).

    It doesn't ask for it; it just says it couldn't find it. However, if you noticed that bit, then you should've at least tried to make the self-explanatory conversion to YAML format:
    Code:
    1: ['name1', 'name2', 'name3']
    2:
      - 'name21'
      - 'name22'
    
    It still wouldn't have worked, because I haven't actually implemented reading the YAML file yet (just the existence check in case item.txt is not found) :)
    All my plugins read from the Odd folder. If you must have it in a different folder though I can add that.
     
  25. Offline

    DragonSupremacy

    Ah, it's a common folder for all 3 plugins then, makes sense.

    Also, I'm not exactly experienced in conversion to YAML format, I've gotten permissions to work because of example, but that's about it.

    If I understand your "code" part correctly, I'd have to put in every aliases divided by | into
    Code:
    1: ['name', 'name2', 'name3']
    
    and put in extra databytes like
    Code:
    2:
        - 'name21'
        - 'name22'
    
    Besides that, thanks for the plugin, I don't really need an extra .yml but for those of us who would want to, it's a neat little extra :)
     
  26. Offline

    petteyg359

    Actually, for data values for colored wool, slabs, logs, etc., assuming I understand YAML "arrays" properly, I think it would be:
    Code:
    35:
      - name: blackwool
        data: 15
    
     
  27. Offline

    Etsijä

    Hmm, since this plugin does not create the plugins/Odd/item.txt automagically when run for the first time, where would a legitimate item.txt be for me to use?
     
  28. Offline

    DragonSupremacy

    Look in the first page, or try this

    Note: itemID 354 has 'cake' and 'caek' in it
     
  29. Offline

    Racha

    It doesnt create any files ;(
     
  30. Offline

    Rayback1985

    hello I have a little problem.
    If I start my Bukkit(670)-Server I get an error that OddItem Couldn't find item.txt or OddItem.yml
    I have manually create a item.txt but I get this error again.
     
  31. Offline

    petteyg359

    When I added the check for the YAML file, I accidentally erased the part that created the empty item.txt.
     

Share This Page