[MECH] CustomDifficulty v4.5.0 - Monsters too strong or too weak for you? Change it! [1240]

Discussion in 'Inactive/Unsupported Plugins' started by Pasukaru, Jun 6, 2011.

  1. Offline

    Pasukaru

    CustomDifficulty
    The Plugin to adjust the difficulty in SMP
    Latest version: 4.5.0
    blank line
    [​IMG]
    BLANK LINE : D : D
    CustomDifficulty provides a lot of features to change the all around difficulty in Minecraft.
    You can change the monster's HP, damage, aggressiveness and more! You are also able to modify the player's damage.
    Each difficulty is stored in its own file - which enables you to create as many difficulties as you like! It's possible to set a difficulty for a certain region only (Use the built-in regions, or WorldGuard regions). This enables you - for example - to create hard dungeons with ease.
    For more information, take a look at the 'Features' section below.

    Please report any bugs you may encounter!

    If you are a developer and take a look at the source, please let me know if you have some improvements! I'm still new to this (Java/programming in general) and want to get better. :)

    Features:
    • Change monster's hp (200 HP is max - but that should be enough, a player has 20)
    • Change monster's damage - Let them beat you up - or not even scratch you :>
    • Change aggressiveness of monsters and animals. (Aggressive, Passive, Friendly)
    • Change if monsters burn in sunlight.
    • Spawn any mob, anywhere - naturally! Giant, 'monster' and sheep in any color included!
    • Define spawn chance.
    • Define min/max height for mobs to spawn.
    • Define min/max light level for mobs to spawn.
    • Define block types mobs will only/will never spawn on.
    • Define custom drops for each mob in each difficulty.
    • Define a loot-multiplier to let monsters drop more items!
    • Limit mobs per server/world/chunk
    • iConomy support! (For monster-killing rewards)
    • Change player's damage.
    • Multi-world support!
    • Permissions support!
    • WorldGuard support!
    • Create regions, each with a custom difficulty!
    • No need to restart/reload the server to apply changes, simply use the /difficulty reload command!
    • All (reasonable) commands can be used from the console!
    If you download, please also click the 'like' button at the lower right corner of this post - Thanks!

    If you need a more detailed explanation, feel free to drop me a message and I'll try to help as much as I can. :)
    This text is only used to have an empty line! :>
    How to use:
    Click me :)

    • Copy CustomDifficulty.jar into the /root/plugins folder.
    • Download WorldEdit (If you want to use regions) and place it into the /root/plugins folder as well.
    • Difficulties are located in the /root/plugins/CustomDifficulty/difficulties folder. Each difficulty is in its own [difficulty].yml file.
    • Simply change the values of the default configs and/or create new config files. The plugin will load all *.yml files inside the difficulties folder automatically on reload.
    • If you remove a configuration node, this plugin won't change anything of the corresponding event, thus preventing conflicts with other plugins.
    • You can create regions with the /difficulty region [regionCommand] commands and set difficulties for each of them independently! (See 'Commands and Permissions' below)
    Note that you must notuse tabs in *.yml (YAML) files. If you do, it will mess up the format and Bukkit will throw you a million errors (something like *snakeyaml* ) :>
    Important notes:
    Click me :)

    • All configuration nodes are case sensitive and your world's names shouldn't contain special character, as it might mess up the configuration nodes!
      If a configuration node does not exist, Bukkits default will be used - or nothing happens at all.
      The plugin will check if the monster/player is in a region first (if enabled - see below)
      If the monster/player is in no region, the world's difficulty settings will be used.
    • Slimes are handled according to their size.
    • Wolves are handled according to their tamed/untamed status.
    • Creepers are handled according to their powered/unpowered. status.
    • The last three points exclude the following nodes:
      spawnChance, spawnOnlyOn, spawnNotOn, lightLevelMin, lightLevelMax
    • Creepers have a floating point (e.g. 1.65) damage value and it's used as multiplier, not as fixed damage. This value applies to the damage only, not the explosion range/radius.
    • Wild wolves can be aggressive. They will attack a player on sight, but it is still possible to tame them - unless the player fights back.
    • Tamed wolves HP will always be read from the worlds difficulty! (To avoid exploits like healing it in a region where it as a maximum of 100 hp and then move to a region with a maximum of 50 hp)
    • Player's damage will be calculated like this:
      Round( (usualDamage * damageMultiply) + damageAdd )
      damageAdd is an integer.
      damageMultiply is a floating point value.
      usualDamage is the players default damage (e.g. 2 with fists, 5 with diamond pickaxe) - might be different if another plugin modified the event damage before CustomDifficulty did!
      You can use different values for Player vs Player and Player vs Monster. You can also set negative values - but a negative multiplier is not recommended.
    • Regions are disabled by default! If you want to use them, go to your config.yml(not difficulty.yml!) and set useRegions for the specified actions to 'true' (without quotes!)
      I disabled them by default do increase performance (a tiny, tiny bit :p, unless you have 1 million regions in one world) and I guess not everyone will use them.
    • Change difficulty of (regions or worlds) by using the corresponding command where difficulty = one of your /difficulties/[difficulty].yml without the ".yml" extension!
    Commands and Permissions:
    Click me :)
    Permission node to receive rewards: 'CustomDifficulty.reward'
    Ops can use all commands and permission nodes are case sensitive!
    bold = mandatory
    underlined = optional
    " | " = "or"

    Difficulty-related commands:
    • /difficulty help - Displays the help / lists commands and descriptions.
      Permission node: 'CustomDifficulty.help'
    • /difficulty - Displays difficulty of the world the player is currently in - or of all worlds if the command user is no player (e.g. console)
      Permission node: 'CustomDifficulty.check'
    • /difficulty check <World | all> - Displays the difficulty of <World>, <all> worlds or the world the player is currently in if <World> is not specified. If the command user is no player, it will list all worlds.
      Permission node: 'CustomDifficulty.check'
    • /difficulty <change | set><World> <Difficulty> - Change difficulty of <World>, or the world you are currently in if none specified.
      Permission node: 'CustomDifficulty.change'
    • /difficulty reload - Reloads the config files. Use this after changing/adding difficulties or other configurations!
      Permission node: 'CustomDifficulty.reload'
    • /difficulty performance - Counts the used time for each feature for the next 10 seconds. Use this if you think the plugin causes lag, and to find out which part of it.
    Region-related commands (These require WorldEdit and WorldGuard):
    All commands start with /difficulty region *** - Replace "***" with one of the below:
    • help - Displays help about region commands.
      Permission node: 'CustomDifficulty.region.help'
    • <set | change> <World> <Difficulty> - Change difficulty of world <World>, or the world you are currently in, if <World> is not specified, to <Difficulty>
      Permission node: 'CustomDifficulty.region.set'
    • info <World> <RegionName> - Displays some information about region <RegionName> on world <World> or the world you are currently in.
      Permission node: 'CustomDifficulty.region.list'
    Note:
    If you are using WorldGuard regions, only the region commands 'info' and 'set | change' are available. To define new regions, you WorldGuard's '/region define' command.
    Changelog:
    Version 4.5.0 | 10/6/2011
    • Fixed: Squid spawn - for real this time
    • Fixed: min/max spawn distance works now.
    • Fixed: Ghats can now be friendly. (passive too, but they will behave as friendly. :/) Friendly ghasts hardly move though.
    • Added: OPs will receive a message on login, if a new of CD is available. Can be turned off, config.yml -> global.checkForUpdates
    • Added: Some code to make squids follow their targets. They don't do that naturally like other mobs. -.-
    • Ghasts and PigZombies take damage over time to simulate burning in sunlight. (If enabled)
    Old versions (open)
    Version 4.4.0 | 9/28/2011
    • Changed: Mob limit configuration; Nodes you have to use now:
    Code:
    global:
        mobLimit: 500 #= server Limit
    worlds:
        [worldname]:
            mobAggressiveLimit: 75
            mobPassiveLimit: 75
            mobFriendlyLimit: 75
            mobChunkLimit: 1
    
    You can remove all other limit nodes, they aren't used anymore.
    • Added: A new config node inside the difficulty files:
    Code:
    global:
        dropOnlyWhenKilledByPlayer: false
    
    Should be self-explanatory, but you have to add it manually if you want to enable it.
    • Fixed: Squid spawning. Was checking for lava instead of water..
    • Fixed: A NPE inside the spawn algorithm.
    • Fixed: Another NPE inside spawn algorithm (dev build only)
    • Added: Multiverse-Core will now load before CD does.
    • Added: Register support. All major economy plugins should work with CD now.
    • Removed: iConomy5 support. If you use iConomy5, you also have to download and use Register.
    Version 4.3.0 | 9/24/2011
    • Fixed: Feeding wolf in 1.8; Item amount decreases and Raw Flesh added as food.
    • Fixed: Getting rewards with projectiles (arrows) works now.
    • Fixed: Giants spawning in walls and small caves. - Some still spawn in walls or weird locations and suffocate, but they will be removed immediately.
    • Added: Configuration nodes for the new mobs Enderman, CaveSpider and Silverfish.
    • Added: Now spawn-able: Electrified Creeper, Spider-Jockeys, coloured sheep.
    • Changed: Mobs will now spawn in at least 2 block high rooms instead 1 block only. (To prevent Zombies and other tall mobs to suffocate.)
    Version 4.2.3 | 7/28/2011
    • Changed: Giants attack players up to 3 blocks below them instead of 1.
    • Changed: config.yml nodes: spawnInterval, aggressivenessInterval and burnsInSunlightInterval are now in the worlds.worldname section. You can remove the global ones.
    • Probably fixed: ClassCastException in aggressiveness task. (?)
    • Changed: performance command.
    • Fixed: Another bug, I just don't remember which one... I should start writing it down immediately :eek:
    Version 4.2.2 | 7/27/2011
    • Fixed: BurnsInSunlight now reads the interval correctly from the config. (=Slight performance increase if you don't use an interval of 1. Default is 20.)
    • Fixed: Mobs can now spawn in snowy areas.
    • Added: Giants should attack players now, they don't do it naturally... (Please test this :))
    • Changed: Aggressiveness check is now performed every X ticks for every player, instead of every X move-events for the corresponding player only.
    Version 4.2.1 | 7/26/2011
    • Fixed: NPE in mobCleanup
    • Removed: Creation of unused node 'ignoreInvalidWorldDifficulty' in config.yml
    Version 4.2.0 | 7/25/2011
    • Added: command '/difficulty performance'
    • Added: another way of reading the difficulty of a mob (for testing purposes). change useOldGetDifficulty in your config.yml if you want.
    Version 4.1.0 | 7/15/2011
    • Removed built-in regions. (Use WorldGuard, it provides more features for regions)
    • Added customizable drops.
    • Added: Players will receive rewards if their wolf kills a mob
    • Changed spawn-algorithm, it will use the chunks around a random player per run, instead of chunks around all players.
    • Changed check for old iConomy versions.
    Version 4.0.6 | 7/13/2011
    • Fixed an 'out of bounds exception' in the reward calculations.
    • Mobs shouldn't suffocate anymore if they spawn next to a wall.
    Version 4.0.5 | 7/12/2011
    • fixed automatically created node burnInSunlight to burnsInSunlight in the config.yml
    • probable fix for a concurrent modification exception.
    Version 4.0.4 | 7/11/2011
    • Added fix for incompatible iConomy versions.
    Version 4.0.3 | 7/10/2011
    • Major bug fixed within the spawn-algorithm. To be specific: instead of reading the maximum light level for a mob to spawn, it was reading the minimum height - this, of course, messed everything up.
    Version 4.0.2 | 7/10/2011
    • NPE fix regarding the loot multiplier. - A weird one :confused:
    Version 4.0.1 7/9/2011
    • Mobs shouldn't spawn in water anymore if spawnNotOn WATER and/or STATIONARY_WATER is used.
    Version 4.0.0 | 7/9/2011
    • Aggressiveness is now split into aggressivenessDay and aggressivenessNight.
    • Added option on which blocks mobs will only spawn, or will never spawn on.
    • Reward now requires permission 'CustomDifficulty.reward' to receive it.
    • Added option for min/max light level for mobs to spawn.
    • Added option for min/max height for mobs to spawn.
    • large rewrite of the plugin.
    Version 3.6.0 | 7/7/2011
    • Depreciation of rewards if you kill the same mob type repeatedly.
    • Bugfix of the isDay() function which resulted in wrong calculations for the BurnInSunlight feature. (It was checking for night instead of day - fail)
    • SpawnChance will only affect naturally spawned mobs. (I was too stupid to find it previously - lol). Also, It will never affect the spawn behaviour of 'monster' and giant in any way, even if a plugin spawns them as 'naturally'. If you use another plugin to make them spawn, it should be possible to change the spawn amount there.
    • isAggressive and burnsInSunlight features are now available for animals as well.
    Version 3.5.1 | 5/7/2011
    • Added check for a nearby mob spawner for reward and lootMultiplier.
    • Added success-rate of a mob spawning.
    Version 3.5.0 | 7/5/2011
    • NPE fix within the reward system.
    • Added WorldGuard-Regions support.
    • Added option to disable startup messages.
    • Region Commands now have their own classes.
    • Difficulties with uppercase letters work properly.
    Version 3.4.2 | 7/3/2011
    • Fixed another bug regarding region-persistence. :eek:
    Version 3.4.1 | 7/3/2011
    • Fixed monsters (except skeletons & zombies) starting to burn during night if burnsInSunlight was set to true.
    Version 3.4.0 | 7/2/2011
    • Fixed regions not saving into database due to a wrong function call.
      Thanks to @Kytsune for spotting this bug!
    • Added iConomy support for mob-killing rewards.
    • Added lootMultiplier feature
    Version 3.3.1 | 7/1/2011
    • NPE fix
    Version 3.3.0 | 7/1/2011
    • Added some (possible) bugfixes
    • Added possibility to change if (hostile) monsters burn in sunlight.
    Version 3.2.0 | 6/24/2011
    • Added changeable aggressiveness.
    • Changed the way I hooked into WorldEdit / Permissions.
    • Different settings for wild wolves and tamed wolves.
    • Tested against RB 928.
    Version 3.1.0 | 06/16/2011
    • Added configuration nodes for "monster" (the 'human' mob)
    Version 3.0.0 | 06/16/2011
    • Added regions. (Requires WorldEdit and HSQLDB)
    • Added possibility to create as many difficulties as you want
    • Changed commands a bit to clean up source code - it was a mess!
    • Some minor bug fixes.
    • Something else I don't remember right now. :eek:
    Version 2.2.2 | 06/14/2011
    • Removed "Error in [world].yml - Check HP settings for [monster]" debug message.
    Version 2.2.1 | 06/07/2011
    • Added option to change Player's damage for each difficulty (multiply and [add or subtract damage] or both)
    • Added checks if config nodes are set. (If not - Plugin won't touch the corresponding event)
    • Changed "/difficulty" command - displays now the current world - or all worlds if the command user is no player (e.g. console)
    • Added "/difficulty all" - will display the difficulty on all worlds.
    • Priorities of 'CREATURE_SPAWN' and 'ENTITY_DAMAGE' events have been set to 'Lowest'.
    • Bug-fix - Fixed error with slimes - it was looking for node "slime[size]..." instead of "slime.[size]..."
    • Some minor changes in the source code (e.g. refactoring)
    Version 2.1.1 | 06/06/2011
    • Added Multi-World support.
    • Added Permissions support.
    • Bug-fix - Slimes are now handled according to their size.
    Version 1.0.0 | 06/05/2011
    • Initial release.

    To-do
    • Limit mob spawning to biomes.
    • Suggestions!
    • Change Player's HP | Out of the scope of this plugin as it requires a custom health system. I might add later though... who knows.
    If you like this plugin and want to help me a lil bit - please [​IMG]. Thanks!

    ~Pardon my imperfect English. :>
     
    Snatch, bluehasia, Smokie23 and 27 others like this.
  2. Offline

    morizuki

    What's New in 4.1.1?

    also i tried removing the Water and Stationary_Water so they can spawn on Water.. but they're not spawning

    also i tried the
    lightLevelMin: 0
    lightLevelMax: 15

    but they aren't spawning during the day..
     
  3. Offline

    PatPat

    Code:
    151 recipes
    16 achievements
    16:58:41 [INFO] Starting minecraft server version Beta 1.7.3
    16:58:41 [INFO] Loading properties
    16:58:41 [INFO] Starting Minecraft server on *:25565
    16:58:41 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-
    g73697a4-b1000jnks (MC: 1.7.3)
    16:58:41 [SEVERE] Could not load 'plugins\CustomDifficulty.jar' in folder 'plugi
    ns':
    mapping values are not allowed here
     in "<reader>", line 18, column 24:
                naturalMobLimit: 525
                               ^
    
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:74
    5)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:307)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18
    3)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
    serImpl.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:12
    2)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:82)
            at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:157)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:175)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:207)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:130)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:128)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:97)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
    ationManager.java:51)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    16:58:41 [SEVERE] ebean.properties not found
    16:58:41 [INFO] DataSourcePool [TimeShift] autoCommit[false] transIsolation[SERI
    ALIZABLE] min[2] max[20]
    16:58:41 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.Plugi
    nClassLoader]
    16:58:41 [INFO] Entities enhanced[0] subclassed[1]
    
    What did I do wrong? Tried to set up the most recent version and I got this error. Please help! Even unmodified .yml's give me these errors, I set one up really customized and it gave me that error, reinstalled, didn't modify anything, and I still got the error. No matter what I am doing, it does that, what am I missing???
     
  4. Offline

    Pasukaru

    @morizuki
    To be honest, nothing is new in 4.1.1 - It's a recompile only, and you probably don't need it.
    Mobs can't spawn in water, I disabled that because 99% of the mobs were spawning in water.
    Light level works for me, are you sure everything else is alright?

    @PatPat
    There's an error in your config.yml. Replace all tabs with 4 spaces and post the file if it doesn't work
     
  5. Offline

    morizuki

    aw... i want to spawn them in water XD some are camping in water and use bow and arrow to hit the harder mobs XD

    and yeah.. here's my configuration

    Code:
    global:
        rewardDepreciation: 30.0
        possibleSpawnCreatures:
        - chicken
        - creeper
        - pig
        - sheep
        - skeleton
        - slime
        - spider
        - squid
        - wolf
        - zombie
    player:
        vsMonsterDamageAdd: 0
        vsPlayerDamageAdd: 0
        vsPlayerDamageMultiply: 1.0
        vsMonsterDamageMultiply: 1.0
    zombie:
        hp: 35
        damage: 7
        drops:
        - 288:0:1:2:80
        - 296:0:1:2:40
        - 37:0:1:2:50
        - 299:0:1:1:5
        spawnChance: 50.0
        heightMin: 0
        heightMax: 127
        lightLevelMin: 0
        lightLevelMax: 15
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 25.0
        lootMultiplier: 2
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
        - LEAVES
    skeleton:
        hp: 35
        damage: 7
        drops:
        - 352:0:2:3:50
        - 262:0:2:4:30
        - 351:17:3:5:80
        - 261:0:1:1:5
        spawnChance: 60.0
        heightMin: 0
        heightMax: 127
        lightLevelMin: 0
        lightLevelMax: 15
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 27.0
        lootMultiplier: 2
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
        - LEAVES
    creeper:
        spawnChance: 70.0
        heightMin: 0
        heightMax: 127
        lightLevelMin: 0
        lightLevelMax: 15
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
        - LEAVES
        powered:
            hp: 40
            damage: 3.5
            drops:
            - 289:0:2:4:80
            - 260:0:2:3:50
            - 46:0:1:1:5
            burnsInSunlight: false
            aggressivenessDay: aggressive
            aggressivenessNight: aggressive
            reward: 35.0
            lootMultiplier: 2
        unpowered:
            hp: 33
            damage: 2.5
            drops:
            - 289:0:1:2:80
            - 259:0:1:1:5
            - 50:0:1:3:50
            burnsInSunlight: false
            aggressivenessDay: aggressive
            aggressivenessNight: aggressive
            reward: 28.0
            lootMultiplier: 2
    spider:
        hp: 33
        damage: 6
        spawnChance: 55.0
        drops:
        - 287:0:1:3:60
        - 30:0:1:1:5
        - 351:3:1:2:40
        heightMin: 0
        heightMax: 127
        lightLevelMin: 0
        lightLevelMax: 15
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 23.0
        lootMultiplier: 2
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
        - LEAVES
    slime:
        spawnChance: 90.0
        heightMin: 0
        heightMax: 127
        lightLevelMin: 0
        lightLevelMax: 15
        huge:
            hp: 42
            damage: 7
            burnsInSunlight: false
            aggressivenessDay: aggressive
            aggressivenessNight: aggressive
            reward: 26.0
            lootMultiplier: 2
        big:
            hp: 26
            damage: 6
            burnsInSunlight: false
            aggressivenessDay: aggressive
            aggressivenessNight: aggressive
            reward: 23.0
            lootMultiplier: 2
        average:
            hp: 26
            damage: 5
            burnsInSunlight: false
            aggressivenessDay: aggressive
            aggressivenessNight: aggressive
            reward: 20.0
            lootMultiplier: 2
        small:
            hp: 22
            damage: 3
            burnsInSunlight: false
            aggressivenessDay: aggressive
            aggressivenessNight: aggressive
            reward: 0.5
            lootMultiplier: 2
            reward: 1
    pigzombie:
        hp: 33
        damage: 7
        drops:
        - 320:0:2:3:70
        - 319:0:2:3:100
        - 283:0:1:1:2
        spawnChance: 60.0
        heightMin: 0
        heightMax: 127
        lightLevelMin: 0
        lightLevelMax: 15
        burnsInSunlight: false
        aggressivenessDay: passive
        aggressivenessNight: passive
        reward: 29.0
        lootMultiplier: 2
    ghast:
        hp: 40
        damage: 10
        drops:
        - 289:0:4:8:80
        - 263:0:6:10:40
        - 46:0:3:5:20
        spawnChance: 90.0
        heightMin: 0
        heightMax: 127
        lightLevelMin: 0
        lightLevelMax: 15
        burnsInSunlight: false
        reward: 40.0
        lootMultiplier: 2
    giant:
        hp: 75
        damage: 20
        drops:
        - 288:0:40:40:90
        - 264:0:2:4:50
        - 276:0:1:2:1
        spawnChance: 60.0
        heightMin: 0
        heightMax: 127
        lightLevelMin: 0
        lightLevelMax: 15
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 70.0
        lootMultiplier: 2
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
        - LEAVES
    monster:
        hp: 45
        damage: 7
        drops:
        - 4:0:2:5:70
        - 3:0:3:6:100
        - 267:0:1:1:5
        spawnChance: 90.0
        heightMin: 0
        heightMax: 127
        lightLevelMin: 0
        lightLevelMax: 15
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 31.0
        lootMultiplier: 2
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
        - LEAVES
    wolf:
        spawnChance: 5.0
        heightMin: 0
        heightMax: 127
        lightLevelMin: 0
        lightLevelMax: 15
        spawnOnlyOn:
        - GRASS
        wild:
            hp: 23
            damage: 6
            burnsInSunlight: false
            aggressivenessDay: passive
            aggressivenessNight: passive
            reward: 28.0
            lootMultiplier: 2
        tamed:
            hp: 26
            damage: 3
            burnsInSunlight: false
            aggressivenessDay: friendly
            aggressivenessNight: friendly
            reward: -20.0
            lootMultiplier: 2
    cow:
        hp: 25
        damage: 4
        spawnChance: 60.0
        heightMin: 0
        heightMax: 127
        lightLevelMin: 0
        lightLevelMax: 15
        burnsInSunlight: false
        aggressivenessDay: passive
        aggressivenessNight: passive
        reward: 3.0
        lootMultiplier: 2
        spawnOnlyOn:
        - GRASS
    pig:
        hp: 25
        damage: 4
        spawnChance: 45.0
        heightMin: 0
        heightMax: 127
        lightLevelMin: 0
        lightLevelMax: 15
        burnsInSunlight: false
        aggressivenessDay: passive
        aggressivenessNight: passive
        reward: 3.0
        lootMultiplier: 2
        spawnOnlyOn:
        - GRASS
    chicken:
        hp: 30
        damage: 5
        spawnChance: 55.0
        heightMin: 0
        heightMax: 127
        lightLevelMin: 0
        lightLevelMax: 15
        burnsInSunlight: false
        aggressivenessDay: passive
        aggressivenessNight: passive
        reward: 3.0
        lootMultiplier: 2
        spawnOnlyOn:
        - GRASS
    sheep:
        hp: 30
        damage: 4
        spawnChance: 60.0
        heightMin: 0
        heightMax: 127
        lightLevelMin: 0
        lightLevelMax: 15
        drops:
        - 319:0:1:1:80
        burnsInSunlight: false
        aggressivenessDay: passive
        aggressivenessNight: passive
        reward: 3.0
        lootMultiplier: 2
        spawnOnlyOn:
        - GRASS
    squid:
        hp: 30
        damage: 4
        spawnChance: 10.0
        heightMin: 0
        heightMax: 127
        lightLevelMin: 0
        lightLevelMax: 15
        burnsInSunlight: false
        aggressivenessDay: passive
        aggressivenessNight: passive
        reward: 3.0
        lootMultiplier: 2
        spawnOnlyOn:
        - WATER
    
    and my slimes are spawning everywhere XD do i put spawnNotOn?
     
  6. Offline

    Pasukaru

    @morizuki
    Well, with height 0-127 and light level 0-15 they will spawn everywhere. You can use spawnOnlyOn: - GRASS or spawnNotOn: - GRASS to limit it a bit. It's up to you. ;)
    But without limitations, they will spawn everywhere, like any other mob

    [Edit]
    To everyone:
    Because some people having massive CPU problems with this plugin (especially with a lot of people online), I'll release a version with a new command soon, to help me find the most performance unfriendly features and I will probably remove them (unless I find a way to speed them up).
     
  7. Offline

    morizuki

    but how about the Light Level.. my Light Level is right.. but they are not spawning in the Day..
     
  8. Offline

    Pasukaru

    @morizuki
    Your config looks alright, and it works on my server. Could you post your config.yml? Maybe the problem's in that one.
     
  9. Offline

    morizuki

    Code:
    global:
        savePlayerKills: 3
        initMessages: true
        burnsInSunlightInterval: 20
        spawnInterval: 5
        aggressivenessInterval: 1
        useWorldGuardRegions: true
        minSpawnDistance: 10.0
        maxSpawnDistance: 150.0
        mobSpawnerRadius: 2.0
        naturalMobLimit: 950
        mobLimit: 1000
    worlds:
        world:
            mobLimit: 550
            naturalMobLimit: 500
            mobChunkLimit: 5
            difficulty: default
            useRegions:
                aggressiveness: true
                burnsInSunlight: false
                mobHP: true
                mobDamage: true
                playerVsPlayer: false
                playerVsMonster: true
                reward: true
                lootMultiplier: true
                spawnAlgorithm: true
                damage: true
                drops: true
    what does mobChunkLimit?
     
  10. Offline

    Pasukaru

    @morizuki
    Hmm, it works fine for me with your config files. If you have the /butcher command from WorldGuard (or WorldEdit, i'm not sure) try to use it and see if mobs will spawn then.
    mobChunkLimit prevents mobs from spawning in a chunk if there are already X or more mobs in the chunk. This avoids reaching the server/world limit and mobs will spread more instead of spawning at one location.

    Are you sure the indents are right?
    It should look more like this:
    Code:
    ...
    worlds:
        World:
            mobLimit: 500
            naturalMobLimit: 525
    ...
    
    instead of this:
    Code:
    World:
     World
    mobLimit: 500
    
    naturalMobLimit: 525
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  11. Offline

    PatPat

    Oops, yeah sorry I found out what it was anyways, thanks for the responses.
     
  12. Offline

    Pasukaru

    You're welcome. ;)
     
  13. Offline

    Danelli

    Danelli rules
     
  14. Offline

    LucidLethargy

    Would it be possible to allow some mobs to attack other naturally? That would make this plugin just about the coolest thing i've ever seen in Bukkit. Having giants attack everything and monsters attack other mobs would be amazing. Then the monsters could act like townspeople if you have them spawn on man-made materials and the giants could be, well... big meat headed angry giants!
     
  15. Offline

    Zairne

    How do I get the difficulty.yml files to appear in the difficulty folder? It's staying an empty folder.
     
  16. Offline

    Darcion

    @Pasukaru

    your welcome to test on my server again ;)
     
  17. I really have some strange problems.
    There are no mobs on our server!
    It works great, when MobArena spawns them, money, drops, everything fine, but naturally there's nothing :(

    Code:
    global:
        savePlayerKills: 3
        initMessages: true
        burnsInSunlightInterval: 20
        spawnInterval: 10
        aggressivenessInterval: 2
        useWorldGuardRegions: false
        minSpawnDistance: 24.0
        maxSpawnDistance: 222.0
        mobSpawnerRadius: 5.0
        naturalMobLimit: 525
        mobLimit: 550
    worlds:
        world:
            mobLimit: 550
            naturalMobLimit: 525
            mobChunkLimit: 1
            difficulty: default
            useRegions:
                aggressiveness: true
                burnsInSunlight: true
                mobHP: true
                mobDamage: true
                playerVsPlayer: true
                playerVsMonster: true
                reward: true
                lootMultiplier: true
                spawnAlgorithm: true
        world_nether:
            mobLimit: 250
            naturalMobLimit: 225
            mobChunkLimit: 1
            difficulty: default
            useRegions:
                aggressiveness: false
                burnsInSunlight: false
                mobHP: false
                mobDamage: false
                playerVsPlayer: false
                playerVsMonster: false
                reward: false
                lootMultiplier: false
                spawnAlgorithm: false
    
    Code:
    global:
        rewardDepreciation: 20.0
        possibleSpawnCreatures:
        - chicken
        - creeper
        - pig
        - sheep
        - skeleton
        - slime
        - spider
        - squid
        - wolf
        - zombie
    player:
        vsMonsterDamageAdd: 0
        vsPlayerDamageAdd: 0
        vsPlayerDamageMultiply: 1.0
        vsMonsterDamageMultiply: 1.0
    zombie:
        hp: 40
        damage: 5
        spawnChance: 100.0
        burnsInSunlight: true
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 2.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 7
        heightMin: 0
        heightMax: 127
        drops:
        - '288:0:1:3:50'
        spawnOnlyOn:
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
    skeleton:
        hp: 12
        damage: 6
        spawnChance: 100.0
        burnsInSunlight: true
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 2.5
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 7
        heightMin: 0
        heightMax: 127
        drops:
        - '352:0:1:3:50'
        - '262:0:1:3:50'
        spawnOnlyOn:
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
    creeper:
        spawnChance: 100.0
        lightLevelMin: 0
        lightLevelMax: 7
        heightMin: 0
        heightMax: 127
        spawnOnlyOn:
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
        powered:
            hp: 32
            damage: 1.0
            burnsInSunlight: false
            aggressivenessDay: aggressive
            aggressivenessNight: aggressive
            reward: 6.0
            lootMultiplier: 1
            drops:
            - '289:0:2:6:80'
        unpowered:
            hp: 16
            damage: 1.0
            burnsInSunlight: false
            aggressivenessDay: aggressive
            aggressivenessNight: aggressive
            reward: 3.0
            lootMultiplier: 1
            drops:
            - '289:0:1:3:40'
    spider:
        hp: 24
        damage: 3
        spawnChance: 100.0
        burnsInSunlight: false
        aggressivenessDay: passive
        aggressivenessNight: aggressive
        reward: 2.5
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 7
        heightMin: 0
        heightMax: 127
        drops:
        - '287:0:1:3:50'
        spawnOnlyOn:
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
    slime:
        spawnChance: 100.0
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 15
        spawnOnlyOn:
        spawnNotOn:
        huge:
            hp: 64
            damage: 8
            burnsInSunlight: false
            reward: 3.0
            lootMultiplier: 1
            drops:
            - '341:0:1:3:100'
        big:
            hp: 16
            damage: 4
            burnsInSunlight: false
            reward: 0.0
            lootMultiplier: 1
            drops:
            - '341:0:1:3:50'
        average:
            hp: 4
            damage: 2
            burnsInSunlight: false
            reward: 0.0
            lootMultiplier: 1
            drops:
            - '341:0:1:3:25'
        small:
            hp: 2
            damage: 1
            burnsInSunlight: false
            reward: 0.0
            lootMultiplier: 1
            reward: 1
            drops:
    pigzombie:
        hp: 30
        damage: 7
        spawnChance: 100.0
        burnsInSunlight: false
        aggressivenessDay: passive
        aggressivenessNight: passive
        reward: 5.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        - '320:0:1:3:20'
        - '288:0:1:3:50'
        spawnOnlyOn:
        spawnNotOn:
    ghast:
        hp: 10
        damage: 7
        spawnChance: 100.0
        burnsInSunlight: false
        reward: 5.5
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        - '289:0:1:3:40'
    giant:
        hp: 50
        damage: 10
        spawnChance: 0.0
        burnsInSunlight: false
        aggressivenessDay: passive
        aggressivenessNight: passive
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        spawnOnlyOn:
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
    monster:
        hp: 30
        damage: 5
        spawnChance: 0.0
        burnsInSunlight: false
        aggressivenessDay: passive
        aggressivenessNight: passive
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        spawnOnlyOn:
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
    wolf:
        spawnChance: 5.0
        lightLevelMin: 7
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        spawnOnlyOn:
        - GRASS
        spawnNotOn:
        wild:
            hp: 12
            damage: 4
            burnsInSunlight: false
            aggressivenessDay: passive
            aggressivenessNight: passive
            reward: 2.5
            lootMultiplier: 1
            drops:
            - '319:0:1:2:50'
        tamed:
            hp: 20
            damage: 3
            burnsInSunlight: false
            aggressivenessDay: friendly
            aggressivenessNight: friendly
            reward: 0.0
            lootMultiplier: 1
            drops:
    cow:
        hp: 16
        damage: 0
        spawnChance: 100.0
        burnsInSunlight: false
        aggressivenessDay: friendly
        aggressivenessNight: friendly
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 9
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        - '334:0:1:3:65'
        spawnOnlyOn:
        - GRASS
        spawnNotOn:
    pig:
        hp: 12
        damage: 0
        spawnChance: 100.0
        burnsInSunlight: false
        aggressivenessDay: friendly
        aggressivenessNight: friendly
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 9
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        - '319:0:1:3:70'
        spawnOnlyOn:
        - GRASS
        spawnNotOn:
    chicken:
        hp: 4
        damage: 0
        spawnChance: 100.0
        burnsInSunlight: false
        aggressivenessDay: friendly
        aggressivenessNight: friendly
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 9
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        - '288:0:1:2:45'
        - '344:0:1:1:50'
        spawnOnlyOn:
        - GRASS
        spawnNotOn:
    sheep:
        hp: 12
        damage: 0
        spawnChance: 100.0
        burnsInSunlight: false
        aggressivenessDay: friendly
        aggressivenessNight: friendly
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 9
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        spawnOnlyOn:
        - GRASS
        spawnNotOn:
    squid:
        hp: 8
        damage: 0
        spawnChance: 100.0
        burnsInSunlight: false
        aggressivenessDay: friendly
        aggressivenessNight: friendly
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        - '351:0:1:3:65'
    
     
  18. Offline

    MuisYa

    Whouw, defenitely looks good!
    Ill try this later on my server :)
     
  19. Ok, now it works.
    Maybe a problem with LimitSpawnsLite or PerformanceTweaks.
    Deactivated both and now everything's fine!

    Ok, when i start the server, everything's fine.
    When i relod the plugins. no mobs, no animals are spawning anymore.

    Any idea?

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

    diadem

    Have you already hit your mob cap? That's what happened to me - by default, the total mob cap for all worlds is the same as the mob cap for a single world.
     
  21. We just have one world, and there is nothing after the plugin reload :(

    @Pasukaru

    MobChunkLimit, ist it just true(1)/false(0) or an integer value 50 = 50 Mobs?
     
  22. Offline

    Dragonnight09

    I have a Question: I use the Plugin mobSpawner 1.7.3 from
    Cr3dos and i want to create some kind of....instance,dungeon... like in World of Warcraft...and i created a Room for a Bossmob (ZombiePig), in wich a Custom Difficulty was, that gave the ZombiePig 50 HP,but i tried it and it still had the HP it basically has...is this Plugin working with Spawners (Like the SignSpawner i´m using)?
     
  23. Offline

    Pasukaru

    @Terra-Network.org
    I bet a mob limit is reached. If you have WorldGuard, use /butcher to kill all mobs and new ones will spawn.
    mobChunkLimit is a value greater than or equal to 0. (0 will prevent mob spawning)

    @Dragonnight09
    Make sure you have useRegions enabled in the config.yml and the World's difficulty is valid.

    [Edit]
    To those who want to help me finding heavy features, download v4.2.0 and use '/difficulty performance'
     
  24. @Pasukaru
    Config is done, works great after server-restart, but still the problem after using /reload plugins.
    No more Mobs are spawning, no matter what i do or reload.
    After a complete restart, everything's fine.
    And no, thats not a problem with the limit, because there aren't any mobs :/
    Ok, it's not dramatic, most plugins use their own reload-command and the most time i can restart the server, but maybe you find the problem.
    Everything else is working great!
    Really great plugin :)
     
  25. Offline

    Pasukaru

    @Terra-Network.org
    Does it say 'Spawning deactivated for world xxx' somewhere in the log?
     
  26. Offline

    Dragonnight09

    Yes it says that too in my case
     
  27. Offline

    morizuki

    uhh.. more details on the new updates?
     
  28. Offline

    Dragonnight09

    How can i enable useRegions? And when is the difficulty valid? Sorry if i sound a bit stupid but i´m new in this :p
     
  29. @Pasukaru
    No, after reload it still says "Spawning activated for world world"
    I tested it with /difficulty reload and it works.
    Will try it again next days, maybe it's another problem.
     
  30. Offline

    Pasukaru

    @Dragonnight09
    Thats probably because the world's difficulty is invalid. Use the command to set a difficulty, this will make sure its valid.
    The difficulty is valid if it matches a file in your Difficulties folder, without the .yml extension.

    @morizuki
    More details? :confused:
    Well, use the command and it'll explain itself I guess.. It shows how much time was required for the different features in the last 10 seconds.
    The other thing I changed: I made a new way of "finding" the difficulty of a mob. You can change it in the config.yml 'global.useOldGetDifficulty'.

    @Terra-Network.org
    Hmm, darcion had the problem that mobs don't spawn because one of the limits was reached. And to be honest, I can't think of anything else if mob spawning is enabled. (Unless another plugin interferes)
     
  31. Offline

    Dragonnight09

    Yeah i copied the default difficulty out of the Folder and renamed it to test and i modified the ZombiePig HP to 50...then i used the /difficulty region set (world) REGIONNAME DIFFICULTYNAME command...in my case: /difficulty region set Adventureworld Room1 test and it said "Difficulty created" or something like that but it didn´t work
     

Share This Page