This commit is contained in:
2026-10-06 17:59:21 +02:00
parent 9226c1cd87
commit f2d09b8a9c
10 changed files with 220 additions and 24 deletions

View File

@@ -1,5 +1,16 @@
# codecraft
Players write Lua in the in-game editor (`J` by default) and run it on the server.
Scripts can place and remove blocks through the `world` table:
```lua
for y = 64, 67 do
world.set_block(10, y, -3, "minecraft:cobblestone")
end
```
The API is documented in [docs/lua-api.md](docs/lua-api.md).
## Setup
For setup instructions, please see the [Fabric Documentation page](https://docs.fabricmc.net/develop/getting-started/creating-a-project#setting-up) related to the IDE that you are using.