This repository was archived by the owner on Sep 5, 2024. It is now read-only.
generated from CorgiTaco-Archive/Forge-Mixin-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Config Structure
Corgi Taco edited this page Dec 28, 2021
·
29 revisions
The structure of the config is as follows:
{
"mobifier": { // A map of the entity type to its mobifications.
"minecraft:husk": [ // Specify the entity and a list of mobifications. Mobifications are applied in the order put here.
// Entities may have multiple mobifications.
{ // Mobification 1 Starts here and will run first.
"drop_death_table": false, //If the conditions are met, drop the default loot table? (Only works on mob death) (This field is optional)
"xp_modifier": "*2", // Modify the dropped xp by this value (Only works on mob death) (This field is optional)
"attribute_modifier": { // Modify this mob's attributes if the conditions are met.
"minecraft:generic.attack_damage": "*2" // We want to make husks hit 2x stronger if they're in a desert biome in the overworld.
}
"conditions_to_apply": [ // Required condition(s) for mobification to function.
{ // Condition 1 starts here
"biome_category_is": [
"desert"
],
"type": "mobifier:biome_category"
}, // Condition 1 ends here
{ // Condition 2 starts here
"dimension_is": [
"minecraft:overworld"
],
"type": "mobifier:dimension"
} // Condition 2 ends here
]
}, // Mobification 1 ends here
{ // Mobification 2 starts here. If mobification 1 was successful, this mobification will apply on top of mobification 1's changes. In this case we'll be adding 50 xp to the xp we multiplied in mobification 1 since those are the fields in common that were changed. Mobification 2 may still apply even if mobification 1 failed!
"xp_modifier": "+50", // Modify the dropped xp by this value (Only works on mob death) (This field is optional)
"attribute_modifier": {
"minecraft:generic.max_health": "*2.5" // If the husk is inside of a desert temple's bounding box, we want to make its health 2.5x stronger.
}
"conditions_to_apply": [
{
"structure_is": [
"minecraft:desert_temple"
],
"type": "mobifier:inside_structure"
}
]
} // Mobification 2 ends here
]
}
}