SavedMobs example

These files are stored in \plugins\ItemLoreStats\SavedMobs\ these either have to be the exact name of the type of mob. Though these can include mobs with custom names. The drop chance values must go from highest to lowest.


The names of the files for the default mobs must match one of the names from the list below; bat, blaze, baby_zombie, cave_spider, chicken, cow, creeper, enderman, ghast, giant, horse, iron_golem, magma_cube, mushroom_cow, ocelot, pig, pig_zombie, player, sheep, silverfish, skeleton, slime, snowman, spider, squid, villager, villager_zombie, witch, wither, wither_skeleton, wolf, zombie


  • Drop chance is the first value shown. It is the very first value of each section. So on the example below its 30, 20 and 10.
  • Id is the second value shown and it can be anything, it doesn't matter what it's set as, as long as an Id exists.
  • itemId:
    This is the id of the item that will drop from the mob.
  • nameColour:
    This is the colour of the item name on the tooltip. This supports all minecraft colours. Must be wrapped in apostrophe's (e.g. '&6').
  • savedItem:
    If savedItem is placed below the itemId then it will drop an item that has been saved in the /SavedItems/ folder.
  • prefix:
    If this is set to random then a prefix for the item that drops will be randomly selected from the list. If you set this value to Random it will grab a random prefix from the prefix.random in the config. If you set this value to Stat it will grab a random stat prefix from the STATNAME.prefix in the config.
  • suffix:
    If this is set to random then a suffix for the item that drops will be randomly selected from the list. If you set this value to Random it will grab a random suffix from the suffix.random in the config. If you set this value to Stat it will grab a random stat suffix from the STATNAME.suffix in the config.
  • statRandomApply:
    This allows a % chance for that stat to be applied to that item. Ther % of chance that a stat will be applied is in the config and can be changed by changing the randomApplyChance value. This allows hundreds of unique drops from a single item. If you want this random chance to be applied set this to true, if you don't then you can either set it to false or completely ignore adding it. The stat section is the name of the stat that will have the random chance to be applied e.g. xpLevelRandomApply or healthRegenRandomApply or critChanceRandomApply etc. The full list weaponspeedRandomApply, armourRandomApply, dodgeRandomApply, blockRandomApply, damageRandomApply, critChanceRandomApply, critDamageRandomApply, healthRandomApply, healthRegenRandomApply, heroesMaxManaRandomApply, lifeStealRandomApply, reflectRandomApply, fireRandomApply, iceRandomApply, poisonRandomApply, witherRandomApply, harmingRandomApply, blindRandomApply, xpMultiplierRandomApply, movementSpeedRandomApply, durabilityRandomApply, addRandomLoreRandomApply, xpLevelRandomApply, classRandomApply, soulboundRandomApply, tntRandomApply, fireballRandomApply, lightningRandomApply, frostboltRandomApply, minorHealRandomApply, majorHealRandomApply.
  • properties:
    All of the values below are examples and can be set to anything you wish. All of the stats must be a range, if you only want a specific stat to always be on the item then use that value as both values in the range (e.g. If you wanted the stat to always have +50 Health then you would set the range as 50-50).

    These are the stats that will be applied to the item that drops. If you set any value to 5-10 then the value of the stat will be a random number between 5 and 10. The value of 5 and 10 can be anything value you want.
    If you set any value to player then the value of the stat will be the same as players level.
    If you set any value to 5-player+10 the value of the stat will be a random number between 5 levels lower than the players level and 10 levels above the players level. e.g. If the player is level 25 then the value of the stat will be a random number between 20 and 35. The value of 5 and 10 can be anything value you want. If you set any value to mob then the value of the stat will be the level of the mob that was killed. If you set the value to 5-mob+5 then the value of that will be a random number between 5 levels lower than the mobs level and 5 levels above the mobs level. You can also set it to be a multiplication or division of the mob/players level e.g. mob/1.4-mob/1.1 or mob*1.2-mob*1.9.
    If the stat is soulbound then it can either be true or false.

    • You can set the damage stat to something like 15-40-player+30-65. If you have a player at level 100 then the lowest stat it could have, would be between 60 and 85 (15 - 100 = 85, 40 - 100 = 60), so the items minimum damage would be between 60 and 85. The highest stat it could have would be between 130 and 165 (30 + 100 = 130, 65 + 100 = 165), so the items maximum damage would be between 130 and 165. So the items damage could look something like "Damage: +72-148". Replace player with mob if you want the values to go off the mobs level instead of the players level.
  • spells:
    This is where you can apply a spell to the right click of an item. The spells that can be applied are; tnt, fireball, lightning and frostbolt.

Zombie config example:

The name of the file is the custom name Item Lore Stats will check for so if it isn't the type of an existing mob (zombie, blaze, cow etc). If you save the custom mob file as bob.yml it will only drop bob.yml's loot when an entity called "bob" is killed.

\plugins\ItemLoreStats\SavedMobs\zombie.yml

30: ...........
This is the drop chance out of 100.

.. '1': ...........
This is just an Id, it can be anything it doesn't matter what it is set as. If there is more than 1 id then it will randomly select an item.

.... itemId: 272
This is the Id of the item that will drop.

.... nameColour: '&a&l'
This is the text formatting of the item's name.

.... prefix: stat
This is the prefix that will appear before the item's name.

.... suffix: random
This is the suffix that will appear after the item's name.

.... properties:
......damage: &34-10-player+16-25
This is the amount of damage that will be added to the item. This can include colours.

......critChanceRandomApply: true
There will be a % chance that this stat will be applied to the item that drops. Ther % chance is the value set in the config.yml.

......critChance: &31-2 &3 is the colour used for the stat on the tooltip. ILS will select a random number from the range specified (1-2). This is the amount of crit chance that will be added to the item. This can include colours.
......lifeStealRandomApply: trueThere will be a % chance that this stat will be applied to the item that drops. Ther % chance is the value set in the config.yml.
....lifeSteal: &21-2
&2 is the colour used for the stat on the too..ltip. ILS will select a random number from the range specified (1-2). This is the amount of life steal that will be added to the item. This can include colours.

......poisonRandomApply: true
There will be a % chance that this stat will be applied to the item that drops. Ther % chance is the value set in the config.yml.

......poison: &amob*1.2-mob*2.1
&a is the colour used for the stat on the tooltip. ILS will select a random number from the range specified (1.2 * mob level - 2.1 * mob level). This is the amount of poison that will be added to the item. This can include colours.

......movementSpeedRandomApply: true
There will be a % chance that this stat will be applied to the item that drops. Ther % chance is the value set in the config.yml.

......movementSpeed: &e1-3
&e is the colour used for the stat on the tooltip. ILS will select a random number from the range specified (1-3). This is the amount of movement speed that will be added to the item. This can include colours.

......xpLevelRandomApply: true
There will be a % chance that this stat will be applied to the item that drops. Ther % chance is the value set in the config.yml.

......xpLevel: &33-player+2
&3 is the colour used for the stat on the tooltip. ILS will select a random number from the range specified (3 below the players players - 2 above the players level). This is the level requirement that will be added to the item. This can include colours.

......durability: &7400-650
&7 is the colour used for the stat on the tooltip. ILS will select a random number from the range specified (400-650). This is the amount of durability that will be added to the item. This can include colours.

......lightningRandomApply: true
There will be a % chance that this stat will be applied to the item that drops. Ther % chance is the value set in the config.yml.

......classRandomApply: true
There will be a % chance that this stat will be applied to the item that drops. Ther % chance is the value set in the config.yml.

......class: '&cWarrior'
&c is the colour used for the stat on the tooltip. This is the class requirement that will be added to the item. This can include colours.

....spells:
......lightning:true
This is the spell that will be added to the item.

.. '2': ...........
This is just an Id, it can be anything it doesn't matter what it is set as. If there is more than 1 id then it will randomly select an item.

.... itemId: 268
This is the Id of the item that will drop.

.... nameColour: '&a&l'
This is the text formatting of the item's name.

.... prefix: stat
This is the prefix that will appear before the item's name.

.... suffix: random
This is the suffix that will appear after the item's name.

.... properties:
......damage: &34-10-player+16-25
This is the amount of damage that will be added to the item. This can include colours.

......critChanceRandomApply: true
There will be a % chance that this stat will be applied to the item that drops. Ther % chance is the value set in the config.yml.

......critChance: &31-2 &3 is the colour used for the stat on the tooltip. ILS will select a random number from the range specified (1-2). This is the amount of crit chance that will be added to the item. This can include colours.
......lifeStealRandomApply: trueThere will be a % chance that this stat will be applied to the item that drops. Ther % chance is the value set in the config.yml.
....lifeSteal: &21-2
&2 is the colour used for the stat on the too..ltip. ILS will select a random number from the range specified (1-2). This is the amount of life steal that will be added to the item. This can include colours.

......poisonRandomApply: true
There will be a % chance that this stat will be applied to the item that drops. Ther % chance is the value set in the config.yml.

......poison: &a2-4
&a is the colour used for the stat on the tooltip. ILS will select a random number from the range specified (2-4). This is the amount of poison that will be added to the item. This can include colours.

......movementSpeedRandomApply: true
There will be a % chance that this stat will be applied to the item that drops. Ther % chance is the value set in the config.yml.

......movementSpeed: &e1-3
&e is the colour used for the stat on the tooltip. ILS will select a random number from the range specified (1-3). This is the amount of movement speed that will be added to the item. This can include colours.

......xpLevelRandomApply: true
There will be a % chance that this stat will be applied to the item that drops. Ther % chance is the value set in the config.yml.

......xpLevel: &33-player+2
&3 is the colour used for the stat on the tooltip. ILS will select a random number from the range specified (3 below the players players - 2 above the players level). This is the level requirement that will be added to the item. This can include colours.

......durability: &7400-650
&7 is the colour used for the stat on the tooltip. ILS will select a random number from the range specified (400-650). This is the amount of durability that will be added to the item. This can include colours.

......lightningRandomApply: true
There will be a % chance that this stat will be applied to the item that drops. Ther % chance is the value set in the config.yml.

......classRandomApply: true
There will be a % chance that this stat will be applied to the item that drops. Ther % chance is the value set in the config.yml.

......class: '&cWarrior'
&c is the colour used for the stat on the tooltip. This is the class requirement that will be added to the item. This can include colours.

....spells:
......lightning:true
This is the spell that will be added to the item.



Drop a saved item from the /SavedItems/ folder

30: ...........
This is the drop chance out of 100.

.. '1': ...........
This is just an Id, it can be anything it doesn't matter what it is set as. If there is more than 1 id then it will randomly select an item.

.... savedItem: Helm of the Lifeless Slayer
This is the name of the file of the item you wish to drop that is saved in the /SavedItems/ folder.

.. '2': ...........
This is just an Id, it can be anything it doesn't matter what it is set as. If there is more than 1 id then it will randomly select an item.

.... savedItem: Sword of the Thundering God
This is the name of the file of the item you wish to drop that is saved in the /SavedItems/ folder.


Comments

Posts Quoted:
Reply
Clear All Quotes