High on dye

Discussion in 'Archived: Plugin Requests' started by Shurfire, May 31, 2013.

  1. Offline

    Shurfire

    Hello, i was wondering if someone here is interested in making a plugin that would be able to attach effects from http://www.minecraftwiki.net/wiki/Status_effect to dye's (mainly) with like /effect vanish DURATION and then be able to sell it possibly with chestshop since chestshop offers the misc event that allows new items to be sold?
    Please and thanks if this can be done. ;)
     
  2. Offline

    Zarius

    How did you want the effects to be applied? If it's upon rightclick then that's easy to do with OtherDrops. Here's a quick example (goes in otherdrops-drops.yml):

    PHP:
      ANY:
      - 
    actionrightclick
        tool
    dye@blue~&rVanish Dye
        potioneffect
    INVISIBILITY@400@2  # invis level 2 for 400 ticks (20 seconds)
    The "~&rVanish Dye" bit is an optional custom name requirement (the &r means that it can't just be named at an anvil). You can add any of the potioneffects that Bukkit supports or you could use commands if you need something from another plugin for example.
     
  3. Offline

    Shurfire

    That does seem interesting, but i would need to somehow have it being sold automatically via a sign system or something like chestshop? is there a plugin that allows to do this? or does otherdrops already have something that works like this?
     
  4. Offline

    Zarius

    Shurfire - no, OtherDrops can't do selling via signs (yet) so you'll need to find a shop plugin that supports custom item names.

    Alternatively you could skip the name and just use data values for dye higher than 15, eg. DYE@18. This type of dye won't be able to be found naturally & won't stack with standard dyes, but can be sold via ChestShop.
     
  5. Offline

    Shurfire

    and in the config where should i put that? i'm trying to use that exact same code and it wont work :(
     
  6. Offline

    Zarius

    Copy/paste it to the bottom of the otherdrops-drops.yml file.
     
  7. Offline

    Shurfire

    i did, but like how do i spawn it just /i bluedye (lapis)
     
  8. Offline

    Zarius

    Shurfire - sorry, you can create it with any plugin that lets you add lore to items (eg. Lores) or from OtherDrops you can drop one on the ground with /odd dye@blue~&rVanish Dye

    (edit: I discovered there's a bug with lorenames, it's fixed in the latest dev build - available here.)
     

Share This Page