Thing
This commit is contained in:
11
README.md
11
README.md
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user