# Config.yml教程

```yaml
# 在哪个世界炮塔不能使用
blacklisted_worlds:
- minigames
- lobby

# 当被开启时, 玩家需要complexturrets.use.<炮塔名>权限才能使用对应炮塔
per_turret_permissions: false

# 玩家可以放置的炮塔的最大数量. 你可以用complexturrets.limit.<上限>权限来提高数量
# 关闭此选项来使玩家可以放置无限多的炮塔.
turret_limit_permissions:
  enabled: true
  default_limit: 1
  
# 每个炮塔之间的最小距离（以方块格数为单位）
min_distance_between_own_turrets: 3 #自己的炮塔
min_distance_between_other_turrets: 20 #别人的炮塔

# 当玩家从炮塔菜单拆除炮塔时是否应该获得炮塔
receive_turret_on_remove: true

# 当开启时，炮塔由菜单拆除后掉落的物品会保留它原本的属性(如白名单，攻击选项等等) 
save_properties_on_remove: false

# 当炮塔由于外界原因被摧毁时是否掉落本身或弹药
# 建议将drop_ammo_on_destroy设置为false，因为有时一次性掉落大量弹药会导致卡顿
drop_turret_on_destroy: true
drop_ammo_on_destroy: false

# 当开启时，炮塔被破坏后掉落的物品会保留它原本的属性(如白名单，攻击选项等等)
save_properties_on_destroy: false

# 如果开启的话，玩家不在线炮塔不会射击.
enable_turrets_only_when_owner_is_online: false

#玩家是否只能在自己的区域放置炮塔，OP不受此选项限制
place_turrets_only_on_own_region: false

# 是否开启攻击全息图，如果你觉得开启了服务器会卡可以把它关掉
hit_holograms: true

# 信息全息图是否开启?
information_holograms: true

# 当此选项开启，即使玩家不看着炮塔，信息全息图也会显示
information_holograms_always_visible: false

# 多少刻以后攻击全息图会消失.
# 20 刻 = 1 秒
hit_holograms_disappear_time: 15

# 如果此选项开启，插件将会检查兼容的插件的盟友，比如Factions, Towny, Clans...
ally_protection: true

# 从菜单中移除白名单玩家使用的点击种类(LEFT或RIGHT).
remove_player_from_whitelist_click_type: RIGHT

# 如果开启，隐身玩家将不会被视作目标
ignore_damage_to_invisible_players: true

# 如果因为某些原因炮塔不能正确射击，开启这个选项
walls_better_check: false

# 炮塔是否能射过液体?
shoot_through_liquids: false

# 如果此选项开启，那么爆炸不会伤害到炮塔.
protect_turrets_from_explosions: false

# 如果炮塔由于外部原因被毁坏，那么是否应该掉落炮塔本身和炮塔内的弹药
drop_turret_on_destroy: true

# 生物被炮塔杀死是否应该掉落物品
block_mob_drop_on_turret_kill: false
# 定义炮塔弹药数量的默认最大上限. 必须为576的倍数 (576, 1152, 1728等等，
# 每一行物品栏可以放下576个弹药)
# 你可以在炮塔升级中自定义上限.
default_max_ammo: 2880

# 当此选项开始时, 当箭矢射到炮塔上时箭矢会彻底消失 
# 你可以将它开启，因为有一种关于箭的bug可以让炮塔被箭摧毁
remove_arrows_on_turret_damage: true

# 当开启时，粒子无论玩家距离炮塔多远都会显示
force_particles: false

# 炮塔相关的声音
# 最新版的声音: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
# 1.8的声音: https://github.com/Attano/Spigot-1.8/blob/master/org/bukkit/Sound.java
# 请使用这个格式: <声音>;<音量>;<音高>
# 如果你不需要声音，请使用: "none"
# 炮塔被毁坏播放的声音.
turret_destroy_sound: "BLOCK_ANCIENT_DEBRIS_BREAK;10;0.5"
# 炮塔升级时播放的声音.
turret_upgrade_sound: "ENTITY_PLAYER_LEVELUP;10;1.5"

# 此选项只对于有'health'(生命)属性的炮塔起效.
# 这个选项定义了炮塔由不同的伤害来源获得的伤害值
# 格式: <最小伤害>-<最大伤害>
turret_damage:
  bow: 10-15
  crossbow: 15-20
  explosions: 150-200

#此选项定义了炮塔是否能够消减玩家护甲的耐久
armor_durability:
  enabled: true
  
  # 炮塔要削减耐久最小需要的伤害
  # 注意: 此选项忽略盾牌, 所以, 如果玩家用盾牌格挡，它的护甲照样会受伤
  min_damage_to_reduce_durability: 1 
  
  # 当此选项开启，炮塔攻击玩家时会随机选择玩家的一件装备扣除耐久(比如你的护腿) 
  reduce_durability_one_armor_slot_per_hit: false

# 这个选项定义了%health_bar%变量的显示样子和actionBarTurretDamageMessage的提示信息
health_bar_placeholder:
#有血量部分的符号
  filled_symbol: "&a|"
#血量没了的部分的符号
  empty_symbol: "&c|"
#总共有多少个符号
  amount: 20
  
# 此选项定义了每隔多少秒炮塔回一次血.
health_recovery_time: 7

# 插件每隔下面定义的秒数会检查一次炮塔是否被未知原因毁坏(比如被WorldEdit移除) 
turrets_global_check_time: 5

# 每隔多少秒储存一次玩家数据
data_auto_save_time: 600

#要用在inventory.yml里的物品
# 物品属性因物品本身而异
# 你可以在每个物品上使用custom_model_data: <值>.
items:
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fireworkpolymer.gitbook.io/complexturrents/config.yml-jiao-cheng.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
