Content generated with AI — it may contain mistakes.

Jobs

Jobs and actions

The twelve shipped jobs, the job file, the 21 action types and how a target is written.

A job is one file in plugins/ExyliaJobs/jobs/; the file name is the job id (a-z, 0-9, -, _). /jobsadmin reload reads them again. A bad entry costs that entry only and is reported in the console.

The shipped jobs

JobPays for
Minerbreak: stone and ores.
Diggerbreak: dirt, sand, gravel, clay.
Woodcutterbreak logs, strip-log, plant saplings.
Farmerharvest ripe crops, plant, collect (berries, honey, compost).
Fisherfish.
Hunterkill mobs.
Rancherbreed, shear, milk, tame.
Builderplace.
Smithsmelt, craft, repair, smithing.
Enchanterenchant.
Brewerbrew.
Explorerexplore biomes and villager-trade.

Each ships with max level 50, a geometric curve (base 100, growth 1.08), three milestone rewards (levels 10, 25, 50) and five perk tiers.

The job file

name: 'Miner'            # plain text: every screen colours it
icon: IRON_PICKAXE       # a material, or a custom item id such as nexo:ruby_pickaxe
description:
  - 'Dig deep for stone and ores.'
max-level: 50
curve: {type: geometric, base: 100, growth: 1.08}
income-bonus: 0.02       # money per level above 1
xp-bonus: 0              # experience per level above 1
price-share: 0.10        # what a target with xp but no money pays, of its sell price
anti-exploit: {tnt: true}
actions:
  break:
    stone: {money: 0.02, xp: 0.25}
    '#diamond_ores': {money: 4.0, xp: 15}
rewards:
  10:
    - type: ECONOMY
      value: '250'
KeyMeaning
enabledfalse hides the job from players and pays nothing. Progress is kept.
name, icon, descriptionThe card. Never put colour codes in the name.
max-levelDefaults to defaults.max-level (50). Below 1 is refused.
curvelinear (base, step), geometric (base, growth) or formula (any expression of level, e.g. 100 * level ^ 1.6). Default geometric 100 x 1.1.
income-bonus, xp-bonusPer level above 1. Defaults 0.02 and 0.
price-shareDefault 0.10.
anti-exploitOverrides config.yml key by key. See Anti-exploit.
actionsWhat is paid.
rewardsMilestones: a level from 2 to max-level to a list of ExyliaLib rewards. A bare string is a console command.
perksSee Perks and prestige.
economy: {fatigue: false}Turns fatigue off for this job.
integrations: {mines: ...}true, a mine id or a list: pay inside ExyliaMines mines.

A job with no actions still loads (a job being set up) and pays nothing.

Actions

Every action is credited to every job the player holds that pays for it.

ActionCredited when
breakA block is broken (also by a player's TNT if the job allows it). Target: the block.
placeA block is placed; once per position per place-cooldown.
harvestA ripe crop is broken.
plantA crop or sapling is planted; once per growth cycle.
strip-logAn axe strips a log or wood.
killA player kills a mob (or player). kill-custom is read as kill.
breedTwo animals breed; once per pair per breed-cooldown.
tameA player tames an animal.
shearA player shears an entity.
milkA bucket on an adult cow or goat, or a bowl on a mooshroom; each animal once per breed-cooldown.
fishSomething is caught; by the item, times its amount.
smeltThe player takes the furnace output, by the amount taken.
brewA brew finishes, credited to the last player who used the stand, per potion; target is the ingredient.
enchantAn item is enchanted, per level spent; target is the item.
repairAn anvil result that really repairs is taken (a rename is not a repair).
smithingA smithing result is taken.
craftA craft really made by the click.
eatA player eats or drinks an item.
collectSweet or glow berries picked, honey from a full hive, bone meal from a full composter.
villager-tradeA trade is made; target is the item received.
exploreThe first player to enter a chunk generated since the plugin was installed; target is the biome.

Targets

Under each action, each key is a target and its value is {money, xp}.

SyntaxExampleMeaning
Vanilla iddiamond_ore, zombieLower case, without minecraft: (DIAMOND_ORE and minecraft:diamond_ore read the same).
Tag'#logs', '#diamond_ores'Expanded when loaded to every member, for the kind the action uses (block, item, mob or biome). A target written by name beats the same target reached through a tag.
Custom idnexo:ruby_ore, mythicmobs:kingCustom blocks from Nexo, Oraxen, ItemsAdder and CraftEngine; custom mobs from MythicMobs and ExyliaMobs (exyliamobs:<id>). A custom block that no job names falls back to its vanilla material.
*'*': {money: 0.1, xp: 1}Anything the action's other targets do not name.

money is optional: a target with xp but no money pays price-share times what the item sells for, from ExyliaLib's prices (ExyliaMarket's worth list when installed). Money and xp cannot be negative.

Something missing on this page? Tell us on Discord