38 lines
496 B
Plaintext
38 lines
496 B
Plaintext
Notes
|
|
|
|
# Network
|
|
|
|
## Protocol
|
|
|
|
# Lua API integration
|
|
|
|
## HUD
|
|
```lua
|
|
local hud = LuaHUD.new()
|
|
|
|
hud:hotbar {
|
|
pos = {x = 42, y = 84},
|
|
texture = "default_hotbar.png",
|
|
slots = 8,
|
|
}
|
|
|
|
openminer:player():set_hud(hud)
|
|
```
|
|
## World
|
|
```lua
|
|
openminer:get_block(pos)
|
|
openminer:get_meta(pos)
|
|
openminer:get_inventory(pos)
|
|
```
|
|
* * *
|
|
|
|
# Old notes
|
|
|
|
• GUI Texture:
|
|
|
|
• Button: 200x20 (0;46, 0;66, 0;86)
|
|
• Hotbar: 182x22
|
|
• Selection: 24x24 (0;22)
|
|
|
|
> vim:ft=notes
|