Download LOLYouDied — Minecraft Mods — MetaMods

LOLYouDied

Active

Downloads

0

Last update

8 years ago
Client
Adventure
Weapons and armor

LOLYouDied

Sometimes you create such a difficult modpack that you feel sorry for players who have already died hundreds of times on your server. With this mod, you can configure what exactly happens when a player dies! Play sound effects or give out various items!

Configuration Example

{
  "": {
    "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"
  }
}

Selector System

The keys in the root object determine which events trigger at specific deaths. Multiple triggers can occur for one death.

  • Death counting starts from 1, not 0!
  • 'n' and 'm' are positive integers
  • 'a' and 'b' are other selector strings
  • You cannot combine different types of "base selectors"
  • You can combine multiple logic selectors if they have the same type of "base selector"

Base Selectors

Type Selector Example Description
ALWAYS 0 "0" Every death
LEFTOVER "" All deaths not specified separately (excluding matches with "0")
REGULAR n "7" Death number n
REGULAR n-m "10-20" Deaths from n to m inclusive
REGULAR n- "10-" Deaths from n to infinity, including n
  • Deaths from 1 to n should be written as "1-n", "-n" is not a special case and will cause an error.

Logic Selectors

Selector Example Description
a;b "1;2;3" a or b
a/n "10-20/2" Deaths specified in a, but only if death number is divisible by n
a/n%m "10-20/2%1" Same as above but with remainder equal to m

Death Events

  • All specified loot will be applied
  • All specified sounds are added to a list, from which one is randomly selected
Key Data Description
"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 without wrapper object
Project members
dries007

dries007

DoubleDoorDev

DoubleDoorDev

Claycorp

Claycorp

Created: 22 Aug 2017

ID: 42826