Commit Graph

28 Commits (master)

Author SHA1 Message Date
kakalak-lumberJack 0328813eb1 delete accidental
line 51
2017-01-30 19:17:14 -05:00
cornernote 178c9fdd23 changes from Miner59 2015-07-25 02:25:46 +09:30
Miner59 9bfb6f8aa3 Check if player==nil
Fixes an issue with craft guide crashing because player= nil. My own fault, because I added code which calls a function with "nil" as player.
2015-07-18 21:56:58 +02:00
Miner59 51b4cc16b7 Fix bugs
Amount of items was not shown correct sometimes. Reason was that a number was read from metadata, but metadata don't seems to update instantly so it was wrong. Reorganized code and added a minetest.after call to prevent stack overflow because of recursive function calls.
2015-07-10 14:50:34 +02:00
Miner59 5deb87173f Small mistake detected 2015-05-23 13:45:13 +02:00
Miner59 82fca93528 BUGFIX: Don't repair tools and keep metadata of items
I completely forgot that i need to preserve the wear and metadata when the crafting recipe is copied to the crafting grid.
Leads to repaired tools and lost item metadata. Should now be fixed.
2015-05-23 13:38:50 +02:00
Miner59 2d8ccdfc20 Add buttons to copy selected recipe to crafting grid
Places all items in the crafting grid if you have enough in your inventory.
2015-05-19 18:20:41 +02:00
Miner59 2292c9f6f5 Little fix 2014-12-29 18:58:36 +01:00
Miner59 18d983b708 load "you need" items from table instead of calculating again
Save items and their amounts in a table when they are requested the first time and then load it from there.
Also commented out the log output of a complete recipe because it spams logs too much.
Added a bit more comments and made search field a little bit longer.

IGNORE PREVIOUS COMMIT, I PASTED WRONG
2014-12-29 18:45:41 +01:00
Miner59 28814c6f57 load "you need" items from table instead of calculating again
Save items and their amounts in a table when they are requested the first time and then load it from there.
Also commented out the log output of a complete recipe because it spams logs too much.
Added a bit more comments and made search field a little bit longer.
2014-12-29 18:36:55 +01:00
Miner59 c97a7d6e25 Overwrite metadata from old version automatically 2014-12-25 10:21:58 +01:00
Miner59 3f63ce799c Fixed restoring of text entered in search field 2014-12-25 09:10:40 +01:00
Miner59 f7f39cc1c5 Now works with recent versions of technic mod, too
Shows recipes of machines from technic mod, too. This includes recipes for grinder, compressor, extractor, alloy furnace and centrifuge.
Should work with old and new versions of technic mod.
Also added code to better handle aliases which occur in recipes.
2014-12-24 17:23:03 +01:00
Miner59 b66d1847c8 Changed the adding of additional crafts
Additional crafts are now added to craft list when the formspec changes the first time. This seems better.
2014-12-22 02:22:18 +01:00
Miner59 79342837c0 Forgot to remove some debug log outputs 2014-12-22 01:57:29 +01:00
Miner59 7aad06f1b0 Show recipes for technic machines in craft guide & show crafts of type fuel
Shows recipes from grinder, alloy furnace, extractor, compressor and centrifuge in craft guide, if technic mod is loaded.
Not tested with newest version of technic mod at the moment!
Second, craft guide now shows crafts of type fuel (default is, to show fuel recipes only when there are other craft types for this item).
Although added some function to not display crafts with slabs, panels, microblocks, etc... added by moreblocks mod.
Fixed: search text should now stay there when craft guide is closed.
2014-12-22 01:44:19 +01:00
Miner59 8f74131967 Removes copy&paste code and some bugs were fixed
removes much copy&paste code, saving items in tables instead of inventory slots for "you need:" feature, and it includes a fix to save the text entered in search field
2014-12-19 09:20:40 +01:00
cornernote 3cc6ce707a changes from Miner59 including:
- no unknown items shown when recipes have "group:..." inside, there is then instead a button displayed which shows all items in this group when you press it.

- added a new feature to show the complete list of items you need for a item. For example: output: default:bookshelf,
then it shows: 6 "group:wood", 27 "papyrus". This feature was the most work. I hope it works, but no guarantee.(It could lead to huge for loops which it doesn't exit when recipes are very compex. Also needs to be tested which more mods.)

- you can direct change from last page to first page and from first page to last page now

- added a button to exit the formspec

- crafting recipe for craft guide changed to use group:stick

- crafting recipe for craft guide pc changed to use just the recipe with stone slabs
2014-12-16 08:34:34 +10:30
cornernote 9d9ffe1abe only send group message once per group 2014-12-14 17:04:22 +10:30
cornernote ebda7432e9 cleanup player message when removing item 2014-12-14 16:45:05 +10:30
cornernote efa5f1b616 send player a message when group was used 2014-12-14 16:36:32 +10:30
cornernote 4977325637 cleanup log output 2014-12-14 15:43:08 +10:30
cornernote adb5c88faa show an item instead of unknown if item is a group 2014-12-14 15:38:27 +10:30
Brett O'Donnell 5641fa1824 Update api_craft_guide.lua 2014-01-17 10:53:47 +10:30
Brett O'Donnell 95c4df8418 prevent stealing of items 2012-11-09 00:00:09 +10:30
Brett O'Donnell 9818f34e72 added search and removed detached inventory 2012-11-02 13:17:44 +10:30
Brett O'Donnell 604b92ea77 move buttons to the bottom 2012-09-25 13:22:16 +09:30
Brett O'Donnell 75670ece2e move files to modpack for easier install 2012-09-23 00:37:48 +09:30