Objectives
Objectives are the core of the Grinding module. They determine what and how players should do in their job to get money, experience, and contract points.
Objective Configuration
Objective configurations are stored in the objectives folder.
The objective ID is determined by its file name. For example, the ID for miner_break_block.yml will be miner_break_block. Use them for job settings.
Parameters:
Type- Action type.Sources- Sources table.
example_objective.yml
Type: mining
Sources:
minecraft:stone: 'JobXP 1.2~1.8 ; Income 0.04~0.06 ; ContractPoints 0.008~0.012 ; Probability 100.0~100.0 ; '
minecraft:cobblestone: 'JobXP 1.2~1.8 ; Income 0.04~0.06 ; ContractPoints 0.008~0.012 ; Probability 100.0~100.0 ; '
minecraft:deepslate: 'JobXP 1.4~2.2 ; Income 0.05~0.07 ; ContractPoints 0.012~0.018 ; Probability 100.0~100.0 ; '
minecraft:sandstone: 'JobXP 1.0~1.4 ; Income 0.03~0.05 ; ContractPoints 0.008~0.012 ; Probability 100.0~100.0 ; '
minecraft:netherrack: 'JobXP 0.6~1.0 ; Income 0.01~0.03 ; ContractPoints 0.004~0.006 ; Probability 100.0~100.0 ; '
minecraft:andesite: 'JobXP 1.6~2.4 ; Income 0.08~0.12 ; ContractPoints 0.016~0.024 ; Probability 100.0~100.0 ; '
minecraft:diorite: 'JobXP 1.6~2.4 ; Income 0.08~0.12 ; ContractPoints 0.016~0.024 ; Probability 100.0~100.0 ; '
minecraft:granite: 'JobXP 1.6~2.4 ; Income 0.08~0.12 ; ContractPoints 0.016~0.024 ; Probability 100.0~100.0 ; '
minecraft:tuff: 'JobXP 1.6~2.4 ; Income 0.08~0.12 ; ContractPoints 0.016~0.024 ; Probability 100.0~100.0 ; '
minecraft:terracotta: 'JobXP 1.4~2.2 ; Income 0.05~0.07 ; ContractPoints 0.012~0.018 ; Probability 100.0~100.0 ; '
minecraft:basalt: 'JobXP 1.8~2.6 ; Income 0.1~0.14 ; ContractPoints 0.02~0.03 ; Probability 100.0~100.0 ; '
minecraft:blackstone: 'JobXP 1.8~2.6 ; Income 0.1~0.14 ; ContractPoints 0.02~0.03 ; Probability 100.0~100.0 ; '
minecraft:calcite: 'JobXP 2.0~3.0 ; Income 0.12~0.18 ; ContractPoints 0.024~0.036 ; Probability 100.0~100.0 ; '
minecraft:end_stone: 'JobXP 2.0~3.0 ; Income 0.12~0.18 ; ContractPoints 0.024~0.036 ; Probability 100.0~100.0 ; '
minecraft:prismarine_bricks: 'JobXP 2.4~3.6 ; Income 0.16~0.24 ; ContractPoints 0.032~0.048 ; Probability 100.0~100.0 ; '
minecraft:ice: 'JobXP 0.8~1.2 ; Income 0.04~0.06 ; ContractPoints 0.008~0.012 ; Probability 100.0~100.0 ; '
minecraft:blue_ice: 'JobXP 3.2~4.8 ; Income 0.2~0.3 ; ContractPoints 0.04~0.06 ; Probability 100.0~100.0 ; '
minecraft:frosted_ice: 'JobXP 0.0~0.0 ; Income 0.0~0.0 ; ContractPoints 0.0~0.0 ; Probability 100.0~100.0 ; '
Sources
Entry format: source: property1 min~max ; property2 min~max, where:
source- Name of the "source". Depends on the action type.property- Objective property (see below).min- Minimum value.max- Maximum value.
Available properties:
JobXP- Job experience points. Default is0.0.Income- Amount of earned currency. Default is0.0.ContractPoints- Contract points. Default is0.0.Probability- The probability that the player will receive a reward for the objective. Default is100.0.
Pay attention to the number separator ~ and the parameter separator ;.
Example: minecraft:coal_ore: 'JobXP 1.2~1.8 ; Income 0.04~0.06 ; ContractPoints 0.008~0.012 ; Probability 100.0~100.0
Action Types
The following action types are supported by default: