This handles lifetimes of specific items and objects that the mining system uses. Edit to your own liking.
files_miningsystem and paste within your mpmissions\mapname. For this example we will use mpmissions\dayzOffline.chernarusplus.mpmissions/mapname/cfgeconomycore.xml and after the closing </defaults> tag, add the following:
<ce folder="files_miningsystem">
<file name="miningsystem_types.xml" type="types" />
</ce>
Please read FMS_SpawnManager.json within Profile Section to get another understanding.
"3372.466309 2.689854 5465.298828|-98.613243 2.483688 -0.789240" 3372.466309 2.689854 5465.298828 X - East to West Y - Vertical / Height Z - North / South -98.613243 2.483688 -0.789240 P - Tilting forward/backward Y - Turning left/right R - Tilting sideways
{
"EnableNodeSpawns": "1", //Enable FMS Spawn Manager
"NodeLocations": [
{
"Enabled": "1", //Is this location spawn active 1=Yes | 0=NO
"name": "Tin Node - Location Name", //Spawn Location or Identifier where the spawn is
"Node": "FreezeNode_tin", // Node class name
"Spawn_min": 1, // MIN 1 of the 3 POS locations
"Spawn_max": 2, // MAX 2 of the 3 POS locations
"pos": [
"3372.466309 2.689854 5465.298828|-98.613243 2.483688 -0.789240",
"3374.754639 2.544425 5462.621094|-59.590309 2.728735 0.446974",
"3378.499023 2.381880 5462.661621|-117.850388 1.542388 -2.625101"
],
"respawn_timer": 120, //Respawn Timer after Destroyed
"randomize_position": 1 //if set to 0 it will spawn on the same Pos
}
]
}
0 = False / Disables | 1 = True / Enables
Example FMS_Settings.json configuration:
{
"EnableLogs": 1,
"EnableDebug": 0,
"KeepLogDays": 7,
"EnableVanillaRockMining": 0,
"EnableGemCuttingMiniGame": 0,
"EnableFurnace": 1,
"EnableGrindingStone": 1,
"EnableAnvil": 1,
"PropaneCanisterUsage": 1.0,
"GrindingWheelUsage": 1.0,
"AnvilHammerDamage": 0.5
}
The probability system operates out of 100 per mining circle. To guarantee a drop, set "probability": 100.
Using copper as an example:
probability: 70 → 70% chance on each mining circleprobability: 30 → 30% chance on each mining circleHere’s what a config for mining copper might look like:
{
"actionText": "Mine for Copper Ore",
"max_mine": 6,
"enabledTypes": [
"FreezeNode_copper"
],
"itemsProbabilities": [
{ "item": "Freezestone_copper", "probability": 70 },
{ "item": "Stone", "probability": 30 }
]
}
0 = False / Disables | 1 = True / Enables
Example:
{
"actionText": "North Copper Ore",
"max_mine": 6,
"enabledTypes": [
"FreezeNode_copper"
],
"itemsProbabilities": [
{ "item": "Freezestone_copper", "probability": 70 },
{ "item": "Stone", "probability": 30 }
]
},
{
"actionText": "South Copper Ore",
"max_mine": 4,
"enabledTypes": [
"FreezeNode_copper"
],
"itemsProbabilities": [
{ "item": "Freezestone_copper", "probability": 80 },
{ "item": "Stone", "probability": 10 }
]
}
When you enable vanilla rocks within FMS_Settings.json, you can edit what vanilla rocks drop when mining. Below is an example of how the FMS_VanillaRock.json file might look. You can modify the probabilities as needed:
{
"VanillaRockProbabilities": {
"FreezeGem_Jade": 4,
"FreezeGem_Amber": 4,
"Freezestone_copper": 12,
"FreezeGem_FancyColourDiamond": 4,
"Freezestone_silver": 10,
"FreezeGem_Amethyst": 4,
"FreezeGem_Turquoise": 4,
"FreezeGem_Aquamarine": 5,
"Freezestone_tin": 12,
"FreezeGem_Iolite": 4,
"Freezestone_sulphur": 12,
"Stone": 50,
"SmallStone": 10,
"Freezestone_gold": 10,
"FreezeGem_Ruby": 4,
"Freezestone_uranium": 16,
"Freezestone_iron": 12
}
}