Move effects into the modding api

This commit is contained in:
2026-10-02 11:53:44 -03:00
parent 4309c700d2
commit e5dcb97643
33 changed files with 458 additions and 109 deletions
+2 -2
View File
@@ -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