Compare commits

...

29 Commits
1.1 ... 1.3.1c

Author SHA1 Message Date
d1ee125a1a Remove erroneous quotation marks 2019-01-04 02:19:29 +01:00
b980dccaee Use of string.format instead of concat 2019-01-02 18:57:35 +01:00
4c02a5e5f5 Merge pull request #41 from pauloue/fixes2
Fix two bugs
2019-01-02 12:27:12 +01:00
f8b7a72635 Fix alternate button not working in some cases 2019-01-02 01:11:08 -05:00
1034fd7c0e Fix repeated clicks of same item not toggling usages mode 2019-01-02 00:35:21 -05:00
4bca02f0db Add assertions 2018-12-30 21:52:13 +01:00
4b97b08aa7 Variable naming 2018-12-30 21:22:01 +01:00
7745ccd863 Not really important 2018-12-30 21:10:39 +01:00
65b51ad3e5 Do not alternate if X > 1 2018-12-30 21:00:04 +01:00
897fc3a21d Show usages for fuel-able items with no recipes 2018-12-30 20:43:26 +01:00
e1eedb69bb Minor optimization 2018-12-19 18:36:09 +01:00
f188580b8c Correct checking 2018-12-17 22:48:53 +01:00
783a84d3c6 Define custom recipe's width inside craft declaration 2018-12-17 19:17:43 +01:00
74a2750a4d Fix tooltip 2018-12-17 01:14:55 +01:00
9da500ce2c ... and make the other functions local 2018-12-17 01:02:51 +01:00
610117de08 Make craftguide a global var 2018-12-17 00:38:58 +01:00
53833af635 Add an API for custom recipes 2018-12-17 00:37:49 +01:00
b2a7f5430a Add a /craft command to show recipe of pointed node 2018-12-13 20:31:45 +01:00
0b4f202ffb New icons 2018-11-25 16:08:20 +01:00
eff2fa82f3 Fix custom recipes since latest commit 2018-11-18 20:52:00 +01:00
8630fccaea More alignment 2018-11-18 20:06:45 +01:00
4d4e8f7d50 Rotate arrow images 2018-11-18 18:40:58 +01:00
6d3f8ce32a Fix cooktime tooltip 2018-11-18 18:26:09 +01:00
ed861ea1b9 Formspec improvements (fixes #39) 2018-11-17 18:24:12 +01:00
44ebb84e89 Fix the usage' tooltip again (thanks @Ezhh) 2018-11-13 20:15:34 +01:00
5fce8ddbda Minor edits 2018-11-12 23:56:11 +01:00
39ed2c2c45 Support for sfinv! 2018-11-11 22:58:26 +01:00
8b309106c3 Various fixes 2018-11-11 19:35:28 +01:00
9625542468 Fix reverse mode + misc. things 2018-11-11 14:19:52 +01:00
14 changed files with 771 additions and 363 deletions

View File

@ -4,5 +4,7 @@ allow_defined_top = true
read_globals = { read_globals = {
"minetest", "minetest",
"default", "default",
"sfinv",
"sfinv_buttons", "sfinv_buttons",
"vector",
} }

38
LICENSE
View File

@ -1,4 +1,7 @@
« Copyright © 2015-2017, Jean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com> License of source code
----------------------
« Copyright © 2015-2018, Jean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
@ -7,3 +10,36 @@ The above copyright notice and this permission notice shall be included in all c
The Software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders X be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the Software. The Software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders X be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the Software.
Except as contained in this notice, the name of the <copyright holders> shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the <copyright holders>. » Except as contained in this notice, the name of the <copyright holders> shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the <copyright holders>. »
Licenses of media (textures)
----------------------------
Copyright © Diego Martínez (kaeza): craftguide_*_icon.png (CC BY-SA 3.0)
You are free to:
Share — copy and redistribute the material in any medium or format.
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
The licensor cannot revoke these freedoms as long as you follow the license terms.
Under the following terms:
Attribution — You must give appropriate credit, provide a link to the license, and
indicate if changes were made. You may do so in any reasonable manner, but not in any way
that suggests the licensor endorses you or your use.
ShareAlike — If you remix, transform, or build upon the material, you must distribute
your contributions under the same license as the original.
No additional restrictions — You may not apply legal terms or technological measures that
legally restrict others from doing anything the license permits.
Notices:
You do not have to comply with the license for elements of the material in the public
domain or where your use is permitted by an applicable exception or limitation.
No warranties are given. The license may not give you all of the permissions necessary
for your intended use. For example, other rights such as publicity, privacy, or moral
rights may limit how you use the material.
For more details:
http://creativecommons.org/licenses/by-sa/3.0/

View File

@ -1,14 +1,38 @@
## ![Preview1](http://i.imgur.com/fIPNYkb.png) Crafting Guide ## ## ![Preview1](http://i.imgur.com/fIPNYkb.png) Crafting Guide ##
#### A Crafting Guide for Minetest that doesn't suck. #### #### `craftguide` is the most comprehensive crafting guide on Minetest. ####
#### Consult the [Minetest Wiki](http://wiki.minetest.net/Crafting_guide) for more details. ####
#### `craftguide` is the most comprehensive mod of its category. #### This crafting guide is a blue book named *"Crafting Guide"* or a wooden sign.
#### Consult the [Minetest Wiki](http://wiki.minetest.net/Crafting_guide) for more details and comparisons. ####
#### This crafting guide is usable with a blue book named *"Crafting Guide"*. #### This crafting guide features a **progressive mode**.
The progressive mode is a Terraria-like system that only shows recipes you can craft from items in inventory.
#### This crafting guide features two modes : Standard and Progressive. ####
The Progressive mode is a Terraria-like system that only shows recipes you can craft from items in inventory.
The progressive mode can be enabled with `craftguide_progressive_mode = true` in `minetest.conf`. The progressive mode can be enabled with `craftguide_progressive_mode = true` in `minetest.conf`.
![Preview2](http://i.imgur.com/3q7rVSo.png) `craftguide` is also integrated in `sfinv` (Minetest Game inventory) when you enable it with
`craftguide_sfinv_only = true` in `minetest.conf`.
Use the command `/craft` to show the recipe(s) of the pointed node.
---
`craftguide` has an API to register **custom recipes**. Demos:
#### Registering a custom crafting type ####
```Lua
craftguide.register_craft_type("digging", {
description = "Digging",
icon = "default_tool_steelpick.png",
})
```
#### Registering a custom crafting recipe ####
```Lua
craftguide.register_craft({
type = "digging",
width = 1,
output = "default:cobble 2",
items = {"default:stone"},
})
```
![Preview2](https://i.imgur.com/bToFH38.png)

View File

@ -1,2 +1,3 @@
sfinv?
sfinv_buttons? sfinv_buttons?
intllib? intllib?

1049
init.lua

File diff suppressed because it is too large Load Diff

4
settingtypes.txt Normal file
View File

@ -0,0 +1,4 @@
#For enabling some options of craftguide.
craftguide_progressive_mode (Progressive Mode) bool false
craftguide_sfinv_only (Sfinv only) bool false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 727 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 B

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB