我的世界高版本服主教程合集
常用工具网站常用开服网站高版本插件推荐免费服务端/福利
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. EcoPets

创建一个自定义宠物

示例配置

示例配置如下:

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

# 显示给玩家的宠物名称
name: "&6老虎"

# 宠物描述
description: "&8&o通过造成近战伤害升级!"

# 指定各个等级所需的经验值,每一行代表新的一级
level-xp-requirements:
  - 50
  - 125
  - 200
  - 300
  - 500
  - 750
  - 1000
  - 1500
  - 2000
  - 3500
  - 5000
  - 7500
  - 10000
  - 15000
  - 20000
  - 30000
  - 50000
  - 75000
  - 100000
  - 200000
  - 300000
  - 400000
  - 500000
  - 600000
  - 700000
  - 800000
  - 900000
  - 1000000
  - 1100000
  - 1200000
  - 1300000
  - 1400000
  - 1500000
  - 1600000
  - 1700000
  - 1800000
  - 1900000
  - 2000000
  - 2100000
  - 2200000
  - 2300000
  - 2400000
  - 2500000
  - 2600000
  - 2750000
  - 2900000
  - 3100000
  - 3400000
  - 3700000

# 经验值获取方法
# 一个获取方法配置由 trigger,multiplier,conditions,filters 组成
# multiplier 加倍触发器的触发器属性中的值,加倍后的值就是获得的经验值
xp-gain-methods:
  - id: melee_attack
    multiplier: 0.5
    conditions: [ ] # 你可以设置该获取方法需要满足一定条件后才会使用

# 宠物描述中使用的变量符
# 在描述中通过 %key% 格式使用它们,例如这里就是 %damage_multiplier%
level-placeholders:
  - id: "damage_multiplier"
    value: "%level%"

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

# 开始的数字代表的是开始显示这个等级奖励信息的等级
# 当检测到有另外一个等级可用时(例如10级将会显示这里设置的10)将会替代之前可用的信息
effects-description:
  1:
    - "&8» &8Gives a &a+%damage_multiplier%%&8 额外近战伤害"

# %rewards% 变量符显示的文本
rewards-description:
  1:
    - "&8» &8Gives a &a+%damage_multiplier%%&8 额外近战伤害"

# %level_up_messages% 变量符显示的文本
level-up-messages:
  1:
    - "&8» &8Gives a &a+%damage_multiplier%%&8 额外近战伤害"

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

# 宠物的效果
# 使用 %level% 来表示宠物等级的变量符
effects:
  - id: damage_multiplier
    args:
      multiplier: "%level% * 0.01 + 1"
    triggers:
      - melee_attack
      
# 宠物效果能够激活的条件
# 你仍可以使用 %level% 变量符
conditions: [ ]

# 宠物实体的材质
# 如果你使用 ModelEngine,请使用 modelengine:id 格式
entity-texture: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTA5NWZjYzFlM2Q3Y2JkMzUwZjE5YjM4OTQ5OGFiOGJiOTZjNjVhZDE4NWQzNDU5MjA2N2E3ZDAzM2FjNDhkZSJ9fX0="
modelengine-animation: "fly" # 如果你使用 ModelEngine,你应该指定一个动画

# 宠物在GUI内的图标
icon: player_head texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTA5NWZjYzFlM2Q3Y2JkMzUwZjE5YjM4OTQ5OGFiOGJiOTZjNjVhZDE4NWQzNDU5MjA2N2E3ZDAzM2FjNDhkZSJ9fX0=

# 宠物生成蛋
spawn-egg:
  enabled: true # If the pet should have a spawn egg
  item: blaze_spawn_egg unbreaking:1 hide_enchants
  name: "&6Tiger&f Pet Spawn Egg"
  lore:
    - ""
    - "&8&oPlace on the ground to"
    - "&8&ounlock the &r&6Tiger&8&o pet!"
  craftable: false
  recipe: [ ]
  # recipe-permission: ecopets.craft.tiger
上一页指令和权限节点下一页指令和权限节点

最后更新于1年前

这有帮助吗?