If you have to edit the JSON manually, make sure you NEVER remove the "BYTE:" or "STRING:" or any other 'CAPITALS:' part of a tag. This allows the json to be converted in NBT automatically.
ALWAYS HIT THE "Parse from Json" BUTTON after editing, YOUR CHANGES WILL BE OVERWRITTEN if you don't.
My advice: Don't do this manually.
These is an explanation of a simple json database file. You can fully customise this file.
Pro tip: Use this for all your json needs. Also handy: A Java compatible colour picker.
A reward is selected based on the amount donated.
The name of the reward or the message in paypal DO NOTHING.
If a donation matches no reward, a default message shows. (See .cfg file)
If you actually read all the things up to this point, you will have seen (Vars usable).
This means you can use $name, $amount and $note to represent the donators name, the amount donated and the message left in PayPal.
The streamers username can be inserted with $streamer.
You can make random numbers or have it select a random value from a list.
This tag replaces any value in a the NBT.
This is not a normal random tag! Its a type.
All the tags in data will be applie to the itemstack after a random one is picked.
This way you can still add names to items and so on.
{
"type": "randomItem",
"data": {
"tag": {
"display": {
"Name": "STRING:$name"
}
}
}
}
Format: $random
Works with: BYTE (which can be a boolean)
"Flicker": "BYTE:$random",
Format: $random(x,y)
Works with: BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
"Type": "BYTE:$random(0,5)",
Format: $random[value1, value2, value3, value4, ..., valueN]
Works with: BYTE, SHORT, INT, LONG, FLOAT, DOUBLE, STRING
"id": "SHORT:$random[276, 277, 278, 279]",
Only useful with leather armour or fireworks. (As far as I know)
Format: $randomRGB(amountOfColors)
Works with: INT[]
"Colors": "INT[]:$randomRGB(2)",
Only useful with the simple entity really, it gives you a random entity name.
Format: $randomEntity
Works with: STRING
"name": "STRING:$randomEntity",
Only useful with the sounds, you can pick which collection of sounds it needs to pick from
Format: $randomSound(x) where x is all, music, sounds and streaming. You can also use $randomSound or $randomSound() to pick from all.
Works with: STRING
"soundName": "STRING:$randomSound(music)",
This example spawns random fireworks. The flight hight, type of firework, the colour and all the possible attributes are random.
{
"type": "fireworks",
"data": {
"id": "SHORT:401",
"Damage": "SHORT:0",
"Count": "BYTE:1",
"tag": {
"Fireworks": {
"Flight": "BYTE:$random(0,1)",
"Explosions": [
{
"Type": "BYTE:$random(0,5)",
"Flicker": "BYTE:$random",
"Colors": "INT[]:$randomRGB(2)",
"Trail": "BYTE:$random"
}
]
}
}
}
}