我的世界高版本服主教程合集
常用工具网站常用开服网站高版本插件推荐免费服务端/福利
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 提供支持
在本页
  • 如何创建物品等级
  • _example.yml​
  • 变量符
  • 示例 EcoItems 物品

这有帮助吗?

  1. 自定义效果

物品等级

上一页点数系统下一页自定义参数

最后更新于1年前

这有帮助吗?

物品等级和物品点数很相似,但是物品等级提供了一个内置的可升级方案,玩家可以通过积累经验值来提升物品的等级。

你可以创建无数多的物品等级。

如何创建物品等级

物品等级的配置文件都可以在 /plugins/libreforge/levels/ 目录下找到,你也可以删除里面的配置文件以代表删除某个物品等级。

物品等级的ID就是文件名称。

以下是一个示例文件:

_example.yml

# 有两种指定各个等级需要的经验值的方案:
#  1. 一个没有等级上限的等级计算公式
#  2. 一个指定各个等级所需经验值的列表

# 如果是第一种方案,需要使用以下两个选项。
# xp-formula: (2 ^ %level%) * 25
# 这个选项代表等级计算公式,其中 %level% 代表对应的等级。
# max-level: 10 
# 这个选项代表等级上限,可以不设置,不设置的话就是没有上限。

# 这是使用第二种方案,即自己人工设置各个等级所需经验值。
requirements:
  - 50
  - 100
  - 200
  - 400
  - 1000
  - 2000
  - 5000
  - 10000
  - 17500
  - 40000
  - 100000
  - 250000

# 每次升级时执行的效果
# %level% 代表对应等级
level-up-effects:
  - id: send_message
    args:
      message: "&f你升级到了 &a%level%&f 级!"
  - id: play_sound
    args:
      sound: entity_player_levelup
      volume: 1.0
      pitch: 1.5

变量符

你可以通过以下变量符获取物品等级的信息:

%libreforge_item_xp_等级ID%: 当前经验值

%libreforge_item_level_等级ID%: 当前等级

%libreforge_item_xp_required_等级ID%: 当前等级升级需要的经验值

%libreforge_item_progress_等级ID%: 当前升级进度

你可以在各个变量符的末尾添加 _numeral 以获取对应数值的罗马数字。

示例 EcoItems 物品

下面是一个使用物品等级的 EcoItems 物品的示例:

item:
  item: diamond_pickaxe hide_attributes unbreakable efficiency:5 blast_mining:3
  display-name: "&e可升级镐子 &8- &6%libreforge_item_level_example_numeral%"
  lore:
    - "&f当前等级 &a%libreforge_item_level_example%"
    - "&fXP: &a%libreforge_item_xp_example%&8/&a%libreforge_item_xp_required_example% &f(&a%libreforge_item_progress_example%%&f)"
  craftable: false
  recipe: [ ]

slot: mainhand

effects:
    - id: level_item
      args:
          id: example
          xp: "%v%"
      triggers:
          - mine_block

conditions: [ ]
​