... | @@ -67,18 +67,19 @@ example_enchant: |
... | @@ -67,18 +67,19 @@ example_enchant: |
|
```
|
|
```
|
|
|
|
|
|
### MinCost and MaxCost
|
|
### MinCost and MaxCost
|
|
Sets the minimum cost for this enchantment in Enchanting Table.
|
|
Sets the minimum or maximun XP cost for this enchantment in Enchanting Table.
|
|
|
|
The final cost is calculated using the formula `base + additionalPerLevel * (level - 1)`.
|
|
```yaml
|
|
```yaml
|
|
example_enchant:
|
|
example_enchant:
|
|
Display: "<red>Burning</red>"
|
|
Display: "<red>Burning</red>"
|
|
MaxLevel: 3
|
|
MaxLevel: 3
|
|
Weight: 200
|
|
Weight: 200
|
|
MinCost:
|
|
MinCost:
|
|
Base: 1 # The cost at enchantment level 1
|
|
Base: 10
|
|
AdditionalPerLevelCost: 0 # Added to the base cost per level over 1
|
|
AdditionalPerLevelCost: 5
|
|
MaxCost:
|
|
MaxCost:
|
|
Base: 3 # The cost at enchantment level 1
|
|
Base: 20
|
|
AdditionalPerLevelCost: 4 # Added to the base cost per level over 1
|
|
AdditionalPerLevelCost: 5
|
|
```
|
|
```
|
|
|
|
|
|
### AnvilCost
|
|
### AnvilCost
|
... | | ... | |