Single module modding

This commit is contained in:
2026-11-14 12:18:41 -03:00
parent 605008f584
commit 313098892e
134 changed files with 919 additions and 924 deletions
+4 -4
View File
@@ -4,7 +4,7 @@ Blocks make up the world. Each kind of block is defined once, in a JSON file in
world is made of references to those definitions at different positions.
A block's definition says how it looks, how it's mined and what it drops. What it _does_ comes from
[components](components.md), which server scripts register.
[components](components.md), which server phases register.
## A Basic Block
@@ -27,7 +27,7 @@ side, takes 5 seconds to break by hand, breaks faster with a pickaxe, and only d
of tier 1 (stone or copper) or better.
A mod with many similar blocks, like every block of every kind of rock, can register them in code from a
[content script](../concepts/sides.md#content-scripts) instead, with the same object a file holds under `"block"`.
[content phase](../concepts/sides.md#content) instead, with the same object a file holds under `"block"`.
## Properties
@@ -225,8 +225,8 @@ plains' color.
## Raycasts
Server scripts find the first block on a line with `ctx.world.raycast`, like Minecraft's `Level.clip`. The fishing rod's
hook uses it to see where it lands, and with a player's
The server phase finds the first block on a line with `ctx.world.raycast`, like Minecraft's `Level.clip`. The fishing
rod's hook uses it to see where it lands, and with a player's
[`eye_position` and `look_direction`](../entities/players.md#the-player-api) it finds what they're looking at:
```ts