-
Notifications
You must be signed in to change notification settings - Fork 1
[Version 4.0] Creeper
Insane96 edited this page Jan 24, 2023
·
2 revisions
Creepers have some specific modifiable properties, like charged chance or fuse duration.
Those should work for other mods' creepers too if they inherit the vanilla creeper.
That's a list of all the keys available for the creeper
object, all the values are optional. The creeper object on a mob that's not a creeper will do nothing.
-
creeper
-
fuse
: Range Object that changes creepers' fuse (time in ticks to explode). Vanilla is 30. -
explosion_radius
: Range Object that changes creepers' explosion power. Vanilla is 3. -
powered_chance
: Modifiable Value Object percentage chance (between 0 and 1) for the creeper being charged on spawn. -
fire_chance
: Modifiable Value Object percentage chance (between 0 and 1) for the creeper to generate fire on explosion
-
This example makes creeper:
- Explode between 1 and 2 seconds (20 and 40 ticks) or between 15 and 35 ticks in hard, instead of normal 1.5 secs (30 ticks).
- Have between 2 and 4 explosion power.
- Have 5% chance to spawn charged and 5% chance for the explosion to generate fire.
{
"mob_id": "minecraft:creeper",
"creeper": {
"fuse": {
"min": 20,
"max": 40,
"difficulty_modifier": {
"operation": "add",
"hard": -5
}
},
"explosion_radius": {
"min": 2,
"max": 4
},
"powered_chance": 0.05,
"fire_chance": 0.05
}
}