RpgDifficulty is a mod which strengthens mobs over time and distance.
RpgDifficulty is a mod built for the Fabric Loader. It requires Fabric API and Cloth Config API to be installed separately; all other dependencies are installed with the mod.
RpgDifficulty is licensed under MIT.
increasingDistance
: distance in blocks to increase strength of mobs bydistanceFactor
.
example: 300 blocks = 10% stronger, 600 blocks = 20% stronger, can be disabled by turningincreasingDistance
to 0increasingTime
: time in minutes to increase strength of mobs bytimeFactor
.
example: 60 minutes = 5% stronger, 120 minutes = 10% stronger, can be disabled by turningincreasingTime
to 0heightDistance
: distance in blocks from mob y -startingHeight
/heightDistance
to increase strength of mobs byheightFactor
.
example: 30 blocks abovestartingHeight
= 10% stronger, 60 blocks abovestartingHeight
= 20% stronger ,can be disabled bypositiveHeightIncreasion
ornegativeHeightIncreasion
for each direction of heightmaxFactorHealth
: max factor for health increasion.
example: 1.0 = no increasion at all, 2.0 = max double health, 3.0 = max tripple healthmaxFactorDamage
: max factor for damage increasion.
example: seemaxFactorHealth
maxFactorProtection
: max factor for protection increasion.
example: seemaxFactorHealth
maxFactorSpeed
: max factor for speed increasion.
example: seemaxFactorHealth
, only applies onto special zombieallowRandomValues
: allow random values to be applied on mobs with chance ofrandomChance
.
example:randomChance
= 10 equals 10% chance for applying random statsrandomFactor
: applies whenallowRandomValues
is true with the chance ofrandomChance
example: mobHealth = mobHealth * (1 -randomFactor
+ (random.nextDouble() *randomFactor
* 2F));extraXP
: calculate xp drop by strength.
example: strength = 2.0 cause of distance 3000 blocks = double xp amountmaxXPFactor
: max xp factor for xp drop increasion.
example: 2.0 = max double xp dropstartingFactor
: overall starting factor for calculation.
example: 1.0 = normal calculation, 2.0 = double calculationstartingDistance
: starting distance in blocks to calculate strength from spawn point.
example: 0 = strength calculation begins from spawn point, 100 = strength calculation begins from 100 blocks around spawn pointstartingTime
: staring time in minutes to calculate strength.
example: 0 = strength calculation begins from minute 0, 60 = strength calculation begins after 60 minutes
For settings specific to a dimension a datapack is required.
If you don't know how to create a datapack check out Data Pack Wiki website and try to create your first one for the vanilla game.
If you know how to create one, the folder path has to be data\rpgdifficulty\difficulty\YOURFILE.json
Boss modificators will get used for all mobs which are in the common entity types boss tag. (Called c:bosses)
If the mod is used on a server, turning the timeFactor to 0 is recommended.
Settings which can get modified are:
- distanceCoordinatesX
- distanceCoordinatesZ
- increasingDistance
- distanceFactor
- increasingTime
- timeFactor
- heightDistance
- heightFactor
- maxFactorHealth
- maxFactorDamage
- maxFactorProtection
- maxFactorSpeed
- startingFactor
- startingDistance
- startingTime
- startingHeight
- positiveHeightIncreasion
- negativeHeightIncreasion
An example can be found below:
{
"dimension": "minecraft:the_nether",
"increasingDistance": 300,
"distanceFactor": 0.1,
"increasingTime": 60,
"timeFactor": 0.05,
"heightDistance": 30,
"heightFactor": 0.1,
"maxFactorHealth": 3.0,
"maxFactorDamage": 3.0,
"maxFactorProtection": 1.5,
"maxFactorSpeed": 2.0,
"startingFactor": 1.0,
"startingDistance": 0,
"startingTime": 0,
"startingHeight": 62,
"positiveHeightIncreasion": true,
"negativeHeightIncreasion": true
}