Compare commits
56 Commits
Author | SHA1 | Date | |
---|---|---|---|
34231e01df | |||
2d6951cd0c | |||
df21df2bce | |||
5669bcdcb7 | |||
3ad05328bf | |||
7793019357 | |||
a97c0b96b3 | |||
63769603c4 | |||
189a3ff971 | |||
ca723202d6 | |||
a3e7031c04 | |||
5fc7e7c087 | |||
aa61333ee3 | |||
e2cdfc28b0 | |||
aa9f7d6da3 | |||
d87c64618c | |||
3455257df5 | |||
251a8b1bc9 | |||
4dd40e06f5 | |||
f9f9988868 | |||
dcb479dc44 | |||
82bb95387e | |||
8626584dbd | |||
f7ccd282be | |||
c9773f1ee9 | |||
001176b124 | |||
2c2dbc9efc | |||
24d8faec59 | |||
58b2f49c8c | |||
a823a200b7 | |||
3c3733a226 | |||
55f919ab8f | |||
937b40aae4 | |||
97036d9f9a | |||
17a8c5ddd8 | |||
9fb5a93b2b | |||
00a79d26e5 | |||
303aa3ef91 | |||
89059f20b6 | |||
0d2af529ef | |||
7a7bb8dc51 | |||
4241c89c17 | |||
70d38d1c63 | |||
92c5b1ab8e | |||
62d2b302ed | |||
8b4ef8a4b7 | |||
35b2ecfdc1 | |||
edbed14d9b | |||
4e4cb0625c | |||
77dbe040b8 | |||
d6bd17f6b3 | |||
b12502a7da | |||
e707db9ab9 | |||
270dc19ec1 | |||
c9c2bf03de | |||
ee1eac039e |
18
API.md
@ -5,6 +5,9 @@
|
||||
Custom recipes are nonconventional crafts outside the main crafting grid.
|
||||
They can be registered in-game dynamically and have a size beyond 3x3 items.
|
||||
|
||||
**Note:** the registration format differs from the default registration format in everything.
|
||||
The width is automatically calculated depending where you place the commas. Look at the examples attentively.
|
||||
|
||||
#### Registering a custom crafting type (example)
|
||||
|
||||
```Lua
|
||||
@ -65,15 +68,6 @@ craftguide.register_craft({
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
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 = {
|
||||
@ -86,11 +80,11 @@ craftguide.register_craft({
|
||||
})
|
||||
```
|
||||
|
||||
Recipes can be registered via an URL (HTTP support is required¹):
|
||||
Recipes can be registered from a given URL containing a JSON file (HTTP support is required¹):
|
||||
|
||||
```Lua
|
||||
craftguide.register_craft({
|
||||
url = https://raw.githubusercontent.com/minetest-mods/craftguide/master/test.json
|
||||
url = "https://raw.githubusercontent.com/minetest-mods/craftguide/master/test.json"
|
||||
})
|
||||
```
|
||||
|
||||
@ -210,7 +204,7 @@ You can add a stereotype like so:
|
||||
craftguide.group_stereotypes.radioactive = "mod:item"
|
||||
```
|
||||
|
||||
#### `craftguide.http_post_data`
|
||||
#### `craftguide.export_url`
|
||||
|
||||
If set, the mod will export all the cached recipes and usages in a JSON format
|
||||
to the given URL (HTTP support is required¹).
|
||||
|
@ -3,7 +3,7 @@ License of source code
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015-2019 Jean-Patrick Guerrero and contributors.
|
||||
Copyright (c) 2015-2020 Jean-Patrick Guerrero and contributors.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -21,3 +21,6 @@ Show recipe(s) of the pointed node=Mostra la ricetta del nodo puntato
|
||||
No node pointed=Nessun nodo puntato
|
||||
You don't know a recipe for this node=Non conosci una ricetta per questo nodo
|
||||
No recipe for this node=Nessuna ricetta per questo nodo
|
||||
Digging=Scavando
|
||||
Digging Chance=Probabilità di scavare
|
||||
@1 of chance to drop=@1 di probabilità di rilascio
|
||||
|
@ -2,4 +2,7 @@
|
||||
craftguide_progressive_mode (Progressive Mode) bool false
|
||||
|
||||
# Integration in the default Minetest Game inventory.
|
||||
craftguide_sfinv_only (Sfinv only) bool false
|
||||
craftguide_sfinv_only (Sfinv only) bool false
|
||||
|
||||
# Display the cache-building progress bar in the server console.
|
||||
craftguide_enable_cache_progress_bar (Enable console cache progress bar) bool true
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 5.8 KiB |
BIN
textures/craftguide_clear_icon_hover.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
textures/craftguide_fav.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
textures/craftguide_fav_off.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
textures/craftguide_fire_anim.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
textures/craftguide_furnace_anim.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
textures/craftguide_next_icon_hover.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
textures/craftguide_no.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 5.7 KiB |
BIN
textures/craftguide_search_icon_hover.png
Normal file
After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 3.5 KiB |