[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

    Zarius

    Fixed it in 2.6-beta1 (see the bukkitdev page, or GitHub downloads for Hawkeye version).

    Percentages don't work yet - good idea though, I'll keep it in mind.

    Well, I'm off - 7 day cruise/honeymoon so I'll have limited to no internet connection - see you guys in a week :)

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

    Kane

    I'm having an issue with mob farming. I used my old script it did not work so I thought NP I saw you guys had one also. I ran it pushed pigs off a roof and no joy. They all were dropping meat. Using OtherDrops_2.6-beta1 fresh install with this line uncommented:
    - includes/od-stop_mob_farms.yml # Stop mob farming!


    Not sure if this will help

    Code:
    >od show cow
    20:06:28 [INFO] Block CREATURE_COW (BREAK): (1) Agent: [[ENTITY_EXPLOSION], [CONTACT], [FALL], [SUFFOCATION], [STARVATION], [FIRE_TICK, FIRE, LAVA], [BLOCK_EXPLOSION], [DROWNING]] Worlds: null Regions: null Weather: null Block faces: null Biomes: null Times: null Groups: null Permissions: null Height: null Attack range: null Light level: null Chance: 100.0 Exclusive key: null Delay: 0 Drop: AIR Quantity: 1.0 Attacker damage: 0 Tool damage: null Drop spread: 100.0% chance Replacement block: null Commands: [] Messages: (none) Sound effects: null Events: null
    20:06:28 [INFO] Block CREATURE_COW (LEFT_CLICK):No info found.
    20:06:28 [INFO] Block CREATURE_COW (RIGHT_CLICK):No info found.
    20:06:28 [INFO] Block CREATURE_COW (LEAF_DECAY):No info found.
    20:06:28 [INFO] Block CREATURE_COW (FISH_CAUGHT):No info found.
    20:06:28 [INFO] Block CREATURE_COW (FISH_FAILED):No info found.
    
     
  4. Offline

    Gunre

    I haven't installed this plugin yet, so forgive me for not trying this before asking.

    Is the multiple enchantment syntax compatible with the 'Multiple Drops (Choose One)' syntax? The former uses commas as the delineator between enchants, and the latter uses commas between items.

    e.g. drop: {ANY_SWORD@!DAMAGE_ALL#3,BOW@!ARROW_DAMAGE#3,ARROW_INFINITE#1}
     
  5. Offline

    CubieX

    Zarius:

    Is it possible to drop money for killing a monster, but without replacing the default drop?
    I would like to add some things to the default drops without having to write all the drops myself.
     
  6. Offline

    Gunre

    I got around to trying the config in my earlier question and found that it doesn't work, nor does using aliases to work around it. Unless there's something I'm missing I guess its currently limited to a single enchant on a drop if you want to use the curly brace syntax.
     
  7. Offline

    FarTooManyCats

  8. Offline

    QQCucumber

    How do you make this hook into Vault? I get an error whenever I start the server that it failed to hook.
     
  9. Offline

    PhantomsCore

    Hey I just want to make it so zombies drop gold ingots please help!

    I'm trying to help my friend with his server.
     
  10. Offline

    FarTooManyCats

  11. Offline

    PhantomsCore

    I think you need to put a % sign by your chance numbers.
     
  12. Offline

    FarTooManyCats

    According to the help/readme files, which I'm beginning to think may be outdated from all the different people who've said, "Maybe you need a % sign there," no % sign is needed. In any case, I tried adding one on the left side; didn't work. Tried adding one on the right side; didn't work. Something else in this screenshot is wrong, but I have no idea what it is.
     
  13. Offline

    gawelium

    Hi !! I've got a question for you :)

    I try to block the use of bottle o'enchanting. In fact, in my server, players can go to a map Freebuild where they can switch to gamemode. So I would like to block the use of this item but I don't know if it's possible.

    Thank's for the answer.
     
  14. Offline

    FarTooManyCats

  15. Offline

    h0us3cat

    I want to have jungle trees drop more saplings

    Code:
        SPECIAL_LEAFDECAY@JUNGLE:
          - drop: SAPLING@JUNGLE
            chance: 200%
    Is wrong?
     
  16. Offline

    RyGuy147

    This is a great plugin, but it needs support for jungle trees/leaves.
     
  17. Offline

    asasineblade

    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

    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.

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

    RyGuy147

    How can I make it so that all mobs have a slim chance of dropping a random music disk?

    How do I keep users from taking damage when they get a custom drop?

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

    Hareu

    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?
     
  20. Offline

    Keybounce

    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?
     
  21. Offline

    FarTooManyCats

    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.
     
  22. Offline

    Keybounce

    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.

    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/

    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).

    Show us your config files, otherwise we can only guess.

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

    h0us3cat

    I already had found it out :)

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

    kanti17

    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?
     
  25. Offline

    Keybounce

    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
    
     
  26. Offline

    Bytesize

    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
     
  27. Offline

    Greylocke

    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
     
  28. Offline

    Krenex

    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.
     
  29. Offline

    CubieX

    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"
     
  30. Offline

    Celtic Minstrel

    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.
     
  31. Offline

    Patolord

    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
     

Share This Page