[craft_guide] Update files & information:

- Add 'LICENSE' & 'README.md'
- Copy 'api_craft_guide.lua' from latest commit
- Add version information to README
This commit is contained in:
AntumDeluge 2017-05-04 19:26:46 -07:00
parent cd101b2c0b
commit 6303e75b5a
4 changed files with 81 additions and 3 deletions

View File

@ -26,7 +26,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
* [away][] ([GPL](mods/chat/away/COPYING))
* [chatlog][] ([CC0](mods/chat/chatlog/Readme.txt))
* crafting/
* [craft_guide][] ([BSD 3-Clause](mods/crafting/craft_guide/LICENSE))
* [craft_guide][] ([BSD 3-Clause][lic.craft_guide]) -- version: [20520b5 git][ver.craft_guide] 2017-01-30
* [craftguide][] ([GPL / WTFPL](mods/crafting/craftguide/LICENSE)) Installed version: [51a00b9][craftguide version] (Git)
* [currency][] ([WTFPL](https://forum.minetest.net/viewtopic.php?t=7002)) [Git d2ea7c3](https://github.com/minetest-mods/currency/tree/d2ea7c352ada7646e019f55a365a506d132f301a)
* farming/
@ -317,6 +317,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[lic.character_creator]: mods/player_visuals/character_creator/license.txt
[lic.cme]: mods/mp_cme/LICENSE.txt
[lic.coloredwood]: mods/wood/coloredwood/LICENSE
[lic.craft_guide]: mods/crafting/craft_guide/LICENSE
[lic.creeper]: mods/mobs_aggressive/creeper/LICENSE.md
[lic.ethereal]: mods/world/ethereal/license.txt
[lic.helicopter]: mods/transport/helicopter/LICENSE
@ -351,6 +352,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[ver.character_creator]: https://github.com/Rui-Minetest/character_creator/tree/6a0e6aa
[ver.cme]: https://github.com/BlockMen/cme/tree/e3502a1
[ver.coloredwood]: https://github.com/minetest-mods/coloredwood/tree/fc4ab15
[ver.craft_guide]: https://github.com/cornernote/minetest-craft_guide/tree/20520b5
[ver.creeper]: https://github.com/Rui-Minetest/creeper/tree/036666e
[ver.ethereal]: https://github.com/tenplus1/ethereal/tree/d0b896e
[ver.helicopter]: https://github.com/SokolovPavel/helicopter/tree/10f1433

View File

@ -0,0 +1,32 @@
Copyright (c) 2013, Brett O'Donnell http://cornernote.github.io
All rights reserved.
_____ _____ _____ _____ _____ _____
| |___| __ | | |___| __ | | |___|_ _|___
| --| . | -| | | | -_| -| | | | . | | | | -_|
|_____|___|__|__|_|___|___|__|__|_|___|___| |_| |___|
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
* Neither the name of the organization nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -0,0 +1,44 @@
# Craft Guide for Minetest
[![home](https://img.shields.io/badge/craft_guide-home-blue.svg?style=flat-square)](http://cornernote.github.io/minetest-craft_guide)
[![download](https://img.shields.io/github/tag/cornernote/minetest-craft_guide.svg?style=flat-square&label=release)](https://github.com/cornernote/minetest-craft_guide/archive/master.zip)
[![git](https://img.shields.io/badge/git-project-green.svg?style=flat-square)](https://github.com/cornernote/minetest-craft_guide)
[![forum](https://img.shields.io/badge/minetest-mod-green.svg?style=flat-square)](https://forum.minetest.net/viewtopic.php?t=2334)
[![bower](https://img.shields.io/badge/bower-mod-green.svg?style=flat-square)](https://minetest-bower.herokuapp.com/mods/craft_guide)
## Description
Provides items that will show you how to craft any craftable or cookable item.
## Features
- Provides craftable items that can be placed.
- Placed items open like a chest, but instead of containing items, it contains a list of craftable items .
- Items can be dragged into the `Output` slot, and the craft recipe will be displayed.
## Project Resources
* [Home](http://cornernote.github.io/minetest-craft_guide)
* [Download](https://github.com/cornernote/minetest-craft_guide/archive/master.zip)
* [Project](https://github.com/cornernote/minetest-craft_guide)
* [Forum](https://forum.minetest.net/viewtopic.php?t=2334)
* [Bower](https://minetest-bower.herokuapp.com/mods/craft_guide)
*
## Support
- Does this README need improvement? Go ahead and [suggest a change](https://github.com/cornernote/minetest-craft_guide/edit/master/README.md).
- Found a bug, or need help using this project? Check the [open issues](https://github.com/cornernote/minetest-craft_guide/issues) or [create an issue](https://github.com/cornernote/minetest-craft_guide/issues/new).
## About
This module is open source, so it's distributed freely. If you find it useful then I ask not for your wealth, but simply to spare your time to consider the world we share by watching [Earthlings](http://earthlings.com/), a multi-award winning film available to watch online for free. A must-see for anyone who wishes to make the world a better place.
## License
[BSD-3-Clause](https://raw.github.com/cornernote/minetest-craft_guide/master/LICENSE), Copyright © 2013-2014 [Brett O'Donnell](http://cornernote.github.io/)

View File

@ -588,7 +588,7 @@ craft_guide.on_receive_fields = function(pos, formname, fields, player)
inv:remove_item("tempinv",ItemStack(name.." "..tostring(count)))
inv:set_stack("copylist",i,ItemStack(name.." 1"))
success=true
break
break
end
end
end
@ -1832,7 +1832,7 @@ craft_guide.create_inventory = function(inv, search)
end
end
else
if craft~=nil and ((craft[1]).type~="fuel" or craft_guide.show_all_fuel_crafts) then
if craft~=nil and craft[1]~=nil and ((craft[1]).type~="fuel" or craft_guide.show_all_fuel_crafts) then
table.insert(craft_guide_list, name)
end
end