职业

自定义宠物配置可以在 plugins/EcoJobs/jobs 文件夹中找到,它的文件名称即为 职业id,其一般配置如下:

name: "&#964B00Builder"
description: "&8&oLevel up by placing blocks"

unlocked-by-default: true

level-xp-requirements:
  - 100
  - 120
  - 150
  - 180
  - 210
  - 250
  - 300
  - 360
  - 430
  - 520
  - 620
  - 740
  - 890
  - 1000
  - 1300
  - 1500
  - 1900
  - 2200
  - 2700
  - 3200
  - 3800
  - 4600
  - 5500
  - 6600
  - 7900
  - 9500
  - 11500
  - 14000
  - 17000
  - 19000
  - 24000
  - 29000
  - 34000
  - 41000
  - 50000
  - 60000
  - 70000
  - 85000
  - 100000
  - 120000
  - 150000
  - 180000
  - 210000
  - 250000
  - 300000
  - 360000
  - 440000
  - 580000
  - 750000

xp-gain-methods:
  - trigger: place_block
    multiplier: 1.2
    conditions: [ ]

level-placeholders:
  - id: "money"
    value: "%level% * 1.2"
  - id: "blocks"
    value: "ceil(12 - %level% / 8)"

effects-description:
  1:
    - "&8» &8Earn &a$%money%&8 for each &a%blocks%&8 blocks placed"

rewards-description:
  1:
    - "&8» &8Earn &a$%money%&8 for each &a%blocks%&8 blocks placed"

level-up-messages:
  1:
    - "&8» &8Earn &a$%money%&8 for each &a%blocks%&8 blocks placed"

level-commands: [ ]

effects:
  - id: give_money
    args:
      every: "ceil(12 - %level% / 8)"
      amount: "1.2 * %level%"
    filters:
      items:
        - "*wooden_pickaxe"
        - "*stone_pickaxe"
        - "*iron_pickaxe"
        - "*golden_pickaxe"
        - "*diamond_pickaxe"
        - "*netherite_pickaxe"
    triggers:
      - place_block

conditions: [ ]

icon: player_head texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTBiYmVmMGE0YmNmMDNlMDQ5ZDU1NmRhMGJlZDZiNDFkZDkyOGI4OTdhNDJhZTAxZWZlYTY4NGI1NjFjNDMyZiJ9fX0=

与宠物几乎一致,不再赘述,其中 unlocked-by-default 选项为是否默认解锁。如果不是默认解锁,那么服主需要使用 /ecojobs unlock 指令才能为玩家解锁某个职业。

最后更新于