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
View File
@@ -51,6 +51,8 @@ export function setup(ctx: ServerContext) {
}
```
Items have components the same way, and so do [status effects](../entities/effects.md#effect-components).
Components can only be registered during `setup`, and only in the mod's own namespace. Once every mod's `setup` has run,
a block or item that lists a component nobody registered stops the server from starting, naming the block and the
component.