[MECH] OtherDrops 2.7 - Ultimate block/mob/player drop editing [1.4.7]

Discussion in 'Plugin Releases' started by Zarius, Jun 12, 2011.

     
  1. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [IMG]


    Want to fix glass/stairs/boat drops? Want to gather ice/glowstone/grass in a balanced manner? Want to smelt ore with golden tools? Want to cause chaos with undead that rise again? Now you can, simply by enabling the included example files or delve into the more advanced customisation and make drops work the way you want.

    OtherBlocks aims to give you ultimate control over what item that blocks/entities drop when destroyed, depending on how they were destroyed. Compatible with WorldGuard. Lightweight! Only scans what it needs to and ignores the rest.
    Download: BukkitDev (download link on there) | Source Code

    Included Modules
    * Fix undroppables: fix drops for stairs, glass (don't use your hands - ouch), boats & bookshelves (1.8 stairs included)
    * Gold tools (basic): gold tools have a chance of dropping the complete block for grass, ice & glowstone.
    * Gold tools (smelt): gold tools have a chance of mining an ingot directly from ores.
    * Ore Extraction: using the usual tools, ingots are ripped out of ores, leaving the stone behind.
    * Leaf overhaul: adds leaf drops (apples, cocoa, leaves, sticks & a very small chance of golden apple).
    * Undead Chaos: beware the night! Zombies & skeletons rise again and even players rise back from the dead (player deaths spawn more zombies/skeletons).
    * and more...

    Custom Configuration Examples
    Code:
        # Simple glass drop fix
        GLASS:
          - drop: GLASS
     
        # Players drop Zombies on death, 50% of the time
        PLAYER:
          - drop: CREATURE_ZOMBIE
            chance: 50%
     
        # Spiders killed with any sword at night have a 10% chance to drop web,
        # otherwise they drop whatever they normally would
        CREATURE_SPIDER:
          - tool: ANY_SWORD
            time: NIGHT
            drop: WEB
            chance: 10%
     
        # Trees drop apples (or cocoa from birch trees)
        SPECIAL_LEAFDECAY@GENERIC:
          - drop: APPLE
            chance: 5%
        SPECIAL_LEAFDECAY@BIRCH:
          - drop: DYE@BROWN
            chance: 5%
    
    If you are getting errors with the word "snakeyaml" in it, your config file isn't properly formatted.
    Test it on this website (or this one).

    See the dev.bukkit page for full details on how to set up OtherDrops, a complete parameters list and further examples.


    Changelog

    Newest changelog details here.


    Main author: @Zarius
    Contributors: @Celtic Minstrel, raws
    Original author: @cyklo

    This post has been edited 84 times. It was last edited by Zarius Feb 21, 2013.
  2.  
  3. Offline

    Sorken

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sounds like a plan, its good to keep em on their toes... Is it CREATURE_CAVESPIDER ?

    Edit: Also, so far no error messages with latest beta :)

    This post has been edited 1 time. It was last edited by Sorken Jan 29, 2012.
  4. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yup, or just CAVESPIDER should work (technically it's CAVE_SPIDER but OtherDrops 2.2 should be able to interpret it without the underscore).

    Cool - I might release 2.2 shortly (only minor changes - fix DEFAULT for fishing and a couple more aliases).
  5. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If anyone's interested in customising mobs - health (including ranges for more variance in mobs), attacks (fireballs, snowballs, freeze & burn), abilities (glowing, flaming, etc), factions (some mobs may not like others) and where they spawn (based on the same conditions as Otherdrops) - check out my work in progress: OtherMobs (there's a pre-release download at the bottom of the page - be careful with it)

    There's also an example config for it here which shows a bit more of what I have in mind.

    This post has been edited 2 times. It was last edited by Zarius Jan 29, 2012.
  6. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Release 2.2 (download in top post)

    - DEFAULT now works correctly with fishing actions
    - new aliases (SPAWN_EGG for MONSTER_EGG, GLISTERING_MELON for SPECKLED_MELON)
    - od-fix_undroppables now has endermen dropping their contents on death
  7. Offline

    BeeT

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Zarius

    Please fix creeper explosion, because if creeper explosion kill Sekelton or another mob it drops a lot...
  8. Offline

    Hopium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    im having trouble getting my creature drops to work could you possibly look at it to see if there is something dumb i am doing, i think it might be my gold/XP line here

    also with othermobs are we gonna be able to use mobs aliases for otherdrops like CREATURE_HELLHOUND if Hellhound is defined in othermobs?
  9. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Odd - just tested it and it works fine - can you please provide more details on the isssue? What version of craftbukkit and otherdrops are you using, what's your config and how many items are we talking we you say a "lot"? Is this only with mobs that are customised with otherdrops or do you get a lot of drops via creeper death from mobs that aren't customised?

    You're better off splitting that gold xp drop into two to fix the messages appearing every time:
    Code:
            - drop: XP/25/15%
              message: ["Bonus xp!"]
              exclusive: 1
            - drop: GOLD_INGOT/1-3/15%  
              message: ["&3Oooo %q gold!","&3%q gold has dropped..","&3Grab that gold."]
    
    Testing this I found there's a problem with %q (it's showing 0 every time in this config) - this will be fixed in the next build.

    If there's more issues you're having with the config you posted please let me know more details about what the issues are.

    Yeah, the plan is to allow OtherDrops to customise OtherMobs creatures.
  10. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Release (download in top post):

    Version 2.2.1 (2012/01/30)

    * Quickfix for messages in some configs showing 0 for %q
  11. Offline

    BeeT

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Zarius - i think it's worldguard fault, I used to fix it: ANY_CREATURES, I written it on stop_mob_farming file and it's works now. :)
  12. Offline

    Hopium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    using new setup still not getting results in game no yml errors or anything in the console running the 2.2.1 priority was set on high in the config

    othermob related would you plan on adding on option to skin them with spout for users already running it

    This post has been edited 1 time. It was last edited by Hopium Jan 30, 2012.
  13. Offline

    gawelium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi ! I have a server 1.0.1 with craftbukkit 1.0.0-R1. Did your new update will work or I have to update my server in 1.1 ?
  14. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Should work fine in 1.0.1 - let me know if there are any issues (hmm... spawneggs alias might stop it from working, either way give it a go on a test server and let me know, I can work towards getting a backwards compatible build going).

    Hmm... do you get any startup messages from OtherDrops? If not then somethings not working...

    OtherMob: yup, you'll see in the example config page on BukkitDev that I've for a skin: parameter there :) It all depends on how difficult it turns out to be.
  15. Offline

    gawelium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    OK thank's. I'm testing all my plugins in 1.1.
    Does it correct ? :
    Because when I brook redwood with diamond axe I just receive the message but not the money. I use Iconomy 6.0.7

    This post has been edited 1 time. It was last edited by gawelium Jan 30, 2012.
  16. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @gawelium

    Assuming the spacing is correct (looks like the tabs are gone in that copy/paste - try using <code> </code> blocks? - replacing <> with []) it all looks good and should work. Does the ANY_AXE drop (ie. 1-5 logs) work?

    Is there any message about hooking into iconomy on startup? Perhaps put verbosity on highest in the otherdrops-config.yml file and check startup messages as well as messages when you break the log?
  17. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Hopium

    [IMG]

    Custom skins for OtherMobs was easier than expected with Spout - just need better skins :D
  18. Offline

    gawelium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes Yes, spacing is correct, all is correct in fact !! but in permissions file I was in the wrong job !! sorry !!
    But with "verbosity: highest" there are too much messages in the console !
    With the money's message, I haven't got the iConomy message like : You obtain xx dollars. Maybe a setting in iConomy ?
  19. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @gawelium - yeah, highest has a _lot_ of messages :D Good for working out issues though. I'd recommend normal or low for a live server.

    For money I don't think there is a default message - not sure about iConomy but you can use a message in OtherDrops like: "message: You got %q dollars." You should be able to check how much money you have by typing /money before the drop and /money after the drop.
  20. Offline

    gawelium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes thank's.
    But I modify the Money drop :
    drop: [MONEY/100%/0.01-0.9]
    message: Tu obtiens un peu d'argent (%q CrazyCrafts)

    And in game it's write : 1 CrazyCrafts. how to set the 0.8 par example ?
  21. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @gawelium

    You need to leave off the [] brackets. Because the []'s indicate a list which could contain multiple items the %q option doesn't know how to work so just tells you how many drops of the list it does (in this case one drop containing 0.01-0.9 money). This should work:

    Code:
      GRASS:
        - drop: MONEY/100%/0.01-0.9
          message: Tu obtiens un peu d'argent (%q CrazyCrafts)
    
  22. Offline

    gawelium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You're a genius ! thank's

    edit : I think we can add a code color in the message? what would it be ?

    This post has been edited 1 time. It was last edited by gawelium Jan 30, 2012.
  23. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yup - use &1 through &9 and then &A through &F, codes and colours are here.

    Eg - message: ["Color test: &EYellow, &CRed, &fWhite"]
  24. Offline

    gawelium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    thank's.
    like this ?
    Code:
    LOG@BIRCH:
            - tool: ANY_AXE
              drop: LOG@BIRCH/100%/1-3
              permissions: bucheron
            - tool: DIAMOND_AXE
              drop: MONEY/50%/0.01-0.9
              message: &9 Tu obtiens un peu d'argent &b (%q CrazyCrafts)
              permissions: bucheron
    

    This post has been edited 2 times. It was last edited by gawelium Jan 30, 2012.
  25. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yup, that should work - just test it out :)
  26. Offline

    gawelium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    :( doesn't work
    Code:
    [SEVERE] Error occurred while enabling OtherDrops v2.2.1 (Is it up to date?): found duplicate anchor 9; first occurence; second occurence
    found duplicate anchor 9; first occurence
     in "<reader>", line 12, column 20:
                  message: &9 Tu obtiens un peu d'argent &b ... 
                           ^
    second occurence
     in "<reader>", line 23, column 20:
                  message: &9 Tu obtiens un peu d'argent &b ... 
                           ^
    
  27. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ah, you need quotation marks around it. ie. "&9colored text...."
  28. Offline

    gawelium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thank's. Works :D
  29. Offline

    Hopium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Zarius got it figured out i was pointing to drops.yml not include/drops.yml and it auto generated the file so there was no errors im just a slow kid, another quick question is do have to disable the default drops for each custom drop or is there a way to do it globally. thats awesome about the skins, now i can make skeleton knights and goblins!!
  30. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You should be able to use "drop: NOTHING" and then specify your own drops.

    For doing it globally:

    Code:
      ANY_BLOCK:
        - drop: NOTHING
      ANY_CREATURE:
        - drop: NOTHING
    # rest of your config down here...
    
  31. Offline

    Hopium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    ok i included that into my config but i am still getting strange behavior i uploaded a video showing what i mean cause it would be easier i think then explaining, the exclusive isn't working properly i believe and its tripling drops sometimes i'll include my config again and here is a quick video at :35 you see it drop xp and gold even tho they both have exclusive 1 and a few double triple drops

    log excerpt just me reloading with 0 errors in config and no others showing up while killing mobs
    Code:
    2012-01-30 22:00:19 [INFO] [OKLogger] [COMMAND] <BeyondLSD(192.168.1.1)>@DefianceMC(651,63,-911) : /od reload
    2012-01-30 22:00:19 [INFO] [OtherDrops:2.2] Events node created.
    2012-01-30 22:00:19 [INFO] [OtherDrops:2.2] Events loaded: [EXPLOSION, SHEAR, UNSHEAR, SHEARTOGGLE, DYE, TREE, FORCETREE, LIGHTNING, STORM, THUNDER]
    2012-01-30 22:00:19 [INFO] [OtherDrops:2.2] Loading file: otherdrops-drops.yml
    2012-01-30 22:00:19 [INFO] [OtherDrops:2.2] Loading file: includes/drops.yml
    2012-01-30 22:00:19 [INFO] [OtherDrops:2.2] Using Bukkit superperms.
    2012-01-30 22:00:19 [INFO] [OtherDrops:2.2] Config reloaded by BeyondLSD.

    This post has been edited 1 time. It was last edited by Hopium Jan 31, 2012.
  32. Offline

    durand1w

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sorry if I missed this, but do you have an example(s) on the vanilla CREATURE_ENDERDRAGON drop and how to modify it? Our server has a small hoard of ender dragons due to a bug in the end.

Share This Page