Files
codecraft/README.md
2026-10-06 17:59:21 +02:00

21 lines
640 B
Markdown

# 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.
## License
This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.