[MECH] OtherDrops 2.8- Ultimate block/mob/player drop editing [1.5.2]

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

  1. Offline

    Zarius

    [​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
     
  2. Offline

    mraygamer

    Have you tried otherDROPS.custom.coal?
     
  3. Offline

    Kane

  4. Offline

    Celtic Minstrel

    Uh, the only way that could happen is if you had a tree with data value 3. The valid range is 0-2.
     
  5. Offline

    Kamilio

    Is there any way of using this plugin for this idea?:

    I wan't to make Mining and Farming harder to obtain the products.
    For example, If you find Iron Ore, you only have a 25% chance of that block actually dropping.
    Also, if you harvest Wheat, you only have 25% of getting the wheat..

    Would this be possible?
     
  6. Offline

    Celtic Minstrel

  7. Offline

    dyrnwyn

    Cool! So will that also fix the not getting money when shooting something with a bow and arrow.
     
  8. Offline

    Celtic Minstrel

    No idea? Hopefully.
     
  9. Offline

    Jed1314

    Could I use this to modify the drops of mo' creatures mobs ?
     
  10. Offline

    Celtic Minstrel

  11. Offline

    Zarius

    That's a good point, I'd better make sure I support the old otherblocks.custom permission too for the final release of version 2.

    Not sure why that issue would kill new connections but I'll look into added more error checking there anyway to avoid that issue.

    With test that out before my final release, just waiting to see what happens with 1.9, releasing a release candidate this weekend regardless.

    Not yet ;) I'm looking into it. Won't be for version two and no guarantee that it will work but after version two has been release I'll let you know how I go.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 15, 2016
  12. Offline

    Celtic Minstrel

    Custom blocks can probably be done at the expense of uglifying the code. Custom mobs, on the other hand, there's no way to do. They might be possible if you build against CraftBukkit, but other than that, no chance. (And of course, building against CraftBukit is never recommended.)
     
  13. Offline

    Tanite

    What should one build against if not CraftBukkit, Bukkit itself? Sorry going off-topic but I'm just starting to learn plugin development and if I'm Doin' It Wrong it's better to know now :p
     
  14. Offline

    sirvulcan

    Is leaf decay currently broken? My 1.7 config no longer drops items when trees decay. They just drop the standard saplings. Ive got verbosity on high and its not even picking up the events it seems. Its picking up my other events that I have configured.

    Config files: http://pastebin.com/u6LB0YhP / http://pastebin.com/7TJ3sGNk
     
  15. Offline

    Zarius

    Hmm, that should work - try this config instead and see if it works?

    Code:
      LEAVES@BIRCH:
          - drop: AIR
            action: LEAF_DECAY
            chance: 100
          - drop: SAPLING
            action: LEAF_DECAY
            chance: 10
            color: BIRCH
          - drop: STICK
            action: LEAF_DECAY
            chance: 10
          - drop: APPLE
            action: LEAF_DECAY
            chance: 5
          - drop: DYE
            action: LEAF_DECAY
            color: BROWN
            chance: 5
          - drop: GOLDEN_APPLE
            action: LEAF_DECAY
            chance: 0.1
    
    When building plugins you usually compile against "Bukkit" which is the core API and mostly stable. "CraftBukkit" is the server that is built on top of Bukkit and, since it's not designed as an API, is not expected to be stable (in terms of function names, etc).
     
    Tanite likes this.
  16. Offline

    Tanite

    Ah good to know, thanks!

    *rushes off to recompile his noob tutorial projects*
     
  17. Offline

    Kane

    Was that towards me since you did not quote me? THis what my config looks like:
    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

    This was related to:
    http://pastie.org/2607386
     
  18. Offline

    Zarius

    Thanks for the config - doesn't seem to be an issue with that though - it's just a debug message trying to work out what a player clicked on (which seems to be an invalid treetype for some reason). I can work around the issue by putting an error check in that section so that if it occurs again we can tell what happened (and avoid the messy errors).
     
  19. Offline

    Celtic Minstrel

    I didn't add an error check when I identified the issue; did you want me to or are you going to do it?
     
  20. Offline

    Chronx6

    You might be able to if the mod that adds them uses Spout to do so once its able. But I'm not even sure of that as its not out just yet.
     
  21. Offline

    Celtic Minstrel

    Ah, good point; might also be possible with Spout eventually. It also might be possible with the Bukkit modding interface if that ever comes to light.
     
  22. Offline

    p000ison

    I'll test it again. I hate this trouble with permissions 2/3 and bukkitpermissions. Some plugins only support permissions3. And other only bukkitpermissions. I hate this f***.
     
  23. Offline

    Kamilio

    If I were make it so Ores drop only a 40% chance of the time, would my config look like this? I also want Gold Pickaxes to drop ores 100% of the time. I tested this out and it doesn't seem to be working.

    IRON_ORE:
    - tool: ANY_PICKAXE
    toolexcept: GOLD_PICKAXE
    drop: NOTHING
    chance: 60%
    GOLD_ORE:
    - tool: ANY_PICKAXE
    toolexcept: GOLD_PICKAXE
    drop: NOTHING
    chance: 60%
    DIAMOND_ORE:
    - tool: ANY_PICKAXE
    toolexcept: GOLD_PICKAXE
    drop: NOTHING
    Chance: 50%
    REDSTONE_ORE:
    - tool: ANY_PICKAXE
    toolexcept: GOLD_PICKAXE
    drop: NOTHING
    chance: 70%

    Am I missing something here?
     
  24. Offline

    Ruinheart

    Haha another mod that lets you customize minecraft I love it! But hey just wondering is there an event programmed in to drop a placed block when one is destroyed? For example when a person mines Iron ore I want the Iron Ore block to be changed into stone? Also a way to maybe change what happens when water interacts with lava or another block? just some ideas.
     
  25. Offline

    Kane

    I should have explained better when this happen the players in game could stay connected but no new connections were not accepted till I rebooted the server.
     
  26. Offline

    Kamilio

    A config is already included for the ore drop. It's called "ore extraction". When you mine the ore, stone is replaced by it, so your extracting the ore
     
  27. Offline

    Ruinheart

    Oh great! so I assume theres nothing to change water/lava interactions though?
     
  28. Offline

    Kamilio

    I'm not too sure about that. you probobly can you do it, this plugin is really flexible
     
  29. Offline

    Celtic Minstrel

    You may be able to change water/lava interactions by specifying something like this:
    Code:
      LAVA:
        - tool: DAMAGE_WATER
          # put other stuff here
    
    This is experimental and untested, though. Also you have to explicitly enable it in your main config file. I'm not sure if it'll do what you want; the intended use is for things like torches getting washed away by water.
     
  30. Offline

    Kamilio

    For some reason, all my drops are set to default to only drop at NIGHT... What can I do to fix this? I tried using time: ANY for a drop but that still didn't work...
     
  31. Offline

    sirvulcan

    That worked, thanks.
     

Share This Page