[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)
        [email protected]:
          - drop: APPLE
            chance: 5%
        [email protected]:
          - drop: [email protected]
            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

    alimarin

    I'm getting the following errors:
    Code:
    2013-04-20 23:21:27 [WARNING] [Minecraft] [OtherDrops:2.8b.459] Unrecognized target (skipping): 2001
    2013-04-20 23:21:27 [WARNING] [Minecraft] [OtherDrops:2.8b.459] Unrecognized target (skipping): [email protected]
    2013-04-20 23:21:27 [WARNING] [Minecraft] [OtherDrops:2.8b.459] Unrecognized target (skipping): [email protected]
    2013-04-20 23:21:27 [WARNING] [Minecraft] [OtherDrops:2.8b.459] Unrecognized target (skipping): [email protected]
    2013-04-20 23:21:27 [WARNING] [Minecraft] [OtherDrops:2.8b.459] Unrecognized target (skipping): [email protected]
    
    Code involved:
    Code:
        254: #Ruby ore
            - replacementblock: STONE
              drop: 5581 #Ruby
              quantity: 1-3
              dropspread: true
              tool: ANY_PICKAXE
     
        2001: #Copper ore
            - replacementblock: STONE
              drop: 2001 #Copper ore
              quantity: 1
              dropspread: true
              tool: ANY_PICKAXE
            - drop: [email protected] #Pulverized Copper
              quantity: 1-4
              chance: 5
              message: There's some usable powder in this ore.
              dropspread: true
              tool: ANY_PICKAXE
            - drop: [email protected] #Ferrous Ingot
              quantity: 1-4
              chance: 5
              message: There's some usable pre-smelted ore in this vein.
              dropspread: true
              tool: ANY_PICKAXE
     
        [email protected]: #Tin ore
            - replacementblock: STONE
              drop: [email protected]
              quantity: 1
              dropspread: true
              tool: ANY_PICKAXE
            - drop: [email protected] #Tin Ingot
              quantity: 1-4
              chance: 5
              message: There's some usable pre-smelted ore in this vein.
              dropspread: true
              tool: ANY_PICKAXE
            - drop: [email protected] #Pulverized Tin
              quantity: 1-4
              chance: 5
              message: There's some usable powder of this ore.
              dropspread: true
              tool: ANY_PICKAXE
     
        [email protected]: #Silver ore
            - replacementblock: STONE
              drop: [email protected]
              quantity: 1
              dropspread: true
              tool: ANY_PICKAXE
            - drop: [email protected] #Silver Ingot
              quantity: 1-4
              chance: 5
              message: There's some usable pre-smelted ore in this vein.
              dropspread: true
              tool: ANY_PICKAXE
            - drop: [email protected] #Pulverized Silver
              quantity: 1-4
              chance: 5
              message: There's some usable powder of this ore.
              dropspread: true
              tool: ANY_PICKAXE
     
        [email protected]: #Lead ore
            - replacementblock: STONE
              drop: [email protected]
              quantity: 1
              dropspread: true
              tool: ANY_PICKAXE
            - drop: [email protected] #Pulverized Lead
              quantity: 1-4
              chance: 5
              message: There's some usable powder of this ore.
              dropspread: true
              tool: ANY_PICKAXE
            - drop: [email protected] #Lead Ingot
              quantity: 1-4
              chance: 5
              message: There's some usable pre-smelted ore in this vein.
              dropspread: true
              tool: ANY_PICKAXE
     
        [email protected]: #Ferrous ore
            - replacementblock: STONE
              drop: [email protected]
              quantity: 1
              dropspread: true
              tool: ANY_PICKAXE
            - drop: [email protected] #Ferrous Ingot
              quantity: 1-4
              chance: 5
              message: There's some usable pre-smelted ore in this vein.
              dropspread: true
              tool: ANY_PICKAXE
            - drop: [email protected] # Pulverized Ferrous Metal
              quantity: 1-4
              chance: 5
              dropspread: true
              tool: ANY_PICKAXE
              message: There's some usable powder of this ore.
    
    Help plox
     
  3. Offline

    Zarius

    alimarin

    Thanks for the report - looking into and can see a fix but a bit tricky, will keep working on it.
     
    alimarin likes this.
  4. Offline

    zenvince

    Is there a way I'm missing to make, let's say a STICK, shooting projectile_egg, projectile_arrow that I'm missing ?
    That would be awsome if I could make a Magical Stick as a reward for killing a special witch :D
     
  5. Offline

    Zarius

    zenvince - that would be cool and I've thought about it but it projectiles from wands isn't supported (although I may add that later, lower priority though).
     
  6. Offline

    zenvince

    I think I discovered a bug (or maybe it's not ) with lorenames including spaces.
    In my config file, I have a WITCH dropping 2 items supposed to have different effects on zombies.
    Their names starts with the same word.
    For my test I only set up this effect :

    Code:
    ZOMBIE:
            - drop: DEFAULT
            - action: RIGHT_CLICK
              tool: [email protected]!ARROW_INFINITE#10!~Baguette de Guerison
              replacementblock: AIR
              drop: VILLAGER
              effect: [POTION_BREAK, EXTINGUISH]
            - action: RIGHT_CLICK
              tool: [email protected]!ARROW_INFINITE#10!~Baguette de Guerison
              chance: 5
              consumetool: 1
    It works fine with the item named "Baguette de Guerison". I tested with other STICKS (same enchantment/level) named "Baguette" and "Baguette Test" and the drop still working whereas it should not.

    The temporary fix I set up is to replace the enchantment on the second item dropped by the WITCH to bypass the lorename check which is not working properly.

    Maybe am I doing something the wrong way ?

    P.S.: I thank you again for your awsome work which brings me and my friends a lot of fun.
     
  7. Offline

    Zarius

    zenvince

    You're doing it the logical way which unfortunately isn't supported yet :-\ I do plan to add that soon but for now you need to use the "lorename" parameter.
     
  8. Offline

    zenvince

    Hey, it's me again !

    Can I ask you the exact syntax to make a mob named X to drop specific items and in the same time prevent the same mobs with no particular name to drop these ?

    I have a witch named "SUPERWITCH" which should drop a special item, but I discovered the normal ones drop it too ...

    I set this :
    Code:
    SPIDER:
            - *potionDrops
            - drop: CAVE_SPIDER
              tool: [ANY_SWORD, BOW, PROJECTILE_ARROW]
              chance: 6
              quantity: 1-5
            - drop: DEFAULT
            - tool: [[email protected]!LOOT_BONUS_MOBS, [email protected]!LOOT_BONUS_MOBS]
              drop: [email protected]
              chance: 8
            - tool: [email protected]!LOOT_BONUS_MOBS#1-3!KNOCKBACK#1-3
              drop: [email protected]!~SUPERWITCH^SPIDER
              chance: 100
     
        [email protected]!~SUPERWITCH:
            - drop: [email protected]!ARROW_DAMAGE#10!~Baguette d'Alchimie
              chance: 100
            - drop: [email protected]!ARROW_DAMAGE#10!~Baguette de Guerison
              chance: 100
     
  9. Offline

    Zarius

    zenvince - that should work fine - what version of OtherDrops?
     
  10. Offline

    zenvince

    The server is still running OtherDrops 2.8b.459 with CraftBukkit beta 1.5.1-R0.2.
    I've temporarly set a <spawnedby: OTHERDROPS> parameter in the drop section of the item that should be drop by this special witch. But I'm planning to add several types of witches with different names ....
     
  11. Offline

    medullaman

    First, I love the plugin.

    I was trying to make creepers drop fire when they explode themselves
    Code:
    - tool: EXPLOSION_CREEPER
              delay: 20
              drop: FIRE:0
              quantity: 1-5
    This didn't seem to work. Any advice?
     
  12. Offline

    Zarius

    medullaman - not currently able to be done but I've just worked on it & got it working so will be in the next build. I'm not sure though - are you trying to drop the fire item or you want fire on the ground when the creeper explodes?

    medullaman - just noting, if you want to just set the ground on fire you could try:

    PHP:
      CREEPER:    
      - 
    toolEXPLOSION_CREEPER
        event
    explosion@nobreak/fire
        quantity
    1-5
    It will do extra damage to players in close proximity though, as it sets off a second explosion (nobreak means it wont break extra blocks though.
    Also - it appears that if you use the gamerule "mobGriefing = false" then the creeper deaths don't trigger an event so cannot be used in OtherDrops. Possibly a bug that might get fixed in future Bukkit versions.

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

    medullaman

    Sweet, I can try that. I was hoping to avoid a second explosion. But yes I would like to have the creeper explosion... (only if he dies by exploding himself... if the player succeeds in killing him then no fire) light the ground on fire.

    Also since you are so amazingly awesome at responding. (seriously I am very impressed) I was also wondering if there was a way for an arrow with flame enchantment could set blocks on fire. I could not find anything even close so I ask here.

    And really, thanks so much for the quick reply.
     
  14. Offline

    Zarius

    If you only want a little bit of fire you can play with the explosion power - eg. [email protected]/fire/2.0 (default is 4.0).

    It would be cool but OtherDrops doesn't currently hook into a "projectile hit block" event (maybe something for the future).
     
  15. Offline

    owenftw

    How do you make mobs drop money? :l

    Is this correct:
    CREATURE_HOSTILE:
    - tool: ALL
    money: 1-3
    message: "&eYou receive some money for killing &5%v."

    using latest dev build on devbukkit
     
  16. Offline

    Zarius

    Yes, that should work fine :) You can also change the message to include the amount. Make sure the spacing is correct, eg.

    PHP:
      CREATURE_HOSTILE:
      - 
    money1-3
        message
    "&eYou receive $%q for killing &5%v."
     
  17. Keep up the good work Zarius :)!
     
  18. Offline

    Lummox

    I'm trying to break the redstone ore with any pickaxe, even wood, and that this ore, drop to 1-5 drops redstone dust.

    I tried with these settings:

    Code:
    otherdrops:
      REDSTONE_ORE:
        - tool: ANY_PICKAXE
          drop: REDSTONE/1-5
    
    Code:
    otherdrops:
      ANY_REDSTONE_ORE:
        - tool: ANY_PICKAXE
          drop: REDSTONE/1-5
    
    Code:
    otherdrops:
      REDSTONE_ORE:
        - tool: [ANY_PICKAXE]
          drop: REDSTONE/1-5
    
    Code:
    otherdrops:
      ANY_REDSTONE_ORE:
        - tool: [ANY_PICKAXE]
          drop: REDSTONE/1-5
    
    What am I doing wrong?, When I break the redstone ore, just gives me redstone dust normally (with stone pickaxe or higher), but does not give me anything with wooden pick.

    Greetings ;)
     
  19. Offline

    Zarius

    Lummox - not sure, looks ok to me. Is OtherDrops loading ok? Any errors at startup? Also, what version of OtherDrops are you running?
     
  20. Offline

    sirdave79

  21. Could i have some help i would like a creeper do drop a skeleton spawn egg and im not sure how to config highly appreciated if help
     

Share This Page