[ItemView] Number & Enchantment #76


  • Enhancment
  • Started
Open
Assigned to desht_08
  • _ForgeUser8077206 created this issue May 11, 2014

    What is the enhancement in mind? How should it look and feel?

    • Create icon number variable (e.g. 10 wool) for Item view,
    • Create enchantment vairable (e.g. true - wool have enchantment layout) for Item view,
    • Create API for them.
  • _ForgeUser8077206 added the tags New Enhancment May 11, 2014
  • desht_08 posted a comment May 13, 2014

    This is added in the dev code now. To use quantities and glowing icons in-game:

    # 10 blue dye (lapis), glowing
    /sms add mymenu "Label" "/command" -icon ink_sack:blue,10,glow
    

    Base syntax is <material> or <material:data>. Data can be a Bukkit DyeColor name for colourable materials like dyes, wool, stained glass etc. or it can be a number 0-255.

    Then you can add (separated by commas) a numeric quantity, or the word "glow" for the enchantment effect. Not all items will show a glow effect - client-side limitation.

    To do this via the API, I've added a withIcon(ItemStack) method (in addition to the existing withIcon(MaterialData) method) to the SMSMenuItem.Builder class. So you can pass an ItemStack with the quantity you want. And there's a new withGlow(boolean) method to add items with the glow effect.


    Edited May 13, 2014
  • desht_08 removed a tag New May 13, 2014
  • desht_08 added a tag Accepted May 13, 2014
  • desht_08 removed a tag Accepted May 20, 2014
  • desht_08 added a tag Started May 20, 2014

To post a comment, please login or register a new account.