-
Notifications
You must be signed in to change notification settings - Fork 3
There are 7 ways of winning xp in this mod :
- Crafting Items
- Smelting Items
- Breaking Blocks
- Harvesting Crops
- Killing Mobs
- Breeding Mobs
- Fishing Items
You can configure any job to gain xp using any of those 6 categories. Each category has its own config file, all stored in the xp folder.
The xp gained by crafting items is configured in the xp_crafting.json file. This file has the following structure:
{
"miner":[
{"item":"minecraft:book","xp":[1,2,3,4,0,0]},
{"item":"minecraft:stone_pickaxe","xp":[0,0,0,1,2,30]}
],
"hunter":[
{"item":"minecraft:book","xp":[2,2,2,2,7,2,1,1]},
{"item":"minecraft:iron_bars","xp":[0,0,4,2,10,2,0,0]}
]
}
In this file, the entries for each job are composed of the item name, and a list of numbers corresponding of the amount of xp the player gets by crafting it at each level of the job. It is therefore very important that the list of numbers has the same size as the list of numbers in the levels.json file. You can have the same items for different jobs, and all jobs do not have to be in this file.
In this example configuration, if you are Miner level 2 and Hunter level 4 then if you craft a book, you will get 3xp for Miner and 7 xp for Hunter.
The xp gained by smelting items is configured in the xp_smelting.json file. This file has the following structure:
{
"miner":[
{"item":"minecraft:iron_ingot","xp":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]},
{"item":"minecraft:cooked_beef","xp":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]}
]
}
This file has the same structure as the xp_crafting.json file above, with the same rules to respect about the syntax.
In this example configuration, if you are Miner level 6 and you cook steak (cooked_beef), you will get 7xp for Miner.
The xp gained by breaking blocks is configured in the xp_breaking.json file. This file has the following structure:
{
"miner":[
{"block":"minecraft:diamond_ore","xp":[15,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]},
{"block":"minecraft:redstone_ore","xp":[10,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]}
],
"hunter":[
{"block":"minecraft:stone","xp":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]}
]
}
This file has a similar structure to the xp_crafting.json file above, with the same rules to respect about the syntax.
In this example configuration, if you are Miner level 0 and you break a diamond ore, you will get 15xp for Miner.
The xp gained by harvesting crops is configured in the xp_harvesting.json file. This file has the following structure:
{
"miner":[
{"block":"minecraft:potatoes","xp":[15,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]},
{"block":"minecraft:carrots","xp":[10,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]}
]
}
This file has the same structure to the xp_breaking.json file above, with the same rules to respect about the syntax. The player only gets xp when they harvests a completely mature crop, none when the crop is not completely mature.
In this example configuration, if you are Miner level 5 and you harvest mature potatoes, you will get 6xp for Miner.
The xp gained by killing mobs is configured in the xp_kiling.json file. This file has the following structure:
{
"miner":[
{"entity":"minecraft:cow","xp":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]},
{"entity":"minecraft:ghast","xp":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]},
{"entity":"minecraft:chicken","xp":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]},
{"entity":"minecraft:player","xp":[10,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]}
]
}
This file has a similar structure to the files above, with the same rules to respect about the syntax. The player gets xp when he kills an entity. Obviously the player cannot gain xp by killing himself (that would be too easy).
In this example configuration, if you are Miner level 0 and you manage to kill another player, you will get 10xp for Miner.
The xp gained by bredding mobs is configured in the xp_breeding.json file. This file has the following structure:
{
"miner":[
{"entity":"minecraft:cow","xp":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]},
{"entity":"minecraft:chicken","xp":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]}
]
}
This file has the same structure as the xp_killing.json file above, with the same rules to respect about the syntax. The player gets xp when he breeds an entity (to be more precise : when a cute baby mob is born).
In this example configuration, if you are Miner level 3 and you manage to breed 2 chicken, you will get 4xp for Miner.
The xp gained by fishing items is configured in the xp_fishing.json file. This file has the following structure:
{
"miner":[
{"item":"minecraft:cod","xp":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]},
{"item":"minecraft:pufferfish","xp":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]}
]
}
This file has the same structure as the xp_crafting.json file above, with the same rules to respect about the syntax.
In this example configuration, if you are Miner level 6 and you fish a cod, you will get 7xp for Miner.
Don't forget to check your file syntax here: JSON Validator
Quick Links: Home --- Curseforge --- Patreon --- Templates