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

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

     
  1. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    [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

    asasineblade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Is there a way to perhaps, have a player lose money when he dies, but not drop tokens or such? if so, please reply, i really want to use this plugin, but im so new to it.. lol
  4. Offline

    asasineblade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Uhm, in the latest version, what do i do for like, it randomly would give out like say, 1-5 items, but giving out ANY items would have a % chance of occuring? and also, im not sure if this is a bug, bug, whatever i do to try and override the default drops, mobs still have the rare loot.
  5. Offline

    RyGuy147

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    How can I make it so that all mobs have a slim chance of dropping a random music disk?

    This post has been edited 1 time. It was last edited by RyGuy147 Apr 12, 2012.
  6. Offline

    RyGuy147

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    How do I keep users from taking damage when they get a custom drop?
  7. Offline

    Hareu

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I have sand to not drop anything when broken with anything.

    it works, but when I break a block of sand I get a hit animation, like I'm being damaged even though I'm not.

    why?
  8. Offline

    Keybounce

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Just a quick question: Am I correct in thinking that this is currently only for 1.2.3, and not 1.2.5? Is there an ETA, or there even work-in-progress for a 1.2.5 update?
  9. Offline

    FarTooManyCats

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    http://i.imgur.com/i6yef.png

    It's been a week and I still can't figure out what I'm doing wrong since I followed all the steps correctly. For the love of fucking god, please respond.

    Edit: The configuration in the screenshot isn't working. Cacti are supposed to have a % chance of dropping wooden planks, but they're only dropping cacti 100% of the time. Yes, the plugin is up to date with the most recent version of the Minecraft .jar I'm using.

    This post has been edited 1 time. It was last edited by FarTooManyCats Apr 20, 2012.
  10. Offline

    Keybounce

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @FarTooManyCats: PLEASE, be civil. There's no reason for that language.

    As for the problem that you are having: That screenshot only shows part of your file. There's no way anyone else can decipher what is going on. Post the entire _TEXT_ of your file, not a screenshot of part of your file.
  11. Offline

    Keybounce

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yea, is wrong. The chance isn't the issue; it's quantity that you want to track down.

    You might try
    - drop: SAPLING@JUNGLE
    quantity: 2

    http://dev.bukkit.org/server-mods/otherdrops/pages/parameters/
  12. Offline

    Keybounce

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    According to the docs, it is supposed to support all enums that are officially supported by Bukkit. And if it doesn't, you can just hardwire the datanumber for jungle color (which I think is 4).
  13. Offline

    Keybounce

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Show us your config files, otherwise we can only guess.
  14. Offline

    h0us3cat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I already had found it out :)

    Code:
      LEAVES@JUNGLE:
        - action: LEAF_DECAY
          drop: SAPLING
          color: JUNGLE
          chance: 2.5
  15. Offline

    kanti17

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Is there a way to change what a block drops when it receives explosive damage? I tried the DAMAGE_BLOCK_EXPLOSION as the tool, but it didn't seem to work. If there is a way, can someone clarify how? If not then could it be something that gets implemented?
  16. Offline

    Keybounce

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'd like to put the X/Y/Z locations of an event in the messages that get shown ... (Debugging, debugging, it's just for debugging :).

    I'm realizing that this is gold for adventure map makers. Just imagine: To obtain a special item not normally obtainable, you have to go to the forge of the gods, perform a special action (such as: Dip a lump of coal into a block of lava), test for this action being done at a specific location -- err, make that test for this action being done at a specific light level based on that location, and a specific height level -- and then have a bolt of lighting (for show only) as well as damage for the fire. Etc.

    I'd like to know the proper way to test for damage on an entity. I don't mean "Player left-clicks with a weapon on a creature", I mean any form of creature-on-creature or bow hits.

    ===


    Alright, I'd like to know what's happening here. I'm having trouble getting default drops, and I was expecting to.
    I'm giving breaks of dirt/grass/farm/mycelium a chance of getting clay.

    Output:
    20:31:09 [INFO] [OtherDrops:2.6-beta1] PerformDrop (LEFT_CLICK, SOIL@ w/ PLAYER@Keybounce with GOLD_SPADE@12/1) no potential drops found
    20:31:09 [INFO] [OtherDrops:2.6-beta1] PerformDrop - potential drops found: [BREAK on SOIL drops CLAY_BALL, BREAK on SOIL drops DEFAULT] tool: PLAYER@Keybounce with GOLD_SPADE@12/1
    20:31:09 [INFO] [OtherDrops:2.6-beta1] PerformDrop: scheduled drops=[BREAK on SOIL drops CLAY_BALL, BREAK on SOIL drops DEFAULT]
    20:31:09 [INFO] [OtherDrops:2.6-beta1] PerformDrop: scheduling CLAY_BALL
    20:31:09 [INFO] [OtherDrops:2.6-beta1] Starting SimpleDrop...
    20:31:09 [INFO] [OtherDrops:2.6-beta1] SimpleDrop: dropped CLAY_BALL x 1.0 (dropped: 1)
    20:31:09 [INFO] [OtherDrops:2.6-beta1] Replacing SOIL@ with AIR
    20:31:09 [INFO] [OtherDrops:2.6-beta1] Tool damaged.
    20:31:09 [INFO] [OtherDrops:2.6-beta1] PerformDrop: scheduling DEFAULT
    20:31:09 [INFO] [OtherDrops:2.6-beta1] Starting SimpleDrop...
    20:31:09 [INFO] [OtherDrops:2.6-beta1] Performdrop: DEFAULT, so undo event cancellation.
    20:31:09 [INFO] [OtherDrops:2.6-beta1] PerformDrop: finished. defaultdrop=false dropcount=2 cancelled=false denied=false
    20:31:10 [INFO] [OtherDrops:2.6-beta1] PerformDrop (LEFT_CLICK, SOIL@ w/ PLAYER@Keybounce with GOLD_SPADE@14/1) no potential drops found
    20:31:10 [INFO] [OtherDrops:2.6-beta1] PerformDrop - potential drops found: [BREAK on SOIL drops CLAY_BALL, BREAK on SOIL drops DEFAULT] tool: PLAYER@Keybounce with GOLD_SPADE@14/1
    20:31:10 [INFO] [OtherDrops:2.6-beta1] Drop failed due to chance (18.75, rolled: 80.31587834108298)
    20:31:10 [INFO] [OtherDrops:2.6-beta1] PerformDrop: scheduled drops=[BREAK on SOIL drops DEFAULT]
    20:31:10 [INFO] [OtherDrops:2.6-beta1] PerformDrop: scheduling DEFAULT
    20:31:10 [INFO] [OtherDrops:2.6-beta1] Starting SimpleDrop...
    20:31:10 [INFO] [OtherDrops:2.6-beta1] Performdrop: DEFAULT, so undo event cancellation.
    20:31:10 [INFO] [OtherDrops:2.6-beta1] PerformDrop: finished. defaultdrop=false dropcount=1 cancelled=false denied=false

    First block gave me clay, then replaced the block with air, then attempted to run default -- only now the default for air is nothing.
    Second only gave me default.

    Here's my file:
    Code:
    defaults:
        biomes: ALL
        worlds: ALL
        # time: 
        # weather: 
        # permissiongroup: 
        # permissiongroupexcept: 
    
    aliases:
        # Generic self drop
        - &selfDrop
            - drop: THIS
    
        - &dirtMakesClay  # ClaySoil, a chance of getting clay when digging in soil
            - drop: CLAY_BALL
              chance: 18.75% # Should give both default AND clay when it triggers ...
            - drop: DEFAULT  # Is this even needed if chance < 100%?? 
                             # Answer: Yes, bleepity bleepity.
    # Documentation says that only 100% or "NOTHING" overrides the default. Docs are wrong.
    
    otherdrops:
        DIRT:
            *dirtMakesClay
        GRASS:
            *dirtMakesClay
        MYCELIUM:
            *dirtMakesClay
        FARMLAND:
            *dirtMakesClay
    
        # Fix the boat drop to drop a full boat (like minecarts)
        BOAT:
            # BAAAH. Selfdrop does not work here, it has to be spelled out.
            # Apparently, aliases only work for whole nodes, not sections.
            - tool: DAMAGE_ENTITY_ATTACK  # "attacking" breaks it by damage. AKA "I pick it up"
              drop: THIS
            - tool: [-DAMAGE_ENTITY_ATTACK, ANY_DAMAGE]    # Environmental, such as running into things
              drop: DEFAULT
            - tool: [-ANY_DAMAGE]
              drop: THIS
              message.world: "Unknown trigger on boat! Dropped as boat."
              # I'd love to put x/y/z locations in that message, but there's no docs on how ...
    
        # Allow endermen to drop the carried block
        ENDERMAN:
            - drop: DEFAULT
            - drop: CONTENTS
    
        BOOKSHELF:
            *selfDrop
    
    Changing the order so that DEFAULT came first did not help -- output then is

    20:40:19 [INFO] [OtherDrops:2.6-beta1] PerformDrop (LEFT_CLICK, SOIL@ w/ PLAYER@Keybounce with GOLD_SPADE@16/1) no potential drops found
    20:40:19 [INFO] [OtherDrops:2.6-beta1] PerformDrop - potential drops found: [BREAK on SOIL drops DEFAULT, BREAK on SOIL drops CLAY_BALL] tool: PLAYER@Keybounce with GOLD_SPADE@16/1
    20:40:19 [INFO] [OtherDrops:2.6-beta1] PerformDrop: scheduled drops=[BREAK on SOIL drops DEFAULT, BREAK on SOIL drops CLAY_BALL]
    20:40:19 [INFO] [OtherDrops:2.6-beta1] PerformDrop: scheduling DEFAULT
    20:40:19 [INFO] [OtherDrops:2.6-beta1] Starting SimpleDrop...
    20:40:19 [INFO] [OtherDrops:2.6-beta1] Performdrop: DEFAULT, so undo event cancellation.
    20:40:19 [INFO] [OtherDrops:2.6-beta1] PerformDrop: scheduling CLAY_BALL
    20:40:19 [INFO] [OtherDrops:2.6-beta1] Starting SimpleDrop...
    20:40:19 [INFO] [OtherDrops:2.6-beta1] SimpleDrop: dropped CLAY_BALL x 1.0 (dropped: 1)
    20:40:19 [INFO] [OtherDrops:2.6-beta1] Replacing SOIL@ with AIR
    20:40:19 [INFO] [OtherDrops:2.6-beta1] Tool damaged.
    20:40:19 [INFO] [OtherDrops:2.6-beta1] PerformDrop: finished. defaultdrop=false dropcount=2 cancelled=true denied=false


    No matter what, I only get either default or clay_ball, not both. What am I doing wrong?

    ===

    Next: I cannot manage to recover a boat.

    Output was:

    Code:
    21:07:31 [INFO] [OtherDrops:2.6-beta1] PerformDrop (RIGHT_CLICK, GRASS@ w/ PLAYER@Keybounce with BOAT@/1) no potential drops found
    21:07:49 [INFO] [OtherDrops:2.6-beta1] PerformDrop (LEFT_CLICK, GRASS@ w/ PLAYER@Keybounce with AIR@THIS/0) no potential drops found
    21:08:00 [INFO] [OtherDrops:2.6-beta1] Vechicle drop occurance created. (BREAK on VEHICLE_BOAT@)
    21:08:00 [INFO] [OtherDrops:2.6-beta1] PerformDrop - potential drops found: [BREAK on VEHICLE_BOAT drops THIS, BREAK on VEHICLE_BOAT drops DEFAULT, BREAK on VEHICLE_BOAT drops THIS] tool: PLAYER@Keybounce with AIR@THIS/0
    21:08:00 [SEVERE] Could not pass event VehicleDestroyEvent to OtherDrops
    org.bukkit.event.EventException
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
            at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
            at net.minecraft.server.EntityBoat.damageEntity(EntityBoat.java:115)
            at net.minecraft.server.EntityHuman.attack(EntityHuman.java:750)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:997)
            at net.minecraft.server.Packet7UseEntity.handle(SourceFile:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
            at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
            at com.gmail.zariust.otherdrops.subject.EnvironmentAgent.matches(EnvironmentAgent.java:82)
            at com.gmail.zariust.otherdrops.event.CustomDrop.isTool(CustomDrop.java:190)
            at com.gmail.zariust.otherdrops.event.CustomDrop.matches(CustomDrop.java:109)
            at com.gmail.zariust.otherdrops.OtherDrops.gatherDrops(OtherDrops.java:486)
            at com.gmail.zariust.otherdrops.OtherDrops.performDrop(OtherDrops.java:386)
            at com.gmail.zariust.otherdrops.listener.OdVehicleListener.onVehicleDestroy(OdVehicleListener.java:45)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
            ... 13 more
    
    I attacked the boat with my bare hands. Well, first I put it on the ground. It floated away. It floated in the middle of the air. I hit the ground where I had placed it. The "Left click grass" message displayed. I waited, the boat returned, I attacked the boat, and then got just planks and sticks.

    ---
    Some more testing on this: It seems that "ANY_DAMAGE" fails, and negative matches will fail (use Toolexcept even though it is "old, don't use anymore".)

    Here is my "latest" version of this file.
    Code:
    defaults:
        biomes: ALL
        worlds: ALL
        # time: 
        # weather: 
        # permissiongroup: 
        # permissiongroupexcept: 
    
    aliases:
        # Generic self drop
        - &selfDrop
            - drop: THIS
    
        - &dirtMakesClay  # ClaySoil, a chance of getting clay when digging in soil
            - drop: DEFAULT  # Is this even needed if chance < 100%?? 
                             # Answer: Yes, bleepity bleepity.
            - drop: CLAY_BALL
              chance: 18.75% # Should give both default AND clay when it triggers ...
    # Documentation says that only 100% or "NOTHING" overrides the default. Docs are wrong.
    
    otherdrops:
        DIRT:
            *dirtMakesClay
        GRASS:
            *dirtMakesClay
        MYCELIUM:
            *dirtMakesClay
        FARMLAND:
            *dirtMakesClay
    
        # Fix the boat drop to drop a full boat (like minecarts)
        BOAT:
            # BAAAH. Selfdrop does not work here, it has to be spelled out.
            # Apparently, aliases only work for whole nodes, not sections.
            # No, it's even worse -- see the other files, its not consistent.
    
            - tool: DAMAGE_ENTITY_ATTACK  # "attacking" breaks it by damage. AKA "I pick it up"
              drop: THIS
              message.world: "Pick up boat"
    
            - tool: [-DAMAGE_ENTITY_ATTACK]
              drop: THIS
              message.world: "Boat broken. Did it hit an iceberg?"
    
    ## DID NOT WORK!
    # 15:59:34 [INFO] [OtherDrops:2.6-beta1] Vechicle drop occurance created. (BREAK on VEHICLE_BOAT@)
    # 15:59:34 [INFO] [OtherDrops:2.6-beta1] PerformDrop - potential drops found: [BREAK on VEHICLE_BOAT drops THIS, BREAK on VEHICLE_BOAT drops THIS] tool: 
    # 15:59:34 [INFO] [OtherDrops:2.6-beta1] Tool match = false - tool=null tools={[ENTITY_ATTACK]=true}
    # 15:59:34 [INFO] [OtherDrops:2.6-beta1] Tool match = false - tool=null tools={[ENTITY_ATTACK]=false}
    # 15:59:34 [INFO] [OtherDrops:2.6-beta1] PerformDrop: scheduled drops=[]
    # 15:59:34 [INFO] [OtherDrops:2.6-beta1] PerformDrop: finished. defaultdrop=false dropcount=0 cancelled=false denied=false
    # >stop
    
    # Parses as:
    #16:08:41 [INFO] [OtherDrops:2.6-beta1] Loading drop: BREAK with {[ENTITY_ATTACK]=false} on VEHICLE_BOAT -> THIS
    
    
    # BUT THIS (next clause) PARSES DIFFERENTLY!!!
    # 16:08:41 [INFO] [OtherDrops:2.6-beta1] Loading drop: BREAK with {[ENTITY_ATTACK]=false, ANY=true} on VEHICLE_BOAT -> THIS
    
            - toolexcept: DAMAGE_ENTITY_ATTACK
              message.world: "Did a boat run into land?"
              drop: THIS
    
    # Looks like negative matches do not work without some positive match as well.
    
    # And it still fails. Does manage to drop boat, but:
    # 16:13:49 [INFO] [OtherDrops:2.6-beta1] PerformDrop: scheduled drops=[BREAK on VEHICLE_BOAT drops THIS]
    # 16:13:49 [INFO] [OtherDrops:2.6-beta1] PerformDrop: scheduling THIS
    # 16:13:49 [INFO] [OtherDrops:2.6-beta1] Starting SimpleDrop...
    # 16:13:49 [INFO] [OtherDrops:2.6-beta1] SimpleDrop: dropped THIS x 1.0 (dropped: 1)
    # 16:13:49 [SEVERE] Could not pass event VehicleDestroyEvent to OtherDrops
    # org.bukkit.event.EventException
    # ...
    # and the message does not display. (Did get the boat...)
    
    
    
    ### Line causes errors
    ####### - tool: [-DAMAGE_ENTITY_ATTACK, ANY_DAMAGE]    # Environmental, such as running into things
    ## No, it's "random" -- either form, sometimes good, sometimes null pointer
    #       - tool: [ANY_DAMAGE, -DAMAGE_ENTITY_ATTACK]    # Environmental, such as running into things
    #         drop: DEFAULT
    #       - tool: [-ANY_DAMAGE]
    #         drop: THIS
    #         message.world: "Unknown trigger on boat! Dropped as boat."
    #         # I'd love to put x/y/z locations in that message, but there's no docs on how ...
    
    # Aha! "ANY_DAMAGE" fails.
    # Vehicle break causes error, and default drop happens instead.
    #       - tool: ANY_DAMAGE
    #         message.world: "Damage boat"
    
        # Allow endermen to drop the carried block
        ENDERMAN:
            - drop: DEFAULT
            - drop: CONTENTS
    
        BOOKSHELF:
            *selfDrop
    
  17. Offline

    Bytesize

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hello,

    we use Jobs at our server and for this i need to make some restrictions with Otherdrops, but i have some Issues:

    1. Leaves should NEVER drop Apples.
    I tried:

    Code:
    SPECIAL_LEAFDECAY:
    - drop: APPLE
    chance: 0
    LEAVES:
    - action: LEAF_DECAY
    drop: APPLE
    chance: 0

    also drop: Air

    if i change the chance to 100, it works .. but i cant get ZERO drops.

    2. Wheat should ONLY drop by breaking with a hoe.
    This works:
    Code:
    59@7:
    - tool: ANY_HOE
    # wheat
    drop: 296
    quantity: 1-2
    - tool: ANY_HOE
    # seeds
    drop: 295
    quantity: 1-3
    - tool: ANY
    drop: AIR
    but if i break the wheat with waterflow, it still drop normal


    if hope anyone can help me.

    mfg Byte

    This post has been edited 2 times. It was last edited by Bytesize Apr 26, 2012.
  18. Offline

    Greylocke

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm having a problem with tool:AIR. A script that was working previously stopped recently. This used to work:
    Code:
        LEAVES@2:
            - tool: AIR
              drop: APPLE
              quantity: 1
              chance: 3
              message: "You find an apple"
    But now it no longer works. If I swap out tool: AIR for another tool, then it works. I also tried HANDS, but still no workie. Is there another tool I can use to represent breaking the leaves with empty hands?
    OD:2.6b1, CB:2168

    This post has been edited 1 time. It was last edited by Greylocke Apr 27, 2012.
  19. Offline

    Krenex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Guys, i need help with configuring the mod, can someone help please?
    I've attempted to do it last 1 hour with no success.
    My skype is Southweave.
  20. Offline

    CubieX

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Are you sure this comes from OtherDrops?
    Do you perharps also use FalseBook?
    If so, there is an option in the FalseBookBlock.properties that makes leafes drop apples.
    "AppleDropChance=10.0"

    This post has been edited 1 time. It was last edited by CubieX May 14, 2012.
  21. Offline

    Celtic Minstrel

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm pretty sure leaves drop apples in vanilla Minecraft, so the only way you're going to be able to get rid of that is with a "drop: NOTHING" (or perhaps a 100% drop of something else).

    EDIT: Oh, I see you tried that (since NOTHING and AIR are equivalent). Maybe the NOTHING drop is broken, then, or the vanilla apple drop is handled in an unusual way which prevents OtherDrops from cancelling it.

    This post has been edited 3 times. It was last edited by Celtic Minstrel May 14, 2012.
  22. Offline

    Patolord

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    SEVERE] Could not pass event PlayerInteractEvent to OtherDrops
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:287)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:636)
    at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:119)
    at net.minecraft.server.Packet15Place.handle(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:83)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
    at com.gmail.zariust.otherdrops.data.ItemData.get(ItemData.java:79)
    at com.gmail.zariust.otherdrops.data.ItemData.get(ItemData.java:67)
    at com.gmail.zariust.otherdrops.subject.ToolAgent.toString(ToolAgent.java:190)
    at com.gmail.zariust.otherdrops.subject.PlayerSubject.toString(PlayerSubject.java:147)
    at com.gmail.zariust.otherdrops.OtherDrops.performDrop(OtherDrops.java:316)
    at com.gmail.zariust.otherdrops.listener.OdPlayerListener.onPlayerInteract(OdPlayerListener.java:55)
    at sun.reflect.GeneratedMethodAccessor149.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    ... 14 more
  23. Offline

    Dalza

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    No matter what I do, I just can't get it to work...I've tried everything from changing the item, changing the name of the mob, I need help....bad... T_T


    Edit: There are 4 spaces on the -tool: line and 6 in the drop, quantity, and message lines. I just cant get it to post right....I'm so hopeless T_T

    This post has been edited 3 times. It was last edited by Dalza May 21, 2012.
  24. Offline

    Celtic Minstrel

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Enclose it in code tags. There might be a button for that too.
  25. Offline

    Dalza

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Code:
    otherdrops:
    SKELETON:
        - tool: ANY
          drop: gold_nugget
          quantity: 1
          message: You have found %q gold among the shattered bones.
    ZOMBIE:
        - tool: ANY
          drop: gold_nugget
          quantity: 1
          message: You have discovered %q gold in the rotting corpse.
    SPIDER:
        - tool: ANY
          drop: gold_nugget
          quantity: 1
          message: You discover %q gold in the fallen arachnid's belly.
    CREEPER:
        - tool: ANY
          drop: gold_nugget
          quantity: 1
          message: You find %q gold among the creeper's ashes.

    This post has been edited 1 time. It was last edited by Dalza May 23, 2012.
  26. Offline

    michidk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    use iconomy, that the killer gain money.. or cusotm exp
  27. Offline

    kahlilnc

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  28. Offline

    Celtic Minstrel

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    How would I know? I haven't heard from him either.
  29. Offline

    owenftw

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Great plugin! been using it for months.
  30. Offline

    danpeters

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    How would one turn off normal drops for a mob? I want to turn off essentially all mob normal drops and put in my own.
  31. Offline

    tsuna25

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It says to tell you right away,so your otherdrops plugin spams the console,what does it spam?It spams because of magicspells cant find entitytarget and etc craftarrow etc.

    This post has been edited 1 time. It was last edited by tsuna25 Jun 9, 2012.
  32. Offline

    tsuna25

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Also whenever my players get a custom drop they get hit,but it doesnt hurt them

Share This Page