[RPG/MECH] Mob Drops v1.3 - Choose when mobs drop items and what they drop! [1576]

Discussion in 'Inactive/Unsupported Plugins' started by coldandtired, Dec 2, 2011.

  1. Offline

    coldandtired

    This plugin allows you to set many different conditions to decide what (if anything) a mob should drop. Conditions can be as simple or as complicated as you want.

    See the details at the BukkitDev page (especially the tutorial)!
     
  2. Offline

    Kane

    Seems pretty cool but since you released it now I would just skipped 1.8 stuff and went to 1.9 support new mobs.

    One thing I do want to check and or ask. I dislike mobs dropping anything by natural deaths. I only ever want mobs to drop anything if they are killed by a sword.

    Is this possible and could you provide a config example? This what I have so far for another plugin I use:
    Code:
    defaults:
    include-files:
    configversion: 3
    aliases:
    otherdrops:
      CREATURE_CHICKEN:
          - tool: ALL
            drop: NOTHING
          - tool: [ANY_SWORD, BOW, ARROW]
            drop: DEFAULT
      CREATURE_COW:
          - tool: ALL
            drop: NOTHING
          - tool: [ANY_SWORD, BOW, ARROW]
            drop: DEFAULT
      CREATURE_SHEEP:
          - tool: ALL
            drop: NOTHING
          - tool: [ANY_SWORD, BOW, ARROW]
            drop: DEFAULT
      CREATURE_PIG:
          - tool: ALL
            drop: NOTHING
          - tool: [ANY_SWORD, BOW, ARROW]
            drop: DEFAULT
      CREATURE_CREEPER:
          - tool: ALL
            drop: NOTHING
          - tool: [ANY_SWORD, BOW, ARROW]
            drop: DEFAULT
      CREATURE_ZOMBIE:
          - tool: ALL
            drop: NOTHING
          - tool: [ANY_SWORD, BOW, ARROW]
            drop: DEFAULT
      CREATURE_SPIDER:
          - tool: ALL
            drop: NOTHING
          - tool: [ANY_SWORD, BOW, ARROW]
            drop: DEFAULT
      CREATURE_SKELETON:
          - tool: ALL
            drop: NOTHING
          - tool: [ANY_SWORD, BOW, ARROW]
            drop: DEFAULT
     
  3. Offline

    coldandtired

    It's written in a way that it should automatically find all new mobs without changing the code (as long as the Bukkit team is consistent). If it doesn't it means that they aren't consistent or they're not raising the death event for the new mobs yet.

    I like your idea and it shouldn't be hard to add so it will be coming soon :)

    Sigh... When I had this idea the other night I searched for 'exp' and 'items' on BukkitDev and was a bit surprised no-one had already done it, so I went ahead. I never searched for 'drops' (I decided on the name last) :(

    That otherdrops plugin looks quite powerful but it doesn't do all the things I was planning to add so I think I'll continue anyway. :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 21, 2016
  4. Offline

    coldandtired

    I'm happy to say that this (and a whole lot more) is now possible with 1.2!

    Off the top of my head, the config would look like this:
    Code:
    mobs:
      - name : pig
        conditions:
          - player:
               holding:
                 - name: swords
            outcome:
              drop_chances:
                - percent: 100
                  drops:
                  - name: glowstone, red_wool
    Looks a little long, but that's because I added dozens of possible conditions to check for to decide what (if any) drops to give.
     
  5. Offline

    Kane

    Pretty sexy thanks. can I do sword,bow,arrow. I notices you had swords I assume that is a type or does that actually classify all sword types?
     
  6. Offline

    coldandtired

    You can do name: weapons to include all swords and bows, or name: diamond_sword, iron_sword to only include some swords.
     
    Kane likes this.
  7. Offline

    coldandtired

    Updated to 1.3 and the CB 1597.

    Also added some new conditions, based on the real date and time.
     

Share This Page