Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 months ago
JSON representation
A PocketMine-MP plugin that lets you customize vanilla enchantment values
- Host: GitHub
- URL: https://github.com/muqsit/customvanillaenchants
- Owner: Muqsit
- License: gpl-3.0
- Created: 2022-11-13T13:55:29.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-21T11:55:07.000Z (about 2 years ago)
- Last Synced: 2024-09-30T17:22:19.704Z (3 months ago)
- Topics: config, configuration, custom, enchantment, enchants, plugin, pmmp, pocketmine-mp
- Language: PHP
- Homepage: https://poggit.pmmp.io/ci/Muqsit/CustomVanillaEnchants
- Size: 39.1 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.