Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/muqsit/customvanillaenchants

A PocketMine-MP plugin that lets you customize vanilla enchantment values
https://github.com/muqsit/customvanillaenchants

config configuration custom enchantment enchants plugin pmmp pocketmine-mp

Last synced: 3 days ago
JSON representation

A PocketMine-MP plugin that lets you customize vanilla enchantment values

Awesome Lists containing this project

README

        

# CustomVanillaEnchants
[![](https://poggit.pmmp.io/shield.state/CustomVanillaEnchants)](https://poggit.pmmp.io/p/CustomVanillaEnchants)

CustomVanillaEnchants lets you configure value expressions for registered enchantments.

## How to Use
Run `/cve list` in console or in-game.
```
> cve list
/cve list
Available Enchantments: blast_protection, feather_falling, fire_aspect, fire_protection, knockback, projectile_protection, protection, sharpness
```

To view configurable entries of the knockback enchantment, run `/cve list knockback`.
```
> cve list knockback
Enchantment ("knockback") Configuration
damage_bonus: 0
force: level * 0.5
```

To change knockback enchantment's `force` value to `level * 0.35`, run `/cve set knockback force level * 0.35`.
```
> cve set knockback force level * 0.35
Updated configuration for knockback->force
Outdated Value: level * 0.5
Updated Value: level * 0.35
```

`default` can be used as a placeholder for the configuration's default value. For example, `/cve set knockback force default * 2` sets knockback's force value to `level * 0.5 * 2` (= `level`). To reset knockback enchantment's `force` to its default value, run `/cve reset knockback force`.

Changes take place right away, a server restart is not required. See the [arithmexp wiki](https://github.com/Muqsit/arithmexp/wiki) for a list of [constants](https://github.com/Muqsit/arithmexp/wiki/Constant#list-of-pre-defined-constants), [functions](https://github.com/Muqsit/arithmexp/wiki/Function#list-of-available-functions), and [operators](https://github.com/Muqsit/arithmexp/wiki/Operator) that can be used in expressions.