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 0000000..5d5be6c
Binary files /dev/null and b/textures/macroplantas_arbusto_uva.png differ
diff --git a/textures/macroplantas_melancia.png b/textures/macroplantas_melancia.png
new file mode 100644
index 0000000..6d9a7b3
Binary files /dev/null and b/textures/macroplantas_melancia.png differ
diff --git a/textures/macroplantas_melancia_1.png b/textures/macroplantas_melancia_1.png
new file mode 100644
index 0000000..57b6537
Binary files /dev/null and b/textures/macroplantas_melancia_1.png differ
diff --git a/textures/macroplantas_melancia_2.png b/textures/macroplantas_melancia_2.png
new file mode 100644
index 0000000..866c5fa
Binary files /dev/null and b/textures/macroplantas_melancia_2.png differ
diff --git a/textures/macroplantas_melancia_3.png b/textures/macroplantas_melancia_3.png
new file mode 100644
index 0000000..d333385
Binary files /dev/null and b/textures/macroplantas_melancia_3.png differ
diff --git a/textures/macroplantas_melancia_4.png b/textures/macroplantas_melancia_4.png
new file mode 100644
index 0000000..b4a9faf
Binary files /dev/null and b/textures/macroplantas_melancia_4.png differ
diff --git a/textures/macroplantas_melancia_listrado.png b/textures/macroplantas_melancia_listrado.png
new file mode 100644
index 0000000..c60b433
Binary files /dev/null and b/textures/macroplantas_melancia_listrado.png differ
diff --git a/textures/macroplantas_melancia_seed.png b/textures/macroplantas_melancia_seed.png
new file mode 100644
index 0000000..36d4dba
Binary files /dev/null and b/textures/macroplantas_melancia_seed.png differ
diff --git a/textures/macroplantas_melancia_tampa.png b/textures/macroplantas_melancia_tampa.png
new file mode 100644
index 0000000..dbdc3dc
Binary files /dev/null and b/textures/macroplantas_melancia_tampa.png differ
diff --git a/textures/macroplantas_uva.png b/textures/macroplantas_uva.png
new file mode 100644
index 0000000..3125502
Binary files /dev/null and b/textures/macroplantas_uva.png differ
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",
+})
+
+