diff --git a/mods/plants/depends.txt b/mods/plants/depends.txt new file mode 100644 index 0000000..925964f --- /dev/null +++ b/mods/plants/depends.txt @@ -0,0 +1 @@ +abri \ No newline at end of file diff --git a/mods/plants/init.lua b/mods/plants/init.lua new file mode 100644 index 0000000..3ffde25 --- /dev/null +++ b/mods/plants/init.lua @@ -0,0 +1,30 @@ + +minetest.register_node("plants:redgrass", { + description = "Red Grass", + drawtype = "plantlike", + waving = 1, + visual_scale = 1.3, + tiles = {"plants_redgrass.png"}, + inventory_image = "plants_redgrass.png", + wield_image = "plants_redgrass.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + buildable_to = true, + groups = {snappy=3, flora=1, attached_node=1}, + -- sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, +}) + +minetest.register_decoration({ + deco_type = "simple", + place_on = "abri:dirt_with_red_grass", + sidelen = 16, + fill_ratio = 0.03, + biomes = {"red_land"}, + decoration = "plants:redgrass", + height = 1, +}) \ No newline at end of file diff --git a/mods/plants/license.txt b/mods/plants/license.txt new file mode 100644 index 0000000..9d66b96 --- /dev/null +++ b/mods/plants/license.txt @@ -0,0 +1,37 @@ +Code: +--- + +The MIT License (MIT) + +Copyright (c) 2017 Shara RedCat + +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. + + +----------------------- + + +Textures: +--- + +(unless otherwise listed, recolouring and editing done by Shara RedCat) + +plants_redgrass.png +Based on junglegrass texture in minetest_game (CC BY-SA 3.0). + diff --git a/mods/plants/textures/plants_redgrass.png b/mods/plants/textures/plants_redgrass.png new file mode 100644 index 0000000..cdf638a Binary files /dev/null and b/mods/plants/textures/plants_redgrass.png differ