Move effects into the modding api
This commit is contained in:
@@ -103,8 +103,8 @@ sends players their `attack_speed` whenever it changes so the bar matches.
|
||||
|
||||
## Status Effects
|
||||
|
||||
Players have some of Minecraft's status effects: `bworld:speed`, `bworld:slowness`, `bworld:regeneration`,
|
||||
`bworld:poison`, `bworld:instant_health`, `bworld:resistance` and `bworld:water_breathing`.
|
||||
Players can have any mod's [status effects](effects.md), like the base game's `bworld:speed`, `bworld:regeneration` or
|
||||
`bworld:water_breathing`.
|
||||
|
||||
```ts
|
||||
player.add_effect("bworld:regeneration", 100, { amplifier: 1 }); // regeneration II for 5 seconds
|
||||
|
||||
Reference in New Issue
Block a user