我的世界高版本服主教程合集
常用工具网站常用开服网站高版本插件推荐免费服务端/福利
Auxilor Plugins
Auxilor Plugins
  • 欢迎
  • 通用信息
    • 关于 eco
    • 兼容插件
    • 物品语句
    • 实体语句
    • 粒子语句
    • 价格
    • 自定义GUI
    • *数学计算
    • *可用物品类型
  • 自定义效果
    • 配置一个效果
    • 配置一个条件
    • 所有效果
      • add_damage
      • add_enchant
      • add_holder
      • add_holder_in_radius
      • add_holder_to_victim
      • add_permanent_holder_in_radius
      • add_point
      • add_stat
      • add_stat_temporarily
      • age_crop
      • all_players
      • aoe
      • aoe_blocks
      • armor
      • armor_toughness
      • arrow_ring
      • attack_speed_multiplier
      • autosmelt
      • bleed
      • block_command
      • bonus_health
      • boss_drop_chance_multiplier
      • break_block
      • brew_time_multiplier
      • broadcast
      • cancel_event
      • clear_invulnerability
      • close_inventory
      • consume_held_item
      • create_boss_bar
      • create_hologram
      • *create_explosion
      • crit_multiplier
      • damage_armor
      • damage_item
      • damage_mainhand
      • damage_multiplier
      • damage_nearby_entities
      • damage_offhand
      • damage_twice
      • damage_victim
      • dont_consume_lapis_chance
      • dont_consume_xp_chance
      • drill
      • drop_item
      • drop_pickup_item
      • drop_random_item
      • drop_weighted_random_item
      • elytra_boost_save_chance
      • extinguish
      • flight
      • feather_step
      • food_multiplier
      • gain_task_xp
      • give_food
      • give_global_points
      • give_health
      • give_item
      • give_item_points
      • give_job_xp
      • give_magic
      • give_mcmmo_xp
      • give_money
      • give_oxygen
      • give_permission
      • give_pet_xp
      • give_points
      • give_price
      • give_saturation
      • give_skill_xp
      • give_skill_xp_naturally
      • give_task_xp
      • give_xp
      • glow_nearby_blocks
      • homing
      • hunger_multiplier
      • ignite
      • item_durability_multiplier
      • job_xp_multiplier
      • jobs_money_multiplier
      • jobs_xp_multiplier
      • keep_inventory
      • kick
      • knock_away
      • knockback_multiplier
      • knockback_resistance_multiplier
      • level_item
      • luck_multiplier
      • magic_regen_multiplier
      • mcmmo_xp_multiplier
      • mine_radius
      • mine_radius_one_deep
      • mine_vein
      • mob_coins_multiplier
      • movement_speed_multiplier
      • multiply_all_stats
      • multiply_drops
      • multiply_global_points
      • multiply_item_points
      • multiply_magic
      • multiply_points
      • multiply_stat
      • multiply_stat_temporarily
      • multiply_velocity
      • name_entity
      • open_crafting
      • open_ender_chest
      • particle_animation
      • particle_line
      • pay_price
      • permanent_potion_effect
      • pet_xp_multiplier
      • piercing
      • play_sound
      • potion_duration_multiplier
      • potion_effect
      • pull_in
      • pull_to_location
      • quest_xp_multiplier
      • random_player
      • rapid_bows
      • reel_speed_multiplier
      • regen_multiplier
      • remove_boss_bar
      • remove_enchant
      • remove_item
      • remove_item_data
      • remove_potion_effect
      • repair_item
      • replace_near
      • rotate
      • *replant_crops
      • run_chain
      • run_command
      • run_player_command
      • sell_items
      • sell_multiplier
      • send_message
      • send_minimessage
      • send_title
      • set_armor_trim
      • set_block
      • set_custom_model_data
      • set_food
      • set_freeze_ticks
      • set_global_points
      • set_item_data
      • set_item_points
      • set_points
      • set_saturation
      • set_velocity
      • set_victim_velocity
      • shoot
      • shoot_arrow
      • shuffle_hotbar
      • skill_xp_multiplier
      • smite
      • spawn_entity
      • spawn_mobs
      • spawn_particle
      • spawn_potion_cloud
      • start_quest
      • strike_lightning
      • strip_ai
      • swarm
      • take_money
      • target_player
      • telekinesis
      • teleport
      • teleport_to
      • traceback
      • transmission
      • trigger_custom
      • update_boss_bar
      • victim_speed_multiplier
      • xp_multiplier
    • 所有变化
      • block_to_location
      • location_to_block
      • location_to_boss
      • location_to_cursor
      • location_to_player
      • location_to_projectile
      • player_as_victim
      • spin_location
      • spin_velocity
      • translate_location
      • victim_as_player
      • victim_to_owner
      • dispatcher_as_player
      • dispatcher_as_victim
    • 所有条件
      • above_balance
      • above_global_points
      • above_health_percent
      • above_hunger_percent
      • above_magic
      • above_points
      • above_xp_level
      • above_y
      • any_of
      • at_least_of
      • below_balance
      • below_global_points
      • below_health_percent
      • below_hunger_percent
      • below_magic
      • below_points
      • below_xp_level
      • below_y
      • can_afford_price
      • global_points_equal
      • has_active_job
      • has_active_pet
      • has_boss_bar_visible
      • has_completed_quest
      • has_completed_task
      • has_completed_advancement
      • has_ecoitem
      • has_item
      • has_item_data
      • has_job_level
      • has_mana
      • has_permission
      • has_pet_level
      • has_potion_effect
      • has_quest_active
      • has_reforge
      • has_scoreboard_visible
      • has_skill_level
      • has_talisman
      • in_air
      • in_biome
      • in_bubble
      • in_lava
      • in_mainhand
      • in_offhand
      • in_rain
      • in_region
      • in_water
      • in_world
      • is_booster_active
      • is_expression_true
      • is_falling
      • is_flying
      • is_frozen
      • is_gliding
      • is_night
      • is_op
      • is_sneaking
      • is_sprinting
      • is_wearing_set
      • item_data_equals
      • item_level_above
      • item_level_below
      • item_level_equals
      • item_points_above
      • item_points_below
      • item_points_equal
      • near_entity
      • on_fire
      • on_ground
      • placeholder_contains
      • placeholder_equals
      • placeholder_greater_than
      • placeholder_less_than
      • points_equal
      • riding_entity
      • standing_on_block
      • wearing_boots
      • wearing_chestplate
      • wearing_helmet
      • wearing_leggings
      • within_radius_of
    • 所有筛选
      • above_health_percent
      • advancements
      • blocks
      • damage_cause
      • entities
      • from_spawner
      • fully_charged
      • fully_grown
      • is_behind_victim
      • is_boss
      • is_expression_true
      • *is_passive
      • is_npc
      • item_durability_above
      • item_durability_above_percent
      • item_durability_below
      • item_durability_below_percent
      • items
      • job
      • magic_type
      • npc
      • on_max_health
      • pet
      • player_name
      • player_placed
      • potion_effect
      • projectiles
      • quest
      • region
      • shop_item
      • skill
      • task
      • text
      • text_contains
      • value_above
      • value_below
      • value_equals
      • victim_name
    • 所有触发器
    • 点数系统
    • 物品等级
    • 自定义参数
    • 自定义变量符
  • EcoEnchants
    • 指令和权限节点
    • 创建一个自定义魔咒
  • EcoItems
    • 指令和权限节点
    • 创建一个自定义物品
  • EcoSkills
    • 指令和权限节点
    • 创建一个自定义属性
    • 创建一个自定义能力
    • 创建一个自定义技能
  • EcoPets
    • 指令和权限节点
    • 创建一个自定义宠物
  • EcoJobs
    • 指令和权限节点
    • 创建一个自定义职业
由 GitBook 提供支持
在本页

这有帮助吗?

  1. EcoJobs

创建一个自定义职业

示例配置

示例配置如下:

# 职业的ID就是 .yml 文件的名称
# 例如 miner.yml 的职业ID就是 miner
# 你可以将职业的配置文件放置到 jobs 文件夹下的任意位置
# 包括放置到子文件夹里面
# _example.yml 文件不会加载

# 职业的显示名称
name: "&6任务"

# 职业的描述
description: "&8&o通过挖掘方块升级"

# 是否默认处于解锁状态
unlocked-by-default: true

# 在离开职业后是否清除职业数据
reset-on-quit: false

# 加入该职业的价格
join-price:
  value: 0
  type: coins
  display: "&a$%value%"

# 当玩家未加入该职业时点击职业图标想要加入该职业时的Lore内容
# 即 %join_lore% 变量符的内容
join-lore: []

# 离开该职业的价格
leave-price:
  value: 20000
  type: coins
  display: "&a$%value%"

# 当玩家已加入该职业时点击职业图标想要离开该职业时的Lore内容
# 即 %leave_lore% 变量符的内容
leave-lore:
  - " &8» 离开该职业需要花费 %leave_price%"

# 指定各个等级所需的经验值,每一行代表新的一级
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

# 经验值获取方法
# 一个获取方法配置由 trigger,multiplier,conditions,filters 组成
# multiplier 加倍触发器的触发器属性中的值,加倍后的值就是获得的经验值
xp-gain-methods:
  - trigger: mine_block
    multiplier: 0.5
    conditions: [ ]
    filters:
      items:
        - "*wooden_pickaxe"
        - "*stone_pickaxe"
        - "*iron_pickaxe"
        - "*golden_pickaxe"
        - "*diamond_pickaxe"
        - "*netherite_pickaxe"

# 职业描述中使用的变量符
# 在描述中通过 %key% 格式使用它们,例如这里就是 %money% 和 %blocks%
level-placeholders:
  - id: "money"
    value: "%level% * 0.4"
  - id: "blocks"
    value: "ceil(10 - %level% / 10)"

# %effects% 变量符显示的文本

# 开始的数字代表的是开始显示这个等级奖励信息的等级
# 当检测到有另外一个等级可用时(例如10级将会显示这里设置的10)将会替代之前可用的信息
effects-description:
  1:
    - "&8» &8每挖掘 &a%blocks% &8个方块获得 &a$%money%&8 金币"

# %rewards% 变量符显示的文本
rewards-description:
  1:
    - "&8» &8每挖掘 &a%blocks% &8个方块获得 &a$%money%&8 金币"

# %level_up_messages% 变量符显示的文本
level-up-messages:
  1:
    - "&8» &8每挖掘 &a%blocks% &8个方块获得 &a$%money%&8 金币"

# 每次升级后执行的指令,有两种格式:
# 等级值:指令 (例如. 10:eco give %player% 1000),代表升到10级后执行这个指令
# 指令 (e.g. eco give %player% 5000),代表每次升级都执行这个指令
level-commands: [ ]

# 职业的效果
# 使用 %level% 来表示职业等级的变量符
effects:
  - id: give_money
    args:
      every: "ceil(10 - %level% / 10)"
      amount: "0.4 * %level%"
    filters:
      items:
        - "*wooden_pickaxe"
        - "*stone_pickaxe"
        - "*iron_pickaxe"
        - "*golden_pickaxe"
        - "*diamond_pickaxe"
        - "*netherite_pickaxe"
    triggers:
      - mine_block

# 职业效果能够激活的条件
# 你仍可以使用 %level% 变量符
conditions: [ ]

# 职业在GUI内的图标
icon: player_head texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODU3MDVjZjg2NGRmMmMxODJlMzJjNDg2YjcxNDdjYmY3ODJhMGFhM2RmOGE2ZDYxNDUzOTM5MGJmODRmYjE1ZCJ9fX0=
上一页指令和权限节点

最后更新于1年前

这有帮助吗?