From 066cad6e251dd4deeabd41b1791520b61f43ba70 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Tue, 17 Jan 2017 21:10:42 +0000 Subject: [PATCH] added mod files and readme's --- README.md | 18 +++++++++++++++ api.txt | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ description.txt | 1 + license.txt | 21 +++++++++++++++++ mod.conf | 1 + screenshot.png | Bin 0 -> 5580 bytes 6 files changed, 101 insertions(+) create mode 100644 README.md create mode 100644 api.txt create mode 100644 description.txt create mode 100644 license.txt create mode 100644 mod.conf create mode 100644 screenshot.png diff --git a/README.md b/README.md new file mode 100644 index 0000000..f75fcb4 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +Bonemeal mod [bonemeal] + +This mod adds two new items into the game, bones which can be dug from normal +dirt and bonemeal which is crafted from bones and player bone blocks. + +Bonemeal can be used on added saplings for a 1 in 2 chance to grow them quickly +as well as specified crops which are grown 1 to 4 steps at a time. Dirt can +also be clicked for random grass, flowers or registered decoration to appear. + +The api.txt document shows how to add your own saplings, crops and grasses to +the list by using one of the 3 commands included and the mod.lua file gives you +many examples by using some of the popular mods available. + +https://forum.minetest.net/viewtopic.php?f=9&t=13284 + +Changelog: + +- 0.1 - Initial release diff --git a/api.txt b/api.txt new file mode 100644 index 0000000..7e51368 --- /dev/null +++ b/api.txt @@ -0,0 +1,60 @@ + +Bonemeal API +============ + +This guide will show you how to add saplings, crops and dirt types for the +bonemeal mod to use from withhin your own mods. Please make sure that bonemeal +appears in the depends.txt file of your mod so everything work properly. + + +Function Usage +============== + + +Adding Crops +------------ + +bonemeal:add_crop({ nodename_start, growing_steps, seed_name }) + +This command is used to add new crops for bonemeal to work on. + +e.g. + +bonemeal:add_crop({ + {"farming:cotton_", 8, "farming:seed_cotton"}, + {"farming:wheat_", 8, "farming:seed_wheat"}, +}) + + +Adding Saplings +--------------- + +bonemeal:add_sapling({ sapling_node, function, soil_type[sand, dirt, nodename] }) + +This command will add new saplings for bonemeal to grow on sand, soil or a +specified node type. + +bonemeal:add_sapling({ + {"ethereal:palm_sapling", ethereal.grow_palm_tree, "soil"}, + {"ethereal:palm_sapling", ethereal.grow_palm_tree, "sand"}, +}) + + +Adding Dirt Decoration +---------------------- + +bonemeal:add_deco({ dirt_node, {grass_node_list}, {decor_node_list} }) + +This command will add grass and decoration to specific dirt types. + +e.g. + +bonemeal:add_deco({"default:dirt_with_dry_grass", {"default:dry_grass_1", "air"}, + {"flowers:rose", "flowers:viola"} }) + + +Final Words +=========== + +I hope this guide helps you add your own plants so you can grow them quickly +with bonemeal. Please check the mods.lua for more examples. diff --git a/description.txt b/description.txt new file mode 100644 index 0000000..f85f0a2 --- /dev/null +++ b/description.txt @@ -0,0 +1 @@ +Adds bone and bonemeal giving the ability to quickly grow plants and saplings. \ No newline at end of file diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..fec6f6a --- /dev/null +++ b/license.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 TenPlus1 + +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: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of 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 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. diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..fec08dc --- /dev/null +++ b/mod.conf @@ -0,0 +1 @@ +name = bonemeal \ No newline at end of file diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..3b41ff31da757ef73cd609aee23dc2b8d376f955 GIT binary patch literal 5580 zcmW+)2{e@L7pFZfDn%+(WUH)|3}a+hwi(MacMifG*tkIBtmYA{)!_2gj zk4WCJq#2uQCCyvDMjFY2+@md0)Ewv8uWfBS|9SSAebl^DVypyD z#fmLfSI_~JsWLTa!zL)6rp*2WuTBbU$K6v%KgXjLRuG$d^{Wv@&oAlM;zm>rsDft4 zIW)dk<f$Hd}k-e3m!Ip$m$y4G_ z*PKi`Ah%?}%6@QFo+MwwO+t7SUD!D}2KI>;HVOa@!09XyG%ok}>Du{SKwXu&PM}bQ z6kbj13Hm63rB&fY)apJofLI~fZP*=*L$6=iVvgsu3RXnHENw?6UaSesB&7>(Z*Y`V z>29)x6{oXmZEm{Ne&ns6^AkQ2|oRKA{hgC<-UH=!N4nW>Phwo6<4*}?SBUs&&NtlS5*0!sLW=iyI3s%Od z;Yy^Qiz*p9?;exo6ia1W3AhVTrrKXGwzfK?0y&NDyE|GXXT~i$<7E+Uc#lEKDkaER z2(7^myVWeQ|D@65prmKz`E_tj)qM6XU@o!An8I&?ias0-$z{dCA^*fPnK^8OJ3w{9 zL7DUyocQ@J6)NFXk8|H`R1(C;DWVXNQ$^1Xk)ti4tIa?}#y_hSQ&nVT{f zD}3Z(x-MBx_6oi~Ti^uBOS^-nTqk}ElWR=s$2(Db=U015k)}&_yV+YYhGc^CkSy-RLE~I$IIkBUv*4i0=CJdnwGpL2c7cVoY6Xew_gk2l0 zGXYzjR>iB;iDrpHqLxECy|Uk;|SHY})WA^v8sHmN`NJ5{^) z?mdL@hFr@Cw%2Za&zpigxmTV%Gw8lbM0gJ}5jpLBdJb%xwi^5DOokJ^FggOB_aU+O zRD}6Oub++`hn^Jec$RF>Zn6&;Rk8%{Ktb;2Xepq4FG6qOW{fd+TT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