Skip to content

Adding A Custom Experience Reward

Turkey2349 edited this page Mar 14, 2019 · 8 revisions

Before you add an experience reward, you need to have the basic reward setup. If you have not done that already, you need to head here to set up the base for the reward.

Fields:

Field Name Type Default Field Description
experienceAmount Integer 1 The amount of experience that you want the reward to spawn
delay Integer 0 The delay for the exp to wait after the Chance Cube is broken before spawning
numberOfOrbs Integer 1 The number of orbs to spawn. Note the total exp will be divided among the number of orbs

Example:

{
	"Experience_Reward": 
	{
		"chance": 0,
		"Experience":
		[
			{"experienceAmount":"%%RND(10,200)%%", "numberOfOrbs":"%%RND(1,10)%%", "delay": 0}
		]
	}
}

Config Tutorial:

The experience reward is a fairly easy reward to setup. The first step is adding the experience reward type identifier of

"Experience": []

after either the chance value or the last reward that you added. Once that is done simply add

{"experienceAmount":amount}

additionally you can add two more optional tags that are listed above for more customization

{
    "experienceAmount":amount, 
    "delay":delay, 
    "numberOfOrbs":orbsToSpawn
}

between the square brackets of the sound reward. After that simply replace amount with your desired experience amount and viola! You have added an experience reward!