[INACTIVE][MECH] DropBonus v2.5 - Loot table configuration tool - [740]

Discussion in 'Inactive/Unsupported Plugins' started by Nohup, Feb 25, 2011.

  1. Offline

    Nohup

    DropBonus
    Version 2.5

    Tags - Loot, Drops, Permissions, iConomy, Multi-world

    The DropBonus plugin will allow you to configure the loot tables on your server in such a way that you can a) set the probability that breaking a block or killing an entity will generate a bonus, b) set the probability of EACH TYPE of bonus that can be generated, c) set a range for the number of items dropped and MORE. Even better still, the plugin was coded in a completely generic fashion so you aren't limited to the combinations that I thought were correct or needed. You can configure this plugin so that ANY block that is broken has the chance (.1% - 100%) of generating ANY other material (Material.X). The same goes for any creature that is killed.

    This tool can be used to override the default game drops as well. If you wanted to turn all drops from blocks off and control all the materials on your server, this tool makes it possible. It provides total control over what drops when blocks break and when creatures are killed!

    Features:
    • Allows for bonus blocks to be dropped when a configured block is broken OR when a configured mob is killed.
    • Bonus chances are cumulative, so you could receive multiple bonuses for one block/mob based on the laws of probability.
    • Single "roll" performed to determine if bonuses should be granted on this event or not. Once you have qualified for a bonus, all bonuses defined for that block will be attempted.
    • Individual "rolls" performed for each bonus type, ensuring that qualifying for one bonus at a given level doesn't automatically qualify you for all bonuses at that level.
    • Configurability is the key. You can configure any block type and under that block type you can configure the chance of a bonus entity being dropped when the given block type is broken. The same goes for mob type.
    • Along those lines, you can also set individual blocks OR bonuses to be turned off. You don't have to have a specific set of entries or drops. Only set up what you want to occur.
    • Percentage configuration is now from 0-100 and anywhere in between in double format (so 0.000001 will now be accepted)
    • Ability to override standard drops from entities and blocks, assumed to be false if not specified
    • Ability to set drops based on tool used when breaking the block/killing the mob
    • Ability to specify 0-n bonus items of a type to be delivered in one "bonus"
    • Ability to specify 0-n bonus evaluations for a given bonus (i.e. you have 100% of one bonus stone, and then 20% chance of a second bonus stone)
    • Ability to specify the maximum number of dropped items per bonus per material
    • Configurable permissions supported by the Permissions plugin
    • Ability to specify the amount of damage done to a tool when breaking a block of a given type or killing a given mob
    • Newly added - MULTI-WORLD support, configurability for each world or all worlds at once.
    • iConomy support for specifying currency to drop from mobs and blocks
    Usage: Install the plugin and configure the config.yml for it (after it is generated). No commands currently specified. Bonus node permissions can be setup in the Permissions config.yml as exemplified below.




    Configuration Examples: Wiki

    Permissions Example: Wiki

    Multi-world Support: Wiki

    iConomy Support: Wiki

    Download DropBonus: DropBonus v 2.5
    Download Source: GitHub
    Wiki Site: Wiki


    Latest CraftBukkit version tested against: 733


    Changelog:

    v 2.5
    • Updated to work with Bukkit 733.


    v 2.4
    • Updated to work with new version of Bukkit. NOT backward compatible.
    v2.3
    • Added list support for coins entries
    • Added permissions check before applying override
    v 2.2
    • Bug fixes for Permissions plugin name and 0 data field entry.
    v 2.1
    • Changed cooldown to only affect configured blocks
    • Added override support at tool level
    v 2.0.1
    • Bug fix for creature coin drop issue for iConomy integration.
    v 2.0
    • Added permissions configurability at the Material level (items dropped)
    • Major code refactor, thus new major version
    • Adjusted priority to Monitor where dealing with cancellable events, this will prevent conflicts with WorldGuard and iZone
    • Tested against new Recommended Build, w00t!
    v 1.10

    • Added support for boats and carts
    v 1.9

    • Added configuration to specify whether a killed entity only drops bonuses when killed by a player or not. This has a top-level default AND creature-specific configurations.
    • Added configuration to specify a placed-block cooldown timer (in ticks).
    • Added clean up routine to tracking to make sure entries aren't orphaned.
    • Adjusted block listener priority for onBlockBreak event and accounted for if the event is cancelled.
    v 1.8


    • iConomy beta successfully complete
    • Refactored some of my packages for those that look at my code
    • Created wiki for documentation so this post wasn't so large!
    v 1.7


    • Multi-world support added
    v 1.6


    • Added additional data specification within drop entries (used for color, texture, etc)
    • Added ability to specify how much damage a tool takes when breaking a block or killing a creature
    • Added BETA release of iConomy support (thanks to @Coelho for his help!)
    • Limited error spam to the console when configuration files are not correct
    v 1.5


    • Added Permission support
    v 1.4


    • Added tool-specific drop specification
    • Added support for 0-n bonus items to be dropped from a single configuration
    • Added support for o-n bonuses per material type per bonus
    • Added specification for maximum number of bonuses dropped per event
    v 1.3


    • Added override support to disable standard drops from blocks and entities.
    • Override flag assumed to be false if not specified
    v 1.2


    • added check to only drop bonus when death is caused by entity attack, not by external triggers such as skeletons burning to death or entities drowning
    v 1.1


    • Overhaul to percentage definitions
    • Added support for mob deaths
    • Changed name to DropBonus to span new functionality
    v 1.0


    • Initial release.
     
    Noppoly, Stormbow, Phaedrus and 2 others like this.
  2. Offline

    NEO

    Request: Add the ability to change what mob spawners spawn. Not ones that you spawn but for example all mob spawners as if it were a block drop but with spawn rates from spawners.

    The option to change it so that only creature bonuses were applied to creatures naturally spawned and not to ones spawned by a mob spawner would be nice. I applied iconomy rewards for various monsters and found many users camping spawners. Siting in little boxs with the mouse button held in so there sword would kill approaching mobs well they slept raking in more money than the richest players on the server in a single night.
     
  3. Offline

    Shenlong

    Quick question, kind of related to the last post. How exactly does this work with mob spawners? If I set mob spawns to drop mob spawners can I then place them and have it work as you would expect? I currently use the creaturebox plugin for this, but I'm all about reducing the number of plugins I'm using, so I'm just wondering if this would work for that.
     
  4. Offline

    L5D

    Error :
    Code:
    19:50:21 [INFO] Plugin loaded.
    19:50:21 [INFO] Plugin enabled.
    19:50:21 [SEVERE] Exception in thread "Thread-235"
    19:50:21 [SEVERE] java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
    19:50:21 [SEVERE]       at com.nohupgaming.minecraft.DropBonus.onEnable(DropBonus.java:68)
    19:50:21 [SEVERE]       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    19:50:21 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
    19:50:21 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
    19:50:21 [SEVERE]       at com.earth2me.essentials.commands.Commandplugin$1.run(Commandplugin.java:116)
    19:50:21 [SEVERE]       at java.lang.Thread.run(Thread.java:636)
    19:50:21 [SEVERE] Caused by: java.lang.ClassNotFoundException: com.nijikokun.bukkit.Permissions.Permissions
    19:50:21 [SEVERE]       at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    19:50:21 [SEVERE]       at java.security.AccessController.doPrivileged(Native Method)
    19:50:21 [SEVERE]       at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    19:50:21 [SEVERE]       at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
    19:50:21 [SEVERE]       at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    19:50:21 [SEVERE]       at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    19:50:21 [SEVERE]       ... 6 more
    Bukkit build 544
    iConomy 4.61
     
  5. Offline

    Nohup

    @L5D - Do you have Permissions installed? It isn't required but it shouldnt be trying to touch Permissions if it doesn't see the plugin...

    As for the mob spawners I don't really plan on adding the support to change what spawners pop out... As for dropping, I actually haven't tested if a dropped spawner "works"... Not sure that I can affect that mechanic or not, would have to look at some code examples from other projects if they don't work...
     
  6. Creatures killed by other means than players are not making their drops.
    I built a lava blade grinder and all mobs are dropping their usual loot. If I manually kill then I get the altered drops.
    Code:
    bonuses:
        craftchicken:
            maxcount: 3
            chances:
                egg: 10 1 1
                feather: 75 1 2
                yellow_flower: 25 1 1
                red_rose: 25 1 1
            override: true
            probability: 100
        craftcow:
            maxcount: 2
            chances:
                leather: 75 1 2
            override: true
            probability: 100
        craftsheep:
            maxcount: 3
            chances:
                wool:
                    - 2 1 2 1
                    - 2 1 2 2
                    - 2 1 2 3
                    - 2 1 2 4
                    - 2 1 2 5
                    - 2 1 2 6
                    - 2 1 2 9
                    - 2 1 2 10
                    - 2 1 2 11
                    - 2 1 2 13
                    - 2 1 2 14
            override: false
            probability: 100
        craftpig:
            maxcount: 2
            chances:
                pork: 75 1 2
            override: true
            probability: 100
        craftsquid:
            override: false
            probability: 100
        craftcreeper:
            maxcount: -1
            chances:
                mob_spawner: 1 1 1
                cake: .1 1 1
                sulphur: 60 1 1
            override: true
            probability: 100
        craftspider:
            maxcount: -1
            chances:
                string: 100 1 1
            override: true
            probability: 100
        craftskeleton:
            maxcount: -1
            chances:
                bone: 74 1 3
                arrow: 80 1 3
                flint: 15 1 3
                stick: 15 1 3
                bow: 3
            override: true
            probability: 100
        craftslime:
            maxcount: -1
            chances:
                slime_ball: 100
            override: true
            probability: 100
        craftzombie:
            maxcount: -1
            chances:
                glowstone_dust: 20 1 2
                bone: 40 1 1
            override: true
            probability: 100
        stone:
            maxcount: -1
            probability: 75
            chances:
                cobblestone: 75.0
            override: true
            tool:
                diamond_pickaxe:
                    chances:
                        stone: 75.0
        leaves:
            maxcount: -1
            probability: 100
            chances:
                sapling: 5.0
                apple: 2.0
            override: true
        mob_spawner:
            maxcount: 1
            chances:
                mob_spawner: 100 1 1
            override: true
            probability: 100
    creature:
        requirekiller: 0
    block:
        cooldown: 0
    
     
  7. Offline

    Nohup

    you have requireKiller as 0, not sure if YAML will parse that as false. try false explicitly
     
  8. Afraid no different.

    New items drop if I kill the monsters by hand, but if killed by lava/drowning it's default drops :(.
     
  9. unfortunately the plugin is broken with b602jnks:
    Code:
    2011-03-30 13:58:58 [SEVERE] BLOCK_PLACED loading DropBonus v2.3 (Is it up to date?)
    java.lang.NoSuchFieldError: BLOCK_PLACED
        at com.nohupgaming.minecraft.DropBonus.onEnable(DropBonus.java:59)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:511)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:93)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:71)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  10. Offline

    NotoriousPyro

    @g_BonE

    Try this: <Edit by Moderator: Redacted multiupload url>
     
    Last edited by a moderator: Apr 1, 2019
  11. Offline

    Nohup

    now that these changes are in a RB I will change my temp build to a full build tonight.
     
  12. I just took about 2 hours to convert my DropBonus config to OtherBlocks... just to find now that DropBonus is already back in action for CB602jnks :confused: Anyway... i'll give OtherBlocks a little trial. Meanwhile if anyone is interested: here's the config i use on my small survival server:
    Code:
    # for item names see https://spreadsheets.google.com/ccc?key=0AmsVBNE37NrDdEFCc2pLQ0RIQ0tWLUlWTE1ZaVp1V1E&hl=en&authkey=CN-p-OUF#gid=0
    bonuses:
    # ----- block drops -----
        stone:
            maxcount: -1
            chances:
                stone: 3.4 1 1
                iron_ore: 2.2 1 1
                diamond: 1.1 1 1
                coal: 0.6 1 1
                obsidian: 0.01 1 1
                glowstone: 0.01 1 1
                netherrack: 0.01 1 1
                mossy_cobblestone: 0.01 1 1
                gravel: 0.01 1 1
                dirt: 0.01 1 1
                gold_ore: 0.01 1 1
                redstone: 0.01 1 3
                # lapis below ;)
                ink_sack: 0.01 1 3 4
            #tool:
            #    stone_pickaxe:
            #        chances:
            #            stone: 100.0 3 5
            override: false
            probability: 100.0
        dirt:
            maxcount: -1
            chances:
                seeds: 2.2 1 3
                flint: 0.9 1 1
                bowl: 0.01 1 1
                watch: 0.01 1 1
                compass: 0.01 1 1
                bone: 0.01 1 1
            override: false
            probability: 100.0
        sand:
            maxcount: -1
            chances:
                sandstone: 3.3 1 1
                clay_ball: 2.7 1 1
                cactus: 0.4 1 1
                soul_sand: 0.08 1 1
                bone: 0.01 1 1
            override: false
            probability: 100.0
        gravel:
            maxcount: -1
            chances:
                bowl: 0.01 1 1
                watch: 0.01 1 1
                compass: 0.01 1 1
                bone: 0.01 1 1
            override: false
            probability: 100.0
        grass:
            maxcount: -1
            chances:
                yellow_flower: 23.2 1 2
                red_rose: 23.1 1 2
                seeds: 13.4 1 3
                pumpkin: 8.3 1 1
                sugar_cane: 7.9 1 1
            override: false
            probability: 100.0
        leaves:
            maxcount: -1
            chances:
                leaves: 3.2 1 2
                sapling: 1.4 1 1
                log:
                - 6.0 1 2 0
                - 6.0 1 2 1
                - 6.0 1 2 2
                apple: 0.12 1 1
                golden_apple: 0.06 1 1
            #tool:
            #    stick:
            #        chances:
            #            sponge: 100.0 3 5
            override: false
            probability: 100.0
        glass:
            maxcount: -1
            chances:
                glass: 100 1 1
            override: false
            probability: 100.0
        glowstone:
            maxcount: -1
            chances:
                glowstone: 100 1 1
            override: false
            probability: 100.0
        diamond_ore:
            maxcount: -1
            chances:
                diamond_ore: 4.7 1 1
            override: false
            probability: 100.0
        wood_stairs:
            maxcount: -1
            chances:
                wood_stairs: 100 1 1
            override: false
            probability: 100.0
        cobblestone_stairs:
            maxcount: -1
            chances:
                cobblestone_stairs: 100 1 1
            override: false
            probability: 100.0
    # ----- passive mob drops -----
        craftchicken:
            maxcount: -1
            chances:
                feather: 86.7 1 2
                bone: 39.4 1 1
                egg: 27.2 1 1
            override: false
            probability: 100.0
        craftpig:
            maxcount: -1
            chances:
                pork: 86.2 1 2
                bone: 45.1 1 2
                grilled_pork: 5.1 1 1
                saddle: 0.5 1 1
            override: false
            probability: 100.0
        craftcow:
            maxcount: -1
            chances:
                leather: 87.3 1 2
                bone: 56.3 1 3
            override: false
            probability: 100.0
        craftsheep:
            maxcount: -1
            chances:
                bone: 43.1 1 2
                wool:
                - 14.0 1 3 0
                - 7.0 1 3 1
                - 7.0 1 3 2
                - 7.0 1 3 3
                - 7.0 1 3 4
                - 7.0 1 3 5
                - 7.0 1 3 6
                - 14.0 1 3 7
                - 14.0 1 3 8
                - 7.0 1 3 9
                - 7.0 1 3 10
                - 7.0 1 3 11
                - 7.0 1 3 12
                - 7.0 1 3 13
                - 7.0 1 3 14
                - 14.0 1 3 15
            override: false
            probability: 100.0
        craftsquid:
            maxcount: -1
            chances:
                ink_sack: 85.4 1 2
                raw_fish: 64.5 1 2
                slime_ball: 34.1 1 1
            override: false
            probability: 100.0
    # ----- agressive mob drops -----
        craftcreeper:
            maxcount: -1
            chances:
                sulphur: 87.8 1 3
                tnt: 2.8 1 1
            override: false
            probability: 100.0
        craftskeleton:
            maxcount: -1
            chances:
                bone: 45.1 1 2
                arrow: 42.6 1 3
                bow: 3.2 1 1
                chainmail_chestplate: 6.0 1 1
                chainmail_boots: 6.0 1 1
                chainmail_helmet: 6.0 1 1
                chainmail_leggings: 6.0 1 1
                diamond_chestplate: 3.0 1 1
                diamond_boots: 3.0 1 1
                diamond_helmet: 3.0 1 1
                diamond_leggings: 3.0 1 1
            override: false
            probability: 100.0
        craftslime:
            maxcount: -1
            chances:
                slime_ball: 84.3 1 2
            override: false
            probability: 100.0
        craftspider:
            maxcount: -1
            chances:
                string: 83.8 1 2
            override: false
            probability: 100.0
        craftzombie:
            maxcount: -1
            chances:
                brown_mushroom: 12.3 1 2
                red_mushroom: 11.6 1 2
                bone: 9.2 1 2
                leather: 8.4 1 2
                slime_ball: 3.1 1 1
                chainmail_chestplate: 6.0 1 1
                chainmail_boots: 6.0 1 1
                chainmail_helmet: 6.0 1 1
                chainmail_leggings: 6.0 1 1
                diamond_chestplate: 3.0 1 1
                diamond_boots: 3.0 1 1
                diamond_helmet: 3.0 1 1
                diamond_leggings: 3.0 1 1
            override: false
            probability: 100.0
    creature:
        requirekiller: 0
    block:
        cooldown: 0
    
     
  13. Offline

    Nohup

    there has been a patched version out for the non-RB versions in this thread for a while, I was just waiting for them to push an RB before making it the "official" version
     
  14. Offline

    glycerine102

    I have a bit of a strange issue I can't pin down.
    I am still using RM 556 and DB v2.3 so if this is fixed just disregard this. (I am waiting for WorldGuard to be updated before I move to 602.)

    On to the problem:
    I have 2 worlds; a normal world, and the nether. When I give bonuses to blocks, everything works great in the normal world, however in the nether, the block will drop its bonus upon each hit.

    For instance, I want to have glowstone drop a few more glowstone_dusts than usual. So I enter the code below in the 'bonus' section.

    Code:
        glowstone:
            maxcount: -1
            chances:
                glowstone_dust: 100 3 5
            override: false
            probability: 100
    In the normal world, I can place a glowstone and hit it. When it breaks, 3-5 glowstone_dusts appear. Everything is peachy.

    When I switch to the nether, and start hitting a glowstone block, each tap to the block will spawn 6+ glowstone_dusts. This can essentially be spammed forever and it will just keep spitting out more drops as long as you are careful to not break the block.

    This same thing happens when I use "normal world blocks" and place them in the nether. For instance, I also have bookshelves giving back 1 bookshelf upon break. Placing a bookshelf in the nether causes 2 bookshelves to spawn on each hit to the bookshelf with any tool.

    I am using MultiVerse 1.5 for multiple worlds and Permissions 2.5.4 if it helps. There are no errors in the console and as stated, every bonus I add works great in the normal world.

    I skimmed through these pages and did not see anybody else with the issue, so if anybody has an idea I'd love to hear it, thanks.
     
  15. Offline

    Nohup

    @glycerine102 - the drops should occur onBlockBreak, I wonder if there is an erroneous one being floated by MultiVerse?

    I have placed 2.4 out there.
     
  16. Offline

    Nohup

    verified working with v617
     
  17. Offline

    croccydile

    Everyone seems to like this plugin on my server ^^

    Minor suggestion on something that has bugged me a little... would it possible in the future to add a way to reload or re-read the config file on a running server? Would like to modify drop values without having to restart the whole thing.

    Thank you
     
  18. Offline

    Tobei

    Quick question: What are the ID names of: Giants, Wolves, and Coco Beans?
    I've tried a bunch of logical names for each and can't seem to get it. Is there a place I can find them for future reference??
     
  19. Offline

    Nohup

    Here is the master material list within the Bukkit code: Master Material List

    And here is the list of CraftBukkit classes for entities: Entity List

    For wolf it should be craftwolf. However, I don't see anything that looks like coco beans in the Bukkit list. Hmmm...
     
  20. Offline

    Tobei

    Thanks for the info Nohup.
    Do the item names need the underscore _ in them to work in the config.yml?
     
  21. Offline

    Scyfi

    Wouldn't it just be INK_SACK 3 since it's a dye like lapis luzil(not the ore)
     
  22. Offline

    Nohup

    yah they need the underscores. didnt realize coco was a dye, if that's the case then it just needs the 4th node in the drop specification to specify it
     
  23. Offline

    Tobei

    Thanks guys. Freaking LOVE this plugin, it's basically the backbone of my whole server.
     
  24. Offline

    eddy69

    Hi all, How can I update for use with the v1.4 server ?
    opps sorry did not read properly test later :)
     
  25. Offline

    City Builder

    Hi,
    I'm trying to make leaf blocks drop a leaf block as well as sapling, here is my config:
    leaves
    chances:
    leaves: 100
    sapling: 100
    override: true
    probability: 100
    coins: 0 0 0

    Could somebody tell me where I've gone wrong please?

    Thanks,
     
  26. Offline

    Driiper

    This happens whenever the config file exists.

    Build 617

    Code:
    [SEVERE] Could not load plugins/DropBonus.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: while scanning for the next token
    found character         '\t' that cannot start any token
     in "<reader>", line 24, column 1:
    
        ^
    
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:360)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:73)
            at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:149)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:103)
            ... 8 more
    
     
  27. Offline

    Scyfi

    You want to make sure you have the correct spaces in the YML and not tabs. Also I have always had problems doing it like that for chances.
    leaves:
    maxcount: 2
    chances:
    leaves: 100 1 1
    sapling: 100 1 1
    override: true
    probability: 100
    coins: 0 0 0

    Always added the min and max after the % chance
     
  28. Offline

    Tobei

    Code:
        leaves:
            maxcount: -1
            chances:
                leaves: 100 1 1
                sapling: 15 1 1
                apple: 5 1 1
                goldenapple: 1 0 1
            override: true
            tool:
                diamond_axe:
                    chances:
                        leaves: 99 1 2
                        apple: 10 1 1
            probability: 100
    This is what I use, and it works perfectly. Although My apples still drop a little too often for my tastes.
     
  29. Offline

    Kane

    @Nohup is there a way to make spawners give no loot or only loot if you hit them rather then die say from fire/lava and such? To many people exploit mob spawners and really ruin the economy.

    @Nohup looks like coco beans have not been added yet.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  30. Offline

    alexfire

    Hello everyone! I am planing on adding in classes to my semi-new server and was hoping that someone would be willing to do a little bit of work for me... The Wiki for this plugin is a little confusing I was hoping someone could create an example I can use to copy paste and edit for different blocks or mobs etc.

    I am looking for an example that would include: Chance of double drops, different drops (like coal from cobble), iConomy currency from monsters as well as items such as armor, and The permissions for only allowing a specific group to aquire such benefits.

    Once I get an example explaining the layout of each different block/mob drop table I can edit and copy paste as needed. I really apreceate any help anyone can offer. I apologize again for being a noob here just slightly confused. (Yes I did read the Wiki in case anyone is wondering. Just need further guidance).
     
  31. Offline

    Beatkidz

    the mob known as "Monster" can we get a way to add drops to it? i use them in spawners in dungeon type areas.
     

Share This Page