> For the complete documentation index, see [llms.txt](https://3504743864.gitbook.io/oraxen-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://3504743864.gitbook.io/oraxen-wiki/pei-fang-she-zhi/oraxen-ji-chu-ji-neng.md).

# Oraxen 基础技能

## 其他

### 耐久值

这允许你改变用Oraxen创建的物品的耐久

Minecraft 并不是为了处理这种修改而制作的，这就是为什么这个机制并不完美

你不会看到你的物品上对的耐久性，它只是作为一个百分比工作

这意味着，比如你在木镐的基础上创建了一个稿子（默认有59的耐久度），你把它改成5900，你的物品上还是会看到59的耐久度，但你需要打破100块才能失去一点耐久度

最酷的是，显示的耐久条形图会正确更新

#### 物品配置

有两个选项：比率和固定数值

你只能将这两个选项中的一个放在同一个物品上

Ratio(比率)可以让你修复物品的百分比(0.15会修复最大耐久度的15%，而1.0会修复到100%)

固定数值（修复量）可以修复物品的固定耐久度（例如，如果你想给你的物品增加10点耐久度，就放10）

```yaml
durability:
  value: 5000 #钻石剑默认为1561
```

### 修理

这个机制允许你使用一个物品来修复另一个物品(使用Oraxen 物品)

普通情况下，这个机制是绑定在铁、金和钻石齿轮上的。

要使用它们，你只需要打开背包用铁、金和钻石齿轮点击你想要修复的物品

#### 物品配置

```yaml
repair:
  ratio: 0.10 # 10%
  fixed_amount: 10 # 或10点耐久度
```

#### 全局配置

如果你启用了oraxen\_durability\_only，这个机制将只适用于使用Oraxen耐久机制的物品

```yaml
repair:
  enabled: true
  oraxen_durability_only: false
```

### 命令

这允许你执行命令（作为控制台、玩家或OP）

如果这个选项通常不是最耀眼的，但它的优点是简化了很多事情。

你可以使用延迟来达到命令的执行，检查玩家是否有特定的权限，并使用该项目（当命令执行时，可以理解为减少其数量）

```yaml
commands:
  delay: 5 # 示例延迟（秒）。这是可选的
  permission: "my.awesome.perm" # 需要的权限。这是可选的
  oneUsage: true # 使用时金额是否应该减少？默认：false
  console:
    # 如：杀死玩家
    - "kill %p%"
  player:
    # 如：回到重生点
    - "spawn"
  opped_player:
    # 如：玩家给自己一把钻石剑
    - "give diamond_sword 1"
```

### 药水效果

这允许你将药水效果绑定到盔甲（或帽子）上，这样当你装备它时，你会得到药水的效果

#### 物品配置

这是所有可用[药剂效果](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html)类型的列表

```yaml
potioneffects:
  night_vision: # 药水效果类型
    amplifier: 0
    ambient: true # 使药水效果产生更多的，半透明的，粒子。
    particles: true # 这种效果是否有粒子
    icon: true # 这个效果是否有图标
```

### 方块

这个机制可以让你把一个物品当做方块使用。由于它是一个相当特殊的机制，它有其专门的教程页面

### 帽子

你想创造一顶帽子吗？使用这个机制，你就可以把任何物品戴在头上

#### 物品配置

```yaml
hat:
  enabled: true
```

### 可换皮肤的

使用了这个机制，你可以改变一个物品的材质

#### 物品配置

```yaml
skinnable: {}
```

### 皮肤

该机制将允许物品成为皮肤的|可换皮肤的机制，皮肤和可换皮肤的物品必须有相同的材料来应用该材质

#### 物品配置

```yaml
skin: 
  consume: true #消耗1件皮肤
```

## 战斗

### 闪电

你是否曾梦想过能扔出闪电？这是为你准备的

#### 物品配置

```yaml
 thor:
   lightning_bolts_amount: 5
   random_location_variation: 1.5
   delay: 20000 # 毫秒 (20000ms = 20s)
```

* **lightning\_bolts\_amount**: 会产生多少闪电？
* **random\_location\_variation**: 螺栓间(?)的随机变化范围(方块)
* **delay**: 使用间隔延迟（毫秒） (1000ms = 1s)

### 吸血

当你打到对手时，想吸取对面的生命值吗？

#### 物品配置

```yaml
lifeleech:
  amount: 2 # 你将给对手的1/2生命值的数量
```

### 能量爆炸

能量爆炸是一个非常酷的机制，它可以制造一个粒子群来攻击任何的实体

#### 物品配置

```yaml
energyblast:
  delay: 20000
  length: 5
  damage: 10.0
  particle:
    type: REDSTONE #只有红石粒子才可以改变大小和颜色。
    size: 1
    color:
      red: 0
      green: 255
      blue: 255
```

### 凋零骷髅头

右键来发射凋零骷髅头

#### 物品配置

```yaml
witherskull:
  charged: false #骷髅头可以破坏方块
  delay: 3000 #毫秒 (3000毫秒 = 3秒)
```

## 耕种

### 收获

收割时可以在一定半径范围内自动重种上小麦

#### 物品配置

```yaml
harvesting:
  radius: 5 # 围绕着被点击的方块数
  height: 3 # 高度
```

### 大范围挖矿

大范围挖矿允许你同时开采不同的方块

普通情况下，这个机制是用在锤子上的，它能允许你开采3x3范围和更多的方块

#### 物品配置

```yaml
bigmining:
  radius: 1 # 挖的范围
  depth: 1
```

### 冶炼

冶炼可以让你在开采铁矿和金矿的时候，瞬间冶炼，这样就不用去使用熔炉去浪费碳了!

#### 物品配置

```yaml
smelting:
  enabled: true
  play_sound: true
```

### 经验转换经验瓶

这样就可以将你的经验转化为经验瓶，点击右键即可

你可以配置一个转化的百分比

#### 物品配置

该比率对应于一个经验转化为一个的经验瓶数量

```yaml
bottledexp:
  ratio: 0.95 # 所以，你会损失1/20的经验，因为你把经验换成了经验瓶
```

#### 全局配置

```yaml
bottledexp:
  enabled: true
  durability_cost: 1
```

### 无法破坏

{% hint style="danger" %}
这个机制依赖于ProtocolLib，如果你不能使用ProtocolLib，你需要禁用它
{% endhint %}

#### 物品配置

延时是指挖取开始前的时间，周期是指挖取切换之间的时间，概率是指获得基岩的几率百分比（0.10代表10%，0.5代表50%或1.0代表100%）

```yaml
bedrockbreak:
  delay: 0
  period: 10
  probability: 1
```

#### 全局配置

如果你把disable\_on\_first\_layer设置为true，你的玩家将无法再破坏基岩（第0层），durability\_cost是你设置的物品bedrockbreak的耐久度

```yaml
bedrockbreak:
  enabled: true
  disable_on_first_layer: false
  durability_cost: 500
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://3504743864.gitbook.io/oraxen-wiki/pei-fang-she-zhi/oraxen-ji-chu-ji-neng.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.
