Sometimes you make a pack so hard that you feel bad for that person with 500 deaths on your server.
With this mod you can configure what happens when someone dies! You can play sounds or give items!
{
"*": {
"loot": {"pools":[{"rolls":1,"entries":[{"type":"item","weight":1,"name":"minecraft:stone"}]}]}
},
"0": {
"sound": "lolyoudied:lol_you_died"
},
"*/10": {
"loot": "minecraft:chests/spawn_bonus_chest",
"sound": "minecraft:entity.enderdragon.death"
}
}
The keys of the root object determine at what death which things happen. Multiple things can trigger per death.
| Type | Selector | Example | Text |
|---|---|---|---|
| ALWAYS | 0 | "0" | Every death |
| LEFTOVER | * | "*" | Every death not specified (`0` matches excluded) |
| REGULAR | _n_ | "7" | Death number _n_ |
| REGULAR | _n_-_m_ | "10-20" | Death _n_ trough _m_, _n_ and _m_ included |
| REGULAR | _n_- | "10-" | Death _n_ trough ∞, _n_ included |
| Selector | Example | Text |
|---|---|---|
| _a_;_b_ | "1;2;3" | _a_ or _b_ |
| _a_/_n_ | "10-20/2" | Deaths specified by _a_ but only if divisible by _n_ |
| _a_/_n_%_m_ | "10-20/2%1" | Same as above but with remainder equals to _m_ |
| Key | Data | Text |
|---|---|---|
| "sound" | string | One sound event name |
| "sound" | array of strings | Add all sounds to random list |
| "loot" | string | One loot table name |
| "loot" | loot table JSON | One loot table |
| "loot" | array of loot pools | Same as above, but with wrapper object removed |
No files available for download.