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 is 0.0.
  • Income - Amount of earned currency. Default is 0.0.
  • ContractPoints - Contract points. Default is 0.0.
  • Probability - The probability that the player will receive a reward for the objective. Default is 100.0.

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:

Name Description Sources Example
brewing Rewards for using specific ingredients when brewing potions. Items minecraft:spider_eye
brew_potion Rewards for brewing a potion of specific types. Potion Type HEALING
cooking Rewards for smelting specific items in a furnace. Items minecraft:iron_ingot
crafting Rewards for crafting specific items. Items minecraft:iron_pickaxe
eating Rewards for consuming specific items. Items minecraft:apple
fishing_items Rewards for fishing specific items. Items minecraft:cod
forging Rewards for repairing, renaming, or enchanting items in an anvil. Items minecraft:iron_sword
block_loot Rewards when a block drops specific items when broken. Items minecraft:diamond
mob_loot Rewards when a mob drops specific items when killed. Items minecraft:rotten_flesh
grindstone Rewards for grindstoning specific items. Items minecraft:iron_sword
smithing Rewards for smithing specific items. Items minecraft:netherite_pickaxe
breeding Rewards for breeding specific mobs. Entities minecraft:pig
killing Rewards for killing specific mobs. Entities minecraft:zombie
fishing_mobs Rewards for fishing specific mobs (entities). Entities minecraft:squid
milking Rewards for milking specific mobs. Entities minecraft:mooshroom
shearing Rewards for shearing specific mobs. Entities minecraft:sheep
taming Rewards for taming specific mobs. Entities minecraft:wolf
mining Rewards for mining (breaking) specific blocks. Blocks minecraft:coal_ore
building Rewards for building (placing) specific blocks. Blocks minecraft:wood_planks
fertilizing Rewards for fertilizing specific blocks. Blocks minecraft:carrots
strip_block Rewards for stripping specific blocks. Blocks minecraft:stone
enchanting Rewards for obtaining specific enchantments in the Enchanting Table.
Supports all custom data-driven enchantments.
Enchantments minecraft:sharpness
excellentenchants:venom