The emotes section - Penaz91/randomizedEmotes GitHub Wiki
The emotes section
"emotes":
"coin":
alone:
- "$player$ flips a coin: heads"
- "$player$ flips a coin: tails"
- "$player$ flips a coin: it landed on its edge... HOW???"
targeted:
- "$player$ flips a coin, it lands on $target$'s head: heads"
- "$player$ flips a coin, it lands on $target$'s head: tails"
- "$player$ flips a coin: it sticks to $target$'s arm... HOW???"
soundEverybody: "BLOCK_ANVIL_BREAK"
soundPlayer: "BLOCK_ANVIL_BREAK"
soundTarget: "BLOCK_ANVIL_BREAK"
particlePlayer: ""
particlePlayerCount: 1
particlePlayerYOffset: 5
particleTarget: ""
particleTargetCount: 1
particleTargetYOffset: 5
Each emote starts with its name, in this case "coin"
"Alone" and "Targeted" sections
The "Alone" section contains all the texts to choose among when the emote is executed without a target.
The "Targeted" section instead contains the strings for the 2-player variants.
Sounds
All these strings can be empty
The string soundEverybody
is the sound that everybody (besides the parts involved) in "radius" will hear.
The string soundPlayer
is the sound that the player using the emote will hear
The string soundTarget
is the sound that the player targeted by the emote will hear
For the sound names refer to The javadocs page of Spigot
Particles
The particlePlayer
string defines which particle the player that uses the emote will emit
The particleTarget
string defines which particle the player that is targeted by the emote will emit
The strings particlePlayerCount
and particleTargetCount
define how many particles are emitted
The strings particlePlayerYOffset
and particleTargetYOffset
define the vertical offset of the particles emitted (useful if the particles don't pop over the player's head, but inside them)
For the Particle Names refer to The javadocs page of Spigot
Placeholders
$player$ will be replaced with the name of the player that executes the emote.
$random|a|b$ will be replaced by a randomly generated number between "a" and "b", "a" and "b" included.
$target$ will be replaced with the name of the targeted player