mirror of
https://github.com/minetest-mods/craftguide.git
synced 2025-06-28 22:26:28 +02:00
Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
4fb4fe1763 | |||
98a652259b | |||
a8ad0435fa | |||
41021895ce | |||
abd9274798 | |||
e16c23c29c | |||
90adfb42c1 | |||
c32feb44fc | |||
36878ce9a0 | |||
8b5de4f7f7 | |||
9e3997c689 | |||
ce74f49773 | |||
fb4805ccf0 | |||
2d332913c5 |
@ -9,6 +9,7 @@ read_globals = {
|
|||||||
"vector",
|
"vector",
|
||||||
"string",
|
"string",
|
||||||
"table",
|
"table",
|
||||||
|
"ItemStack",
|
||||||
}
|
}
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
|
52
API.md
52
API.md
@ -35,7 +35,7 @@ craftguide.register_craft({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
Recipes can also be registered in a Minecraft-like way:
|
Recipes can be registered in a Minecraft-like way:
|
||||||
|
|
||||||
```Lua
|
```Lua
|
||||||
craftguide.register_craft({
|
craftguide.register_craft({
|
||||||
@ -53,6 +53,47 @@ craftguide.register_craft({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Multiples recipes can also be registered:
|
||||||
|
|
||||||
|
```Lua
|
||||||
|
craftguide.register_craft({
|
||||||
|
{
|
||||||
|
result = "default:mese",
|
||||||
|
items = {
|
||||||
|
"default:mese_crystal, default:mese_crystal",
|
||||||
|
"default:mese_crystal, default:mese_crystal",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
result = "default:mese 2",
|
||||||
|
items = {
|
||||||
|
"default:mese_crystal, default:mese_crystal",
|
||||||
|
"default:mese_crystal, default:mese_crystal",
|
||||||
|
"default:mese_crystal, default:mese_crystal",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
big = {
|
||||||
|
result = "default:mese 4",
|
||||||
|
items = {
|
||||||
|
"default:mese_crystal, default:mese_crystal",
|
||||||
|
"default:mese_crystal, default:mese_crystal",
|
||||||
|
"default:mese_crystal, default:mese_crystal",
|
||||||
|
"default:mese_crystal, default:mese_crystal",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
|
Recipes can be registered via an URL (HTTP support is required¹):
|
||||||
|
|
||||||
|
```Lua
|
||||||
|
craftguide.register_craft({
|
||||||
|
url = https://raw.githubusercontent.com/minetest-mods/craftguide/master/test.json
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Recipe filters
|
### Recipe filters
|
||||||
@ -168,3 +209,12 @@ You can add a stereotype like so:
|
|||||||
```Lua
|
```Lua
|
||||||
craftguide.group_stereotypes.radioactive = "mod:item"
|
craftguide.group_stereotypes.radioactive = "mod:item"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### `craftguide.http_post_data`
|
||||||
|
|
||||||
|
If set, the mod will export all the cached recipes and usages in a JSON format
|
||||||
|
to the given URL (HTTP support is required¹).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**¹** Add `craftguide` to the `secure.http_mods` or `secure.trusted_mods` setting in `minetest.conf`.
|
||||||
|
@ -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
|
Love this mod? Donations are appreciated: https://www.paypal.me/jpg84240
|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
|
@ -5,6 +5,8 @@ Crafting Guide=
|
|||||||
Crafting Guide Sign=
|
Crafting Guide Sign=
|
||||||
Usage @1 of @2=
|
Usage @1 of @2=
|
||||||
Recipe @1 of @2=
|
Recipe @1 of @2=
|
||||||
|
No recipes=
|
||||||
|
No usages=
|
||||||
Burning time: @1=
|
Burning time: @1=
|
||||||
Cooking time: @1=
|
Cooking time: @1=
|
||||||
Replaced by @1 on smelting=
|
Replaced by @1 on smelting=
|
||||||
@ -19,15 +21,8 @@ No item to show=
|
|||||||
Collect items to reveal more recipes=
|
Collect items to reveal more recipes=
|
||||||
Show recipe(s) of the pointed node=
|
Show recipe(s) of the pointed node=
|
||||||
No node pointed=
|
No node pointed=
|
||||||
You don't know a recipe for this node=
|
You don't know a recipe or usage for this item=
|
||||||
You don't know an usage for this node=
|
No recipe or usage for this item=
|
||||||
No recipe or usage for this node=
|
Digging=
|
||||||
Node=
|
Digging Chance=
|
||||||
Entity=
|
@1 of chance to drop=
|
||||||
Craftitem=
|
|
||||||
Tool=
|
|
||||||
Name=
|
|
||||||
Type=
|
|
||||||
Groups=
|
|
||||||
Unknown=
|
|
||||||
None=
|
|
||||||
|
Reference in New Issue
Block a user