-
Notifications
You must be signed in to change notification settings - Fork 0
Home
This is a mod to make the lower depth of the below 0 Y levels more challenging.
To add a custom spawn for a mob you will need to create a json
file and place it in data/tuffdepth/modifiers
here you can create custom conditons and values for the mod specified the example json is the zombie.json
the entity
is where you specify the entity type these conditions with take in.
conditions
is where you specify the different conditions to do the spawning and the modifiers that are applied
minYLevel
is the minimum Y Level the entity
can spawn at. The maxYLevel
is just like the minYLevel
but its the Maximum Y Level that the entity
can spawn at. damageMultipler
is the Damage Multiplier that the base damage of the entity
will do damage. healthMultiplier
is the multiplier for the entity
NOTE: the minY and maxY have to be different for each condition they cannot be the same value the rest can be.
There are optional things you can add to the entity
conditions for the spawning. The potionEffect
is where you specify the type of Potion Effect the entity
will do to the player if hit. Here you can specify the potion
which is its name. applifier
which is what level of potion it will be. Lastly you can specify the duration
which is the time the potionEffect
will be applied in ticks. Remember 20 ticks is 1 second in game
{
"entity": "minecraft:zombie",
"conditions": [
{
"minYLevel": -31,
"maxYLevel": 0,
"damageMultiplier": 1.5,
"healthMultiplier": 2.0
},
{
"minYLevel": -64,
"maxYLevel": -32,
"damageMultiplier": 2.0,
"healthMultiplier": 3.0,
"potionEffect": {
"potion": "minecraft:wither",
"amplifier": 1,
"duration": 500
}
}
]
}
Here in our example we have 2 conditions
that we check to spawn our entity
which the minecraft:zombie
our first conditon is a zombie will spawn between Y level our minYLevel
of -31 and our maxYLevel
of 0 and when it spawns it will have a damageMultiplier
of 1.5 and a healthMultiplier
of 2.0. Now our Second condition is different our minYLevel
and maxYLevel
are between -64 and -32. Our damageMultiplier
is 2.0 and our healthMultiplier
is 3.0 and We have a potionEffect
here that will apply the potion
of minecraft:wither
and its amplifier
will be of 1 and a duration
will be 500 basically this means that when hit a player will get the wither 2 effect for 25 seconds.