-
Notifications
You must be signed in to change notification settings - Fork 1
[Version 5] Presets
Insane96 edited this page Jun 16, 2025
·
2 revisions
Presets are a special property that applies a list of preset properties to the target. Useful for creating e.g. bosses.
Presets are placed in the presets folder (check Mobs). The preset json is simply a list of properties.
{
"properties": [
]
}You can apply presets to mobs with the presets property.
-
apply_all: (Boolean) If true, all the presets are applied, not just a random one chosen via weight. Defaults to false -
presets: (Weighted list of presets) List of presets to apply
This example makes 5% of zombies that spawn like ghosts (only if on the surface during night time), or a really resistant zombies
data/mprwiki/mobs_properties_randomness/presets/ghost_zombie.json
{
"properties": [
{
"property": "effect",
"effect": "minecraft:invisibility",
"hide_particles": true
},
{
"property": "effect",
"effect": "minecraft:glowing",
"hide_particles": true
},
{
"property": "custom_name",
"overrides": [ "Ghost" ]
},
{
"property": "silent"
}
]
}data/mprwiki/mobs_properties_randomness/presets/bulky_zombie.json
{
"properties": [
{
"property": "effect",
"effect": "minecraft:resistance",
"hide_particles": true,
"amplifier": 3
},
{
"property": "custom_name",
"prefix": [ "Bulky " ]
}
]
}data/mprwiki/mobs_properties_randomness/mobs/zombies.json
{
"target": "minecraft:zombie",
"properties": [
{
"property": "presets",
"presets": [
{
"preset": "mprwiki:ghost_zombie",
"weight": 1,
"conditions": [
{
"condition": "day_time",
"day_time": {
"min": 12000,
"max": 24000
}
},
{
"condition": "light_level",
"light_level": {
"min": 10,
"max": 15
},
"type": "sky"
}
]
},
{
"preset": "mprwiki:bulky_zombie",
"weight": 1
}
],
"conditions": [
{
"condition": "chance",
"chance": 0.05
}
]
}
]
}