From 8d0e42f4f3976375afbdf6a915025e9048e11356 Mon Sep 17 00:00:00 2001 From: BrunoMine Date: Sun, 18 Jun 2017 12:15:28 -0300 Subject: [PATCH] =?UTF-8?q?Lan=C3=A7amento?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- API.txt | 7 ++ LICENSE | 116 ++++++++++++++++++++ README.md | 31 +++++- api.lua | 25 +++++ depends.txt | 1 + description.txt | 1 + diretrizes.lua | 14 +++ init.lua | 38 +++++++ melancia.lua | 86 +++++++++++++++ textures/macroplantas_arbusto_uva.png | Bin 0 -> 883 bytes textures/macroplantas_melancia.png | Bin 0 -> 603 bytes textures/macroplantas_melancia_1.png | Bin 0 -> 282 bytes textures/macroplantas_melancia_2.png | Bin 0 -> 314 bytes textures/macroplantas_melancia_3.png | Bin 0 -> 405 bytes textures/macroplantas_melancia_4.png | Bin 0 -> 552 bytes textures/macroplantas_melancia_listrado.png | Bin 0 -> 591 bytes textures/macroplantas_melancia_seed.png | Bin 0 -> 439 bytes textures/macroplantas_melancia_tampa.png | Bin 0 -> 1060 bytes textures/macroplantas_uva.png | Bin 0 -> 523 bytes uva.lua | 58 ++++++++++ 20 files changed, 376 insertions(+), 1 deletion(-) create mode 100644 API.txt create mode 100644 LICENSE create mode 100644 api.lua create mode 100644 depends.txt create mode 100644 description.txt create mode 100644 diretrizes.lua create mode 100644 init.lua create mode 100644 melancia.lua create mode 100644 textures/macroplantas_arbusto_uva.png create mode 100644 textures/macroplantas_melancia.png create mode 100644 textures/macroplantas_melancia_1.png create mode 100644 textures/macroplantas_melancia_2.png create mode 100644 textures/macroplantas_melancia_3.png create mode 100644 textures/macroplantas_melancia_4.png create mode 100644 textures/macroplantas_melancia_listrado.png create mode 100644 textures/macroplantas_melancia_seed.png create mode 100644 textures/macroplantas_melancia_tampa.png create mode 100644 textures/macroplantas_uva.png create mode 100644 uva.lua diff --git a/API.txt b/API.txt new file mode 100644 index 0000000..5fd8c16 --- /dev/null +++ b/API.txt @@ -0,0 +1,7 @@ +API de Macroplantas + +Fazer com que uma semente caia de um mato +========================================= +macroplantas.registrar_drop_comum(item, raridade) +Exemplo: +macroplantas.registrar_drop_comum('macroplantas:semente_melancia', 25) diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3bbbc1e --- /dev/null +++ b/LICENSE @@ -0,0 +1,116 @@ +CC0 1.0 Universal + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator and +subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for the +purpose of contributing to a commons of creative, cultural and scientific +works ("Commons") that the public can reliably and without fear of later +claims of infringement build upon, modify, incorporate in other works, reuse +and redistribute as freely as possible in any form whatsoever and for any +purposes, including without limitation commercial purposes. These owners may +contribute to the Commons to promote the ideal of a free culture and the +further production of creative, cultural and scientific works, or to gain +reputation or greater distribution for their Work in part through the use and +efforts of others. + +For these and/or other purposes and motivations, and without any expectation +of additional consideration or compensation, the person associating CC0 with a +Work (the "Affirmer"), to the extent that he or she is an owner of Copyright +and Related Rights in the Work, voluntarily elects to apply CC0 to the Work +and publicly distribute the Work under its terms, with knowledge of his or her +Copyright and Related Rights in the Work and the meaning and intended legal +effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not limited +to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, communicate, + and translate a Work; + + ii. moral rights retained by the original author(s) and/or performer(s); + + iii. publicity and privacy rights pertaining to a person's image or likeness + depicted in a Work; + + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + + v. rights protecting the extraction, dissemination, use and reuse of data in + a Work; + + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation thereof, + including any amended or successor version of such directive); and + + vii. other similar, equivalent or corresponding rights throughout the world + based on applicable law or treaty, and any national implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention of, +applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and +unconditionally waives, abandons, and surrenders all of Affirmer's Copyright +and Related Rights and associated claims and causes of action, whether now +known or unknown (including existing as well as future claims and causes of +action), in the Work (i) in all territories worldwide, (ii) for the maximum +duration provided by applicable law or treaty (including future time +extensions), (iii) in any current or future medium and for any number of +copies, and (iv) for any purpose whatsoever, including without limitation +commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes +the Waiver for the benefit of each member of the public at large and to the +detriment of Affirmer's heirs and successors, fully intending that such Waiver +shall not be subject to revocation, rescission, cancellation, termination, or +any other legal or equitable action to disrupt the quiet enjoyment of the Work +by the public as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason be +judged legally invalid or ineffective under applicable law, then the Waiver +shall be preserved to the maximum extent permitted taking into account +Affirmer's express Statement of Purpose. In addition, to the extent the Waiver +is so judged Affirmer hereby grants to each affected person a royalty-free, +non transferable, non sublicensable, non exclusive, irrevocable and +unconditional license to exercise Affirmer's Copyright and Related Rights in +the Work (i) in all territories worldwide, (ii) for the maximum duration +provided by applicable law or treaty (including future time extensions), (iii) +in any current or future medium and for any number of copies, and (iv) for any +purpose whatsoever, including without limitation commercial, advertising or +promotional purposes (the "License"). The License shall be deemed effective as +of the date CC0 was applied by Affirmer to the Work. Should any part of the +License for any reason be judged legally invalid or ineffective under +applicable law, such partial invalidity or ineffectiveness shall not +invalidate the remainder of the License, and in such case Affirmer hereby +affirms that he or she will not (i) exercise any of his or her remaining +Copyright and Related Rights in the Work or (ii) assert any associated claims +and causes of action with respect to the Work, in either case contrary to +Affirmer's express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + + b. Affirmer offers the Work as-is and makes no representations or warranties + of any kind concerning the Work, express, implied, statutory or otherwise, + including without limitation warranties of title, merchantability, fitness + for a particular purpose, non infringement, or the absence of latent or + other defects, accuracy, or the present or absence of errors, whether or not + discoverable, all to the greatest extent permissible under applicable law. + + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without limitation + any person's Copyright and Related Rights in the Work. Further, Affirmer + disclaims responsibility for obtaining any necessary consents, permissions + or other rights required for any use of the Work. + + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to this + CC0 or use of the Work. + +For more information, please see + \ No newline at end of file diff --git a/README.md b/README.md index 083e6b7..95a8b47 100644 --- a/README.md +++ b/README.md @@ -1 +1,30 @@ -macroplantas +# MacroPlantas v1.0.0 + +[![Baixar](https://img.shields.io/badge/Baixar-v1.0.0-green.svg)](https://github.com/BrunoMine/macroplantas/archive/v1.0.0.zip) +[![Projeto](https://img.shields.io/badge/Git-Projeto-green.svg)](https://github.com/BrunoMine/macroplantas) +[![Licença](https://img.shields.io/badge/Licença-LGPL_v3.0-blue.svg)](https://github.com/BrunoMine/macroplantas/blob/master/LICENSE) + +## Descrição +Plantas diversas para Minetest + +## Recursos do projeto + +* [Baixar](https://github.com/BrunoMine/macroplantas/archive/v1.0.0.zip) +* [Projeto](https://github.com/BrunoMine/macroplantas) + +## Requisitos + +* Minetest 0.4.15 ou superior +* Mod farming + +## Licença +Veja LICENSE.txt para informações detalhadas da licença LGPL 3.0 + +### Autores do código fonte +Originalmente por BrunoMine, Bruno Borges (LGPL 3.0) + +### Autores de mídias (texturas, modelos and sons) + +Todas que não estão descritas aqui são de autoria de +BrunoMine, Bruno Borges (CC BY-SA 3.0) + diff --git a/api.lua b/api.lua new file mode 100644 index 0000000..7a610ba --- /dev/null +++ b/api.lua @@ -0,0 +1,25 @@ +--[[ + Mod MacroPlantas para Minetest + Copyright (C) 2017 BrunoMine (https://github.com/BrunoMine) + + Recebeste uma cópia da GNU Lesser General + Public License junto com esse software, + se não, veja em . + + API + ]] + +-- Adiciona itens para serem dropados no mato comum +macroplantas.registrar_drop_comum = function(item, raridade) + + for i = 1, 5 do + + local drop = minetest.registered_items["default:grass_"..i].drop + + table.insert(drop.items, {items = {item},rarity = raridade}) + + minetest.override_item("default:grass_"..i, {drop = drop}) + end +end + + diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..420562c --- /dev/null +++ b/depends.txt @@ -0,0 +1 @@ +farming \ No newline at end of file diff --git a/description.txt b/description.txt new file mode 100644 index 0000000..3081e25 --- /dev/null +++ b/description.txt @@ -0,0 +1 @@ +Plantas diversas diff --git a/diretrizes.lua b/diretrizes.lua new file mode 100644 index 0000000..888d402 --- /dev/null +++ b/diretrizes.lua @@ -0,0 +1,14 @@ +--[[ + Mod MacroPlantas para Minetest + Copyright (C) 2017 BrunoMine (https://github.com/BrunoMine) + + Recebeste uma cópia da GNU Lesser General + Public License junto com esse software, + se não, veja em . + + Diretrizes + ]] + +-- Definir um limite de itens que o jogador pode conseguir tirando um mato +LIMITE_DE_DROP = 1 + diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..40d8ffc --- /dev/null +++ b/init.lua @@ -0,0 +1,38 @@ +--[[ + Mod MacroPlantas para Minetest + Copyright (C) 2017 BrunoMine (https://github.com/BrunoMine) + + Recebeste uma cópia da GNU Lesser General + Public License junto com esse software, + se não, veja em . + + Inicializador de scripts + ]] + +-- Habilitar Plantas (true = habilitado | false = desabilitado) +local MELANCIA = true +local UVA = true + +-- Notificador de Inicializador +local notificar = function(msg) + if minetest.setting_get("log_mods") then + minetest.debug("[MacroPlantas]"..msg) + end +end + +local modpath = minetest.get_modpath("macroplantas") + +-- Variavel global das funcionalidades +macroplantas = {} + +-- Carregar scripts +notificar("Carregando...") +dofile(modpath.."/diretrizes.lua") +dofile(modpath.."/api.lua") +if MELANCIA == true then + dofile(modpath.."/melancia.lua") +end +if UVA == true then + dofile(modpath.."/uva.lua") +end +notificar("OK") diff --git a/melancia.lua b/melancia.lua new file mode 100644 index 0000000..e12d526 --- /dev/null +++ b/melancia.lua @@ -0,0 +1,86 @@ +--[[ + Mod MacroPlantas para Minetest + Copyright (C) 2017 BrunoMine (https://github.com/BrunoMine) + + Recebeste uma cópia da GNU Lesser General + Public License junto com esse software, + se não, veja em . + + Melancia + ]] + +-- MELANCIA +farming.register_plant("macroplantas:melancia", { + description = "Semente de Melancia", + inventory_image = "macroplantas_melancia_seed.png", + drop = '', + steps = 4, + minlight = 13, + maxlight = default.LIGHT_MAX, + fertility = {"grassland"} +}) + +minetest.register_craftitem("macroplantas:pedaco_melancia", { + description = "Melancia", + inventory_image = "macroplantas_melancia.png", + stack_max = 10, + on_use = minetest.item_eat(1), +}) + +-- Melancias colhidas fora do tempo dropam apenas sementes +for i = 1, 4 do + minetest.override_item("macroplantas:melancia_"..i, {drop = { + max_items = 1, + items = { + {items = {'macroplantas:seed_melancia'},rarity = 25}, + {items = {''}}, + } + }}) +end + +-- Gerar sementes nos matos +macroplantas.registrar_drop_comum('macroplantas:seed_melancia', 5) + +-- Bloco de Melancia para colheita +minetest.register_node("macroplantas:node_melancia", { + description = "Node Melancia", + drawtype = "nodebox", + paramtype = "light", + tiles = { + "macroplantas_melancia_listrado.png", -- Cima + "macroplantas_melancia_listrado.png", -- Baixo + "macroplantas_melancia_tampa.png", -- Lado direito + "macroplantas_melancia_tampa.png", -- Lado esquerda + "macroplantas_melancia_listrado.png", -- Fundo + "macroplantas_melancia_listrado.png", -- Frente + }, + node_box = { + type = "fixed", + fixed = { + {-0.440625, -0.5, -0.440625, 0.440625, 0.437500, 0.440625}, -- Melancia + } + }, + groups = {crumbly=3,attached_node=1}, + drop = '', +}) + +minetest.override_item("macroplantas:node_melancia", {drop = { + max_items = 3, + items = { + {items = {'macroplantas:seed_melancia'}}, + {items = {'macroplantas:pedaco_melancia'}}, + {items = {'macroplantas:pedaco_melancia'}}, + {items = {'macroplantas:pedaco_melancia'}}, + {items = {'macroplantas:pedaco_melancia'}}, + {items = {'macroplantas:pedaco_melancia'},rarity = 5}, + } +}}) + +minetest.register_abm({ + nodenames = {"macroplantas:melancia_4"}, + interval = 10, + chance = 50, + action = function(pos) + minetest.set_node(pos, {name = "macroplantas:node_melancia"}) + end +}) diff --git a/textures/macroplantas_arbusto_uva.png b/textures/macroplantas_arbusto_uva.png new file mode 100644 index 0000000000000000000000000000000000000000..5d5be6ccecf00b7b92f2ccfb17e6e38d6179cbbf GIT binary patch literal 883 zcmV-(1C0EMP)A1C+N#tP^m#!qm%|?h>YHOyN++)zhc*EWAjlXCc}FGcK}yo6Ka>CSt0;8U)8a- z-2woN{GLF!yn~JEVi^5yuGt5>gVAX+v0fa~pGlRVT^5Zj_4;nCwi1Ucv1_UxvAieh&8h}wy z@VF6AhQ04zg}6Phe;~UTXqBN^BxO;fD)B=CAHj381+ECNCF)lh@o113C9(9v!=l$+L7`%Tv%jfbV(UVU(GI<^q^s z4J^GF3Hfh6sT%rZ0zKxL_lmFaxr zMlsBn9xvne>vaHtHIg2MWB`oXZ)K?pfSQdjFdR1~?~1Zr3ztsJKL>l+sF9X}QQ-XA zJa(Nn&YYUU)^-aWJNfn#qLi-J@1`G0i4hPkuyJ=0V})`5_Oto0;a^I@liBUXSsK@l z01#ZkmchTYi-XhS>lB002ov JPDHLkV1m|pi4On( literal 0 HcmV?d00001 diff --git a/textures/macroplantas_melancia.png b/textures/macroplantas_melancia.png new file mode 100644 index 0000000000000000000000000000000000000000..6d9a7b3033b96ff7aaaacd3d9bf6fed5d4fec3e0 GIT binary patch literal 603 zcmV-h0;K(kP)4Q)^x3%G{3-N4N8DNwvMEYuRh&YboQLaF(>4aaiz&UOATLdPS!Cl|?>nN{N+|~au4!o!Ks54kBT+Rx*XOS6B zZcFIZ+JO)@fTx{wEIYTz3}i8DvfjU3nNnZ~_4{*L2S6x=LS}P1B^ekjuX{|qY8t%v zegOmkiA}|sMww4Db-g)%P_jeIN;1^WtEPcot<8mlMl%}#TXceW!MK99cn=e2HGt8Y)*24duZ9f5Sfm@B^aTHs5sDGZ+8>002ovPDHLkV1m+60%QOH literal 0 HcmV?d00001 diff --git a/textures/macroplantas_melancia_1.png b/textures/macroplantas_melancia_1.png new file mode 100644 index 0000000000000000000000000000000000000000..57b65372eb609d7bdf26e89dd375280af2478d78 GIT binary patch literal 282 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzwj^(N7l!{JxM1({$v_d#0*}aI z1_r((Aj~*bn@<`j$X?><>&kwgRY2H4_|x5O8-YU0JzX3_A`ZX3Zpd{gK!D}KPx&pE zyj_x)&lTU$r|FZpdi&;$9V^c=7BPyR)D#j>{mdKI;Vst0Dc5#b^rhX literal 0 HcmV?d00001 diff --git a/textures/macroplantas_melancia_2.png b/textures/macroplantas_melancia_2.png new file mode 100644 index 0000000000000000000000000000000000000000..866c5faf4744e7991260a3f185e9a5d6b774d521 GIT binary patch literal 314 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzwj^(N7l!{JxM1({$v_d#0*}aI z1_r((Aj~*bn@<`j$X?><>&kwgRY2H4)8t}4Gf?Qbr;B4q#Np&W|Nq+`c3@I#V`N** zCsBG}1+$y1!K;Qq_8zN*D~xcV15TZ3y~Tn5|JVIEc>o9sZfEK$Tc#NZy_&T!deJU@ ziFJ*U4Ras1T{LoI1A?oy2mhZeI`aSj|H7oNn<>&kwgRY2H~txY-^D8#7b>Eaj?aro`^yn&$lYRGm80~*^VD@WMC3#U|>;TVB~NBG7}0MHlAMg`Ka&vuZP@OeeO1h{;hwo zc-@=VUmD-CCbTeV^G})+o4w=Ofvsv!{>UkZOrQTQlc{iWg{=8qwoiwPmMbUh-2O1d z&U=!3`11XIk_>CE+|tk{XIKl28*5h3yxo3T_3w)`sVEc zhu7WKQDLYlzHj07RBZzHZcp`(bw6iZ`7}XdV$8$0&lnCISAFAln1eOe)8w?&u1OcB wwg_^a-P9(?<)(4ty;@C`YPCbWz1<`EYf`PVe}2m01qL94r>mdKI;Vst0LWRVsQ>@~ literal 0 HcmV?d00001 diff --git a/textures/macroplantas_melancia_4.png b/textures/macroplantas_melancia_4.png new file mode 100644 index 0000000000000000000000000000000000000000..b4a9faf2d635b01cdabdaab0dae3ac608b2f719e GIT binary patch literal 552 zcmV+@0@wYCP)RL9UuSz0kug) zK~z}7?Uy}L!ax{?-_4H^q+kXZjALV?4b0Hu4LpJ;py3FVIRcF*@CY7(mQfpREN})L zWQKA0F(jMMB5X(qi3mD0yG=IxlkeI0-TjgbYF(Nns zc(Y|tC3mp90>bcLU%fJMfn2YRqS`55m`=-B4h^ zR{WduUjmp`od6(rd6F8493B9LA$?WmF{q6IOsh`)R)?8ZowUMXqQpv81OJ?ZX-29& z;RW?u9hRC0MDYJQ^8zGM0rzbd>2!x*zPvV%$>~kphy`JL_{fe~B2-NTFs(Wb+TFy<*x9KKSayrQI)-Egtuu4{H)@U`!Y;z0`%J+*}CedbXRU)T12Gdmx+Fe$8zS!u` zRn7dAN1lR3X~&uM78Dy*0)UU3hk#C;<47t_DdAMS*hK&UVQr~dBd0fx1Bk|OZ~$=M qr}&GPktl<9mlYdTDmJPlVtoS-tIP^PenPGQ0000Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXf00v@9M??Vs0RI60 zpuMM)00007bV*G`2j2w{6E7r(IvpSY00F;AL_t(oN9~opPQx$|fNiH~L|Bk`0aQ?h z#KL1BfrP}szymU|uykW(?#e?TAtXR;evHq_xfgS35?W-2ev)N7xjUclY@a;3ztCzN z2}dkN`H>5?KeAI9N1}LJi0B}(bDb4JWZI4!4Ad)^W^RxtPdE0f+N%`1D8KT0RPkFq zM4r7&neF^N+3UIO<@EWs)d7{Rc2|D#JK*S}7az`TFOO%})&a;7TtzaCv|di{{rGr$@0b3D{(ggPHS d1z``N5Z|dR)kJr;G~xgN002ovPDHLkV1ja-0s;U4 literal 0 HcmV?d00001 diff --git a/textures/macroplantas_melancia_seed.png b/textures/macroplantas_melancia_seed.png new file mode 100644 index 0000000000000000000000000000000000000000..36d4dba1e414bb0433f510da3704e12d94a8fb94 GIT binary patch literal 439 zcmV;o0Z9IdP)*33?ysoWUOS6s$zt^LkrFBFxOR@B6D}T~~M^)HLY~A|m46JEm!Jg(F{!r%4hCqrzEc zNSYKy@i$DVAR2|vh{>9HxCNao8Pl`CVnY;Q((I_2_vNu6YVy59>1pUeC)=UowP*x7 znn|fcH4-9bCM)63`@MJ9^qO6c$Zjvt0&TgXVnJr)1}002ovPDHLkV1kokvIYPE literal 0 HcmV?d00001 diff --git a/textures/macroplantas_melancia_tampa.png b/textures/macroplantas_melancia_tampa.png new file mode 100644 index 0000000000000000000000000000000000000000..dbdc3dc7b4d17d75a250403a41c8677be2c69363 GIT binary patch literal 1060 zcmV+<1l#+GP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXf00v@9M??Vs0RI60 zpuMM)00007bV*G`2j2w{6E7r(IvpSY00WdsL_t(oN3EAjYg0iOhUZL9k~W2^lp=_T zXe)}k^G68o#FanLm4CsFYZnEJA}Y8LLBw03m!!Ek&zJLtFOzeUh(0iIrkOME`(0*| z7T2FWoRqu05Vy(@du14YI}4NZQD|N41{j|X!=yh7?JHY0KmT$Zif$`(uO5c}=X+uN zvmeUzS$pTe=5=f1W@+=$uYM@ntx)c6gz?ERjE{#QmX~`;^u#8>hb&_8|HO-fi4!!D z$OO^n;GQUm=5NTO_n?C~#L?*kOQ$!nEDNNUG?Q*mo_>#y-it%TsW$=CN2vm3p^ouj zR6Wg;N6&uj>!If&58ecSQ9tBaShoy*ouY?X-4RX$L(zAvH<6cOSr&2>eO>A$Y;mQGP249Lad>l7{G|un2{vTIzXIA1)^efG?*Hw=F_?- zFj8wG)zfD|B~V=zJxtu0&qY1OjpvWdK)f{l@&VNdFj8kif*=Dr8Hg_vot&psR?G}| zycuXR0lp^?-n{?b{=P1AB>>+fLWX2SCc4)S!`a6>v!38Ho|o+b${a){b0aO(5Nya8 zeE4kw2;~7ZNPp8FHd4kk>=;&S*2d0nx>&%Mz#l!ZOjUP`z<_6=1Vy{Lc`91l zo$4t}Gf)XPHQ_Q7zPSN2#s14D3mM2oMILo-fVn-_m;j9Ach1Z}lPFzHqk%3M#Av#+ zH$Ot>`nHKGQe}ZFJU>0)vjN5JgQsS|i_$z=fVgd*T|x*UjDcAXWLa2c0_H9viGre* zIQZzRg=Yb9^rd*6E_+`valY<}2F|6Uqq2>{l_u z44m^a3;Ci!oM!T=S2RuVIqPJ??u%rC{bd4VB1%}|`qjekH(pi-JiJUPJj}JJM?o~1 zh(78%aUVTv*MW6D3(HKzxu`2~{ce}I&`YcE>tq6K-^@gmxQD;_)Hg*RJM(4mC<}u9 z*w>!Fp3F={FJ71W9M#_+SzzAO2YD&@XILg?7r(@F6#csC7p%{-AiN1P;Oo9D`hUS^ e0njUVd*KgoJaRq&>atn@0000g4vn!UOcotY+>Cw%XEq%AEm)eygwb!n zqEkPHDPbcaPDnQg9J-*gFdf77%C)`gVYvX$bpP7l`@YZH17Jrow7=1-k<8rx6*BaJ z6JXPJGRu=`Bn)D6ummX5WE!P#CD^sPY3X`#XLVix{F%)P&(}>;2rmV@R+rpd-=_1? zcu3)1jhr1@bdhtkerlpje8z{RCnb9QJ4YMenKfCdD|^hB+BO?-9-jdK?U&E&v-xfo zz<3EWW-!}q(5Ry%>ZFqIZ%=S75axLc9)S-8@Qr-1J#>We6r$mM9gT;W#|zv)+yMak z;Q%Mr5!T&jXEIHh=s+0G7Nl&hrsJR=4$|>-_EowM&@7om*#eU0%6rUU>&{tEFwaF2 zW;~AK@B+96kK~($*CdJx%~VCo<|5qH#E&s1Na7;Yx7tJ&HMfzAk%(+$1>$htuLG{XbBi_6nM6#&?f)@ N002ovPDHLkV1g}x?JWQR literal 0 HcmV?d00001 diff --git a/uva.lua b/uva.lua new file mode 100644 index 0000000..457a5a4 --- /dev/null +++ b/uva.lua @@ -0,0 +1,58 @@ +--[[ + Mod MacroPlantas para Minetest + Copyright (C) 2017 BrunoMine (https://github.com/BrunoMine) + + Recebeste uma cópia da GNU Lesser General + Public License junto com esse software, + se não, veja em . + + Uva + ]] + +-- Cacho de Uva +minetest.register_craftitem("macroplantas:uva", { + description = "Cacho de Uvas", + inventory_image = "macroplantas_uva.png", + stack_max = 25, + on_use = minetest.item_eat(1), +}) + +-- Arbusto da Uva +minetest.register_node("macroplantas:arbusto_uva", { + description = "Arbusto com Uvas", + drawtype = "plantlike", + waving = 1, + visual_scale = 1.3, + tiles = {"macroplantas_arbusto_uva.png"}, + paramtype = "light", + sunlight_propagates = true, + walkable = false, + buildable_to = true, + groups = {snappy=3,flammable=2,flora=1,attached_node=1}, + sounds = default.node_sound_leaves_defaults(), + drop = "macroplantas:uva", + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, +}) + +-- Registrando arbusto na Mapgen v6 +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:dirt_with_grass"}, + sidelen = 5, + noise_params = { + offset = -1, + scale = 1.1, + spread = {x = 10, y = 10, z = 10}, + seed = 231513, + octaves = 1, + persist = 2 + }, + y_min = 10, + y_max = 31000, + decoration = "macroplantas:arbusto_uva", +}) + +