mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-29 13:53:43 +01:00
Update README + API
This commit is contained in:
parent
16ceea1aaf
commit
5446e0dbdd
11
API.md
11
API.md
@ -168,14 +168,3 @@ You can add a stereotype like so:
|
||||
```Lua
|
||||
craftguide.group_stereotypes.radioactive = "mod:item"
|
||||
```
|
||||
|
||||
#### `craftguide.background`
|
||||
|
||||
You can set a custom background theme by overriding this variable:
|
||||
|
||||
```Lua
|
||||
craftguide.background = "<file_name.png>#<middle>"
|
||||
|
||||
```
|
||||
|
||||
`middle` (number) refers to a 9-sliced background. Read the engine's Lua API documentation for more info.
|
||||
|
@ -19,4 +19,4 @@ For developers, `craftguide` also has a [modding API](https://github.com/minetes
|
||||
Love this mod? Donations are appreciated: https://www.paypal.me/jpg84240
|
||||
|
||||
|
||||
![Preview2](https://i.imgur.com/IbexMwQ.png)
|
||||
![Preview2](https://i.imgur.com/GVQvufb.png)
|
||||
|
2
init.lua
2
init.lua
@ -1791,7 +1791,7 @@ register_command("craft", {
|
||||
end
|
||||
|
||||
if not node_name then
|
||||
return false, clr("red", "[craftguide] ") .. S("No node pointed")
|
||||
return false, msg(name, S("No node pointed"))
|
||||
end
|
||||
|
||||
return true, craftguide.show(name, node_name)
|
||||
|
Loading…
Reference in New Issue
Block a user