[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. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Like this?

    Code:
        NETHERRACK:
          - action: RIGHT_CLICK
            tool: GOLD_HOE
            replacementblock: SAND
    

    This post has been edited 2 times. It was last edited by Zarius Jan 24, 2012.
  4. Offline

    9903286

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes, exactly, thanks! I didn't know that command existed.. Oh and btw, i don't understand how to make an event, like if you mine a TNT it explodes.
  5. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Try:
    Code:
      TNT:
        - drop: NOTHING
          event: EXPLOSION
    
  6. Offline

    9903286

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks! :D
  7. Offline

    CubieX

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm trying to display a message and grant no drops if a player kills a creeper with a bow.
    But the drops still get thrown and the message does not appear.

    How to set this up properly?

    Code:
          CREEPER:
            - tool: BOW
              drop: NOTHING/100%     
              message: ["Sniping a creeper? Where's the fun at that?"]
            - tool: ANY_SWORD
              drop: GUNPOWDER/60%/1-2   
            - tool: ANY_SWORD
              time: DAY
              drop: [XP/100%/4, MONEY/100%/1-3]
            - tool: ANY_SWORD
              time: NIGHT
              drop: [XP/100%/7, MONEY/100%/2-5]   
    

    This post has been edited 2 times. It was last edited by CubieX Jan 24, 2012.
  8. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Try the unique flag, eg:

    Code:
          CREEPER:
            - tool: BOW
              drop: NOTHING
              flags: UNIQUE  # this means the other drops should not occur
              message: ["Sniping a creeper? Where's the fun at that?"]
            - tool: ANY_SWORD
              drop: GUNPOWDER/60%/1-2 
            - tool: ANY_SWORD
              time: DAY
              drop: [XP/100%/4, MONEY/100%/1-3]
            - tool: ANY_SWORD
              time: NIGHT
              drop: [XP/100%/7, MONEY/100%/2-5] 
    
  9. Offline

    CubieX

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hmmm, no change. If the message does not appear, it means OD does not recognize me killing a creeper with a bow.
    That's strange.
    Even if I delete the other creeper drops, the message does not appear. :confused:
    The default drop gets thrown instead.

    I also tried "ARROW" instead of "BOW", but had no luck with it either.

    This post has been edited 1 time. It was last edited by CubieX Jan 24, 2012.
  10. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oops, sorry - didn't notice that bit. You need to use "PROJECTILE_ARROW".

    "BOW" and "ARROW" are interpreted as you walking up and hitting the creeper on the head with the item (would actually be quite impressive to kill a creeper manually with an arrow... :))

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

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minor(ish) update:
    2.1.1

    * fix for "drop: default" not working
    * fix for "ALL:" & "ANY_CREATURE"
    * fix chance condition for dropgroups
    (download in first post)
  12. Offline

    CubieX

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    OK, that's weird.
    I tried another drop for it:

    Code:
        CREEPER:
            - tool: PROJECTILE_ARROW
              drop: STONE/100%/1
              flags: UNIQUE
              message: ["Sniping a creeper? Where's the fun at that?"]
            - tool: ANY_SWORD
              drop: GUNPOWDER/60%/1-2
            - tool: ANY_SWORD
              time: DAY
              drop: XP/100%/4
            - tool: ANY_SWORD
              time: DAY
              drop: MONEY/100%/1-3
            - tool: ANY_SWORD
              time: NIGHT
              drop: XP/100%/7
            - tool: ANY_SWORD
              time: NIGHT
              drop: MONEY/100%/2-5      
    I now also splitted the xp and money drop, because this:
    drop: [XP/100%/4, MONEY/100%/1-3]
    did nothing. Instead, the default drop was thrown.

    Now, the Stone gets thrown, meaning it's recognized now, but the message does still not appear AND XP is also there, but shouldn't. oO
    If I insert messages to the other drops, they appear.

    This post has been edited 4 times. It was last edited by CubieX Jan 24, 2012.
  13. Online

    Zarius BukkitDev Staff

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


    What version are you using? I might have fixed that in 2.1.1. Just tested your config then and everything worked fine (including the "drop: [XP/100%/4, MONEY/100%/1-3]" bit).
  14. Offline

    9903286

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I am trying to get endermans to drop their blocks.. But it doesn't worklright... (I'm guessing i am the one doing something wrong)

    Code:
        CREATURE_ENDERMAN:
          - drop: CONTENTS
            chance: 100%
            quantity: 1
    
  15. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Nope, that's the correct way to do it :) Seems there's a bug with that bit :( I'll test it out later and see if I can fix it.
  16. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    New release - 2.1.2 (download in main post)

    * add dropgroup conditions back in
    * fix "drop:" default value (if not specified) - was DEFAULT, now NOTHING (more intuitive)
    * stop "drop: NOTHING" replacing blocks on actions other than blockbreak
  17. Offline

    9903286

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh okay, by the way, could you add an event that makes it sunny. I wan't to make it so that when you hoe a gold block the block dissapears and then i stops raining.
  18. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If you have a weather control plugin you can use the command: parameter to do that:

    Code:
      GOLD_BLOCK:
        - action: LEFT_CLICK
          tool: ANY_HOE
          command: "/!*weather sunny"  # change this command as needed.  / = command, ! = send msg to console, not player, * = execute as op
    
  19. Offline

    9903286

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh okay, thank you :D

    Uhm, I tried doing this... But it just crashes the server :/
    Code:
    GOLD_BLOCK:
    - tool: ANY_HOE
    action: RIGHT_CLICK
    replacementblock: AIR
    command: "/weather sunny"
    
    EDIT: Never mind, it was beacause it was already sunny! (I think) I fixed it by adding.
    Code:
    weather: storm
    

    This post has been edited 4 times. It was last edited by 9903286 Jan 25, 2012.
  20. Offline

    CubieX

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I used 2.1, then 2.1.1 and now 2.1.2 (deleted OD completele and installed it again)
    Still no luck with the message & default drop is thrown, if I use "NOTHING" as drop. :/
    If I use a specific drop instead, it's thrown, but also no message.

    I don't get it...because the other messages appear like they should.



    Code:
    defaults:
        dropspread: FALSE
    # TODO: mobs drop wornout armor
    otherdrops:
        CREEPER:
            - tool: PROJECTILE_ARROW
              drop: NOTHING
              message: ["Sniping a Creeper? Where is the fun at that?"]
            - tool: ANY_SWORD
              drop: GUNPOWDER/60%/1-2
            - tool: ANY_SWORD
              time: DAY
              drop: [XP/100%/4, MONEY/100%/1-3]
            - tool: ANY_SWORD
              time: NIGHT
              drop: [XP/100%/7,MONEY/100%/2-5]
        SPIDER:
            - tool: ANY
              drop: STRING/60%/1-2
            - tool: ANY
              drop: SPIDER_EYE/30%/1
            - tool: ANY
              drop: XP/100%/5
            - tool: ANY
              drop: MONEY/100%/1-3
        SKELETON:
            - tool: ANY
              drop: BOW/10%/1
              message: ["The skeleton lost his bow in the middle of the fight!"]
            - tool: ANY
              drop: BONE/70%/1-2
            - tool: ANY
              drop: ARROW/60%/2-4
            - tool: ANY
              drop: XP/100%/5
            - tool: ANY
              drop: MONEY/100%/1-3
        PIG_ZOMBIE:
            - tool: ANY
              drop: GOLD_NUGGET/40%/1-2
            - tool: ANY
              drop: ROTTEN_FLESH/60%/1-2
            - tool: ANY
              drop: XP/100%/5
            - tool: ANY
              drop: MONEY/100%/2-3
        SQUID:
            - tool: ANY
              drop: GOLD_NUGGET/10%/1-3
              message: ["The squid left some gold nugggets!"]
            - tool: ANY
              drop: XP/100%/1-3
            - tool: ANY
              drop: MONEY/100%/1-2
        ZOMBIE:
            - tool: ANY
              drop: ROTTEN_FLESH/50%/1-2
            - tool: ANY
              drop: XP/100%/4
            - tool: ANY
              drop: MONEY/100%/1-3
        GHAST:
            - tool: ANY
              drop: GUNPOWDER/60%/1-2
            - tool: ANY
              drop: GHAST_TEAR/40%/1
            - tool: ANY
              drop: XP/100%/3-7
            - tool: ANY
              drop: MONEY/100%/2-5
        ENDERMAN:
            - tool: ANY
              drop: ENDER_PEARL/40%/1
            - tool: ANY
              drop: XP/100%/5
            - tool: ANY
              drop: MONEY/100%/3-6
        SLIME:
            - tool: ANY
              drop: SLIME_BALL/30%/1
            - tool: ANY
              drop: XP/100%/1-3
            - tool: ANY
              drop: MONEY/50%/1
        BLAZE:
            - tool: ANY
              drop: BLAZE_ROD/40%/1-2
            - tool: ANY
              drop: XP/100%/10
            - tool: ANY
              drop: MONEY/100%/3-7
        MAGMA_CUBE:
            - tool: ANY
              drop: MAGMA_CREAM/40%/1
            - tool: ANY
              drop: XP/100%/1-3
            - tool: ANY
              drop: MONEY/100%/2-3
     
    
  21. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @CubieX - you're right, messages weren't working at all for PROJECTILE_ARROW. Fixed it (will be in the next version).
    CubieX likes this.
  22. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Odd - setting the weather to sunny shouldn't crash the server even if it's sunny already - perhaps it's a bug in the plugin that provides the "weather" command?

    Also keep in mind that the player clicking with the hoe needs to have permission to change the weather, unless you use "/*weather sunny" to run the command as an OP.
  23. Offline

    Sorken

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Zarius
    Using CB 1817 and OD 2.0 Beta 11
    Code:
    01:26:45 [SEVERE] Could not pass event org.bukkit.event.block.BlockBreakEvent to OtherDrops
    java.lang.NullPointerException
            at org.bukkit.material.SimpleAttachableMaterialData.getFacing(SimpleAttachableMaterialData.java:38)
            at com.gmail.zariust.otherdrops.data.SimpleData.get(SimpleData.java:129)
            at com.gmail.zariust.otherdrops.data.SimpleData.get(SimpleData.java:100)
            at com.gmail.zariust.otherdrops.subject.BlockTarget.toString(BlockTarget.java:183)
            at java.lang.String.valueOf(Unknown Source)
            at java.lang.StringBuilder.append(Unknown Source)
            at com.gmail.zariust.otherdrops.OtherDrops.performDrop(OtherDrops.java:337)
            at com.gmail.zariust.otherdrops.listener.OdBlockListener.onBlockBreak(OdBlockListener.java:88)
            at org.bukkit.plugin.java.JavaPluginLoader$42.execute(JavaPluginLoader.java:560)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:327)
            at net.minecraft.server.ItemInWorldManager.breakBlock(ItemInWorldManager.java:217)
            at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:151)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:507)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:204)
            at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:587)
            at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:536)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    

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

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ok, that line has to do with getting the direction a set of cobblestone stairs is facing. I tried some configs involving cobblestone stairs and their data (eg. COBBLESTONE_STAIRS@NORTH) but couldn't get that error.

    Do you get the error often? Any other messages before it? And can you post or send me your config?
  25. Offline

    gawelium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi Zarius ! I'm the guy who asked to you about permissions. With groupmanager doesn't work but with PermissionsEX, it's wonderful ! I can config my jobs like I want. Per example for architecte they can't extract iron_ore but Miner yes. It's a little example of what I make thank's to you !!! Our server will be a brilliant server :)
  26. Online

    Zarius BukkitDev Staff

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

    Glad it worked out for you :) Let me know if you have any problems.
  27. Offline

    9903286

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Wait, what? I am using Essentials, that plugin provides the weather feature, but anyway, i haven't given the players the permission, and one guy could do it anyway? Weird... (He can't use the /weather command, i asked.)
  28. Offline

    Sorken

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Every few hours.

    Config:
    Code:
    # Set this to "low" to reduce number of boot messages or to high, highest, extr\
    eme for more debugging info
    verbosity: normal
    # Try adjusting this if you have compatibility problems with other plugins.
    # Default: "high". Can also use "low", "normal", "high", "highest".
    priority: high
    # OtherDrops uses BukkitPermissions by default - set 'useyetipermissions' to tr\
    ue if you want
    # legacy permissions support (no guarantees it will work).
    useyetipermissions: true
    # Number of decimal places to round money drops off to (for the drop and messag\
    e)
    money-precision: 2
    
    Drops: (copy/paste seems to have ruined spacing, it obviously doesnt look like that)
    Code:
    ##########
    # Include files
    ##
    # The plugin will scan through and load these files (if set to 'yes') after loading the main config below.
    # Extension ".yml" is added automatically before searching for the file
    #
    # Note: drops from included files will are inclusive and will all be added to the drop list.
    # Note when updating OtherBlocks: these files may be updated from time to time - rename them if you don't want to overwrite them.
    #
    include-files:
    ## OtherBlocks example files
    ob-fix_undroppables: no # fix glass, bookshelf, boat and stairs drops
    ob-goldtools-basic: no # allow gold-pickaxe chance to get ice & glowstone, gold-hoe chance to get grass
    ob-goldtools-smelt: no # gold-pickaxe smelts ores to ingots, sand to glass, etc
    ob-ore_extraction: no # allow ore to seem to be "extracted" - leaving behind stone
    ob-leaf_overhaul: no # overhaul leaf drops (apples, cocoa beans, leaves, sticks & a very small chance of golden apple)
    ob-playerdeath_zombie: no # players drop zombies on death (that's it - see undead_chaos for more fun :D)
    ob-undead_chaos: no # the undead shall rise again! Includes players dropping zombies/skeletons
    ob-random_examples: no # For crazy testing only :) Read through examples before activating.
    ## Other users overhauls
    overhaul-catballs: no # great example/playable config from Catballs (disable "ob" configs before using this one, otherwise you might have too many drops)
    overhaul-zarius: no # Zar's messy config (I run this with no other includes, at the moment)
     
    ## Add your files here (alternatively just add your custom drops to the bottom of this file)
    #drops: no
    ##########
    otherblocks:
    #
    # Your changes here, or create a new .yml file and include it above in the "include-files" section
    # Explore the included config files for many more examples
    #
    # If make a interesting or crazy config let me know on the forum and I might include it in the next release
    #
    #
    # Example:
    # GLASS:
    # - drop: GLASS
    #
    # - drop: MONEY
    # quantity: 3-15
    # message: You recycled the glass for %q dollars.
    # REDSTONE_WIRE_ON:
    # - chance: 100
    # event: ELECTROCUTE
    # message: Severing the powered wire has cause it to electrocute you!
    # - chance 5
    # event: FIRE
    # message: The powered wire has caused a fire!
    # exclusive:
    # DIODE_BLOCK_ON:
    # - chance: 5
    # event: EXPLOSION
    # message: Removing the repeater while powered has caused a catastrophic failure!
    SPECIAL_LEAFDECAY@GENERIC:
    - drop: APPLE
    chance: 2
    world: [eden, badlands]
    - drop: GOLDEN_APPLE
    chance: 0.05
    world: [eden, badlands]
    LEAVES@GENERIC:
    - tool: ALL
    drop: APPLE
    chance: 0.5
    world: [eden, badlands]
    - tool: ALL
    drop: GOLDEN_APPLE
    chance: 0.05
    message: A golden apple falls from the tree!
    world: [eden, badlands]
    SPECIAL_LEAFDECAY@REDWOOD:
    - drop: INK_SACK
    color: BROWN
    chance: 2
    world: [eden, badlands]
    LEAVES@REDWOOD:
    - tool: ALL
    drop: INK_SACK
    color: BROWN
    chance: 2
    world: [eden, badlands]
    SPECIAL_LEAFDECAY@BIRCH:
    - drop: STICK
    chance: 4
    world: [eden, badlands]
    LEAVES@BIRCH:
    - tool: ALL
    drop: STICK
    chance: 4
    world: [eden, badlands]
    BOOKSHELF:
    - tool: ALL
    drop: BOOKSHELF
    quantity: 1
    world: [eden, badlands, eden_nether, eden_the_end]
    WOOD_STAIRS:
    - tool: ALL
    drop: WOOD_STAIRS
    world: [eden, badlands, eden_nether, eden_the_end]
    COBBLESTONE_STAIRS:
    - tool: ALL
    drop: COBBLESTONE_STAIRS
    world: [eden, badlands, eden_nether, eden_the_end]
    BRICK_STAIRS:
    - tool: ALL
    drop: BRICK_STAIRS
    world: [eden, badlands, eden_nether, eden_the_end]
    SMOOTH_STAIRS:
    - tool: ALL
    drop: SMOOTH_STAIRS
    world: [eden, badlands, eden_nether, eden_the_end]
    SMOOTH_BRICK:
    - tool: ANY_PICKAXE
    drop: SMOOTH_BRICK@2
    quantity: 1
    chance: 5
    exclusive:
    world: [eden, badlands, eden_nether, eden_the_end]
    ICE:
    - drop: NOTHING
    - tool: ALL
    drop: ICE
    quantity: 1
    chance: 100
    worlwd: [eden, eden_nether, eden_the_end, badlands]
    SNOW_BLOCK:
    - drop: NOTHING
    - tool: ANY_SPADE
    drop: SNOW_BLOCK
    quantity: 1
    chance: 100
    world: [eden, badlands]
    - toolexcept: ANY_SPADE
    drop: SNOW_BALL
    quantity: 4
    chance: 100
    world: [eden, badlands, eden_nether, eden_the_end]
    SNOW:
    - drop: NOTHING
    - tool: ANY_SPADE
    drop: SNOW_BALL
    quantity: 1
    chance: 100
    MOB_SPAWNER:
    - tool: ALL
    drop: NOTHING
    chance: 100
    world: [dreamland]
    message: The mob spawner broke as you tried to retrieve it.
    PLAYER:
    - tool: CREATURE_ZOMBIE
    drop: CREATURE_ZOMBIE
    quantity: 1
    chance: 25
    CREATURE_SQUID:
    - drop: NOTHING
    - tool: ANY
    drop: INK_SACK
    quantity: 1
    chance: 33
    - toolexcept: [DAMAGE_FIRE, DAMAGE_FALL, DAMAGE_SUFFOCATION, DAMAGE_DROWNING, DAMAGE_CONTACT, DAMAGE_ENTITY_EXPLOSION]
    drop: FISHING_ROD
    chance: 2
    message: Looks like you got the one who got away.
    - toolexcept: [DAMAGE_FIRE, DAMAGE_FALL, DAMAGE_SUFFOCATION, DAMAGE_DROWNING, DAMAGE_CONTACT, DAMAGE_ENTITY_EXPLOSION]
    drop: COMPASS
    chance: 0.25
    message: Neptune's treasure! Too bad it's not Ariel.
    CREATURE_SHEEP:
    - drop: NOTHING
    - drop: WOOL
    quantity: 1
    chance: 10
    CREATURE_PIG@SADDLED:
    - tool: ALL
    drop: SADDLE
    quantity: 1
    message: Poor Porky returns your saddle.
    CREATURE_SPIDER:
    - drop: NOTHING
    - drop: WEB
    quantity: 1
    chance: 15
    - drop: SPIDER_EYE
    quantity: 1-3
    chance: 15
    WEB:
    - drop: NOTHING
    - tool: ANY
    drop: WEB
    quantity: 1
    chance: 100
    world: [eden, badlands]
    # - drop: CREATURE_SPIDER
    # quantity: 3
    # chance: 5
    # time: NIGHT
    # message: Oh no! That was a nest full of spider eggs!
    # exclusive:
    CREATURE_ZOMBIE:
    - drop: NOTHING
    - tool: ANY
    drop: ROTTEN_FLESH
    quantity: 1
    chance: 30
    - toolexcept: [DAMAGE_FIRE, DAMAGE_FALL, DAMAGE_SUFFOCATION, DAMAGE_DROWNING, DAMAGE_CONTACT, DAMAGE_ENTITY_EXPLOSION]
    drop: MONEY
    quantity: 0.01
    chance: 15
    message: You find a silver coin on the body of the zombie.
    - toolexcept: [DAMAGE_FIRE, DAMAGE_FALL, DAMAGE_SUFFOCATION, DAMAGE_DROWNING, DAMAGE_CONTACT, DAMAGE_ENTITY_EXPLOSION]
    drop: CREATURE_ZOMBIE
    quantity: 1
    chance: 15
    message: The zombie rises again!
    exclusive:
    CREATURE_CREEPER@UNPOWERED:
    - drop: NOTHING
    - drop: SULPHUR
    quantity: 1
    chance: 20
    - tool: CREATURE_CREEPER
    drop: CREATURE_CREEPER@POWERED
    quantity: 1
    chance: 50
    exclusive:
    CREATURE_CREEPER@POWERED:
    - drop: NOTHING
    - toolexcept: [DAMAGE_FIRE, DAMAGE_FALL, DAMAGE_SUFFOCATION, DAMAGE_DROWNING, DAMAGE_CONTACT, DAMAGE_ENTITY_EXPLOSION]
    drop: SULPHUR
    quantity: 10
    chance: 100
    event: EXPLOSION
    message: As it dies, the supercreeper explodes a final time!
    CREATURE_SKELETON:
    - drop: NOTHING
    - drop: BONE
    quantity: 1
    chance: 30
    - drop: ARROW
    quantity: 1-2
    chance: 50
    - toolexcept: [DAMAGE_FIRE, DAMAGE_FALL, DAMAGE_SUFFOCATION, DAMAGE_DROWNING, DAMAGE_CONTACT, DAMAGE_ENTITY_EXPLOSION]
    drop: ARROW
    quantity: 24
    chance: 5
    message: The skeleton dropped its quiver!
    - toolexcept: [DAMAGE_FIRE, DAMAGE_FALL, DAMAGE_SUFFOCATION, DAMAGE_DROWNING, DAMAGE_CONTACT, DAMAGE_ENTITY_EXPLOSION]
    drop: BOW
    quantity: 1
    chance: 2
    message: The skeleton dropped its bow!
    exclusive:
    MINECART:
    - drop: NOTHING
    world: dreamland
    BOAT:
    - drop: NOTHING
    world: dreamland
    - drop: BOAT
    world: [eden, badlands]
    

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

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Seems to be to do with the cobblestone stairs - I'll be posting a new build shortly which should give a more meaningful error (and 1 line instead of 50 from the NPE :D)

    I liked this bit :) (perhaps with a lower chance value though):
    Code:
    # - drop: CREATURE_SPIDER
    # quantity: 3
    # chance: 5
    # time: NIGHT
    # message: Oh no! That was a nest full of spider eggs!
    
  30. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    New build - 2.2-beta1 (download here) (HawkEye build will be posted on final 2.2 release - let me know if you need it before then).

    * added FISH_CAUGHT & FISH_FAILED actions
    * mooshroom now works instead of being seen as a cow
    * fix bug where PROJECTILE_ARROW didn't send messages
    * attempt fix NPE in SimpleData.get()
    * new flexible way of checking creature names
    * added HELM as alias for HELMET (eg. IRON_HELM)

    Fishing example:
    Code:
    PLAYER:
        - dropgroup: fishcaught
          action: FISH_CAUGHT
          drops:
            - drop: IRON_HELM@50
              message: "Bonus!You found an iron helmet - a little rusty but still ok."
              chance: 5%
              exclusive: 1
            - drop: {DIAMOND, GOLD_ORE, OBSIDIAN}
              chance: 3%
              exclusive: 1
              message: "Woo, you hooked a precious stone!"
     
        - action: FISH_FAILED
          drop: LEATHER_BOOTS
          chance: 2%
    
    Currently this will always drop the default fish as well, that will be fixed in the next release (then you will have to add drop: DEFAULT if you want the fish as well).

    Caveats: currently we cannot add items to your inventory and there's no way to determine the location of the fishing "bobble" so it just drops items at your feet.

    Bonus: you can use all the usual conditions (biome, weather, world, etc) to customise fishing.

    This post has been edited 2 times. It was last edited by Zarius Jan 28, 2012.
  31. Offline

    Sorken

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah, so did I, my users did not however :(

    Edit: Also, I was planning on making it spawn cave spiders instead (smaller, baby spiders) but never got around to that since my users revolted and tried to kill me :/

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

    Zarius BukkitDev Staff

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

    Heh.. shame, baby spiders out of webs is cool :D 5% chance is a bit high though, I can see them getting annoyed :) Perhaps a 0.01% chance for that random shock factor once in a blue moon :D

    I have my settings so that a creeper has a 1% chance of dropping a powered creeper :D (note: in my world they do a lot less block damage - full damage to players though).

Share This Page