forked from mtcontrib/plantlife_modpack
Compare commits
48 Commits
master
...
2020-02-16
Author | SHA1 | Date | |
---|---|---|---|
686dd21b9d | |||
47c20dc550 | |||
31e0066238 | |||
3d13053d97 | |||
07b6fc48ea | |||
9a3d101c89 | |||
0d228f705c | |||
229d6aba88 | |||
4e32feaa55 | |||
b9b592af44 | |||
08698ecd60 | |||
45a400f6ce | |||
3dde23cff8 | |||
feb3092d06 | |||
77093e428a | |||
2c7a776c7f | |||
3eb2befaa4 | |||
60c3664cbb | |||
9789d6da3a | |||
0af7b69afa | |||
8350dd0c86 | |||
1ccfeb6214 | |||
b0f742e5c1 | |||
824a77672c | |||
156f068ead | |||
de4de190e5 | |||
6fe2a34fa5 | |||
e5be707c15 | |||
5ca1ed261e | |||
637767f673 | |||
983574c253 | |||
1f79b66442 | |||
0363ed0348 | |||
dd14b2cb04 | |||
5212a756f5 | |||
eaa716df76 | |||
c43375ff7a | |||
b7450d3ad1 | |||
d6d805fb5f | |||
ab9b30778b | |||
d85fb4c64f | |||
3449a6c826 | |||
0f89ab5b44 | |||
e801716f57 | |||
5bfd6c009a | |||
392dbb8b3e | |||
3d3f735bb3 | |||
758a7f34ea |
14
.luacheckrc
Normal file
14
.luacheckrc
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
unused_args = false
|
||||||
|
allow_defined_top = true
|
||||||
|
|
||||||
|
read_globals = {
|
||||||
|
"biome_lib",
|
||||||
|
"DIR_DELIM",
|
||||||
|
"minetest", "core",
|
||||||
|
"dump",
|
||||||
|
"vector", "nodeupdate",
|
||||||
|
"VoxelManip", "VoxelArea",
|
||||||
|
"PseudoRandom", "ItemStack",
|
||||||
|
"default",
|
||||||
|
}
|
||||||
|
|
@ -1,2 +0,0 @@
|
|||||||
default
|
|
||||||
flowers
|
|
@ -1,7 +1,4 @@
|
|||||||
|
|
||||||
-- 3D Mushroom mod by VanessaE
|
-- 3D Mushroom mod by VanessaE
|
||||||
--
|
|
||||||
-- License: WTFPL for everything.
|
|
||||||
|
|
||||||
mushroom = {}
|
mushroom = {}
|
||||||
|
|
||||||
|
2
3dmushrooms/mod.conf
Normal file
2
3dmushrooms/mod.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
name = 3dmushrooms
|
||||||
|
depends = default, flowers
|
875
LICENSE
875
LICENSE
@ -1,336 +1,603 @@
|
|||||||
Sunflower model and textures by kaeza (CC-BY-SA 3.0).
|
License for code: LGPL 3.0
|
||||||
|
License for media and all other assets: CC-by-SA 4.0
|
||||||
|
|
||||||
For the code, Ironzorg's textures, and everything else: WTFPL
|
These licenses apply to all modules and components in this modpack,
|
||||||
|
unless otherwise stated.
|
||||||
|
|
||||||
For Mossmanikin's mods (Ferns, Dryplans, and the components
|
###############################################################################
|
||||||
from the Undergrowth modpack), and all of my own textures:
|
|
||||||
CC-By-SA 3.0
|
|
||||||
|
|
||||||
----------
|
GNU LESSER GENERAL PUBLIC LICENSE
|
||||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
Version 3, 29 June 2007
|
||||||
Version 2, December 2004
|
|
||||||
|
|
||||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
Everyone is permitted to copy and distribute verbatim or modified
|
|
||||||
copies of this license document, and changing it is allowed as long
|
|
||||||
as the name is changed.
|
|
||||||
|
|
||||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
This version of the GNU Lesser General Public License incorporates
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
the terms and conditions of version 3 of the GNU General Public
|
||||||
|
License, supplemented by the additional permissions listed below.
|
||||||
|
|
||||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
0. Additional Definitions.
|
||||||
|
|
||||||
This license is also known as "WTFPL"
|
As used herein, "this License" refers to version 3 of the GNU Lesser
|
||||||
|
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
||||||
|
General Public License.
|
||||||
|
|
||||||
-----------
|
"The Library" refers to a covered work governed by this License,
|
||||||
|
other than an Application or a Combined Work as defined below.
|
||||||
|
|
||||||
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS
|
An "Application" is any work that makes use of an interface provided
|
||||||
CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS
|
by the Library, but which is not otherwise based on the Library.
|
||||||
PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE
|
Defining a subclass of a class defined by the Library is deemed a mode
|
||||||
WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW
|
of using an interface provided by the Library.
|
||||||
IS PROHIBITED.
|
|
||||||
|
|
||||||
BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND
|
A "Combined Work" is a work produced by combining or linking an
|
||||||
AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS
|
Application with the Library. The particular version of the Library
|
||||||
LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS
|
with which the Combined Work was made is also called the "Linked
|
||||||
YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE
|
Version".
|
||||||
OF SUCH TERMS AND CONDITIONS.
|
|
||||||
|
|
||||||
1. Definitions
|
The "Minimal Corresponding Source" for a Combined Work means the
|
||||||
|
Corresponding Source for the Combined Work, excluding any source code
|
||||||
|
for portions of the Combined Work that, considered in isolation, are
|
||||||
|
based on the Application, and not on the Linked Version.
|
||||||
|
|
||||||
"Collective Work" means a work, such as a periodical issue,
|
The "Corresponding Application Code" for a Combined Work means the
|
||||||
anthology or encyclopedia, in which the Work in its entirety in
|
object code and/or source code for the Application, including any data
|
||||||
unmodified form, along with one or more other contributions,
|
and utility programs needed for reproducing the Combined Work from the
|
||||||
constituting separate and independent works in themselves, are
|
Application, but excluding the System Libraries of the Combined Work.
|
||||||
assembled into a collective whole. A work that constitutes a
|
|
||||||
Collective Work will not be considered a Derivative Work (as
|
|
||||||
defined below) for the purposes of this License.
|
|
||||||
"Creative Commons Compatible License" means a license that is
|
|
||||||
listed at http://creativecommons.org/compatiblelicenses that has
|
|
||||||
been approved by Creative Commons as being essentially equivalent
|
|
||||||
to this License, including, at a minimum, because that license:
|
|
||||||
(i) contains terms that have the same purpose, meaning and effect
|
|
||||||
as the License Elements of this License; and, (ii) explicitly
|
|
||||||
permits the relicensing of derivatives of works made available
|
|
||||||
under that license under this License or either a Creative Commons
|
|
||||||
unported license or a Creative Commons jurisdiction license with
|
|
||||||
the same License Elements as this License.
|
|
||||||
"Derivative Work" means a work based upon the Work or upon the
|
|
||||||
Work and other pre-existing works, such as a translation, musical
|
|
||||||
arrangement, dramatization, fictionalization, motion picture
|
|
||||||
version, sound recording, art reproduction, abridgment,
|
|
||||||
condensation, or any other form in which the Work may be recast,
|
|
||||||
transformed, or adapted, except that a work that constitutes a
|
|
||||||
Collective Work will not be considered a Derivative Work for the
|
|
||||||
purpose of this License. For the avoidance of doubt, where the
|
|
||||||
Work is a musical composition or sound recording, the
|
|
||||||
synchronization of the Work in timed-relation with a moving image
|
|
||||||
("synching") will be considered a Derivative Work for the purpose
|
|
||||||
of this License.
|
|
||||||
"License Elements" means the following high-level license
|
|
||||||
attributes as selected by Licensor and indicated in the title of
|
|
||||||
this License: Attribution, ShareAlike.
|
|
||||||
"Licensor" means the individual, individuals, entity or
|
|
||||||
entities that offers the Work under the terms of this License.
|
|
||||||
"Original Author" means the individual, individuals, entity or
|
|
||||||
entities who created the Work.
|
|
||||||
"Work" means the copyrightable work of authorship offered
|
|
||||||
under the terms of this License.
|
|
||||||
"You" means an individual or entity exercising rights under
|
|
||||||
this License who has not previously violated the terms of this
|
|
||||||
License with respect to the Work, or who has received express
|
|
||||||
permission from the Licensor to exercise rights under this License
|
|
||||||
despite a previous violation.
|
|
||||||
|
|
||||||
2. Fair Use Rights. Nothing in this license is intended to reduce,
|
1. Exception to Section 3 of the GNU GPL.
|
||||||
limit, or restrict any rights arising from fair use, first sale or
|
|
||||||
other limitations on the exclusive rights of the copyright owner
|
|
||||||
under copyright law or other applicable laws.
|
|
||||||
|
|
||||||
3. License Grant. Subject to the terms and conditions of this
|
You may convey a covered work under sections 3 and 4 of this License
|
||||||
License, Licensor hereby grants You a worldwide, royalty-free,
|
without being bound by section 3 of the GNU GPL.
|
||||||
non-exclusive, perpetual (for the duration of the applicable
|
|
||||||
copyright) license to exercise the rights in the Work as stated
|
|
||||||
below:
|
|
||||||
|
|
||||||
to reproduce the Work, to incorporate the Work into one or
|
2. Conveying Modified Versions.
|
||||||
more Collective Works, and to reproduce the Work as incorporated
|
|
||||||
in the Collective Works;
|
|
||||||
to create and reproduce Derivative Works provided that any
|
|
||||||
such Derivative Work, including any translation in any medium,
|
|
||||||
takes reasonable steps to clearly label, demarcate or otherwise
|
|
||||||
identify that changes were made to the original Work. For example,
|
|
||||||
a translation could be marked "The original work was translated
|
|
||||||
from English to Spanish," or a modification could indicate "The
|
|
||||||
original work has been modified.";
|
|
||||||
to distribute copies or phonorecords of, display publicly,
|
|
||||||
perform publicly, and perform publicly by means of a digital audio
|
|
||||||
transmission the Work including as incorporated in Collective
|
|
||||||
Works;
|
|
||||||
to distribute copies or phonorecords of, display publicly,
|
|
||||||
perform publicly, and perform publicly by means of a digital audio
|
|
||||||
transmission Derivative Works.
|
|
||||||
|
|
||||||
For the avoidance of doubt, where the Work is a musical
|
If you modify a copy of the Library, and, in your modifications, a
|
||||||
composition:
|
facility refers to a function or data to be supplied by an Application
|
||||||
Performance Royalties Under Blanket Licenses. Licensor
|
that uses the facility (other than as an argument passed when the
|
||||||
waives the exclusive right to collect, whether individually or, in
|
facility is invoked), then you may convey a copy of the modified
|
||||||
the event that Licensor is a member of a performance rights
|
version:
|
||||||
society (e.g. ASCAP, BMI, SESAC), via that society, royalties for
|
|
||||||
the public performance or public digital performance (e.g.
|
|
||||||
webcast) of the Work.
|
|
||||||
Mechanical Rights and Statutory Royalties. Licensor waives
|
|
||||||
the exclusive right to collect, whether individually or via a
|
|
||||||
music rights agency or designated agent (e.g. Harry Fox Agency),
|
|
||||||
royalties for any phonorecord You create from the Work ("cover
|
|
||||||
version") and distribute, subject to the compulsory license
|
|
||||||
created by 17 USC Section 115 of the US Copyright Act (or the
|
|
||||||
equivalent in other jurisdictions).
|
|
||||||
Webcasting Rights and Statutory Royalties. For the avoidance
|
|
||||||
of doubt, where the Work is a sound recording, Licensor waives the
|
|
||||||
exclusive right to collect, whether individually or via a
|
|
||||||
performance-rights society (e.g. SoundExchange), royalties for the
|
|
||||||
public digital performance (e.g. webcast) of the Work, subject to
|
|
||||||
the compulsory license created by 17 USC Section 114 of the US
|
|
||||||
Copyright Act (or the equivalent in other jurisdictions).
|
|
||||||
|
|
||||||
The above rights may be exercised in all media and formats whether
|
a) under this License, provided that you make a good faith effort to
|
||||||
now known or hereafter devised. The above rights include the right
|
ensure that, in the event an Application does not supply the
|
||||||
to make such modifications as are technically necessary to
|
function or data, the facility still operates, and performs
|
||||||
exercise the rights in other media and formats. All rights not
|
whatever part of its purpose remains meaningful, or
|
||||||
expressly granted by Licensor are hereby reserved.
|
|
||||||
|
|
||||||
4. Restrictions. The license granted in Section 3 above is
|
b) under the GNU GPL, with none of the additional permissions of
|
||||||
expressly made subject to and limited by the following
|
this License applicable to that copy.
|
||||||
restrictions:
|
|
||||||
|
|
||||||
You may distribute, publicly display, publicly perform, or
|
3. Object Code Incorporating Material from Library Header Files.
|
||||||
publicly digitally perform the Work only under the terms of this
|
|
||||||
License, and You must include a copy of, or the Uniform Resource
|
|
||||||
Identifier for, this License with every copy or phonorecord of the
|
|
||||||
Work You distribute, publicly display, publicly perform, or
|
|
||||||
publicly digitally perform. You may not offer or impose any terms
|
|
||||||
on the Work that restrict the terms of this License or the ability
|
|
||||||
of a recipient of the Work to exercise of the rights granted to
|
|
||||||
that recipient under the terms of the License. You may not
|
|
||||||
sublicense the Work. You must keep intact all notices that refer
|
|
||||||
to this License and to the disclaimer of warranties. When You
|
|
||||||
distribute, publicly display, publicly perform, or publicly
|
|
||||||
digitally perform the Work, You may not impose any technological
|
|
||||||
measures on the Work that restrict the ability of a recipient of
|
|
||||||
the Work from You to exercise of the rights granted to that
|
|
||||||
recipient under the terms of the License. This Section 4(a)
|
|
||||||
applies to the Work as incorporated in a Collective Work, but this
|
|
||||||
does not require the Collective Work apart from the Work itself to
|
|
||||||
be made subject to the terms of this License. If You create a
|
|
||||||
Collective Work, upon notice from any Licensor You must, to the
|
|
||||||
extent practicable, remove from the Collective Work any credit as
|
|
||||||
required by Section 4(c), as requested. If You create a Derivative
|
|
||||||
Work, upon notice from any Licensor You must, to the extent
|
|
||||||
practicable, remove from the Derivative Work any credit as
|
|
||||||
required by Section 4(c), as requested.
|
|
||||||
You may distribute, publicly display, publicly perform, or
|
|
||||||
publicly digitally perform a Derivative Work only under: (i) the
|
|
||||||
terms of this License; (ii) a later version of this License with
|
|
||||||
the same License Elements as this License; (iii) either the
|
|
||||||
Creative Commons (Unported) license or a Creative Commons
|
|
||||||
jurisdiction license (either this or a later license version) that
|
|
||||||
contains the same License Elements as this License (e.g.
|
|
||||||
Attribution-ShareAlike 3.0 (Unported)); (iv) a Creative Commons
|
|
||||||
Compatible License. If you license the Derivative Work under one
|
|
||||||
of the licenses mentioned in (iv), you must comply with the terms
|
|
||||||
of that license. If you license the Derivative Work under the
|
|
||||||
terms of any of the licenses mentioned in (i), (ii) or (iii) (the
|
|
||||||
"Applicable License"), you must comply with the terms of the
|
|
||||||
Applicable License generally and with the following provisions:
|
|
||||||
(I) You must include a copy of, or the Uniform Resource Identifier
|
|
||||||
for, the Applicable License with every copy or phonorecord of each
|
|
||||||
Derivative Work You distribute, publicly display, publicly
|
|
||||||
perform, or publicly digitally perform; (II) You may not offer or
|
|
||||||
impose any terms on the Derivative Works that restrict the terms
|
|
||||||
of the Applicable License or the ability of a recipient of the
|
|
||||||
Work to exercise the rights granted to that recipient under the
|
|
||||||
terms of the Applicable License; (III) You must keep intact all
|
|
||||||
notices that refer to the Applicable License and to the disclaimer
|
|
||||||
of warranties; and, (IV) when You distribute, publicly display,
|
|
||||||
publicly perform, or publicly digitally perform the Work, You may
|
|
||||||
not impose any technological measures on the Derivative Work that
|
|
||||||
restrict the ability of a recipient of the Derivative Work from
|
|
||||||
You to exercise the rights granted to that recipient under the
|
|
||||||
terms of the Applicable License. This Section 4(b) applies to the
|
|
||||||
Derivative Work as incorporated in a Collective Work, but this
|
|
||||||
does not require the Collective Work apart from the Derivative
|
|
||||||
Work itself to be made subject to the terms of the Applicable
|
|
||||||
License.
|
|
||||||
If You distribute, publicly display, publicly perform, or
|
|
||||||
publicly digitally perform the Work (as defined in Section 1
|
|
||||||
above) or any Derivative Works (as defined in Section 1 above) or
|
|
||||||
Collective Works (as defined in Section 1 above), You must, unless
|
|
||||||
a request has been made pursuant to Section 4(a), keep intact all
|
|
||||||
copyright notices for the Work and provide, reasonable to the
|
|
||||||
medium or means You are utilizing: (i) the name of the Original
|
|
||||||
Author (or pseudonym, if applicable) if supplied, and/or (ii) if
|
|
||||||
the Original Author and/or Licensor designate another party or
|
|
||||||
parties (e.g. a sponsor institute, publishing entity, journal) for
|
|
||||||
attribution ("Attribution Parties") in Licensor's copyright
|
|
||||||
notice, terms of service or by other reasonable means, the name of
|
|
||||||
such party or parties; the title of the Work if supplied; to the
|
|
||||||
extent reasonably practicable, the Uniform Resource Identifier, if
|
|
||||||
any, that Licensor specifies to be associated with the Work,
|
|
||||||
unless such URI does not refer to the copyright notice or
|
|
||||||
licensing information for the Work; and, consistent with Section
|
|
||||||
3(b) in the case of a Derivative Work, a credit identifying the
|
|
||||||
use of the Work in the Derivative Work (e.g., "French translation
|
|
||||||
of the Work by Original Author," or "Screenplay based on original
|
|
||||||
Work by Original Author"). The credit required by this Section
|
|
||||||
4(c) may be implemented in any reasonable manner; provided,
|
|
||||||
however, that in the case of a Derivative Work or Collective Work,
|
|
||||||
at a minimum such credit will appear, if a credit for all
|
|
||||||
contributing authors of the Derivative Work or Collective Work
|
|
||||||
appears, then as part of these credits and in a manner at least as
|
|
||||||
prominent as the credits for the other contributing authors. For
|
|
||||||
the avoidance of doubt, You may only use the credit required by
|
|
||||||
this Section for the purpose of attribution in the manner set out
|
|
||||||
above and, by exercising Your rights under this License, You may
|
|
||||||
not implicitly or explicitly assert or imply any connection with,
|
|
||||||
sponsorship or endorsement by the Original Author, Licensor and/or
|
|
||||||
Attribution Parties, as appropriate, of You or Your use of the
|
|
||||||
Work, without the separate, express prior written permission of
|
|
||||||
the Original Author, Licensor and/or Attribution Parties.
|
|
||||||
|
|
||||||
5. Representations, Warranties and Disclaimer
|
The object code form of an Application may incorporate material from
|
||||||
|
a header file that is part of the Library. You may convey such object
|
||||||
|
code under terms of your choice, provided that, if the incorporated
|
||||||
|
material is not limited to numerical parameters, data structure
|
||||||
|
layouts and accessors, or small macros, inline functions and templates
|
||||||
|
(ten or fewer lines in length), you do both of the following:
|
||||||
|
|
||||||
UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING,
|
a) Give prominent notice with each copy of the object code that the
|
||||||
LICENSOR OFFERS THE WORK AS-IS AND ONLY TO THE EXTENT OF ANY
|
Library is used in it and that the Library and its use are
|
||||||
RIGHTS HELD IN THE LICENSED WORK BY THE LICENSOR. THE LICENSOR
|
covered by this License.
|
||||||
MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE
|
|
||||||
WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT
|
|
||||||
LIMITATION, WARRANTIES OF TITLE, MARKETABILITY, MERCHANTIBILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE
|
|
||||||
OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE
|
|
||||||
OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT
|
|
||||||
ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY
|
|
||||||
NOT APPLY TO YOU.
|
|
||||||
|
|
||||||
6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY
|
b) Accompany the object code with a copy of the GNU GPL and this license
|
||||||
APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY
|
document.
|
||||||
LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE
|
|
||||||
OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE
|
|
||||||
WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
|
||||||
DAMAGES.
|
|
||||||
|
|
||||||
7. Termination
|
4. Combined Works.
|
||||||
|
|
||||||
This License and the rights granted hereunder will terminate
|
You may convey a Combined Work under terms of your choice that,
|
||||||
automatically upon any breach by You of the terms of this License.
|
taken together, effectively do not restrict modification of the
|
||||||
Individuals or entities who have received Derivative Works or
|
portions of the Library contained in the Combined Work and reverse
|
||||||
Collective Works from You under this License, however, will not
|
engineering for debugging such modifications, if you also do each of
|
||||||
have their licenses terminated provided such individuals or
|
the following:
|
||||||
entities remain in full compliance with those licenses. Sections
|
|
||||||
1, 2, 5, 6, 7, and 8 will survive any termination of this License.
|
|
||||||
Subject to the above terms and conditions, the license granted
|
|
||||||
here is perpetual (for the duration of the applicable copyright in
|
|
||||||
the Work). Notwithstanding the above, Licensor reserves the right
|
|
||||||
to release the Work under different license terms or to stop
|
|
||||||
distributing the Work at any time; provided, however that any such
|
|
||||||
election will not serve to withdraw this License (or any other
|
|
||||||
license that has been, or is required to be, granted under the
|
|
||||||
terms of this License), and this License will continue in full
|
|
||||||
force and effect unless terminated as stated above.
|
|
||||||
|
|
||||||
8. Miscellaneous
|
a) Give prominent notice with each copy of the Combined Work that
|
||||||
|
the Library is used in it and that the Library and its use are
|
||||||
|
covered by this License.
|
||||||
|
|
||||||
Each time You distribute or publicly digitally perform the
|
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
||||||
Work (as defined in Section 1 above) or a Collective Work (as
|
document.
|
||||||
defined in Section 1 above), the Licensor offers to the recipient
|
|
||||||
a license to the Work on the same terms and conditions as the
|
|
||||||
license granted to You under this License.
|
|
||||||
Each time You distribute or publicly digitally perform a
|
|
||||||
Derivative Work, Licensor offers to the recipient a license to the
|
|
||||||
original Work on the same terms and conditions as the license
|
|
||||||
granted to You under this License.
|
|
||||||
If any provision of this License is invalid or unenforceable
|
|
||||||
under applicable law, it shall not affect the validity or
|
|
||||||
enforceability of the remainder of the terms of this License, and
|
|
||||||
without further action by the parties to this agreement, such
|
|
||||||
provision shall be reformed to the minimum extent necessary to
|
|
||||||
make such provision valid and enforceable.
|
|
||||||
No term or provision of this License shall be deemed waived
|
|
||||||
and no breach consented to unless such waiver or consent shall be
|
|
||||||
in writing and signed by the party to be charged with such waiver
|
|
||||||
or consent.
|
|
||||||
This License constitutes the entire agreement between the
|
|
||||||
parties with respect to the Work licensed here. There are no
|
|
||||||
understandings, agreements or representations with respect to the
|
|
||||||
Work not specified here. Licensor shall not be bound by any
|
|
||||||
additional provisions that may appear in any communication from
|
|
||||||
You. This License may not be modified without the mutual written
|
|
||||||
agreement of the Licensor and You.
|
|
||||||
|
|
||||||
Creative Commons Notice
|
c) For a Combined Work that displays copyright notices during
|
||||||
|
execution, include the copyright notice for the Library among
|
||||||
|
these notices, as well as a reference directing the user to the
|
||||||
|
copies of the GNU GPL and this license document.
|
||||||
|
|
||||||
Creative Commons is not a party to this License, and makes no
|
d) Do one of the following:
|
||||||
warranty whatsoever in connection with the Work. Creative Commons
|
|
||||||
will not be liable to You or any party on any legal theory for any
|
|
||||||
damages whatsoever, including without limitation any general,
|
|
||||||
special, incidental or consequential damages arising in connection
|
|
||||||
to this license. Notwithstanding the foregoing two (2) sentences,
|
|
||||||
if Creative Commons has expressly identified itself as the
|
|
||||||
Licensor hereunder, it shall have all rights and obligations of
|
|
||||||
Licensor.
|
|
||||||
|
|
||||||
Except for the limited purpose of indicating to the public
|
0) Convey the Minimal Corresponding Source under the terms of this
|
||||||
that the Work is licensed under the CCPL, Creative Commons does
|
License, and the Corresponding Application Code in a form
|
||||||
not authorize the use by either party of the trademark "Creative
|
suitable for, and under terms that permit, the user to
|
||||||
Commons" or any related trademark or logo of Creative Commons
|
recombine or relink the Application with a modified version of
|
||||||
without the prior written consent of Creative Commons. Any
|
the Linked Version to produce a modified Combined Work, in the
|
||||||
permitted use will be in compliance with Creative Commons'
|
manner specified by section 6 of the GNU GPL for conveying
|
||||||
then-current trademark usage guidelines, as may be published on
|
Corresponding Source.
|
||||||
its website or otherwise made available upon request from time to
|
|
||||||
time. For the avoidance of doubt, this trademark restriction does
|
|
||||||
not form part of this License.
|
|
||||||
|
|
||||||
Creative Commons may be contacted at
|
1) Use a suitable shared library mechanism for linking with the
|
||||||
http://creativecommons.org/.
|
Library. A suitable mechanism is one that (a) uses at run time
|
||||||
|
a copy of the Library already present on the user's computer
|
||||||
|
system, and (b) will operate properly with a modified version
|
||||||
|
of the Library that is interface-compatible with the Linked
|
||||||
|
Version.
|
||||||
|
|
||||||
|
e) Provide Installation Information, but only if you would otherwise
|
||||||
|
be required to provide such information under section 6 of the
|
||||||
|
GNU GPL, and only to the extent that such information is
|
||||||
|
necessary to install and execute a modified version of the
|
||||||
|
Combined Work produced by recombining or relinking the
|
||||||
|
Application with a modified version of the Linked Version. (If
|
||||||
|
you use option 4d0, the Installation Information must accompany
|
||||||
|
the Minimal Corresponding Source and Corresponding Application
|
||||||
|
Code. If you use option 4d1, you must provide the Installation
|
||||||
|
Information in the manner specified by section 6 of the GNU GPL
|
||||||
|
for conveying Corresponding Source.)
|
||||||
|
|
||||||
|
5. Combined Libraries.
|
||||||
|
|
||||||
|
You may place library facilities that are a work based on the
|
||||||
|
Library side by side in a single library together with other library
|
||||||
|
facilities that are not Applications and are not covered by this
|
||||||
|
License, and convey such a combined library under terms of your
|
||||||
|
choice, if you do both of the following:
|
||||||
|
|
||||||
|
a) Accompany the combined library with a copy of the same work based
|
||||||
|
on the Library, uncombined with any other library facilities,
|
||||||
|
conveyed under the terms of this License.
|
||||||
|
|
||||||
|
b) Give prominent notice with the combined library that part of it
|
||||||
|
is a work based on the Library, and explaining where to find the
|
||||||
|
accompanying uncombined form of the same work.
|
||||||
|
|
||||||
|
6. Revised Versions of the GNU Lesser General Public License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the GNU Lesser General Public License from time to time. Such new
|
||||||
|
versions will be similar in spirit to the present version, but may
|
||||||
|
differ in detail to address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Library as you received it specifies that a certain numbered version
|
||||||
|
of the GNU Lesser General Public License "or any later version"
|
||||||
|
applies to it, you have the option of following the terms and
|
||||||
|
conditions either of that published version or of any later version
|
||||||
|
published by the Free Software Foundation. If the Library as you
|
||||||
|
received it does not specify a version number of the GNU Lesser
|
||||||
|
General Public License, you may choose any version of the GNU Lesser
|
||||||
|
General Public License ever published by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Library as you received it specifies that a proxy can decide
|
||||||
|
whether future versions of the GNU Lesser General Public License shall
|
||||||
|
apply, that proxy's public statement of acceptance of any version is
|
||||||
|
permanent authorization for you to choose that version for the
|
||||||
|
Library.
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
Attribution-ShareAlike 4.0 International
|
||||||
|
|
||||||
|
=======================================================================
|
||||||
|
|
||||||
|
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
||||||
|
does not provide legal services or legal advice. Distribution of
|
||||||
|
Creative Commons public licenses does not create a lawyer-client or
|
||||||
|
other relationship. Creative Commons makes its licenses and related
|
||||||
|
information available on an "as-is" basis. Creative Commons gives no
|
||||||
|
warranties regarding its licenses, any material licensed under their
|
||||||
|
terms and conditions, or any related information. Creative Commons
|
||||||
|
disclaims all liability for damages resulting from their use to the
|
||||||
|
fullest extent possible.
|
||||||
|
|
||||||
|
Using Creative Commons Public Licenses
|
||||||
|
|
||||||
|
Creative Commons public licenses provide a standard set of terms and
|
||||||
|
conditions that creators and other rights holders may use to share
|
||||||
|
original works of authorship and other material subject to copyright
|
||||||
|
and certain other rights specified in the public license below. The
|
||||||
|
following considerations are for informational purposes only, are not
|
||||||
|
exhaustive, and do not form part of our licenses.
|
||||||
|
|
||||||
|
Considerations for licensors: Our public licenses are
|
||||||
|
intended for use by those authorized to give the public
|
||||||
|
permission to use material in ways otherwise restricted by
|
||||||
|
copyright and certain other rights. Our licenses are
|
||||||
|
irrevocable. Licensors should read and understand the terms
|
||||||
|
and conditions of the license they choose before applying it.
|
||||||
|
Licensors should also secure all rights necessary before
|
||||||
|
applying our licenses so that the public can reuse the
|
||||||
|
material as expected. Licensors should clearly mark any
|
||||||
|
material not subject to the license. This includes other CC-
|
||||||
|
licensed material, or material used under an exception or
|
||||||
|
limitation to copyright. More considerations for licensors:
|
||||||
|
wiki.creativecommons.org/Considerations_for_licensors
|
||||||
|
|
||||||
|
Considerations for the public: By using one of our public
|
||||||
|
licenses, a licensor grants the public permission to use the
|
||||||
|
licensed material under specified terms and conditions. If
|
||||||
|
the licensor's permission is not necessary for any reason--for
|
||||||
|
example, because of any applicable exception or limitation to
|
||||||
|
copyright--then that use is not regulated by the license. Our
|
||||||
|
licenses grant only permissions under copyright and certain
|
||||||
|
other rights that a licensor has authority to grant. Use of
|
||||||
|
the licensed material may still be restricted for other
|
||||||
|
reasons, including because others have copyright or other
|
||||||
|
rights in the material. A licensor may make special requests,
|
||||||
|
such as asking that all changes be marked or described.
|
||||||
|
Although not required by our licenses, you are encouraged to
|
||||||
|
respect those requests where reasonable. More considerations
|
||||||
|
for the public:
|
||||||
|
wiki.creativecommons.org/Considerations_for_licensees
|
||||||
|
|
||||||
|
=======================================================================
|
||||||
|
|
||||||
|
Creative Commons Attribution-ShareAlike 4.0 International Public
|
||||||
|
License
|
||||||
|
|
||||||
|
By exercising the Licensed Rights (defined below), You accept and agree
|
||||||
|
to be bound by the terms and conditions of this Creative Commons
|
||||||
|
Attribution-ShareAlike 4.0 International Public License ("Public
|
||||||
|
License"). To the extent this Public License may be interpreted as a
|
||||||
|
contract, You are granted the Licensed Rights in consideration of Your
|
||||||
|
acceptance of these terms and conditions, and the Licensor grants You
|
||||||
|
such rights in consideration of benefits the Licensor receives from
|
||||||
|
making the Licensed Material available under these terms and
|
||||||
|
conditions.
|
||||||
|
|
||||||
|
|
||||||
|
Section 1 -- Definitions.
|
||||||
|
|
||||||
|
a. Adapted Material means material subject to Copyright and Similar
|
||||||
|
Rights that is derived from or based upon the Licensed Material
|
||||||
|
and in which the Licensed Material is translated, altered,
|
||||||
|
arranged, transformed, or otherwise modified in a manner requiring
|
||||||
|
permission under the Copyright and Similar Rights held by the
|
||||||
|
Licensor. For purposes of this Public License, where the Licensed
|
||||||
|
Material is a musical work, performance, or sound recording,
|
||||||
|
Adapted Material is always produced where the Licensed Material is
|
||||||
|
synched in timed relation with a moving image.
|
||||||
|
|
||||||
|
b. Adapter's License means the license You apply to Your Copyright
|
||||||
|
and Similar Rights in Your contributions to Adapted Material in
|
||||||
|
accordance with the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
c. BY-SA Compatible License means a license listed at
|
||||||
|
creativecommons.org/compatiblelicenses, approved by Creative
|
||||||
|
Commons as essentially the equivalent of this Public License.
|
||||||
|
|
||||||
|
d. Copyright and Similar Rights means copyright and/or similar rights
|
||||||
|
closely related to copyright including, without limitation,
|
||||||
|
performance, broadcast, sound recording, and Sui Generis Database
|
||||||
|
Rights, without regard to how the rights are labeled or
|
||||||
|
categorized. For purposes of this Public License, the rights
|
||||||
|
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
||||||
|
Rights.
|
||||||
|
|
||||||
|
e. Effective Technological Measures means those measures that, in the
|
||||||
|
absence of proper authority, may not be circumvented under laws
|
||||||
|
fulfilling obligations under Article 11 of the WIPO Copyright
|
||||||
|
Treaty adopted on December 20, 1996, and/or similar international
|
||||||
|
agreements.
|
||||||
|
|
||||||
|
f. Exceptions and Limitations means fair use, fair dealing, and/or
|
||||||
|
any other exception or limitation to Copyright and Similar Rights
|
||||||
|
that applies to Your use of the Licensed Material.
|
||||||
|
|
||||||
|
g. License Elements means the license attributes listed in the name
|
||||||
|
of a Creative Commons Public License. The License Elements of this
|
||||||
|
Public License are Attribution and ShareAlike.
|
||||||
|
|
||||||
|
h. Licensed Material means the artistic or literary work, database,
|
||||||
|
or other material to which the Licensor applied this Public
|
||||||
|
License.
|
||||||
|
|
||||||
|
i. Licensed Rights means the rights granted to You subject to the
|
||||||
|
terms and conditions of this Public License, which are limited to
|
||||||
|
all Copyright and Similar Rights that apply to Your use of the
|
||||||
|
Licensed Material and that the Licensor has authority to license.
|
||||||
|
|
||||||
|
j. Licensor means the individual(s) or entity(ies) granting rights
|
||||||
|
under this Public License.
|
||||||
|
|
||||||
|
k. Share means to provide material to the public by any means or
|
||||||
|
process that requires permission under the Licensed Rights, such
|
||||||
|
as reproduction, public display, public performance, distribution,
|
||||||
|
dissemination, communication, or importation, and to make material
|
||||||
|
available to the public including in ways that members of the
|
||||||
|
public may access the material from a place and at a time
|
||||||
|
individually chosen by them.
|
||||||
|
|
||||||
|
l. Sui Generis Database Rights means rights other than copyright
|
||||||
|
resulting from Directive 96/9/EC of the European Parliament and of
|
||||||
|
the Council of 11 March 1996 on the legal protection of databases,
|
||||||
|
as amended and/or succeeded, as well as other essentially
|
||||||
|
equivalent rights anywhere in the world.
|
||||||
|
|
||||||
|
m. You means the individual or entity exercising the Licensed Rights
|
||||||
|
under this Public License. Your has a corresponding meaning.
|
||||||
|
|
||||||
|
|
||||||
|
Section 2 -- Scope.
|
||||||
|
|
||||||
|
a. License grant.
|
||||||
|
|
||||||
|
1. Subject to the terms and conditions of this Public License,
|
||||||
|
the Licensor hereby grants You a worldwide, royalty-free,
|
||||||
|
non-sublicensable, non-exclusive, irrevocable license to
|
||||||
|
exercise the Licensed Rights in the Licensed Material to:
|
||||||
|
|
||||||
|
a. reproduce and Share the Licensed Material, in whole or
|
||||||
|
in part; and
|
||||||
|
|
||||||
|
b. produce, reproduce, and Share Adapted Material.
|
||||||
|
|
||||||
|
2. Exceptions and Limitations. For the avoidance of doubt, where
|
||||||
|
Exceptions and Limitations apply to Your use, this Public
|
||||||
|
License does not apply, and You do not need to comply with
|
||||||
|
its terms and conditions.
|
||||||
|
|
||||||
|
3. Term. The term of this Public License is specified in Section
|
||||||
|
6(a).
|
||||||
|
|
||||||
|
4. Media and formats; technical modifications allowed. The
|
||||||
|
Licensor authorizes You to exercise the Licensed Rights in
|
||||||
|
all media and formats whether now known or hereafter created,
|
||||||
|
and to make technical modifications necessary to do so. The
|
||||||
|
Licensor waives and/or agrees not to assert any right or
|
||||||
|
authority to forbid You from making technical modifications
|
||||||
|
necessary to exercise the Licensed Rights, including
|
||||||
|
technical modifications necessary to circumvent Effective
|
||||||
|
Technological Measures. For purposes of this Public License,
|
||||||
|
simply making modifications authorized by this Section 2(a)
|
||||||
|
(4) never produces Adapted Material.
|
||||||
|
|
||||||
|
5. Downstream recipients.
|
||||||
|
|
||||||
|
a. Offer from the Licensor -- Licensed Material. Every
|
||||||
|
recipient of the Licensed Material automatically
|
||||||
|
receives an offer from the Licensor to exercise the
|
||||||
|
Licensed Rights under the terms and conditions of this
|
||||||
|
Public License.
|
||||||
|
|
||||||
|
b. Additional offer from the Licensor -- Adapted Material.
|
||||||
|
Every recipient of Adapted Material from You
|
||||||
|
automatically receives an offer from the Licensor to
|
||||||
|
exercise the Licensed Rights in the Adapted Material
|
||||||
|
under the conditions of the Adapter's License You apply.
|
||||||
|
|
||||||
|
c. No downstream restrictions. You may not offer or impose
|
||||||
|
any additional or different terms or conditions on, or
|
||||||
|
apply any Effective Technological Measures to, the
|
||||||
|
Licensed Material if doing so restricts exercise of the
|
||||||
|
Licensed Rights by any recipient of the Licensed
|
||||||
|
Material.
|
||||||
|
|
||||||
|
6. No endorsement. Nothing in this Public License constitutes or
|
||||||
|
may be construed as permission to assert or imply that You
|
||||||
|
are, or that Your use of the Licensed Material is, connected
|
||||||
|
with, or sponsored, endorsed, or granted official status by,
|
||||||
|
the Licensor or others designated to receive attribution as
|
||||||
|
provided in Section 3(a)(1)(A)(i).
|
||||||
|
|
||||||
|
b. Other rights.
|
||||||
|
|
||||||
|
1. Moral rights, such as the right of integrity, are not
|
||||||
|
licensed under this Public License, nor are publicity,
|
||||||
|
privacy, and/or other similar personality rights; however, to
|
||||||
|
the extent possible, the Licensor waives and/or agrees not to
|
||||||
|
assert any such rights held by the Licensor to the limited
|
||||||
|
extent necessary to allow You to exercise the Licensed
|
||||||
|
Rights, but not otherwise.
|
||||||
|
|
||||||
|
2. Patent and trademark rights are not licensed under this
|
||||||
|
Public License.
|
||||||
|
|
||||||
|
3. To the extent possible, the Licensor waives any right to
|
||||||
|
collect royalties from You for the exercise of the Licensed
|
||||||
|
Rights, whether directly or through a collecting society
|
||||||
|
under any voluntary or waivable statutory or compulsory
|
||||||
|
licensing scheme. In all other cases the Licensor expressly
|
||||||
|
reserves any right to collect such royalties.
|
||||||
|
|
||||||
|
|
||||||
|
Section 3 -- License Conditions.
|
||||||
|
|
||||||
|
Your exercise of the Licensed Rights is expressly made subject to the
|
||||||
|
following conditions.
|
||||||
|
|
||||||
|
a. Attribution.
|
||||||
|
|
||||||
|
1. If You Share the Licensed Material (including in modified
|
||||||
|
form), You must:
|
||||||
|
|
||||||
|
a. retain the following if it is supplied by the Licensor
|
||||||
|
with the Licensed Material:
|
||||||
|
|
||||||
|
i. identification of the creator(s) of the Licensed
|
||||||
|
Material and any others designated to receive
|
||||||
|
attribution, in any reasonable manner requested by
|
||||||
|
the Licensor (including by pseudonym if
|
||||||
|
designated);
|
||||||
|
|
||||||
|
ii. a copyright notice;
|
||||||
|
|
||||||
|
iii. a notice that refers to this Public License;
|
||||||
|
|
||||||
|
iv. a notice that refers to the disclaimer of
|
||||||
|
warranties;
|
||||||
|
|
||||||
|
v. a URI or hyperlink to the Licensed Material to the
|
||||||
|
extent reasonably practicable;
|
||||||
|
|
||||||
|
b. indicate if You modified the Licensed Material and
|
||||||
|
retain an indication of any previous modifications; and
|
||||||
|
|
||||||
|
c. indicate the Licensed Material is licensed under this
|
||||||
|
Public License, and include the text of, or the URI or
|
||||||
|
hyperlink to, this Public License.
|
||||||
|
|
||||||
|
2. You may satisfy the conditions in Section 3(a)(1) in any
|
||||||
|
reasonable manner based on the medium, means, and context in
|
||||||
|
which You Share the Licensed Material. For example, it may be
|
||||||
|
reasonable to satisfy the conditions by providing a URI or
|
||||||
|
hyperlink to a resource that includes the required
|
||||||
|
information.
|
||||||
|
|
||||||
|
3. If requested by the Licensor, You must remove any of the
|
||||||
|
information required by Section 3(a)(1)(A) to the extent
|
||||||
|
reasonably practicable.
|
||||||
|
|
||||||
|
b. ShareAlike.
|
||||||
|
|
||||||
|
In addition to the conditions in Section 3(a), if You Share
|
||||||
|
Adapted Material You produce, the following conditions also apply.
|
||||||
|
|
||||||
|
1. The Adapter's License You apply must be a Creative Commons
|
||||||
|
license with the same License Elements, this version or
|
||||||
|
later, or a BY-SA Compatible License.
|
||||||
|
|
||||||
|
2. You must include the text of, or the URI or hyperlink to, the
|
||||||
|
Adapter's License You apply. You may satisfy this condition
|
||||||
|
in any reasonable manner based on the medium, means, and
|
||||||
|
context in which You Share Adapted Material.
|
||||||
|
|
||||||
|
3. You may not offer or impose any additional or different terms
|
||||||
|
or conditions on, or apply any Effective Technological
|
||||||
|
Measures to, Adapted Material that restrict exercise of the
|
||||||
|
rights granted under the Adapter's License You apply.
|
||||||
|
|
||||||
|
|
||||||
|
Section 4 -- Sui Generis Database Rights.
|
||||||
|
|
||||||
|
Where the Licensed Rights include Sui Generis Database Rights that
|
||||||
|
apply to Your use of the Licensed Material:
|
||||||
|
|
||||||
|
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
||||||
|
to extract, reuse, reproduce, and Share all or a substantial
|
||||||
|
portion of the contents of the database;
|
||||||
|
|
||||||
|
b. if You include all or a substantial portion of the database
|
||||||
|
contents in a database in which You have Sui Generis Database
|
||||||
|
Rights, then the database in which You have Sui Generis Database
|
||||||
|
Rights (but not its individual contents) is Adapted Material,
|
||||||
|
|
||||||
|
including for purposes of Section 3(b); and
|
||||||
|
c. You must comply with the conditions in Section 3(a) if You Share
|
||||||
|
all or a substantial portion of the contents of the database.
|
||||||
|
|
||||||
|
For the avoidance of doubt, this Section 4 supplements and does not
|
||||||
|
replace Your obligations under this Public License where the Licensed
|
||||||
|
Rights include other Copyright and Similar Rights.
|
||||||
|
|
||||||
|
|
||||||
|
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
||||||
|
|
||||||
|
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
||||||
|
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
||||||
|
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
||||||
|
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
||||||
|
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
||||||
|
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
||||||
|
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
||||||
|
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
||||||
|
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
||||||
|
|
||||||
|
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
||||||
|
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
||||||
|
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
||||||
|
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
||||||
|
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
||||||
|
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
||||||
|
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
||||||
|
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
||||||
|
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
||||||
|
|
||||||
|
c. The disclaimer of warranties and limitation of liability provided
|
||||||
|
above shall be interpreted in a manner that, to the extent
|
||||||
|
possible, most closely approximates an absolute disclaimer and
|
||||||
|
waiver of all liability.
|
||||||
|
|
||||||
|
|
||||||
|
Section 6 -- Term and Termination.
|
||||||
|
|
||||||
|
a. This Public License applies for the term of the Copyright and
|
||||||
|
Similar Rights licensed here. However, if You fail to comply with
|
||||||
|
this Public License, then Your rights under this Public License
|
||||||
|
terminate automatically.
|
||||||
|
|
||||||
|
b. Where Your right to use the Licensed Material has terminated under
|
||||||
|
Section 6(a), it reinstates:
|
||||||
|
|
||||||
|
1. automatically as of the date the violation is cured, provided
|
||||||
|
it is cured within 30 days of Your discovery of the
|
||||||
|
violation; or
|
||||||
|
|
||||||
|
2. upon express reinstatement by the Licensor.
|
||||||
|
|
||||||
|
For the avoidance of doubt, this Section 6(b) does not affect any
|
||||||
|
right the Licensor may have to seek remedies for Your violations
|
||||||
|
of this Public License.
|
||||||
|
|
||||||
|
c. For the avoidance of doubt, the Licensor may also offer the
|
||||||
|
Licensed Material under separate terms or conditions or stop
|
||||||
|
distributing the Licensed Material at any time; however, doing so
|
||||||
|
will not terminate this Public License.
|
||||||
|
|
||||||
|
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
||||||
|
License.
|
||||||
|
|
||||||
|
|
||||||
|
Section 7 -- Other Terms and Conditions.
|
||||||
|
|
||||||
|
a. The Licensor shall not be bound by any additional or different
|
||||||
|
terms or conditions communicated by You unless expressly agreed.
|
||||||
|
|
||||||
|
b. Any arrangements, understandings, or agreements regarding the
|
||||||
|
Licensed Material not stated herein are separate from and
|
||||||
|
independent of the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
|
||||||
|
Section 8 -- Interpretation.
|
||||||
|
|
||||||
|
a. For the avoidance of doubt, this Public License does not, and
|
||||||
|
shall not be interpreted to, reduce, limit, restrict, or impose
|
||||||
|
conditions on any use of the Licensed Material that could lawfully
|
||||||
|
be made without permission under this Public License.
|
||||||
|
|
||||||
|
b. To the extent possible, if any provision of this Public License is
|
||||||
|
deemed unenforceable, it shall be automatically reformed to the
|
||||||
|
minimum extent necessary to make it enforceable. If the provision
|
||||||
|
cannot be reformed, it shall be severed from this Public License
|
||||||
|
without affecting the enforceability of the remaining terms and
|
||||||
|
conditions.
|
||||||
|
|
||||||
|
c. No term or condition of this Public License will be waived and no
|
||||||
|
failure to comply consented to unless expressly agreed to by the
|
||||||
|
Licensor.
|
||||||
|
|
||||||
|
d. Nothing in this Public License constitutes or may be interpreted
|
||||||
|
as a limitation upon, or waiver of, any privileges and immunities
|
||||||
|
that apply to the Licensor or You, including from the legal
|
||||||
|
processes of any jurisdiction or authority.
|
||||||
|
|
||||||
|
|
||||||
|
=======================================================================
|
||||||
|
|
||||||
|
Creative Commons is not a party to its public
|
||||||
|
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
||||||
|
its public licenses to material it publishes and in those instances
|
||||||
|
will be considered the “Licensor.” The text of the Creative Commons
|
||||||
|
public licenses is dedicated to the public domain under the CC0 Public
|
||||||
|
Domain Dedication. Except for the limited purpose of indicating that
|
||||||
|
material is shared under a Creative Commons public license or as
|
||||||
|
otherwise permitted by the Creative Commons policies published at
|
||||||
|
creativecommons.org/policies, Creative Commons does not authorize the
|
||||||
|
use of the trademark "Creative Commons" or any other trademark or logo
|
||||||
|
of Creative Commons without its prior written consent including,
|
||||||
|
without limitation, in connection with any unauthorized modifications
|
||||||
|
to any of its public licenses or any other arrangements,
|
||||||
|
understandings, or agreements concerning use of licensed material. For
|
||||||
|
the avoidance of doubt, this paragraph does not form part of the
|
||||||
|
public licenses.
|
||||||
|
|
||||||
|
Creative Commons may be contacted at creativecommons.org.
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
default
|
|
||||||
biome_lib
|
|
||||||
flowers_plus?
|
|
3
along_shore/mod.conf
Normal file
3
along_shore/mod.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
name = along_shore
|
||||||
|
depends = default, biome_lib
|
||||||
|
optional_depends = flowers_plus
|
@ -1,4 +0,0 @@
|
|||||||
default
|
|
||||||
biome_lib
|
|
||||||
stonage?
|
|
||||||
sumpf?
|
|
@ -1,14 +1,17 @@
|
|||||||
-- Bushes Mod by Mossmanikin, Evergreen, & Neuromancer
|
-- Bushes Mod by Mossmanikin, Evergreen, & Neuromancer
|
||||||
-- The initial code for this was taken from Mossmanikin's Grasses Mod, then heavilly modified by Neuromancer for this mod.
|
-- The initial code for this was taken from Mossmanikin's Grasses Mod,
|
||||||
|
-- then heavilly modified by Neuromancer for this mod.
|
||||||
-- Mossmanikin also greatly helped with providing samples for coding.
|
-- Mossmanikin also greatly helped with providing samples for coding.
|
||||||
-- bush leaf textures are cc-by-sa 3.0. from VannessaE's moretrees mod. (Leaf texture created by RealBadAngel or VanessaE)
|
-- bush leaf textures are from VannessaE's moretrees mod.
|
||||||
|
-- (Leaf texture created by RealBadAngel or VanessaE)
|
||||||
-- Branch textures created by Neuromancer.
|
-- Branch textures created by Neuromancer.
|
||||||
-- Licence for Code and Non-Bush leaf code is WTFPL.
|
|
||||||
|
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("bushes")
|
||||||
abstract_bushes = {}
|
abstract_bushes = {}
|
||||||
|
|
||||||
minetest.register_node("bushes:youngtree2_bottom", {
|
minetest.register_node("bushes:youngtree2_bottom", {
|
||||||
description = "Young Tree 2 (bottom)",
|
description = S("Young Tree 2 (bottom)"),
|
||||||
drawtype="nodebox",
|
drawtype="nodebox",
|
||||||
tiles = {"bushes_youngtree2trunk.png"},
|
tiles = {"bushes_youngtree2trunk.png"},
|
||||||
inventory_image = "bushes_youngtree2trunk_inv.png",
|
inventory_image = "bushes_youngtree2trunk_inv.png",
|
||||||
@ -33,7 +36,7 @@ for i in pairs(BushBranchCenter) do
|
|||||||
local Num = BushBranchCenter[i][1]
|
local Num = BushBranchCenter[i][1]
|
||||||
local TexNum = BushBranchCenter[i][2]
|
local TexNum = BushBranchCenter[i][2]
|
||||||
minetest.register_node("bushes:bushbranches"..Num, {
|
minetest.register_node("bushes:bushbranches"..Num, {
|
||||||
description = "Bush Branches "..Num,
|
description = S("Bush Branches @1", Num),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
tiles = {
|
tiles = {
|
||||||
"bushes_leaves_"..TexNum..".png",
|
"bushes_leaves_"..TexNum..".png",
|
||||||
@ -70,7 +73,7 @@ for i in pairs(BushBranchSide) do
|
|||||||
local Num = BushBranchSide[i][1]
|
local Num = BushBranchSide[i][1]
|
||||||
local TexNum = BushBranchSide[i][2]
|
local TexNum = BushBranchSide[i][2]
|
||||||
minetest.register_node("bushes:bushbranches"..Num, {
|
minetest.register_node("bushes:bushbranches"..Num, {
|
||||||
description = "Bush Branches "..Num,
|
description = S("Bush Branches @1", Num),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
tiles = {
|
tiles = {
|
||||||
--[[top]] "bushes_leaves_"..TexNum..".png",
|
--[[top]] "bushes_leaves_"..TexNum..".png",
|
||||||
@ -112,7 +115,7 @@ local BushLeafNode = { {1}, {2}}
|
|||||||
for i in pairs(BushLeafNode) do
|
for i in pairs(BushLeafNode) do
|
||||||
local Num = BushLeafNode[i][1]
|
local Num = BushLeafNode[i][1]
|
||||||
minetest.register_node("bushes:BushLeaves"..Num, {
|
minetest.register_node("bushes:BushLeaves"..Num, {
|
||||||
description = "Bush Leaves "..Num,
|
description = S("Bush Leaves @1", Num),
|
||||||
drawtype = "allfaces_optional",
|
drawtype = "allfaces_optional",
|
||||||
tiles = {"bushes_leaves_"..Num..".png"},
|
tiles = {"bushes_leaves_"..Num..".png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
@ -181,14 +184,14 @@ abstract_bushes.grow_bush_node = function(pos,dir, leaf_type)
|
|||||||
|
|
||||||
if minetest.get_node(right_here).name == "air" -- instead of check_air = true,
|
if minetest.get_node(right_here).name == "air" -- instead of check_air = true,
|
||||||
or minetest.get_node(right_here).name == "default:junglegrass" then
|
or minetest.get_node(right_here).name == "default:junglegrass" then
|
||||||
minetest.set_node(right_here, {name="bushes:bushbranches"..bush_branch_type , param2=dir})
|
minetest.swap_node(right_here, {name="bushes:bushbranches"..bush_branch_type , param2=dir})
|
||||||
--minetest.chat_send_all("leaf_type: (" .. leaf_type .. ")")
|
--minetest.chat_send_all("leaf_type: (" .. leaf_type .. ")")
|
||||||
minetest.set_node(above_right_here, {name="bushes:BushLeaves"..leaf_type})
|
minetest.swap_node(above_right_here, {name="bushes:BushLeaves"..leaf_type})
|
||||||
local chance_of_high_leaves = math.random(1,10)
|
local chance_of_high_leaves = math.random(1,10)
|
||||||
if chance_of_high_leaves> 5 then
|
if chance_of_high_leaves> 5 then
|
||||||
local two_above_right_here = {x=pos.x, y=pos.y+3, z=pos.z}
|
local two_above_right_here = {x=pos.x, y=pos.y+3, z=pos.z}
|
||||||
--minetest.chat_send_all("leaf_type: (" .. leaf_type .. ")")
|
--minetest.chat_send_all("leaf_type: (" .. leaf_type .. ")")
|
||||||
minetest.set_node(two_above_right_here, {name="bushes:BushLeaves"..leaf_type})
|
minetest.swap_node(two_above_right_here, {name="bushes:BushLeaves"..leaf_type})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -227,12 +230,12 @@ abstract_bushes.grow_youngtree_node2 = function(pos, height)
|
|||||||
if height == 4 then
|
if height == 4 then
|
||||||
local two_above_right_here_south = {x=pos.x, y=pos.y+3, z=pos.z-1}
|
local two_above_right_here_south = {x=pos.x, y=pos.y+3, z=pos.z-1}
|
||||||
local three_above_right_here_south = {x=pos.x, y=pos.y+4, z=pos.z-1}
|
local three_above_right_here_south = {x=pos.x, y=pos.y+4, z=pos.z-1}
|
||||||
minetest.set_node(right_here, {name="bushes:youngtree2_bottom"})
|
minetest.swap_node(right_here, {name="bushes:youngtree2_bottom"})
|
||||||
minetest.set_node(above_right_here, {name="bushes:youngtree2_bottom"})
|
minetest.swap_node(above_right_here, {name="bushes:youngtree2_bottom"})
|
||||||
minetest.set_node(two_above_right_here, {name="bushes:bushbranches2" , param2=2})
|
minetest.swap_node(two_above_right_here, {name="bushes:bushbranches2" , param2=2})
|
||||||
minetest.set_node(two_above_right_here_south, {name="bushes:bushbranches2" , param2=0})
|
minetest.swap_node(two_above_right_here_south, {name="bushes:bushbranches2" , param2=0})
|
||||||
minetest.set_node(three_above_right_here, {name="bushes:BushLeaves1" })
|
minetest.swap_node(three_above_right_here, {name="bushes:BushLeaves1" })
|
||||||
minetest.set_node(three_above_right_here_south, {name="bushes:BushLeaves1" })
|
minetest.swap_node(three_above_right_here_south, {name="bushes:BushLeaves1" })
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
11
bushes/locale/bushes.fr.tr
Normal file
11
bushes/locale/bushes.fr.tr
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# textdomain: bushes
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# fat115 <fat115@framasoft.org>, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Young Tree 2 (bottom)=Arbuste 2 (bas)
|
||||||
|
Bush Branches @1=Branches de buisson @1
|
||||||
|
Bush Leaves @1=Feuilles de buisson @1
|
10
bushes/locale/template.txt
Normal file
10
bushes/locale/template.txt
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# textdomain: bushes
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
|
||||||
|
Young Tree 2 (bottom)=
|
||||||
|
Bush Branches @1=
|
||||||
|
Bush Leaves @1=
|
3
bushes/mod.conf
Normal file
3
bushes/mod.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
name = bushes
|
||||||
|
depends = default, biome_lib
|
||||||
|
optional_depends = stonage, sumpf
|
@ -1,4 +1,5 @@
|
|||||||
local S = biome_lib.intllib
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("bushes_classic")
|
||||||
|
|
||||||
-- Basket
|
-- Basket
|
||||||
|
|
||||||
@ -12,63 +13,80 @@ minetest.register_craft({
|
|||||||
|
|
||||||
-- Sugar
|
-- Sugar
|
||||||
|
|
||||||
minetest.register_craftitem(":bushes:sugar", {
|
if not minetest.registered_items["farming:sugar"] then
|
||||||
|
minetest.register_craftitem(":bushes:sugar", {
|
||||||
description = S("Sugar"),
|
description = S("Sugar"),
|
||||||
inventory_image = "bushes_sugar.png",
|
inventory_image = "bushes_sugar.png",
|
||||||
on_use = minetest.item_eat(1),
|
on_use = minetest.item_eat(1),
|
||||||
groups = {food_sugar=1}
|
groups = {food_sugar=1, flammable = 2}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "bushes:sugar 1",
|
output = "bushes:sugar 1",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "default:papyrus", "default:papyrus" },
|
{ "default:papyrus", "default:papyrus" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
else
|
||||||
|
minetest.register_alias("bushes:sugar", "farming:sugar")
|
||||||
|
end
|
||||||
|
|
||||||
|
-- override farming_plus strawberry and add food_ group
|
||||||
|
if minetest.get_modpath("farming_plus") then
|
||||||
|
|
||||||
|
minetest.override_item("farming_plus:strawberry_item", {
|
||||||
|
groups = {food_strawberry = 1, food_berry = 1, flammable = 2},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
for i, berry in ipairs(bushes_classic.bushes) do
|
for i, berry in ipairs(bushes_classic.bushes) do
|
||||||
local desc = bushes_classic.bushes_descriptions[i]
|
|
||||||
|
|
||||||
|
local groups = {food_berry = 1, flammable = 2}
|
||||||
|
|
||||||
|
if berry ~= "mixed_berry" then
|
||||||
|
|
||||||
|
groups["food_" .. berry] = 1
|
||||||
|
|
||||||
|
-- Berry
|
||||||
|
minetest.register_craftitem(":bushes:"..berry, {
|
||||||
|
description = bushes_classic.bushes_descriptions[i][1],
|
||||||
|
inventory_image = "bushes_"..berry..".png",
|
||||||
|
groups = groups,
|
||||||
|
on_use = minetest.item_eat(1),
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Raw pie
|
||||||
minetest.register_craftitem(":bushes:"..berry.."_pie_raw", {
|
minetest.register_craftitem(":bushes:"..berry.."_pie_raw", {
|
||||||
description = S("Raw "..desc.." pie"),
|
description = bushes_classic.bushes_descriptions[i][2],
|
||||||
inventory_image = "bushes_"..berry.."_pie_raw.png",
|
inventory_image = "bushes_"..berry.."_pie_raw.png",
|
||||||
on_use = minetest.item_eat(4),
|
on_use = minetest.item_eat(4),
|
||||||
})
|
})
|
||||||
|
|
||||||
if berry ~= "mixed_berry" then
|
if berry ~= "mixed_berry" then
|
||||||
|
|
||||||
if berry == "strawberry" and minetest.registered_nodes["farming_plus:strawberry"] then
|
|
||||||
-- Special case for strawberries, when farming_plus is in use. Use
|
|
||||||
-- the item from that mod, but redefine it so it has the right
|
|
||||||
-- groups and does't look so ugly!
|
|
||||||
minetest.register_craftitem(":farming_plus:strawberry_item", {
|
|
||||||
description = S("Strawberry"),
|
|
||||||
inventory_image = "bushes_"..berry..".png",
|
|
||||||
on_use = minetest.item_eat(2),
|
|
||||||
groups = {berry=1, strawberry=1}
|
|
||||||
})
|
|
||||||
minetest.register_alias("bushes:strawberry", "farming_plus:strawberry_item")
|
|
||||||
else
|
|
||||||
minetest.register_craftitem(":bushes:"..berry, {
|
|
||||||
description = desc,
|
|
||||||
inventory_image = "bushes_"..berry..".png",
|
|
||||||
groups = {berry = 1, [berry] = 1},
|
|
||||||
on_use = minetest.item_eat(1),
|
|
||||||
})
|
|
||||||
end
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "bushes:"..berry.."_pie_raw 1",
|
output = "bushes:"..berry.."_pie_raw 1",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "group:food_sugar", "farming:flour", "group:food_sugar" },
|
{ "group:food_sugar", "farming:flour", "group:food_sugar" },
|
||||||
{ "group:"..berry, "group:"..berry, "group:"..berry },
|
{ "group:food_"..berry, "group:food_"..berry, "group:food_"..berry },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
else
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "bushes:mixed_berry_pie_raw 2",
|
||||||
|
recipe = {
|
||||||
|
{ "group:food_sugar", "farming:flour", "group:food_sugar" },
|
||||||
|
{ "group:food_berry", "group:food_berry", "group:food_berry" },
|
||||||
|
{ "group:food_berry", "group:food_berry", "group:food_berry" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Cooked pie
|
-- Cooked pie
|
||||||
|
|
||||||
minetest.register_craftitem(":bushes:"..berry.."_pie_cooked", {
|
minetest.register_craftitem(":bushes:"..berry.."_pie_cooked", {
|
||||||
description = S("Cooked "..desc.." pie"),
|
description = bushes_classic.bushes_descriptions[i][3],
|
||||||
inventory_image = "bushes_"..berry.."_pie_cooked.png",
|
inventory_image = "bushes_"..berry.."_pie_cooked.png",
|
||||||
on_use = minetest.item_eat(6),
|
on_use = minetest.item_eat(6),
|
||||||
})
|
})
|
||||||
@ -80,10 +98,9 @@ for i, berry in ipairs(bushes_classic.bushes) do
|
|||||||
cooktime = 30,
|
cooktime = 30,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- slice of pie
|
-- Slice of pie
|
||||||
|
|
||||||
minetest.register_craftitem(":bushes:"..berry.."_pie_slice", {
|
minetest.register_craftitem(":bushes:"..berry.."_pie_slice", {
|
||||||
description = S("Slice of "..desc.." pie"),
|
description = bushes_classic.bushes_descriptions[i][4],
|
||||||
inventory_image = "bushes_"..berry.."_pie_slice.png",
|
inventory_image = "bushes_"..berry.."_pie_slice.png",
|
||||||
on_use = minetest.item_eat(1),
|
on_use = minetest.item_eat(1),
|
||||||
})
|
})
|
||||||
@ -96,7 +113,6 @@ for i, berry in ipairs(bushes_classic.bushes) do
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- Basket with pies
|
-- Basket with pies
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "bushes:basket_"..berry.." 1",
|
output = "bushes:basket_"..berry.." 1",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -105,14 +121,3 @@ for i, berry in ipairs(bushes_classic.bushes) do
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "bushes:mixed_berry_pie_raw 2",
|
|
||||||
recipe = {
|
|
||||||
{ "group:food_sugar", "farming:flour", "group:food_sugar" },
|
|
||||||
{ "group:berry", "group:berry", "group:berry" },
|
|
||||||
{ "group:berry", "group:berry", "group:berry" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
biome_lib
|
|
||||||
farming?
|
|
||||||
farming_plus?
|
|
@ -1,12 +1,11 @@
|
|||||||
-- Bushes classic mod originally by unknown
|
-- Bushes classic mod originally by unknown
|
||||||
-- now maintained by VanessaE
|
-- now maintained by VanessaE
|
||||||
--
|
|
||||||
-- License: WTFPL
|
|
||||||
|
|
||||||
local S = biome_lib.intllib
|
|
||||||
|
|
||||||
bushes_classic = {}
|
bushes_classic = {}
|
||||||
|
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("bushes_classic")
|
||||||
|
|
||||||
bushes_classic.bushes = {
|
bushes_classic.bushes = {
|
||||||
"strawberry",
|
"strawberry",
|
||||||
"blackberry",
|
"blackberry",
|
||||||
@ -17,12 +16,12 @@ bushes_classic.bushes = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bushes_classic.bushes_descriptions = {
|
bushes_classic.bushes_descriptions = {
|
||||||
"Strawberry",
|
{S("Strawberry"), S("Raw Strawberry pie"), S("Cooked Strawberry pie"), S("Slice of Strawberry pie"), S("Basket with Strawberry pies"), S("Strawberry Bush")},
|
||||||
"Blackberry",
|
{S("Blackberry"), S("Raw Blackberry pie"), S("Cooked Blackberry pie"), S("Slice of Blackberry pie"), S("Basket with Blackberry pies"), S("Blackberry Bush")},
|
||||||
"Blueberry",
|
{S("Blueberry"), S("Raw Blueberry pie"), S("Cooked Blueberry pie"), S("Slice of Blueberry pie"), S("Basket with Blueberry pies"), S("Blueberry Bush")},
|
||||||
"Raspberry",
|
{S("Raspberry"), S("Raw Raspberry pie"), S("Cooked Raspberry pie"), S("Slice of Raspberry pie"), S("Basket with Raspberry pies"), S("Raspberry Bush")},
|
||||||
"Gooseberry",
|
{S("Gooseberry"), S("Raw Gooseberry pie"), S("Cooked Gooseberry pie"), S("Slice of Gooseberry pie"), S("Basket with Gooseberry pies"), S("Gooseberry Bush")},
|
||||||
"Mixed Berry"
|
{S("Mixed Berry"), S("Raw Mixed Berry pie"), S("Cooked Mixed Berry pie"), S("Slice of Mixed Berry pie"), S("Basket with Mixed Berry pies"), S("Currently fruitless Bush")}
|
||||||
}
|
}
|
||||||
|
|
||||||
bushes_classic.spawn_list = {}
|
bushes_classic.spawn_list = {}
|
||||||
@ -56,4 +55,4 @@ biome_lib:spawn_on_surfaces({
|
|||||||
|
|
||||||
minetest.register_alias("bushes:basket_pies", "bushes:basket_strawberry")
|
minetest.register_alias("bushes:basket_pies", "bushes:basket_strawberry")
|
||||||
|
|
||||||
print(S("[Bushes] Loaded."))
|
print("[Bushes] Loaded.")
|
||||||
|
46
bushes_classic/locale/bushes_classic.de.tr
Normal file
46
bushes_classic/locale/bushes_classic.de.tr
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
# textdomain: bushes_classic
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# Xanthin, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Sugar=Zucker
|
||||||
|
Basket with Strawberry pies=Korb mit Erdbeertorten
|
||||||
|
Cooked Strawberry pie=Erdbeertorte
|
||||||
|
Raw Strawberry pie=Rohe Erdbeertorte
|
||||||
|
Slice of Strawberry pie=Erdbeertortenstueck
|
||||||
|
Strawberry=Erdbeere
|
||||||
|
Strawberry Bush=Erdbeerbusch
|
||||||
|
Basket with Blackberry pies=Korb mit Brombeertorten
|
||||||
|
Blackberry=Brombeere
|
||||||
|
Blackberry Bush=Brombeerbusch
|
||||||
|
Cooked Blackberry pie=Brombeertorte
|
||||||
|
Raw Blackberry pie=Rohe Brombeertorte
|
||||||
|
Slice of Blackberry pie=Brombeertortenstueck
|
||||||
|
Basket with Blueberry pies=Korb mit Blaubeertorten
|
||||||
|
Blueberry=Blaubeere
|
||||||
|
Blueberry Bush=Blaubeerbusch
|
||||||
|
Cooked Blueberry pie=Blaubeertorte
|
||||||
|
Raw Blueberry pie=Rohe Blaubeertorte
|
||||||
|
Slice of Blueberry pie=Blaubeertortenstueck
|
||||||
|
Basket with Raspberry pies=Korb mit Himbeertorten
|
||||||
|
Cooked Raspberry pie=Himbeertorte
|
||||||
|
Raspberry=Himbeere
|
||||||
|
Raspberry Bush=Himbeerbusch
|
||||||
|
Raw Raspberry pie=Rohe Himbeertorte
|
||||||
|
Slice of Raspberry pie=Himbeertortenstueck
|
||||||
|
Basket with Gooseberry pies=Korb mit Stachelbeertorten
|
||||||
|
Cooked Gooseberry pie=Stachelbeertorte
|
||||||
|
Gooseberry=Stachelbeere
|
||||||
|
Gooseberry Bush=Stachelbeerbusch
|
||||||
|
Raw Gooseberry pie=Rohe Stachelbeertorte
|
||||||
|
Slice of Gooseberry pie=Stachelbeertortenstueck
|
||||||
|
Basket with Mixed Berry pies=Korb mit Beerenmixtorten
|
||||||
|
Cooked Mixed Berry pie=Beerenmixtorte
|
||||||
|
Currently fruitless Bush=zur Zeit fruechteloser
|
||||||
|
Mixed Berry=Beerenmix
|
||||||
|
Raw Mixed Berry pie=Rohe Beerenmixtorte
|
||||||
|
Slice of Mixed Berry pie=Beerenmixtortenstueck
|
||||||
|
Basket=Korb
|
46
bushes_classic/locale/bushes_classic.es.tr
Normal file
46
bushes_classic/locale/bushes_classic.es.tr
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
# textdomain: bushes_classic
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# Carlos Barraza <carlosbarrazaes@gmail.com>, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Sugar=Azúcar
|
||||||
|
Basket with Strawberry pies=Cesta con Pasteles de Frutilla
|
||||||
|
Cooked Strawberry pie=Pastel de Frutilla Cocido
|
||||||
|
Raw Strawberry pie=Pastel de Frutilla Crudo
|
||||||
|
Slice of Strawberry pie=Rebanada de Pastel de Frutilla
|
||||||
|
Strawberry=Frutilla
|
||||||
|
Strawberry Bush=Arbusto de Frutilla
|
||||||
|
Basket with Blackberry pies=Cesta con Pasteles de Mora
|
||||||
|
Blackberry=Mora
|
||||||
|
Blackberry Bush=Arbusto de Mora
|
||||||
|
Cooked Blackberry pie=Pastel de Mora Cocido
|
||||||
|
Raw Blackberry pie=Pastel de Mora Crudo
|
||||||
|
Slice of Blackberry pie=Rebanada de Pastel de Mora
|
||||||
|
Basket with Blueberry pies=Cesta con Pasteles de Arándano
|
||||||
|
Blueberry=Arándano
|
||||||
|
Blueberry Bush=Arbusto de Arándano
|
||||||
|
Cooked Blueberry pie=Pastel de Arándano Cocido
|
||||||
|
Raw Blueberry pie=Pastel de Arándano Crudo
|
||||||
|
Slice of Blueberry pie=Rebanada de Pastel de Arándano
|
||||||
|
Basket with Raspberry pies=Cesta con Pasteles de Frambuesa
|
||||||
|
Cooked Raspberry pie=Pastel de Frambuesa Cocido
|
||||||
|
Raspberry=Frambuesa
|
||||||
|
Raspberry Bush=Arbusto de Frambuesa
|
||||||
|
Raw Raspberry pie=Pastel de Frambuesa Crudo
|
||||||
|
Slice of Raspberry pie=Rebanada de Pastel de Frambuesa
|
||||||
|
Basket with Gooseberry pies=Cesta con Pasteles de Grosella
|
||||||
|
Cooked Gooseberry pie=Pastel de Grosella Cocido
|
||||||
|
Gooseberry=Grosella
|
||||||
|
Gooseberry Bush=Arbusto de Grosella
|
||||||
|
Raw Gooseberry pie=Pastel de Grosella Crudo
|
||||||
|
Slice of Gooseberry pie=Rebanada de Pastel de Grosella
|
||||||
|
Basket with Mixed Berry pies=Cesta con Pasteles de Mezcla de Baya
|
||||||
|
Cooked Mixed Berry pie=Pastel de Mezcla de Bayas Cocido
|
||||||
|
Currently fruitless Bush=Arbusto actualmente infructuoso
|
||||||
|
Mixed Berry=Mezcla de Baya
|
||||||
|
Raw Mixed Berry pie=Pastel de Mezcla de Bayas Cruda
|
||||||
|
Slice of Mixed Berry pie=Rebanada de Pastel de Mezcla de Bayas
|
||||||
|
Basket=Cesta
|
46
bushes_classic/locale/bushes_classic.fr.tr
Normal file
46
bushes_classic/locale/bushes_classic.fr.tr
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
# textdomain: bushes_classic
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# fat115 <fat115@framasoft.org>, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Sugar=Sucre
|
||||||
|
Basket with Strawberry pies=Panier de tartes aux fraises
|
||||||
|
Cooked Strawberry pie=Tarte aux fraises (cuite)
|
||||||
|
Raw Strawberry pie=Tarte aux fraises (crue)
|
||||||
|
Slice of Strawberry pie=Part de tarte aux fraises
|
||||||
|
Strawberry=Fraises
|
||||||
|
Strawberry Bush=Buisson de fraises
|
||||||
|
Basket with Blackberry pies=Panier de tartes aux fraises
|
||||||
|
Blackberry=Mûres
|
||||||
|
Blackberry Bush=Buisson de mûres
|
||||||
|
Cooked Blackberry pie=Tarte aux mûres (cuite)
|
||||||
|
Raw Blackberry pie=Tarte aux mûres (crue)
|
||||||
|
Slice of Blackberry pie=Part de tarte aux mûres
|
||||||
|
Basket with Blueberry pies=Panier de tartes aux mûres
|
||||||
|
Blueberry=Myrtilles
|
||||||
|
Blueberry Bush=Buisson de myrtilles
|
||||||
|
Cooked Blueberry pie=Tarte aux myrtilles (cuite)
|
||||||
|
Raw Blueberry pie=Tarte aux myrtilles (crue)
|
||||||
|
Slice of Blueberry pie=Part de tarte aux myrtilles
|
||||||
|
Basket with Raspberry pies=Panier de tartes aux framboises
|
||||||
|
Cooked Raspberry pie=Tarte aux framboises (cuite)
|
||||||
|
Raspberry=Framboises
|
||||||
|
Raspberry Bush=Buisson de framboises
|
||||||
|
Raw Raspberry pie=Tarte aux framboises (crue)
|
||||||
|
Slice of Raspberry pie=Part de tarts aux framboises
|
||||||
|
Basket with Gooseberry pies=Panier de tartes aux groseilles
|
||||||
|
Cooked Gooseberry pie=Tarte aux groseilles (cuite)
|
||||||
|
Gooseberry=Groseilles
|
||||||
|
Gooseberry Bush=Buisson de groseilles
|
||||||
|
Raw Gooseberry pie=Tarte aux groseilles (crue)
|
||||||
|
Slice of Gooseberry pie=Part de tarte aux groseilles
|
||||||
|
Basket with Mixed Berry pies=Panier de tartes aux fruits rouges
|
||||||
|
Cooked Mixed Berry pie=Tarte aux fruits rouges (cuite)
|
||||||
|
Currently fruitless Bush=Buisson sans fruits pour l'instant
|
||||||
|
Mixed Berry=Fruits rouges
|
||||||
|
Raw Mixed Berry pie=Tarte aux fruits rouges (crue)
|
||||||
|
Slice of Mixed Berry pie=Part de tarte aux fruits rouges
|
||||||
|
Basket=Panier
|
46
bushes_classic/locale/bushes_classic.tr.tr
Normal file
46
bushes_classic/locale/bushes_classic.tr.tr
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
# textdomain: bushes_classic
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# mahmutelmas06@hotmail.com, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Sugar=Şeker
|
||||||
|
Basket with Strawberry pies=Çilekli pasta sepeti
|
||||||
|
Cooked Strawberry pie=Pişmiş çilekli pasta
|
||||||
|
Raw Strawberry pie=Çilekli çiğ pasta
|
||||||
|
Slice of Strawberry pie=Çilekli pasta dilimi
|
||||||
|
Strawberry=Çilek
|
||||||
|
Strawberry Bush=Çilek fidanı
|
||||||
|
Basket with Blackberry pies=Böğürtlenli pasta sepeti
|
||||||
|
Blackberry=Böğürtlen
|
||||||
|
Blackberry Bush=Böğürtlen fidanı
|
||||||
|
Cooked Blackberry pie=Pişmiş böğürtlenli pasta
|
||||||
|
Raw Blackberry pie=Böğürtlenli çiğ pasta
|
||||||
|
Slice of Blackberry pie=Böğürtlenli pasta dilimi
|
||||||
|
Basket with Blueberry pies=Yaban mersini pastalı sepet
|
||||||
|
Blueberry=Yaban mersini
|
||||||
|
Blueberry Bush=Yaban mersini fidanı
|
||||||
|
Cooked Blueberry pie=Pişmiş yaban mersinli pasta
|
||||||
|
Raw Blueberry pie=Yaban mersinli çiğ pasta
|
||||||
|
Slice of Blueberry pie=Yaban mersinli pasta dilimi
|
||||||
|
Basket with Raspberry pies=Ahududulu pasta sepeti
|
||||||
|
Cooked Raspberry pie=Pişmiş ahududulu pasta
|
||||||
|
Raspberry=Ahududu
|
||||||
|
Raspberry Bush=Ahududu fidanı
|
||||||
|
Raw Raspberry pie=Ahududulu çiğ pasta
|
||||||
|
Slice of Raspberry pie=Ahududulu pasta dilimi
|
||||||
|
Basket with Gooseberry pies=Bektaşi üzümlü pasta sepeti
|
||||||
|
Cooked Gooseberry pie=Pişmiş bektaşi üzümlü pasta
|
||||||
|
Gooseberry=Bektaşi üzümü
|
||||||
|
Gooseberry Bush=Bektaşi üzümü fidanı
|
||||||
|
Raw Gooseberry pie=Bektaşi üzümlü çiğ pasta
|
||||||
|
Slice of Gooseberry pie=Bektaşi üzümlü pasta dilimi
|
||||||
|
Basket with Mixed Berry pies=Dutlu pasta sepeti
|
||||||
|
Cooked Mixed Berry pie=Pişmiş dutlu pasta
|
||||||
|
Currently fruitless Bush=Fidanı şu anda meyvesiz
|
||||||
|
Mixed Berry=Dut
|
||||||
|
Raw Mixed Berry pie=Dutlu çiğ pasta
|
||||||
|
Slice of Mixed Berry pie=Dutlu pasta dilimi
|
||||||
|
Basket=Sepet
|
@ -1,43 +0,0 @@
|
|||||||
# Translation by Xanthin
|
|
||||||
|
|
||||||
Strawberry = Erdbeere
|
|
||||||
Blackberry = Brombeere
|
|
||||||
Blueberry = Blaubeere
|
|
||||||
Raspberry = Himbeere
|
|
||||||
Gooseberry = Stachelbeere
|
|
||||||
Mixed Berry = Beerenmix
|
|
||||||
Basket with Strawberry Pies = Korb mit Erdbeertorten
|
|
||||||
Basket with Blackberry Pies = Korb mit Brombeertorten
|
|
||||||
Basket with Blueberry Pies = Korb mit Blaubeertorten
|
|
||||||
Basket with Raspberry Pies = Korb mit Himbeertorten
|
|
||||||
Basket with Gooseberry Pies = Korb mit Stachelbeertorten
|
|
||||||
Basket with Mixed Berry Pies = Korb mit Beerenmixtorten
|
|
||||||
currently fruitless = zur Zeit fruechteloser
|
|
||||||
Strawberry Bush = Erdbeerbusch
|
|
||||||
Blackberry Bush = Brombeerbusch
|
|
||||||
Blueberry Bush = Blaubeerbusch
|
|
||||||
Raspberry Bush = Himbeerbusch
|
|
||||||
Gooseberry Bush = Stachelbeerbusch
|
|
||||||
Mixed Berry Bush = Beerenmixbusch
|
|
||||||
Basket = Korb
|
|
||||||
Sugar = Zucker
|
|
||||||
Raw Strawberry pie = Rohe Erdbeertorte
|
|
||||||
Raw Blackberry pie = Rohe Brombeertorte
|
|
||||||
Raw Blueberry pie = Rohe Blaubeertorte
|
|
||||||
Raw Raspberry pie = Rohe Himbeertorte
|
|
||||||
Raw Gooseberry pie = Rohe Stachelbeertorte
|
|
||||||
Raw Mixed Berry pie = Rohe Beerenmixtorte
|
|
||||||
Cooked Strawberry pie = Erdbeertorte
|
|
||||||
Cooked Blackberry pie = Brombeertorte
|
|
||||||
Cooked Blueberry pie = Blaubeertorte
|
|
||||||
Cooked Raspberry pie = Himbeertorte
|
|
||||||
Cooked Gooseberry pie = Stachelbeertorte
|
|
||||||
Cooked Mixed Berry pie = Beerenmixtorte
|
|
||||||
Slice of Strawberry pie = Erdbeertortenstueck
|
|
||||||
Slice of Blackberry pie = Brombeertortenstueck
|
|
||||||
Slice of Blueberry pie = Blaubeertortenstueck
|
|
||||||
Slice of Raspberry pie = Himbeertortenstueck
|
|
||||||
Slice of Gooseberry pie = Stachelbeertortenstueck
|
|
||||||
Slice of Mixed Berry pie = Beerenmixtortenstueck
|
|
||||||
|
|
||||||
[Bushes] Loaded. = [Bushes] Geladen.
|
|
@ -1,43 +0,0 @@
|
|||||||
# Template
|
|
||||||
|
|
||||||
Strawberry = Fraise
|
|
||||||
Blackberry = Mûre
|
|
||||||
Blueberry = Myrtille
|
|
||||||
Raspberry = Framboise
|
|
||||||
Gooseberry = Groseille
|
|
||||||
Mixed Berry = Mélange de baies
|
|
||||||
Basket with Strawberry Pies = Panier de tartes aux fraises
|
|
||||||
Basket with Blackberry Pies = Panier de tartes aux mûres
|
|
||||||
Basket with Blueberry Pies = Panier de tartes aux myrtilles
|
|
||||||
Basket with Raspberry Pies = Panier de tartes aux framboises
|
|
||||||
Basket with Gooseberry Pies = Panier de tartes aux groseilles
|
|
||||||
Basket with Mixed Berry Pies = Panier de tartes au mélange de baies
|
|
||||||
currently fruitless = actuellement sans fruit
|
|
||||||
Strawberry Bush = Buisson à fraise
|
|
||||||
Blackberry Bush = Buisson à mûre
|
|
||||||
Blueberry Bush = Buisson à myrtille
|
|
||||||
Raspberry Bush = Buisson à framboise
|
|
||||||
Gooseberry Bush = Buisson à groseille
|
|
||||||
Mixed Berry Bush = Buisson de baies mélangées
|
|
||||||
Basket = Panier
|
|
||||||
Sugar = Sucre
|
|
||||||
Raw Strawberry pie = Tarte crue aux fraises
|
|
||||||
Raw Blackberry pie = Tarte crue aux mûres
|
|
||||||
Raw Blueberry pie = Tarte crue aux myrtilles
|
|
||||||
Raw Raspberry pie = Tarte crue aux framboises
|
|
||||||
Raw Gooseberry pie = Tarte crue aux groseilles
|
|
||||||
Raw Mixed Berry pie = Tarte crue au mélange de baies
|
|
||||||
Cooked Strawberry pie = Tarte cuite aux fraises
|
|
||||||
Cooked Blackberry pie = Tarte cuite aux mûres
|
|
||||||
Cooked Blueberry pie = Tarte cuite aux myrtilles
|
|
||||||
Cooked Raspberry pie = Tarte cuite aux framboises
|
|
||||||
Cooked Gooseberry pie = Tarte cuite aux groseilles
|
|
||||||
Cooked Mixed Berry pie = Tarte cuite au mélange de baies
|
|
||||||
Slice of Strawberry pie = Part de tarte aux fraises
|
|
||||||
Slice of Blackberry pie = Part de tarte aux mûres
|
|
||||||
Slice of Blueberry pie = Part de tarte aux myrtilles
|
|
||||||
Slice of Raspberry pie = Part de tarts aux framboises
|
|
||||||
Slice of Gooseberry pie = Part de tarte aux groseilles
|
|
||||||
Slice of Mixed Berry pie = Part de tarte au mélange de baies
|
|
||||||
|
|
||||||
[Bushes] Loaded. = [Buissons] Chargés.
|
|
@ -1,43 +1,46 @@
|
|||||||
# Template
|
# textdomain: bushes_classic
|
||||||
|
|
||||||
Strawberry =
|
# SOME DESCRIPTIVE TITLE.
|
||||||
Blackberry =
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
Blueberry =
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
Raspberry =
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
Gooseberry =
|
#
|
||||||
Mixed Berry =
|
|
||||||
Basket with Strawberry Pies =
|
|
||||||
Basket with Blackberry Pies =
|
|
||||||
Basket with Blueberry Pies =
|
|
||||||
Basket with Raspberry Pies =
|
|
||||||
Basket with Gooseberry Pies =
|
|
||||||
Basket with Mixed Berry Pies =
|
|
||||||
currently fruitless =
|
|
||||||
Strawberry Bush =
|
|
||||||
Blackberry Bush =
|
|
||||||
Blueberry Bush =
|
|
||||||
Raspberry Bush =
|
|
||||||
Gooseberry Bush =
|
|
||||||
Mixed Berry Bush =
|
|
||||||
Basket =
|
|
||||||
Sugar =
|
|
||||||
Raw Strawberry pie =
|
|
||||||
Raw Blackberry pie =
|
|
||||||
Raw Blueberry pie =
|
|
||||||
Raw Raspberry pie =
|
|
||||||
Raw Gooseberry pie =
|
|
||||||
Raw Mixed Berry pie =
|
|
||||||
Cooked Strawberry pie =
|
|
||||||
Cooked Blackberry pie =
|
|
||||||
Cooked Blueberry pie =
|
|
||||||
Cooked Raspberry pie =
|
|
||||||
Cooked Gooseberry pie =
|
|
||||||
Cooked Mixed Berry pie =
|
|
||||||
Slice of Strawberry pie =
|
|
||||||
Slice of Blackberry pie =
|
|
||||||
Slice of Blueberry pie =
|
|
||||||
Slice of Raspberry pie =
|
|
||||||
Slice of Gooseberry pie =
|
|
||||||
Slice of Mixed Berry pie =
|
|
||||||
|
|
||||||
[Bushes] Loaded. =
|
Sugar=
|
||||||
|
Basket with Strawberry pies=
|
||||||
|
Cooked Strawberry pie=
|
||||||
|
Raw Strawberry pie=
|
||||||
|
Slice of Strawberry pie=
|
||||||
|
Strawberry=
|
||||||
|
Strawberry Bush=
|
||||||
|
Basket with Blackberry pies=
|
||||||
|
Blackberry=
|
||||||
|
Blackberry Bush=
|
||||||
|
Cooked Blackberry pie=
|
||||||
|
Raw Blackberry pie=
|
||||||
|
Slice of Blackberry pie=
|
||||||
|
Basket with Blueberry pies=
|
||||||
|
Blueberry=
|
||||||
|
Blueberry Bush=
|
||||||
|
Cooked Blueberry pie=
|
||||||
|
Raw Blueberry pie=
|
||||||
|
Slice of Blueberry pie=
|
||||||
|
Basket with Raspberry pies=
|
||||||
|
Cooked Raspberry pie=
|
||||||
|
Raspberry=
|
||||||
|
Raspberry Bush=
|
||||||
|
Raw Raspberry pie=
|
||||||
|
Slice of Raspberry pie=
|
||||||
|
Basket with Gooseberry pies=
|
||||||
|
Cooked Gooseberry pie=
|
||||||
|
Gooseberry=
|
||||||
|
Gooseberry Bush=
|
||||||
|
Raw Gooseberry pie=
|
||||||
|
Slice of Gooseberry pie=
|
||||||
|
Basket with Mixed Berry pies=
|
||||||
|
Cooked Mixed Berry pie=
|
||||||
|
Currently fruitless Bush=
|
||||||
|
Mixed Berry=
|
||||||
|
Raw Mixed Berry pie=
|
||||||
|
Slice of Mixed Berry pie=
|
||||||
|
Basket=
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
# Turkish translation
|
|
||||||
# mahmutelmas06@hotmail.com
|
|
||||||
|
|
||||||
Strawberry = Çilek
|
|
||||||
Blackberry = Böğürtlen
|
|
||||||
Blueberry = Yaban mersini
|
|
||||||
Raspberry = Ahududu
|
|
||||||
Gooseberry = Bektaşi üzümü
|
|
||||||
Mixed Berry = Dut
|
|
||||||
Basket with Strawberry Pies = Çilekli pasta sepeti
|
|
||||||
Basket with Blackberry Pies = Böğürtlenli pasta sepeti
|
|
||||||
Basket with Blueberry Pies = Yaban mersini pastalı sepet
|
|
||||||
Basket with Raspberry Pies = Ahududulu pasta sepeti
|
|
||||||
Basket with Gooseberry Pies = Bektaşi üzümlü pasta sepeti
|
|
||||||
Basket with Mixed Berry Pies = Dutlu pasta sepeti
|
|
||||||
currently fruitless = şu anda meyvesiz
|
|
||||||
Strawberry Bush = Çilek fidanı
|
|
||||||
Blackberry Bush = Böğürtlen fidanı
|
|
||||||
Blueberry Bush = Yaban mersini fidanı
|
|
||||||
Raspberry Bush = Ahududu fidanı
|
|
||||||
Gooseberry Bush = Bektaşi üzümü fidanı
|
|
||||||
Mixed Berry Bush = Dut fidanı
|
|
||||||
Basket = Sepet
|
|
||||||
Sugar = Şeker
|
|
||||||
Raw Strawberry pie = Çilekli çiğ pasta
|
|
||||||
Raw Blackberry pie = Böğürtlenli çiğ pasta
|
|
||||||
Raw Blueberry pie = Yaban mersinli çiğ pasta
|
|
||||||
Raw Raspberry pie = Ahududulu çiğ pasta
|
|
||||||
Raw Gooseberry pie = Bektaşi üzümlü çiğ pasta
|
|
||||||
Raw Mixed Berry pie = Dutlu çiğ pasta
|
|
||||||
Cooked Strawberry pie = Pişmiş çilekli pasta
|
|
||||||
Cooked Blackberry pie = Pişmiş böğürtlenli pasta
|
|
||||||
Cooked Blueberry pie = Pişmiş yaban mersinli pasta
|
|
||||||
Cooked Raspberry pie = Pişmiş ahududulu pasta
|
|
||||||
Cooked Gooseberry pie = Pişmiş bektaşi üzümlü pasta
|
|
||||||
Cooked Mixed Berry pie = Pişmiş dutlu pasta
|
|
||||||
Slice of Strawberry pie = Çilekli pasta dilimi
|
|
||||||
Slice of Blackberry pie = Böğürtlenli pasta dilimi
|
|
||||||
Slice of Blueberry pie = Yaban mersinli pasta dilimi
|
|
||||||
Slice of Raspberry pie = Ahududulu pasta dilimi
|
|
||||||
Slice of Gooseberry pie = Bektaşi üzümlü pasta dilimi
|
|
||||||
Slice of Mixed Berry pie = Dutlu pasta dilimi
|
|
||||||
|
|
||||||
[Bushes] Loaded. = [Bushes] yüklendi.
|
|
3
bushes_classic/mod.conf
Normal file
3
bushes_classic/mod.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
name = bushes_classic
|
||||||
|
depends = biome_lib
|
||||||
|
optional_depends = farming, farming_plus
|
@ -1,4 +1,5 @@
|
|||||||
local S = biome_lib.intllib
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("bushes_classic")
|
||||||
|
|
||||||
plantlife_bushes = {}
|
plantlife_bushes = {}
|
||||||
|
|
||||||
@ -46,7 +47,7 @@ plantlife_bushes.after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
|||||||
elseif groupcaps.snappy then
|
elseif groupcaps.snappy then
|
||||||
|
|
||||||
-- plant a new bush without fruits
|
-- plant a new bush without fruits
|
||||||
minetest.set_node(pos, {type = "node", name = "bushes:fruitless_bush"})
|
minetest.swap_node(pos, {type = "node", name = "bushes:fruitless_bush"})
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string('bush_type', bush_name)
|
meta:set_string('bush_type', bush_name)
|
||||||
|
|
||||||
@ -113,7 +114,7 @@ plantlife_bushes.after_place_node = function(pos, placer, itemstack)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.set_node(pos, {name = "bushes:fruitless_bush"})
|
minetest.swap_node(pos, {name = "bushes:fruitless_bush"})
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("bush_type", name_parts[1])
|
meta:set_string("bush_type", name_parts[1])
|
||||||
end
|
end
|
||||||
@ -136,7 +137,7 @@ minetest.register_abm({
|
|||||||
local is_soil = minetest.get_item_group(dirt.name, "soil") or minetest.get_item_group(dirt.name, "potting_soil")
|
local is_soil = minetest.get_item_group(dirt.name, "soil") or minetest.get_item_group(dirt.name, "potting_soil")
|
||||||
|
|
||||||
if is_soil and (dirt.name == "farming:soil_wet" or math.random(1,3) == 1) then
|
if is_soil and (dirt.name == "farming:soil_wet" or math.random(1,3) == 1) then
|
||||||
minetest.set_node( pos, {name = "bushes:" .. bush_name .. "_bush"})
|
minetest.swap_node( pos, {name = "bushes:" .. bush_name .. "_bush"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -146,10 +147,8 @@ minetest.register_abm({
|
|||||||
|
|
||||||
for i, bush_name in ipairs(bushes_classic.bushes) do
|
for i, bush_name in ipairs(bushes_classic.bushes) do
|
||||||
|
|
||||||
local desc = bushes_classic.bushes_descriptions[i]
|
|
||||||
|
|
||||||
minetest.register_node(":bushes:basket_"..bush_name, {
|
minetest.register_node(":bushes:basket_"..bush_name, {
|
||||||
description = S("Basket with "..desc.." Pies"),
|
description = bushes_classic.bushes_descriptions[i][5],
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "bushes_basket_full.obj",
|
mesh = "bushes_basket_full.obj",
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -167,7 +166,6 @@ for i, bush_name in ipairs(bushes_classic.bushes) do
|
|||||||
local groups = {snappy = 3, bush = 1, flammable = 2, attached_node=1}
|
local groups = {snappy = 3, bush = 1, flammable = 2, attached_node=1}
|
||||||
if bush_name == "mixed_berry" then
|
if bush_name == "mixed_berry" then
|
||||||
bush_name = "fruitless";
|
bush_name = "fruitless";
|
||||||
desc = S("currently fruitless");
|
|
||||||
texture_top = "bushes_fruitless_bush_top.png"
|
texture_top = "bushes_fruitless_bush_top.png"
|
||||||
texture_bottom = "bushes_fruitless_bush_bottom.png"
|
texture_bottom = "bushes_fruitless_bush_bottom.png"
|
||||||
groups.not_in_creative_inventory = 1
|
groups.not_in_creative_inventory = 1
|
||||||
@ -177,7 +175,7 @@ for i, bush_name in ipairs(bushes_classic.bushes) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node(":bushes:" .. bush_name .. "_bush", {
|
minetest.register_node(":bushes:" .. bush_name .. "_bush", {
|
||||||
description = S(desc.." Bush"),
|
description = bushes_classic.bushes_descriptions[i][6],
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "bushes_bush.obj",
|
mesh = "bushes_bush.obj",
|
||||||
tiles = {"bushes_bush_"..bush_name..".png"},
|
tiles = {"bushes_bush_"..bush_name..".png"},
|
||||||
@ -210,5 +208,3 @@ minetest.register_node(":bushes:basket_empty", {
|
|||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = { dig_immediate = 3 },
|
groups = { dig_immediate = 3 },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
default
|
|
||||||
|
|
@ -4,6 +4,9 @@ local version = "0.0.3"
|
|||||||
local mname = "cavestuff"
|
local mname = "cavestuff"
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("cavestuff")
|
||||||
|
|
||||||
dofile(minetest.get_modpath("cavestuff").."/nodes.lua")
|
dofile(minetest.get_modpath("cavestuff").."/nodes.lua")
|
||||||
dofile(minetest.get_modpath("cavestuff").."/mapgen.lua")
|
dofile(minetest.get_modpath("cavestuff").."/mapgen.lua")
|
||||||
|
|
||||||
|
11
cavestuff/locale/cavestuff.fr.tr
Normal file
11
cavestuff/locale/cavestuff.fr.tr
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# textdomain: cavestuff
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# fat115 <fat115@framasoft.org>, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Pebble=Caillou
|
||||||
|
Desert Pebble=Caillou du désert
|
||||||
|
Stalactite=Stalactite
|
11
cavestuff/locale/template.txt
Normal file
11
cavestuff/locale/template.txt
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# textdomain: cavestuff
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
|
||||||
|
Pebble=
|
||||||
|
Desert Pebble=
|
||||||
|
Stalactite=
|
@ -38,9 +38,9 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
nn = minetest.get_node({x=x,y=ground_y,z=z}).name
|
nn = minetest.get_node({x=x,y=ground_y,z=z}).name
|
||||||
-- If desert sand, add dry shrub
|
-- If desert sand, add dry shrub
|
||||||
if nn == "default:dirt_with_grass" then
|
if nn == "default:dirt_with_grass" then
|
||||||
minetest.set_node(p,{name="cavestuff:pebble_"..pr:next(1,2), param2=math.random(0,3)})
|
minetest.swap_node(p,{name="cavestuff:pebble_"..pr:next(1,2), param2=math.random(0,3)})
|
||||||
elseif nn == "default:desert_sand" then
|
elseif nn == "default:desert_sand" then
|
||||||
minetest.set_node(p,{name="cavestuff:desert_pebble_"..pr:next(1,2), param2=math.random(0,3)})
|
minetest.swap_node(p,{name="cavestuff:desert_pebble_"..pr:next(1,2), param2=math.random(0,3)})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
2
cavestuff/mod.conf
Normal file
2
cavestuff/mod.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
name = cavestuff
|
||||||
|
depends = default
|
@ -1,3 +1,6 @@
|
|||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("cavestuff")
|
||||||
|
|
||||||
--Rocks
|
--Rocks
|
||||||
|
|
||||||
local cbox = {
|
local cbox = {
|
||||||
@ -6,7 +9,7 @@ local cbox = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
minetest.register_node("cavestuff:pebble_1",{
|
minetest.register_node("cavestuff:pebble_1",{
|
||||||
description = "Pebble",
|
description = S("Pebble"),
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "cavestuff_pebble.obj",
|
mesh = "cavestuff_pebble.obj",
|
||||||
tiles = {"undergrowth_pebble.png"},
|
tiles = {"undergrowth_pebble.png"},
|
||||||
@ -39,7 +42,7 @@ minetest.register_node("cavestuff:pebble_2",{
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("cavestuff:desert_pebble_1",{
|
minetest.register_node("cavestuff:desert_pebble_1",{
|
||||||
description = "Desert Pebble",
|
description = S("Desert Pebble"),
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "cavestuff_pebble.obj",
|
mesh = "cavestuff_pebble.obj",
|
||||||
tiles = {"default_desert_stone.png"},
|
tiles = {"default_desert_stone.png"},
|
||||||
@ -64,7 +67,7 @@ minetest.register_node("cavestuff:desert_pebble_2",{
|
|||||||
tiles = {"default_desert_stone.png"},
|
tiles = {"default_desert_stone.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=3, stone=1, not_in_creative__inventory=1},
|
groups = {cracky=3, stone=1, not_in_creative_inventory=1},
|
||||||
selection_box = cbox,
|
selection_box = cbox,
|
||||||
collision_box = cbox,
|
collision_box = cbox,
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
@ -76,7 +79,7 @@ minetest.register_node("cavestuff:stalactite_1",{
|
|||||||
drawtype="nodebox",
|
drawtype="nodebox",
|
||||||
tiles = {"undergrowth_pebble.png"},
|
tiles = {"undergrowth_pebble.png"},
|
||||||
groups = {cracky=3,attached_node=1},
|
groups = {cracky=3,attached_node=1},
|
||||||
description = "Stalactite",
|
description = S("Stalactite"),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
node_box = {
|
node_box = {
|
||||||
@ -94,7 +97,7 @@ minetest.register_node("cavestuff:stalactite_1",{
|
|||||||
if minetest.get_node(pt.under).name=="default:stone"
|
if minetest.get_node(pt.under).name=="default:stone"
|
||||||
and minetest.get_node({x=pt.under.x, y=pt.under.y-1, z=pt.under.z}).name=="air"
|
and minetest.get_node({x=pt.under.x, y=pt.under.y-1, z=pt.under.z}).name=="air"
|
||||||
and minetest.get_node({x=pt.under.x, y=pt.under.y-2, z=pt.under.z}).name=="air" then
|
and minetest.get_node({x=pt.under.x, y=pt.under.y-2, z=pt.under.z}).name=="air" then
|
||||||
minetest.set_node({x=pt.under.x, y=pt.under.y-1, z=pt.under.z}, {name="cavestuff:stalactite_"..math.random(1,3)})
|
minetest.swap_node({x=pt.under.x, y=pt.under.y-1, z=pt.under.z}, {name="cavestuff:stalactite_"..math.random(1,3)})
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
end
|
end
|
||||||
@ -140,6 +143,3 @@ minetest.register_node("cavestuff:stalactite_3",{
|
|||||||
})
|
})
|
||||||
|
|
||||||
--Stalagmites
|
--Stalagmites
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
-- Dry Plants - Recipes 0.1.0 -- Short Grass -> Dirt
|
-- Dry Plants - Recipes 0.1.0 -- Short Grass -> Dirt
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- by Mossmanikin
|
-- by Mossmanikin
|
||||||
-- License (everything): WTFPL
|
|
||||||
-- Looked at code from: darkage, default, farming, sickle, stairs
|
-- Looked at code from: darkage, default, farming, sickle, stairs
|
||||||
-- Dependencies: default, farming
|
-- Dependencies: default, farming
|
||||||
-- Supports: flint, stoneage, sumpf
|
-- Supports: flint, stoneage, sumpf
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
default
|
|
||||||
biome_lib
|
|
||||||
farming?
|
|
@ -6,7 +6,6 @@ local mname = "dryplants"
|
|||||||
-- by Mossmanikin
|
-- by Mossmanikin
|
||||||
-- textures & ideas partly by Neuromancer
|
-- textures & ideas partly by Neuromancer
|
||||||
|
|
||||||
-- License (everything): WTFPL
|
|
||||||
-- Contains code from: default, farming
|
-- Contains code from: default, farming
|
||||||
-- Looked at code from: darkage, sickle, stairs
|
-- Looked at code from: darkage, sickle, stairs
|
||||||
-- Dependencies: default, farming, biome_lib
|
-- Dependencies: default, farming, biome_lib
|
||||||
@ -14,6 +13,9 @@ local mname = "dryplants"
|
|||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
abstract_dryplants = {}
|
abstract_dryplants = {}
|
||||||
|
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("dryplants")
|
||||||
|
|
||||||
dofile(minetest.get_modpath("dryplants").."/crafting.lua")
|
dofile(minetest.get_modpath("dryplants").."/crafting.lua")
|
||||||
dofile(minetest.get_modpath("dryplants").."/settings.txt")
|
dofile(minetest.get_modpath("dryplants").."/settings.txt")
|
||||||
dofile(minetest.get_modpath("dryplants").."/reed.lua")
|
dofile(minetest.get_modpath("dryplants").."/reed.lua")
|
||||||
@ -83,7 +85,7 @@ local function sickle_on_use(itemstack, user, pointed_thing, uses)
|
|||||||
-- check if flora but no flower
|
-- check if flora but no flower
|
||||||
if minetest.get_item_group(under.name, "flora") == 1 and minetest.get_item_group(under.name, "flower") == 0 then
|
if minetest.get_item_group(under.name, "flora") == 1 and minetest.get_item_group(under.name, "flower") == 0 then
|
||||||
-- turn the node into cut grass, wear out item and play sound
|
-- turn the node into cut grass, wear out item and play sound
|
||||||
minetest.set_node(pt.under, {name="dryplants:grass"})
|
minetest.swap_node(pt.under, {name="dryplants:grass"})
|
||||||
else -- otherwise dig the node
|
else -- otherwise dig the node
|
||||||
if not minetest.node_dig(pt.under, under, user) then
|
if not minetest.node_dig(pt.under, under, user) then
|
||||||
return
|
return
|
||||||
@ -99,8 +101,8 @@ local function sickle_on_use(itemstack, user, pointed_thing, uses)
|
|||||||
if minetest.is_protected(above_pos, user:get_player_name()) or above.name ~= "air" then
|
if minetest.is_protected(above_pos, user:get_player_name()) or above.name ~= "air" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
minetest.set_node(pt.under, {name="dryplants:grass_short"})
|
minetest.swap_node(pt.under, {name="dryplants:grass_short"})
|
||||||
minetest.set_node(above_pos, {name="dryplants:grass"})
|
minetest.swap_node(above_pos, {name="dryplants:grass"})
|
||||||
minetest.sound_play("default_dig_crumbly", {
|
minetest.sound_play("default_dig_crumbly", {
|
||||||
pos = pt.under,
|
pos = pt.under,
|
||||||
gain = 0.5,
|
gain = 0.5,
|
||||||
@ -111,7 +113,7 @@ local function sickle_on_use(itemstack, user, pointed_thing, uses)
|
|||||||
end
|
end
|
||||||
-- the tool
|
-- the tool
|
||||||
minetest.register_tool("dryplants:sickle", {
|
minetest.register_tool("dryplants:sickle", {
|
||||||
description = "Sickle",
|
description = S("Sickle"),
|
||||||
inventory_image = "dryplants_sickle.png",
|
inventory_image = "dryplants_sickle.png",
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
return sickle_on_use(itemstack, user, pointed_thing, 220)
|
return sickle_on_use(itemstack, user, pointed_thing, 220)
|
||||||
@ -122,7 +124,7 @@ minetest.register_tool("dryplants:sickle", {
|
|||||||
-- Cut Grass
|
-- Cut Grass
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:grass", {
|
minetest.register_node("dryplants:grass", {
|
||||||
description = "Cut Grass",
|
description = S("Cut Grass"),
|
||||||
inventory_image = "dryplants_grass.png",
|
inventory_image = "dryplants_grass.png",
|
||||||
wield_image = "dryplants_grass.png",
|
wield_image = "dryplants_grass.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
@ -145,7 +147,7 @@ minetest.register_abm({
|
|||||||
interval = HAY_DRYING_TIME, --1200, -- 20 minutes: a minetest-day/night-cycle
|
interval = HAY_DRYING_TIME, --1200, -- 20 minutes: a minetest-day/night-cycle
|
||||||
chance = 1,
|
chance = 1,
|
||||||
action = function(pos)
|
action = function(pos)
|
||||||
minetest.set_node(pos, {name="dryplants:hay"})
|
minetest.swap_node(pos, {name="dryplants:hay"})
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -153,7 +155,7 @@ minetest.register_abm({
|
|||||||
-- Hay
|
-- Hay
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:hay", {
|
minetest.register_node("dryplants:hay", {
|
||||||
description = "Hay",
|
description = S("Hay"),
|
||||||
inventory_image = "dryplants_hay.png",
|
inventory_image = "dryplants_hay.png",
|
||||||
wield_image = "dryplants_hay.png",
|
wield_image = "dryplants_hay.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
@ -172,7 +174,7 @@ minetest.register_node("dryplants:hay", {
|
|||||||
-- Short Grass
|
-- Short Grass
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:grass_short", {
|
minetest.register_node("dryplants:grass_short", {
|
||||||
description = "Short Grass",
|
description = S("Short Grass"),
|
||||||
tiles = {"default_grass.png^dryplants_grass_short.png", "default_dirt.png", "default_dirt.png^default_grass_side.png^dryplants_grass_short_side.png"},
|
tiles = {"default_grass.png^dryplants_grass_short.png", "default_dirt.png", "default_dirt.png^default_grass_side.png^dryplants_grass_short_side.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {crumbly=3,soil=1,not_in_creative_inventory=1},
|
groups = {crumbly=3,soil=1,not_in_creative_inventory=1},
|
||||||
@ -193,7 +195,7 @@ minetest.register_abm({
|
|||||||
-- Only become dirt with grass if no cut grass or hay lies on top
|
-- Only become dirt with grass if no cut grass or hay lies on top
|
||||||
local above = minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z})
|
local above = minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z})
|
||||||
if above.name ~= "dryplants:grass" and above.name ~= "dryplants:hay" then
|
if above.name ~= "dryplants:grass" and above.name ~= "dryplants:hay" then
|
||||||
minetest.set_node(pos, {name="default:dirt_with_grass"})
|
minetest.swap_node(pos, {name="default:dirt_with_grass"})
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -4,28 +4,30 @@
|
|||||||
-- by Mossmanikin
|
-- by Mossmanikin
|
||||||
-- textures & ideas partly by Neuromancer
|
-- textures & ideas partly by Neuromancer
|
||||||
|
|
||||||
-- License (everything): WTFPL
|
|
||||||
-- Contains code from: biome_lib
|
-- Contains code from: biome_lib
|
||||||
-- Looked at code from: default
|
-- Looked at code from: default
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("dryplants")
|
||||||
|
|
||||||
abstract_dryplants.grow_juncus = function(pos)
|
abstract_dryplants.grow_juncus = function(pos)
|
||||||
local juncus_type = math.random(2,3)
|
local juncus_type = math.random(2,3)
|
||||||
local right_here = {x=pos.x, y=pos.y+1, z=pos.z}
|
local right_here = {x=pos.x, y=pos.y+1, z=pos.z}
|
||||||
if minetest.get_node(right_here).name == "air" -- instead of check_air = true,
|
if minetest.get_node(right_here).name == "air" -- instead of check_air = true,
|
||||||
or minetest.get_node(right_here).name == "default:junglegrass" then
|
or minetest.get_node(right_here).name == "default:junglegrass" then
|
||||||
if juncus_type == 2 then
|
if juncus_type == 2 then
|
||||||
minetest.set_node(right_here, {name="dryplants:juncus_02"})
|
minetest.swap_node(right_here, {name="dryplants:juncus_02"})
|
||||||
else
|
else
|
||||||
minetest.set_node(right_here, {name="dryplants:juncus"})
|
minetest.swap_node(right_here, {name="dryplants:juncus"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node("dryplants:juncus", {
|
minetest.register_node("dryplants:juncus", {
|
||||||
description = "Juncus",
|
description = S("Juncus"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 2,
|
visual_scale = math.sqrt(8),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"dryplants_juncus_03.png"},
|
tiles = {"dryplants_juncus_03.png"},
|
||||||
inventory_image = "dryplants_juncus_inv.png",
|
inventory_image = "dryplants_juncus_inv.png",
|
||||||
@ -54,9 +56,9 @@ minetest.register_node("dryplants:juncus", {
|
|||||||
local juncus_type = math.random(2,3)
|
local juncus_type = math.random(2,3)
|
||||||
local right_here = {x=pos.x, y=pos.y+1, z=pos.z}
|
local right_here = {x=pos.x, y=pos.y+1, z=pos.z}
|
||||||
if juncus_type == 2 then
|
if juncus_type == 2 then
|
||||||
minetest.set_node(right_here, {name="dryplants:juncus_02"})
|
minetest.swap_node(right_here, {name="dryplants:juncus_02"})
|
||||||
else
|
else
|
||||||
minetest.set_node(right_here, {name="dryplants:juncus"})
|
minetest.swap_node(right_here, {name="dryplants:juncus"})
|
||||||
end
|
end
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
@ -65,9 +67,9 @@ minetest.register_node("dryplants:juncus", {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
minetest.register_node("dryplants:juncus_02", {
|
minetest.register_node("dryplants:juncus_02", {
|
||||||
description = "Juncus",
|
description = S("Juncus"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 2,
|
visual_scale = math.sqrt(8),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"dryplants_juncus_02.png"},
|
tiles = {"dryplants_juncus_02.png"},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
|
28
dryplants/locale/dryplants.fr.tr
Normal file
28
dryplants/locale/dryplants.fr.tr
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# textdomain: dryplants
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# fat115 <fat115@framasoft.org>, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Sickle=Faucille
|
||||||
|
Cut Grass=Herbe coupée
|
||||||
|
Hay=Foin
|
||||||
|
Short Grass=Herbes courtes
|
||||||
|
Juncus=Joncs
|
||||||
|
Wet Reed=Bloc de roseau humide
|
||||||
|
Wet Reed Slab=Dalle en roseau humide
|
||||||
|
Wet Reed Roof=Toit en roseau humide
|
||||||
|
Wet Reed Roof Corner=Angle de toit en roseau humide
|
||||||
|
Wet Reed Roof Corner 2=Angle de toit en roseau humide 2
|
||||||
|
Reed=Roseau
|
||||||
|
Reed Slab=Dalle en roseau
|
||||||
|
Reed Roof=Toit en roseau
|
||||||
|
Reed Roof Corner=Angle de toit en roseau
|
||||||
|
Reed Roof Corner 2=Angle de toit en roseau 2
|
||||||
|
Reedmace=Roseau
|
||||||
|
Reedmace, height: 1=Roseau, 1 de hauteur
|
||||||
|
Reedmace, height: 2=Roseau, 2 de hauteur
|
||||||
|
Reedmace, height: 3=Roseau, 3 de hauteur
|
||||||
|
Reedmace, height: 3 & Spikes=Roseau, 3 de hauteur avec panicules
|
28
dryplants/locale/template.txt
Normal file
28
dryplants/locale/template.txt
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# textdomain: dryplants
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
|
||||||
|
Sickle=
|
||||||
|
Cut Grass=
|
||||||
|
Hay=
|
||||||
|
Short Grass=
|
||||||
|
Juncus=
|
||||||
|
Wet Reed=
|
||||||
|
Wet Reed Slab=
|
||||||
|
Wet Reed Roof=
|
||||||
|
Wet Reed Roof Corner=
|
||||||
|
Wet Reed Roof Corner 2=
|
||||||
|
Reed=
|
||||||
|
Reed Slab=
|
||||||
|
Reed Roof=
|
||||||
|
Reed Roof Corner=
|
||||||
|
Reed Roof Corner 2=
|
||||||
|
Reedmace=
|
||||||
|
Reedmace, height: 1=
|
||||||
|
Reedmace, height: 2=
|
||||||
|
Reedmace, height: 3=
|
||||||
|
Reedmace, height: 3 & Spikes=
|
@ -3,14 +3,13 @@
|
|||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- by Mossmanikin
|
-- by Mossmanikin
|
||||||
|
|
||||||
-- License (everything): WTFPL
|
|
||||||
-- Contains code from: biome_lib
|
-- Contains code from: biome_lib
|
||||||
-- Looked at code from: default
|
-- Looked at code from: default
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
abstract_dryplants.grow_grass_variation = function(pos)
|
abstract_dryplants.grow_grass_variation = function(pos)
|
||||||
local right_here = {x=pos.x, y=pos.y, z=pos.z}
|
local right_here = {x=pos.x, y=pos.y, z=pos.z}
|
||||||
minetest.set_node(right_here, {name="dryplants:grass_short"})
|
minetest.swap_node(right_here, {name="dryplants:grass_short"})
|
||||||
end
|
end
|
||||||
|
|
||||||
biome_lib:register_generate_plant({
|
biome_lib:register_generate_plant({
|
||||||
|
3
dryplants/mod.conf
Normal file
3
dryplants/mod.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
name = dryplants
|
||||||
|
depends = default, biome_lib
|
||||||
|
optional_depends = farming
|
@ -3,7 +3,6 @@
|
|||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- by Mossmanikin
|
-- by Mossmanikin
|
||||||
|
|
||||||
-- License (everything): WTFPL
|
|
||||||
-- Contains code from: biome_lib
|
-- Contains code from: biome_lib
|
||||||
-- Looked at code from: default
|
-- Looked at code from: default
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
@ -13,7 +12,7 @@ abstract_dryplants.grow_grass = function(pos)
|
|||||||
local grass_size = math.random(1,5)
|
local grass_size = math.random(1,5)
|
||||||
if minetest.get_node(right_here).name == "air" -- instead of check_air = true,
|
if minetest.get_node(right_here).name == "air" -- instead of check_air = true,
|
||||||
or minetest.get_node(right_here).name == "default:junglegrass" then
|
or minetest.get_node(right_here).name == "default:junglegrass" then
|
||||||
minetest.set_node(right_here, {name="default:grass_"..grass_size})
|
minetest.swap_node(right_here, {name="default:grass_"..grass_size})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2,10 +2,12 @@
|
|||||||
-- Dry Plants - Reed 0.0.5
|
-- Dry Plants - Reed 0.0.5
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- by Mossmanikin
|
-- by Mossmanikin
|
||||||
-- License (everything): WTFPL
|
|
||||||
-- Looked at code from: darkage, default, stairs
|
-- Looked at code from: darkage, default, stairs
|
||||||
-- Dependencies: default
|
-- Dependencies: default
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("dryplants")
|
||||||
|
|
||||||
minetest.register_alias("stairs:stair_wetreed", "dryplants:wetreed_roof")
|
minetest.register_alias("stairs:stair_wetreed", "dryplants:wetreed_roof")
|
||||||
minetest.register_alias("stairs:slab_wetreed", "dryplants:wetreed_slab")
|
minetest.register_alias("stairs:slab_wetreed", "dryplants:wetreed_slab")
|
||||||
minetest.register_alias("stairs:stair_reed", "dryplants:reed_roof")
|
minetest.register_alias("stairs:stair_reed", "dryplants:reed_roof")
|
||||||
@ -16,7 +18,7 @@ minetest.register_alias("stairs:slab_reed", "dryplants:reed_slab")
|
|||||||
-- Wet Reed
|
-- Wet Reed
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:wetreed", {
|
minetest.register_node("dryplants:wetreed", {
|
||||||
description = "Wet Reed",
|
description = S("Wet Reed"),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
tiles = {"dryplants_reed_wet.png"},
|
tiles = {"dryplants_reed_wet.png"},
|
||||||
@ -28,7 +30,7 @@ minetest.register_node("dryplants:wetreed", {
|
|||||||
-- Wet Reed Slab
|
-- Wet Reed Slab
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:wetreed_slab", {
|
minetest.register_node("dryplants:wetreed_slab", {
|
||||||
description = "Wet Reed Slab",
|
description = S("Wet Reed Slab"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -49,7 +51,7 @@ minetest.register_node("dryplants:wetreed_slab", {
|
|||||||
-- Wet Reed Roof
|
-- Wet Reed Roof
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:wetreed_roof", {
|
minetest.register_node("dryplants:wetreed_roof", {
|
||||||
description = "Wet Reed Roof",
|
description = S("Wet Reed Roof"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -104,7 +106,7 @@ if AUTO_ROOF_CORNER == true then
|
|||||||
and ((node_north.name == roof and node_north.param2 == 3)
|
and ((node_north.name == roof and node_north.param2 == 3)
|
||||||
or (node_north.name == corner and node_north.param2 == 3))
|
or (node_north.name == corner and node_north.param2 == 3))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner, param2=0})
|
minetest.swap_node(pos, {name=corner, param2=0})
|
||||||
end
|
end
|
||||||
|
|
||||||
if ((node_north.name == roof and node_north.param2 == 1)
|
if ((node_north.name == roof and node_north.param2 == 1)
|
||||||
@ -112,7 +114,7 @@ if AUTO_ROOF_CORNER == true then
|
|||||||
and ((node_east.name == roof and node_east.param2 == 0)
|
and ((node_east.name == roof and node_east.param2 == 0)
|
||||||
or (node_east.name == corner and node_east.param2 == 0))
|
or (node_east.name == corner and node_east.param2 == 0))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner, param2=1})
|
minetest.swap_node(pos, {name=corner, param2=1})
|
||||||
end
|
end
|
||||||
|
|
||||||
if ((node_east.name == roof and node_east.param2 == 2)
|
if ((node_east.name == roof and node_east.param2 == 2)
|
||||||
@ -120,7 +122,7 @@ if AUTO_ROOF_CORNER == true then
|
|||||||
and ((node_south.name == roof and node_south.param2 == 1)
|
and ((node_south.name == roof and node_south.param2 == 1)
|
||||||
or (node_south.name == corner and node_south.param2 == 1))
|
or (node_south.name == corner and node_south.param2 == 1))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner, param2=2})
|
minetest.swap_node(pos, {name=corner, param2=2})
|
||||||
end
|
end
|
||||||
|
|
||||||
if ((node_south.name == roof and node_south.param2 == 3)
|
if ((node_south.name == roof and node_south.param2 == 3)
|
||||||
@ -128,7 +130,7 @@ if AUTO_ROOF_CORNER == true then
|
|||||||
and ((node_west.name == roof and node_west.param2 == 2)
|
and ((node_west.name == roof and node_west.param2 == 2)
|
||||||
or (node_west.name == corner and node_west.param2 == 2))
|
or (node_west.name == corner and node_west.param2 == 2))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner, param2=3})
|
minetest.swap_node(pos, {name=corner, param2=3})
|
||||||
end
|
end
|
||||||
-- corner 2
|
-- corner 2
|
||||||
if ((node_west.name == roof and node_west.param2 == 2)
|
if ((node_west.name == roof and node_west.param2 == 2)
|
||||||
@ -136,7 +138,7 @@ if AUTO_ROOF_CORNER == true then
|
|||||||
and ((node_north.name == roof and node_north.param2 == 1)
|
and ((node_north.name == roof and node_north.param2 == 1)
|
||||||
or (node_north.name == corner_2 and node_north.param2 == 3))
|
or (node_north.name == corner_2 and node_north.param2 == 3))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner_2, param2=0})
|
minetest.swap_node(pos, {name=corner_2, param2=0})
|
||||||
end
|
end
|
||||||
|
|
||||||
if ((node_north.name == roof and node_north.param2 == 3)
|
if ((node_north.name == roof and node_north.param2 == 3)
|
||||||
@ -144,7 +146,7 @@ if AUTO_ROOF_CORNER == true then
|
|||||||
and ((node_east.name == roof and node_east.param2 == 2)
|
and ((node_east.name == roof and node_east.param2 == 2)
|
||||||
or (node_east.name == corner_2 and node_east.param2 == 0))
|
or (node_east.name == corner_2 and node_east.param2 == 0))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner_2, param2=1})
|
minetest.swap_node(pos, {name=corner_2, param2=1})
|
||||||
end
|
end
|
||||||
|
|
||||||
if ((node_east.name == roof and node_east.param2 == 0)
|
if ((node_east.name == roof and node_east.param2 == 0)
|
||||||
@ -152,7 +154,7 @@ if AUTO_ROOF_CORNER == true then
|
|||||||
and ((node_south.name == roof and node_south.param2 == 3)
|
and ((node_south.name == roof and node_south.param2 == 3)
|
||||||
or (node_south.name == corner_2 and node_south.param2 == 1))
|
or (node_south.name == corner_2 and node_south.param2 == 1))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner_2, param2=2})
|
minetest.swap_node(pos, {name=corner_2, param2=2})
|
||||||
end
|
end
|
||||||
|
|
||||||
if ((node_south.name == roof and node_south.param2 == 1)
|
if ((node_south.name == roof and node_south.param2 == 1)
|
||||||
@ -160,7 +162,7 @@ if AUTO_ROOF_CORNER == true then
|
|||||||
and ((node_west.name == roof and node_west.param2 == 0)
|
and ((node_west.name == roof and node_west.param2 == 0)
|
||||||
or (node_west.name == corner_2 and node_west.param2 == 2))
|
or (node_west.name == corner_2 and node_west.param2 == 2))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner_2, param2=3})
|
minetest.swap_node(pos, {name=corner_2, param2=3})
|
||||||
end
|
end
|
||||||
|
|
||||||
end,
|
end,
|
||||||
@ -172,7 +174,7 @@ end
|
|||||||
-- Wet Reed Roof Corner
|
-- Wet Reed Roof Corner
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:wetreed_roof_corner", {
|
minetest.register_node("dryplants:wetreed_roof_corner", {
|
||||||
description = "Wet Reed Roof Corner",
|
description = S("Wet Reed Roof Corner"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -202,7 +204,7 @@ minetest.register_node("dryplants:wetreed_roof_corner", {
|
|||||||
-- Wet Reed Roof Corner 2
|
-- Wet Reed Roof Corner 2
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:wetreed_roof_corner_2", {
|
minetest.register_node("dryplants:wetreed_roof_corner_2", {
|
||||||
description = "Wet Reed Roof Corner 2",
|
description = S("Wet Reed Roof Corner 2"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -252,7 +254,7 @@ if REED_WILL_DRY == true then
|
|||||||
chance = 1,
|
chance = 1,
|
||||||
action = function(pos)
|
action = function(pos)
|
||||||
local direction = minetest.get_node(pos).param2
|
local direction = minetest.get_node(pos).param2
|
||||||
minetest.set_node(pos, {name=DRy, param2=direction})
|
minetest.swap_node(pos, {name=DRy, param2=direction})
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
@ -262,7 +264,7 @@ end
|
|||||||
-- Reed
|
-- Reed
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:reed", {
|
minetest.register_node("dryplants:reed", {
|
||||||
description = "Reed",
|
description = S("Reed"),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
tiles = {"dryplants_reed.png"},
|
tiles = {"dryplants_reed.png"},
|
||||||
@ -274,7 +276,7 @@ minetest.register_node("dryplants:reed", {
|
|||||||
-- Reed Slab
|
-- Reed Slab
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:reed_slab", {
|
minetest.register_node("dryplants:reed_slab", {
|
||||||
description = "Reed Slab",
|
description = S("Reed Slab"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -295,7 +297,7 @@ minetest.register_node("dryplants:reed_slab", {
|
|||||||
-- Reed Roof
|
-- Reed Roof
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:reed_roof", {
|
minetest.register_node("dryplants:reed_roof", {
|
||||||
description = "Reed Roof",
|
description = S("Reed Roof"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -323,7 +325,7 @@ minetest.register_node("dryplants:reed_roof", {
|
|||||||
-- Reed Roof Corner
|
-- Reed Roof Corner
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:reed_roof_corner", {
|
minetest.register_node("dryplants:reed_roof_corner", {
|
||||||
description = "Reed Roof Corner",
|
description = S("Reed Roof Corner"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -353,7 +355,7 @@ minetest.register_node("dryplants:reed_roof_corner", {
|
|||||||
-- Reed Roof Corner 2
|
-- Reed Roof Corner 2
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:reed_roof_corner_2", {
|
minetest.register_node("dryplants:reed_roof_corner_2", {
|
||||||
description = "Reed Roof Corner 2",
|
description = S("Reed Roof Corner 2"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
-- by Mossmanikin
|
-- by Mossmanikin
|
||||||
-- textures & ideas partly by Neuromancer
|
-- textures & ideas partly by Neuromancer
|
||||||
|
|
||||||
-- License (everything): WTFPL
|
|
||||||
-- Contains code from: biome_lib
|
-- Contains code from: biome_lib
|
||||||
-- Looked at code from: default, trees
|
-- Looked at code from: default, trees
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
@ -18,6 +17,9 @@
|
|||||||
-- Typha stems and leaves can be used to make paper
|
-- Typha stems and leaves can be used to make paper
|
||||||
-- The seed hairs were used by some Native American groups as tinder for starting fires
|
-- The seed hairs were used by some Native American groups as tinder for starting fires
|
||||||
|
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("dryplants")
|
||||||
|
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- REEDMACE SHAPES
|
-- REEDMACE SHAPES
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
@ -31,18 +33,18 @@ abstract_dryplants.grow_reedmace = function(pos)
|
|||||||
if minetest.get_node(pos_01).name == "air" -- bug fix
|
if minetest.get_node(pos_01).name == "air" -- bug fix
|
||||||
or minetest.get_node(pos_01).name == "dryplants:reedmace_sapling" then
|
or minetest.get_node(pos_01).name == "dryplants:reedmace_sapling" then
|
||||||
if minetest.get_node(pos_02).name ~= "air" then
|
if minetest.get_node(pos_02).name ~= "air" then
|
||||||
minetest.set_node(pos_01, {name="dryplants:reedmace_top"})
|
minetest.swap_node(pos_01, {name="dryplants:reedmace_top"})
|
||||||
elseif minetest.get_node(pos_03).name ~= "air" then
|
elseif minetest.get_node(pos_03).name ~= "air" then
|
||||||
minetest.set_node(pos_01, {name="dryplants:reedmace_height_2"})
|
minetest.swap_node(pos_01, {name="dryplants:reedmace_height_2"})
|
||||||
elseif size == 1 then
|
elseif size == 1 then
|
||||||
minetest.set_node(pos_01, {name="dryplants:reedmace_top"})
|
minetest.swap_node(pos_01, {name="dryplants:reedmace_top"})
|
||||||
elseif size == 2 then
|
elseif size == 2 then
|
||||||
minetest.set_node(pos_01, {name="dryplants:reedmace_height_2"})
|
minetest.swap_node(pos_01, {name="dryplants:reedmace_height_2"})
|
||||||
elseif size == 3 then
|
elseif size == 3 then
|
||||||
if spikes == 1 then
|
if spikes == 1 then
|
||||||
minetest.set_node(pos_01, {name="dryplants:reedmace_height_3_spikes"})
|
minetest.swap_node(pos_01, {name="dryplants:reedmace_height_3_spikes"})
|
||||||
else
|
else
|
||||||
minetest.set_node(pos_01, {name="dryplants:reedmace_height_3"})
|
minetest.swap_node(pos_01, {name="dryplants:reedmace_height_3"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -58,18 +60,18 @@ abstract_dryplants.grow_reedmace_water = function(pos)
|
|||||||
minetest.add_entity(pos_01, "dryplants:reedmace_water_entity")
|
minetest.add_entity(pos_01, "dryplants:reedmace_water_entity")
|
||||||
if minetest.get_node(pos_02).name == "air" then -- bug fix
|
if minetest.get_node(pos_02).name == "air" then -- bug fix
|
||||||
if minetest.get_node(pos_03).name ~= "air" then
|
if minetest.get_node(pos_03).name ~= "air" then
|
||||||
minetest.set_node(pos_02, {name="dryplants:reedmace_top"})
|
minetest.swap_node(pos_02, {name="dryplants:reedmace_top"})
|
||||||
elseif minetest.get_node(pos_04).name ~= "air" then
|
elseif minetest.get_node(pos_04).name ~= "air" then
|
||||||
minetest.set_node(pos_02, {name="dryplants:reedmace_height_2"})
|
minetest.swap_node(pos_02, {name="dryplants:reedmace_height_2"})
|
||||||
elseif size == 1 then
|
elseif size == 1 then
|
||||||
minetest.set_node(pos_02, {name="dryplants:reedmace_top"})
|
minetest.swap_node(pos_02, {name="dryplants:reedmace_top"})
|
||||||
elseif size == 2 then
|
elseif size == 2 then
|
||||||
minetest.set_node(pos_02, {name="dryplants:reedmace_height_2"})
|
minetest.swap_node(pos_02, {name="dryplants:reedmace_height_2"})
|
||||||
elseif size == 3 then
|
elseif size == 3 then
|
||||||
if spikes == 1 then
|
if spikes == 1 then
|
||||||
minetest.set_node(pos_02, {name="dryplants:reedmace_height_3_spikes"})
|
minetest.swap_node(pos_02, {name="dryplants:reedmace_height_3_spikes"})
|
||||||
else
|
else
|
||||||
minetest.set_node(pos_02, {name="dryplants:reedmace_height_3"})
|
minetest.swap_node(pos_02, {name="dryplants:reedmace_height_3"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -79,7 +81,7 @@ end
|
|||||||
-- REEDMACE SPIKES
|
-- REEDMACE SPIKES
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:reedmace_spikes", {
|
minetest.register_node("dryplants:reedmace_spikes", {
|
||||||
description = "Reedmace",
|
description = S("Reedmace"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"dryplants_reedmace_spikes.png"},
|
tiles = {"dryplants_reedmace_spikes.png"},
|
||||||
@ -101,7 +103,7 @@ minetest.register_node("dryplants:reedmace_spikes", {
|
|||||||
-- REEDMACE height: 1
|
-- REEDMACE height: 1
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:reedmace_top", {
|
minetest.register_node("dryplants:reedmace_top", {
|
||||||
description = "Reedmace, height: 1",
|
description = S("Reedmace, height: 1"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"dryplants_reedmace_top.png"},
|
tiles = {"dryplants_reedmace_top.png"},
|
||||||
@ -123,9 +125,9 @@ minetest.register_node("dryplants:reedmace_top", {
|
|||||||
-- REEDMACE height: 2
|
-- REEDMACE height: 2
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:reedmace_height_2", {
|
minetest.register_node("dryplants:reedmace_height_2", {
|
||||||
description = "Reedmace, height: 2",
|
description = S("Reedmace, height: 2"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 2,
|
visual_scale = math.sqrt(8),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"dryplants_reedmace_height_2.png"},
|
tiles = {"dryplants_reedmace_height_2.png"},
|
||||||
inventory_image = "dryplants_reedmace_top.png",
|
inventory_image = "dryplants_reedmace_top.png",
|
||||||
@ -146,9 +148,9 @@ minetest.register_node("dryplants:reedmace_height_2", {
|
|||||||
-- REEDMACE height: 3
|
-- REEDMACE height: 3
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:reedmace_height_3", {
|
minetest.register_node("dryplants:reedmace_height_3", {
|
||||||
description = "Reedmace, height: 3",
|
description = S("Reedmace, height: 3"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 2,
|
visual_scale = math.sqrt(8),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"dryplants_reedmace_height_3.png"},
|
tiles = {"dryplants_reedmace_height_3.png"},
|
||||||
inventory_image = "dryplants_reedmace_top.png",
|
inventory_image = "dryplants_reedmace_top.png",
|
||||||
@ -169,9 +171,9 @@ minetest.register_node("dryplants:reedmace_height_3", {
|
|||||||
-- REEDMACE height: 3 & Spikes
|
-- REEDMACE height: 3 & Spikes
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:reedmace_height_3_spikes", {
|
minetest.register_node("dryplants:reedmace_height_3_spikes", {
|
||||||
description = "Reedmace, height: 3 & Spikes",
|
description = S("Reedmace, height: 3 & Spikes"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 2,
|
visual_scale = math.sqrt(8),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"dryplants_reedmace_height_3_spikes.png"},
|
tiles = {"dryplants_reedmace_height_3_spikes.png"},
|
||||||
inventory_image = "dryplants_reedmace_top.png",
|
inventory_image = "dryplants_reedmace_top.png",
|
||||||
@ -192,7 +194,7 @@ minetest.register_node("dryplants:reedmace_height_3_spikes", {
|
|||||||
-- REEDMACE STEMS
|
-- REEDMACE STEMS
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:reedmace", {
|
minetest.register_node("dryplants:reedmace", {
|
||||||
description = "Reedmace",
|
description = S("Reedmace"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"dryplants_reedmace.png"},
|
tiles = {"dryplants_reedmace.png"},
|
||||||
@ -222,7 +224,7 @@ minetest.register_node("dryplants:reedmace", {
|
|||||||
-- REEDMACE BOTTOM
|
-- REEDMACE BOTTOM
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:reedmace_bottom", {
|
minetest.register_node("dryplants:reedmace_bottom", {
|
||||||
description = "Reedmace",
|
description = S("Reedmace"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"dryplants_reedmace_bottom.png"},
|
tiles = {"dryplants_reedmace_bottom.png"},
|
||||||
@ -253,7 +255,7 @@ minetest.register_node("dryplants:reedmace_bottom", {
|
|||||||
-- REEDMACE "SAPLING" (the drop from the above)
|
-- REEDMACE "SAPLING" (the drop from the above)
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:reedmace_sapling", {
|
minetest.register_node("dryplants:reedmace_sapling", {
|
||||||
description = "Reedmace",
|
description = S("Reedmace"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"dryplants_reedmace_sapling.png"},
|
tiles = {"dryplants_reedmace_sapling.png"},
|
||||||
@ -283,7 +285,7 @@ minetest.register_abm({
|
|||||||
if minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z}).name == "air" then
|
if minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z}).name == "air" then
|
||||||
abstract_dryplants.grow_reedmace_water({x = pos.x, y = pos.y - 1, z = pos.z})
|
abstract_dryplants.grow_reedmace_water({x = pos.x, y = pos.y - 1, z = pos.z})
|
||||||
end
|
end
|
||||||
minetest.set_node({x=pos.x, y=pos.y, z=pos.z}, {name="default:water_source"})
|
minetest.swap_node({x=pos.x, y=pos.y, z=pos.z}, {name="default:water_source"})
|
||||||
else
|
else
|
||||||
abstract_dryplants.grow_reedmace({x = pos.x, y = pos.y - 1, z = pos.z})
|
abstract_dryplants.grow_reedmace({x = pos.x, y = pos.y - 1, z = pos.z})
|
||||||
end
|
end
|
||||||
@ -293,7 +295,7 @@ minetest.register_abm({
|
|||||||
-- REEDMACE WATER (for entity)
|
-- REEDMACE WATER (for entity)
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("dryplants:reedmace_water", {
|
minetest.register_node("dryplants:reedmace_water", {
|
||||||
description = "Reedmace",
|
description = S("Reedmace"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"dryplants_reedmace_water.png"},
|
tiles = {"dryplants_reedmace_water.png"},
|
||||||
|
@ -1,15 +1,21 @@
|
|||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("ferns")
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- Ferns - Crafting 0.0.5
|
-- Ferns - Crafting 0.0.5
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- (by Mossmanikin)
|
-- (by Mossmanikin)
|
||||||
-- License (everything): WTFPL
|
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
local fern1 = minetest.registered_items["default:fern_1"] or false
|
||||||
|
fern1 = (fern1 and fern1.name) or "ferns:fern_01"
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "ferns:fiddlehead 3",
|
output = "ferns:fiddlehead 3",
|
||||||
recipe = {"ferns:fern_01"},
|
recipe = {"ferns:fern_01"},
|
||||||
replacements = {
|
replacements = {
|
||||||
{"ferns:fern_01", "ferns:ferntuber"}
|
{fern1, "ferns:ferntuber"}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -27,7 +33,7 @@ minetest.register_craft({
|
|||||||
minetest.register_alias("archaeplantae:fiddlehead", "ferns:fiddlehead")
|
minetest.register_alias("archaeplantae:fiddlehead", "ferns:fiddlehead")
|
||||||
|
|
||||||
minetest.register_craftitem("ferns:fiddlehead", {
|
minetest.register_craftitem("ferns:fiddlehead", {
|
||||||
description = "Fiddlehead",
|
description = S("Fiddlehead"),
|
||||||
inventory_image = "ferns_fiddlehead.png",
|
inventory_image = "ferns_fiddlehead.png",
|
||||||
on_use = minetest.item_eat(-1), -- slightly poisonous when raw
|
on_use = minetest.item_eat(-1), -- slightly poisonous when raw
|
||||||
})
|
})
|
||||||
@ -38,7 +44,7 @@ minetest.register_craft({
|
|||||||
cooktime = 1,
|
cooktime = 1,
|
||||||
})
|
})
|
||||||
minetest.register_craftitem("ferns:fiddlehead_roasted", {
|
minetest.register_craftitem("ferns:fiddlehead_roasted", {
|
||||||
description = "Roasted Fiddlehead",
|
description = S("Roasted Fiddlehead"),
|
||||||
inventory_image = "ferns_fiddlehead_roasted.png",
|
inventory_image = "ferns_fiddlehead_roasted.png",
|
||||||
on_use = minetest.item_eat(1), -- edible when cooked
|
on_use = minetest.item_eat(1), -- edible when cooked
|
||||||
})
|
})
|
||||||
@ -48,7 +54,7 @@ minetest.register_craftitem("ferns:fiddlehead_roasted", {
|
|||||||
minetest.register_alias("archaeplantae:ferntuber", "ferns:ferntuber")
|
minetest.register_alias("archaeplantae:ferntuber", "ferns:ferntuber")
|
||||||
|
|
||||||
minetest.register_craftitem("ferns:ferntuber", {
|
minetest.register_craftitem("ferns:ferntuber", {
|
||||||
description = "Fern Tuber",
|
description = S("Fern Tuber"),
|
||||||
inventory_image = "ferns_ferntuber.png",
|
inventory_image = "ferns_ferntuber.png",
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -61,7 +67,7 @@ minetest.register_craft({
|
|||||||
minetest.register_alias("archaeplantae:ferntuber_roasted", "ferns:ferntuber_roasted")
|
minetest.register_alias("archaeplantae:ferntuber_roasted", "ferns:ferntuber_roasted")
|
||||||
|
|
||||||
minetest.register_craftitem("ferns:ferntuber_roasted", {
|
minetest.register_craftitem("ferns:ferntuber_roasted", {
|
||||||
description = "Roasted Fern Tuber",
|
description = S("Roasted Fern Tuber"),
|
||||||
inventory_image = "ferns_ferntuber_roasted.png",
|
inventory_image = "ferns_ferntuber_roasted.png",
|
||||||
on_use = minetest.item_eat(3),
|
on_use = minetest.item_eat(3),
|
||||||
})
|
})
|
||||||
@ -101,4 +107,3 @@ minetest.register_craft({
|
|||||||
output = "farming:hoe_wood",
|
output = "farming:hoe_wood",
|
||||||
recipe = {"farming:hoe_wood","group:horsetail","farming:string","default:stick"},
|
recipe = {"farming:hoe_wood","group:horsetail","farming:string","default:stick"},
|
||||||
})]]
|
})]]
|
||||||
|
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
default
|
|
||||||
biome_lib
|
|
@ -2,7 +2,6 @@
|
|||||||
-- Ferns - Fern 0.1.0
|
-- Ferns - Fern 0.1.0
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- by Mossmanikin
|
-- by Mossmanikin
|
||||||
-- License (everything): WTFPL
|
|
||||||
-- Contains code from: biome_lib
|
-- Contains code from: biome_lib
|
||||||
-- Looked at code from: default, flowers, painting, trees
|
-- Looked at code from: default, flowers, painting, trees
|
||||||
-- Dependencies: biome_lib
|
-- Dependencies: biome_lib
|
||||||
@ -15,7 +14,18 @@
|
|||||||
|
|
||||||
assert(abstract_ferns.config.enable_lady_fern == true)
|
assert(abstract_ferns.config.enable_lady_fern == true)
|
||||||
|
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("ferns")
|
||||||
|
|
||||||
-- Maintain backward compatibilty
|
-- Maintain backward compatibilty
|
||||||
|
-- minetest-0.5: Begin
|
||||||
|
local default_ferns = minetest.registered_items["default:fern_1"] or false
|
||||||
|
if default_ferns then
|
||||||
|
minetest.register_alias("ferns:fern_03", "default:fern_3")
|
||||||
|
minetest.register_alias("ferns:fern_02", "default:fern_2")
|
||||||
|
minetest.register_alias("ferns:fern_01", "default:fern_1")
|
||||||
|
end
|
||||||
|
-- minetest-0.5: End
|
||||||
minetest.register_alias("archaeplantae:fern", "ferns:fern_03")
|
minetest.register_alias("archaeplantae:fern", "ferns:fern_03")
|
||||||
minetest.register_alias("archaeplantae:fern_mid", "ferns:fern_02")
|
minetest.register_alias("archaeplantae:fern_mid", "ferns:fern_02")
|
||||||
minetest.register_alias("archaeplantae:fern_small", "ferns:fern_01")
|
minetest.register_alias("archaeplantae:fern_small", "ferns:fern_01")
|
||||||
@ -25,8 +35,8 @@ local nodenames = {}
|
|||||||
|
|
||||||
local function create_nodes()
|
local function create_nodes()
|
||||||
local images = { "ferns_fern.png", "ferns_fern_mid.png", "ferns_fern_big.png" }
|
local images = { "ferns_fern.png", "ferns_fern_mid.png", "ferns_fern_big.png" }
|
||||||
local vscales = { 1, 2, 2.2 }
|
local vscales = { 1, math.sqrt(8), math.sqrt(11) }
|
||||||
local descs = { "Lady-fern (Athyrium)", nil, nil }
|
local descs = { S("Lady-fern (Athyrium)"), nil, nil }
|
||||||
|
|
||||||
for i = 1, 3 do
|
for i = 1, 3 do
|
||||||
local node_on_place = nil
|
local node_on_place = nil
|
||||||
@ -40,7 +50,7 @@ local function create_nodes()
|
|||||||
end
|
end
|
||||||
nodenames[i] = "ferns:fern_"..string.format("%02d", i)
|
nodenames[i] = "ferns:fern_"..string.format("%02d", i)
|
||||||
minetest.register_node(nodenames[i], {
|
minetest.register_node(nodenames[i], {
|
||||||
description = descs[i] or ("Lady-fern (Athyrium) " .. string.format("%02d", i)),
|
description = descs[i] or (S("Lady-fern (Athyrium)").." " .. string.format("%02d", i)),
|
||||||
inventory_image = "ferns_fern.png",
|
inventory_image = "ferns_fern.png",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = vscales[i],
|
visual_scale = vscales[i],
|
||||||
@ -64,7 +74,13 @@ end
|
|||||||
-- Init
|
-- Init
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
create_nodes()
|
if default_ferns then
|
||||||
|
for i = 1, 3 do
|
||||||
|
nodenames[i] = "ferns:fern_"..string.format("%02d", i)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
create_nodes()
|
||||||
|
end
|
||||||
|
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- Spawning
|
-- Spawning
|
||||||
@ -91,8 +107,8 @@ if abstract_ferns.config.lady_ferns_near_tree == true then
|
|||||||
plantlife_limit = -0.9,
|
plantlife_limit = -0.9,
|
||||||
humidity_max = -1.0,
|
humidity_max = -1.0,
|
||||||
humidity_min = 0.4,
|
humidity_min = 0.4,
|
||||||
temp_max = -0.5, -- 55 <EFBFBD>C (too hot?)
|
temp_max = -0.5, -- 55 °C (too hot?)
|
||||||
temp_min = 0.75, -- -12 <EFBFBD>C
|
temp_min = 0.75, -- -12 °C
|
||||||
random_facedir = { 0, 179 },
|
random_facedir = { 0, 179 },
|
||||||
},
|
},
|
||||||
nodenames
|
nodenames
|
||||||
@ -118,8 +134,8 @@ if abstract_ferns.config.lady_ferns_near_rock == true then
|
|||||||
plantlife_limit = -0.9,
|
plantlife_limit = -0.9,
|
||||||
humidity_max = -1.0,
|
humidity_max = -1.0,
|
||||||
humidity_min = 0.4,
|
humidity_min = 0.4,
|
||||||
temp_max = -0.5, -- 55 <EFBFBD>C (too hot?)
|
temp_max = -0.5, -- 55 °C (too hot?)
|
||||||
temp_min = 0.75, -- -12 <EFBFBD>C
|
temp_min = 0.75, -- -12 °C
|
||||||
random_facedir = { 0, 179 },
|
random_facedir = { 0, 179 },
|
||||||
},
|
},
|
||||||
nodenames
|
nodenames
|
||||||
@ -133,6 +149,7 @@ if abstract_ferns.config.lady_ferns_near_ores == true then -- this one causes a
|
|||||||
"default:mossycobble",
|
"default:mossycobble",
|
||||||
"default:stone_with_coal",
|
"default:stone_with_coal",
|
||||||
"default:stone_with_iron",
|
"default:stone_with_iron",
|
||||||
|
"default:stone_with_tin", -- minetest >= 0.4.16
|
||||||
"moreores:mineral_tin",
|
"moreores:mineral_tin",
|
||||||
"moreores:mineral_silver",
|
"moreores:mineral_silver",
|
||||||
"sumpf:sumpf"
|
"sumpf:sumpf"
|
||||||
@ -146,6 +163,7 @@ if abstract_ferns.config.lady_ferns_near_ores == true then -- this one causes a
|
|||||||
--"default:stone_with_mese",
|
--"default:stone_with_mese",
|
||||||
--"default:stone_with_gold",
|
--"default:stone_with_gold",
|
||||||
--"default:stone_with_diamond",
|
--"default:stone_with_diamond",
|
||||||
|
"default:stone_with_tin", -- minetest >= 0.4.16
|
||||||
"moreores:mineral_tin",
|
"moreores:mineral_tin",
|
||||||
"moreores:mineral_silver"
|
"moreores:mineral_silver"
|
||||||
--"moreores:mineral_mithril"
|
--"moreores:mineral_mithril"
|
||||||
@ -156,8 +174,8 @@ if abstract_ferns.config.lady_ferns_near_ores == true then -- this one causes a
|
|||||||
plantlife_limit = -0.9,
|
plantlife_limit = -0.9,
|
||||||
humidity_max = -1.0,
|
humidity_max = -1.0,
|
||||||
humidity_min = 0.4,
|
humidity_min = 0.4,
|
||||||
temp_max = -0.5, -- 55 <EFBFBD>C (too hot?)
|
temp_max = -0.5, -- 55 °C (too hot?)
|
||||||
temp_min = 0.75, -- -12 <EFBFBD>C
|
temp_min = 0.75, -- -12 °C
|
||||||
random_facedir = { 0, 179 },
|
random_facedir = { 0, 179 },
|
||||||
},
|
},
|
||||||
nodenames
|
nodenames
|
||||||
@ -171,6 +189,7 @@ if abstract_ferns.config.lady_ferns_in_groups == true then -- this one is meant
|
|||||||
"default:mossycobble",
|
"default:mossycobble",
|
||||||
"default:stone_with_coal",
|
"default:stone_with_coal",
|
||||||
"default:stone_with_iron",
|
"default:stone_with_iron",
|
||||||
|
"default:stone_with_tin", -- minetest >= 0.4.16
|
||||||
"moreores:mineral_tin",
|
"moreores:mineral_tin",
|
||||||
"moreores:mineral_silver",
|
"moreores:mineral_silver",
|
||||||
"sumpf:sumpf"
|
"sumpf:sumpf"
|
||||||
@ -187,8 +206,8 @@ if abstract_ferns.config.lady_ferns_in_groups == true then -- this one is meant
|
|||||||
plantlife_limit = -0.9,
|
plantlife_limit = -0.9,
|
||||||
humidity_max = -1.0,
|
humidity_max = -1.0,
|
||||||
humidity_min = 0.4,
|
humidity_min = 0.4,
|
||||||
temp_max = -0.5, -- 55 <EFBFBD>C (too hot?)
|
temp_max = -0.5, -- 55 °C (too hot?)
|
||||||
temp_min = 0.75, -- -12 <EFBFBD>C
|
temp_min = 0.75, -- -12 °C
|
||||||
random_facedir = { 0, 179 },
|
random_facedir = { 0, 179 },
|
||||||
},
|
},
|
||||||
nodenames
|
nodenames
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
-- Ferns - Giant Tree Fern 0.1.1
|
-- Ferns - Giant Tree Fern 0.1.1
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- by Mossmanikin
|
-- by Mossmanikin
|
||||||
-- License (everything): WTFPL
|
|
||||||
-- Contains code from: biome_lib
|
-- Contains code from: biome_lib
|
||||||
-- Looked at code from: 4seasons, default
|
-- Looked at code from: 4seasons, default
|
||||||
-- Supports: vines
|
-- Supports: vines
|
||||||
@ -10,13 +9,15 @@
|
|||||||
|
|
||||||
assert(abstract_ferns.config.enable_giant_treefern == true)
|
assert(abstract_ferns.config.enable_giant_treefern == true)
|
||||||
|
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("ferns")
|
||||||
-- lot of code, lot to load
|
-- lot of code, lot to load
|
||||||
|
|
||||||
abstract_ferns.grow_giant_tree_fern = function(pos)
|
abstract_ferns.grow_giant_tree_fern = function(pos)
|
||||||
local pos_01 = {x = pos.x, y = pos.y + 1, z = pos.z}
|
local pos_aux = {x = pos.x, y = pos.y + 1, z = pos.z}
|
||||||
if minetest.get_node(pos_01).name ~= "air"
|
local name = minetest.get_node(pos_aux).name
|
||||||
and minetest.get_node(pos_01).name ~= "ferns:sapling_giant_tree_fern"
|
if name ~= "air" and name ~= "ferns:sapling_giant_tree_fern"
|
||||||
and minetest.get_node(pos_01).name ~= "default:junglegrass" then
|
and name ~= "default:junglegrass" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -61,11 +62,19 @@ abstract_ferns.grow_giant_tree_fern = function(pos)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local brk = false
|
||||||
for i = 1, size-3 do
|
for i = 1, size-3 do
|
||||||
minetest.set_node({x = pos.x, y = pos.y + i, z = pos.z}, {name="ferns:fern_trunk_big"})
|
pos_aux.y = pos.y + i
|
||||||
|
local name = minetest.get_node(pos_aux).name
|
||||||
|
if not (name == "air" or (i == 1 and name == "ferns:sapling_giant_tree_fern")) then
|
||||||
|
brk = true
|
||||||
|
break
|
||||||
end
|
end
|
||||||
minetest.set_node({x = pos.x, y = pos.y + size-2, z = pos.z}, {name="ferns:fern_trunk_big_top"})
|
minetest.swap_node({x = pos.x, y = pos.y + i, z = pos.z}, {name="ferns:fern_trunk_big"})
|
||||||
minetest.set_node({x = pos.x, y = pos.y + size-1, z = pos.z}, {name="ferns:tree_fern_leaves_giant"})
|
end
|
||||||
|
if not brk then
|
||||||
|
minetest.swap_node({x = pos.x, y = pos.y + size-2, z = pos.z}, {name="ferns:fern_trunk_big_top"})
|
||||||
|
minetest.swap_node({x = pos.x, y = pos.y + size-1, z = pos.z}, {name="ferns:tree_fern_leaves_giant"})
|
||||||
|
|
||||||
-- all the checking for air below is to prevent some ugly bugs (incomplete trunks of neighbouring trees), it's a bit slower, but worth the result
|
-- all the checking for air below is to prevent some ugly bugs (incomplete trunks of neighbouring trees), it's a bit slower, but worth the result
|
||||||
|
|
||||||
@ -78,7 +87,7 @@ abstract_ferns.grow_giant_tree_fern = function(pos)
|
|||||||
-- add leaves so long as the destination nodes are air
|
-- add leaves so long as the destination nodes are air
|
||||||
for j = 1, 3 do
|
for j = 1, 3 do
|
||||||
if minetest.get_node(positions[j]).name == "air" then
|
if minetest.get_node(positions[j]).name == "air" then
|
||||||
minetest.set_node(positions[j], {name="ferns:tree_fern_leave_big"})
|
minetest.swap_node(positions[j], {name="ferns:tree_fern_leave_big"})
|
||||||
else
|
else
|
||||||
endpos = j
|
endpos = j
|
||||||
break
|
break
|
||||||
@ -86,7 +95,8 @@ abstract_ferns.grow_giant_tree_fern = function(pos)
|
|||||||
end
|
end
|
||||||
-- add the terminating leaf if required and possible
|
-- add the terminating leaf if required and possible
|
||||||
if endpos == 4 and minetest.get_node(positions[endpos]).name == "air" then
|
if endpos == 4 and minetest.get_node(positions[endpos]).name == "air" then
|
||||||
minetest.set_node(positions[endpos], {name="ferns:tree_fern_leave_big_end", param2=rot})
|
minetest.swap_node(positions[endpos], {name="ferns:tree_fern_leave_big_end", param2=rot})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -95,9 +105,9 @@ end
|
|||||||
-- GIANT TREE FERN LEAVES
|
-- GIANT TREE FERN LEAVES
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("ferns:tree_fern_leaves_giant", {
|
minetest.register_node("ferns:tree_fern_leaves_giant", {
|
||||||
description = "Tree Fern Crown (Dicksonia)",
|
description = S("Tree Fern Crown (Dicksonia)"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = math.sqrt(8),
|
visual_scale = math.sqrt(11),
|
||||||
wield_scale = {x=0.175, y=0.175, z=0.175},
|
wield_scale = {x=0.175, y=0.175, z=0.175},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"ferns_fern_tree_giant.png"},
|
tiles = {"ferns_fern_tree_giant.png"},
|
||||||
@ -137,7 +147,7 @@ minetest.register_node("ferns:tree_fern_leaves_giant", {
|
|||||||
-- GIANT TREE FERN LEAVE PART
|
-- GIANT TREE FERN LEAVE PART
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("ferns:tree_fern_leave_big", {
|
minetest.register_node("ferns:tree_fern_leave_big", {
|
||||||
description = "Giant Tree Fern Leaves",
|
description = S("Giant Tree Fern Leaves"),
|
||||||
drawtype = "raillike",
|
drawtype = "raillike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -158,7 +168,7 @@ minetest.register_node("ferns:tree_fern_leave_big", {
|
|||||||
-- GIANT TREE FERN LEAVE END
|
-- GIANT TREE FERN LEAVE END
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("ferns:tree_fern_leave_big_end", {
|
minetest.register_node("ferns:tree_fern_leave_big_end", {
|
||||||
description = "Giant Tree Fern Leave End",
|
description = S("Giant Tree Fern Leave End"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -187,7 +197,7 @@ minetest.register_node("ferns:tree_fern_leave_big_end", {
|
|||||||
-- GIANT TREE FERN TRUNK TOP
|
-- GIANT TREE FERN TRUNK TOP
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("ferns:fern_trunk_big_top", {
|
minetest.register_node("ferns:fern_trunk_big_top", {
|
||||||
description = "Giant Fern Trunk",
|
description = S("Giant Fern Trunk"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -224,7 +234,7 @@ minetest.register_node("ferns:fern_trunk_big_top", {
|
|||||||
-- GIANT TREE FERN TRUNK
|
-- GIANT TREE FERN TRUNK
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("ferns:fern_trunk_big", {
|
minetest.register_node("ferns:fern_trunk_big", {
|
||||||
description = "Giant Fern Trunk",
|
description = S("Giant Fern Trunk"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -255,7 +265,7 @@ minetest.register_node("ferns:fern_trunk_big", {
|
|||||||
-- GIANT TREE FERN SAPLING
|
-- GIANT TREE FERN SAPLING
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("ferns:sapling_giant_tree_fern", {
|
minetest.register_node("ferns:sapling_giant_tree_fern", {
|
||||||
description = "Giant Tree Fern Sapling",
|
description = S("Giant Tree Fern Sapling"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"ferns_sapling_tree_fern_giant.png"},
|
tiles = {"ferns_sapling_tree_fern_giant.png"},
|
||||||
@ -288,6 +298,7 @@ if abstract_ferns.config.enable_giant_treeferns_in_jungle == true then
|
|||||||
biome_lib:register_generate_plant({
|
biome_lib:register_generate_plant({
|
||||||
surface = {
|
surface = {
|
||||||
"default:dirt_with_grass",
|
"default:dirt_with_grass",
|
||||||
|
"default:dirt_with_rainforest_litter", -- minetest >= 0.4.16
|
||||||
"default:sand",
|
"default:sand",
|
||||||
"default:desert_sand"--,
|
"default:desert_sand"--,
|
||||||
--"dryplants:grass_short"
|
--"dryplants:grass_short"
|
||||||
@ -321,7 +332,7 @@ if abstract_ferns.config.enable_giant_treeferns_in_oases == true then
|
|||||||
neighbors = {"default:desert_sand"},
|
neighbors = {"default:desert_sand"},
|
||||||
ncount = 1,
|
ncount = 1,
|
||||||
min_elevation = 1,
|
min_elevation = 1,
|
||||||
near_nodes = {"default:water_source"},
|
near_nodes = {"default:water_source", "default:river_water_source"},
|
||||||
near_nodes_size = 2,
|
near_nodes_size = 2,
|
||||||
near_nodes_vertical = 1,
|
near_nodes_vertical = 1,
|
||||||
near_nodes_count = 1,
|
near_nodes_count = 1,
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
-- Archae Plantae - Horsetail 0.0.5
|
-- Archae Plantae - Horsetail 0.0.5
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- by Mossmanikin
|
-- by Mossmanikin
|
||||||
-- License (everything): WTFPL
|
|
||||||
-- Contains code from: biome_lib
|
-- Contains code from: biome_lib
|
||||||
-- Looked at code from: default, flowers, trees
|
-- Looked at code from: default, flowers, trees
|
||||||
-- Dependencies: biome_lib
|
-- Dependencies: biome_lib
|
||||||
@ -11,6 +10,8 @@
|
|||||||
|
|
||||||
assert(abstract_ferns.config.enable_horsetails == true)
|
assert(abstract_ferns.config.enable_horsetails == true)
|
||||||
|
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("ferns")
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- HORSETAIL (EQUISETUM)
|
-- HORSETAIL (EQUISETUM)
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
@ -33,13 +34,13 @@ local function create_nodes()
|
|||||||
local node_drop = "ferns:horsetail_04"
|
local node_drop = "ferns:horsetail_04"
|
||||||
|
|
||||||
if i == 1 then
|
if i == 1 then
|
||||||
node_desc = "Young Horsetail (Equisetum)"
|
node_desc = S("Young Horsetail (Equisetum)")
|
||||||
node_on_use = minetest.item_eat(1) -- young ones edible https://en.wikipedia.org/wiki/Equisetum
|
node_on_use = minetest.item_eat(1) -- young ones edible https://en.wikipedia.org/wiki/Equisetum
|
||||||
node_drop = node_name
|
node_drop = node_name
|
||||||
elseif i == 4 then
|
elseif i == 4 then
|
||||||
node_desc = "Horsetail (Equisetum)"
|
node_desc = S("Horsetail (Equisetum)")
|
||||||
else
|
else
|
||||||
node_desc = "Horsetail (Equisetum) ".. string.format("%02d", i)
|
node_desc = S("Horsetail (Equisetum)").." ".. string.format("%02d", i)
|
||||||
end
|
end
|
||||||
|
|
||||||
node_names[i] = node_name
|
node_names[i] = node_name
|
||||||
@ -80,6 +81,7 @@ if abstract_ferns.config.enable_horsetails_spawning == true then
|
|||||||
spawn_chance = 400,
|
spawn_chance = 400,
|
||||||
spawn_surfaces = {
|
spawn_surfaces = {
|
||||||
"default:dirt_with_grass",
|
"default:dirt_with_grass",
|
||||||
|
"default:dirt_with_coniferous_litter", -- minetest >= 0.5
|
||||||
"default:desert_sand",
|
"default:desert_sand",
|
||||||
"default:sand",
|
"default:sand",
|
||||||
"dryplants:grass_short",
|
"dryplants:grass_short",
|
||||||
@ -89,7 +91,7 @@ if abstract_ferns.config.enable_horsetails_spawning == true then
|
|||||||
},
|
},
|
||||||
seed_diff = 329,
|
seed_diff = 329,
|
||||||
min_elevation = 1, -- above sea level
|
min_elevation = 1, -- above sea level
|
||||||
near_nodes = {"default:water_source","default:gravel"},
|
near_nodes = {"default:water_source","default:river_water_source","default:gravel"},
|
||||||
near_nodes_size = 2,
|
near_nodes_size = 2,
|
||||||
near_nodes_vertical = 1,
|
near_nodes_vertical = 1,
|
||||||
near_nodes_count = 1,
|
near_nodes_count = 1,
|
||||||
@ -105,6 +107,7 @@ if abstract_ferns.config.enable_horsetails_on_grass == true then
|
|||||||
biome_lib:register_generate_plant({
|
biome_lib:register_generate_plant({
|
||||||
surface = {
|
surface = {
|
||||||
"default:dirt_with_grass",
|
"default:dirt_with_grass",
|
||||||
|
"default:dirt_with_coniferous_litter", -- minetest >= 0.5
|
||||||
"sumpf:sumpf"
|
"sumpf:sumpf"
|
||||||
},
|
},
|
||||||
max_count = 35,
|
max_count = 35,
|
||||||
@ -125,8 +128,8 @@ if abstract_ferns.config.enable_horsetails_on_grass == true then
|
|||||||
near_nodes_count = 1,
|
near_nodes_count = 1,
|
||||||
plantlife_limit = -0.9,
|
plantlife_limit = -0.9,
|
||||||
humidity_min = 0.4,
|
humidity_min = 0.4,
|
||||||
temp_max = -0.5, -- 55 <EFBFBD>C
|
temp_max = -0.5, -- 55 °C
|
||||||
temp_min = 0.53, -- 0 <EFBFBD>C, dies back in winter
|
temp_min = 0.53, -- 0 °C, dies back in winter
|
||||||
--random_facedir = { 0, 179 },
|
--random_facedir = { 0, 179 },
|
||||||
},
|
},
|
||||||
node_names
|
node_names
|
||||||
@ -147,8 +150,8 @@ if abstract_ferns.config.enable_horsetails_on_stones == true then
|
|||||||
min_elevation = 1, -- above sea level
|
min_elevation = 1, -- above sea level
|
||||||
plantlife_limit = -0.9,
|
plantlife_limit = -0.9,
|
||||||
humidity_min = 0.4,
|
humidity_min = 0.4,
|
||||||
temp_max = -0.5, -- 55 <EFBFBD>C
|
temp_max = -0.5, -- 55 °C
|
||||||
temp_min = 0.53, -- 0 <EFBFBD>C, dies back in winter
|
temp_min = 0.53, -- 0 °C, dies back in winter
|
||||||
--random_facedir = { 0, 179 },
|
--random_facedir = { 0, 179 },
|
||||||
},
|
},
|
||||||
node_names
|
node_names
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
local title = "Ferns" -- former "Archae Plantae"
|
local title = "Ferns" -- former "Archae Plantae"
|
||||||
local version = "0.2.0"
|
local version = "0.2.1"
|
||||||
local mname = "ferns" -- former "archaeplantae"
|
local mname = "ferns" -- former "archaeplantae"
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- (by Mossmanikin)
|
-- (by Mossmanikin)
|
||||||
-- License (everything): WTFPL
|
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
abstract_ferns = {}
|
abstract_ferns = {}
|
||||||
|
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("ferns")
|
||||||
|
|
||||||
dofile(minetest.get_modpath("ferns").."/settings.lua")
|
dofile(minetest.get_modpath("ferns").."/settings.lua")
|
||||||
|
|
||||||
if abstract_ferns.config.enable_lady_fern == true then
|
if abstract_ferns.config.enable_lady_fern == true then
|
||||||
|
22
ferns/locale/ferns.fr.tr
Normal file
22
ferns/locale/ferns.fr.tr
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# textdomain: ferns
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# fat115 <fat115@framasoft.org>, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Fiddlehead=Crosse de fougère
|
||||||
|
Roasted Fiddlehead=Crosse de fougère rôtie
|
||||||
|
Fern Tuber=Tubercule de fougère
|
||||||
|
Roasted Fern Tuber=Tubercule de fougère rôti
|
||||||
|
Lady-fern (Athyrium)=Fougère (Athyrium)
|
||||||
|
Tree Fern Crown (Dicksonia)=Fougère en couronne (Dicksonia)
|
||||||
|
Giant Tree Fern Leaves=Feuilles de fougère géante
|
||||||
|
Giant Tree Fern Leave End=Feuilles de fougère géante (extrémité)
|
||||||
|
Giant Fern Trunk=Tronc de fougère géante
|
||||||
|
Giant Tree Fern Sapling=Pousse de fougère géante
|
||||||
|
Young Horsetail (Equisetum)=Pousse de prêle (Equisetum)
|
||||||
|
Horsetail (Equisetum)=Prêle (Equisetum)
|
||||||
|
Fern Trunk (Dicksonia)=Tronc de fougère en couronne (Dicksonia)
|
||||||
|
Tree Fern Sapling (Dicksonia)=Pousse de fougère en couronne (Dicksonia)
|
23
ferns/locale/template.txt
Normal file
23
ferns/locale/template.txt
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# textdomain: ferns
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Fiddlehead=
|
||||||
|
Roasted Fiddlehead=
|
||||||
|
Fern Tuber=
|
||||||
|
Roasted Fern Tuber=
|
||||||
|
Lady-fern (Athyrium)=
|
||||||
|
Tree Fern Crown (Dicksonia)=
|
||||||
|
Giant Tree Fern Leaves=
|
||||||
|
Giant Tree Fern Leave End=
|
||||||
|
Giant Fern Trunk=
|
||||||
|
Giant Tree Fern Sapling=
|
||||||
|
Young Horsetail (Equisetum)=
|
||||||
|
Horsetail (Equisetum)=
|
||||||
|
Fern Trunk (Dicksonia)=
|
||||||
|
Tree Fern Sapling (Dicksonia)=
|
2
ferns/mod.conf
Normal file
2
ferns/mod.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
name = ferns
|
||||||
|
depends = default, biome_lib
|
@ -2,19 +2,21 @@
|
|||||||
-- Ferns - Tree Fern 0.1.1
|
-- Ferns - Tree Fern 0.1.1
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- by Mossmanikin
|
-- by Mossmanikin
|
||||||
-- License (everything): WTFPL
|
|
||||||
-- Contains code from: biome_lib
|
-- Contains code from: biome_lib
|
||||||
-- Looked at code from: default , trees
|
-- Looked at code from: default , trees
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("ferns")
|
||||||
|
|
||||||
assert(abstract_ferns.config.enable_treefern == true)
|
assert(abstract_ferns.config.enable_treefern == true)
|
||||||
|
|
||||||
abstract_ferns.grow_tree_fern = function(pos)
|
abstract_ferns.grow_tree_fern = function(pos)
|
||||||
|
|
||||||
local pos_01 = {x = pos.x, y = pos.y + 1, z = pos.z}
|
local pos_aux = {x = pos.x, y = pos.y + 1, z = pos.z}
|
||||||
if minetest.get_node(pos_01).name ~= "air"
|
local name = minetest.get_node(pos_aux).name
|
||||||
and minetest.get_node(pos_01).name ~= "ferns:sapling_tree_fern"
|
if name ~= "air" and name ~= "ferns:sapling_tree_fern"
|
||||||
and minetest.get_node(pos_01).name ~= "default:junglegrass" then
|
and name ~= "default:junglegrass" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -26,15 +28,20 @@ abstract_ferns.grow_tree_fern = function(pos)
|
|||||||
local crown = ({ "ferns:tree_fern_leaves", "ferns:tree_fern_leaves_02" })[math.random(1, 2)]
|
local crown = ({ "ferns:tree_fern_leaves", "ferns:tree_fern_leaves_02" })[math.random(1, 2)]
|
||||||
|
|
||||||
local i = 1
|
local i = 1
|
||||||
while (i < size-1) do
|
local brk = false
|
||||||
if minetest.get_node({x = pos.x, y = pos.y + i + 1, z = pos.z}).name ~= "air" then
|
while (i < size) do
|
||||||
|
pos_aux.y = pos.y + i
|
||||||
|
name = minetest.get_node(pos_aux).name
|
||||||
|
if not (name == "air" or (i == 1 and name == "ferns:sapling_tree_fern")) then
|
||||||
|
brk = true
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
minetest.set_node({x = pos.x, y = pos.y + i, z = pos.z}, { name = "ferns:fern_trunk" })
|
minetest.swap_node({x = pos.x, y = pos.y + i, z = pos.z}, { name = "ferns:fern_trunk" })
|
||||||
i = i + 1
|
i = i + 1
|
||||||
end
|
end
|
||||||
|
if not brk then
|
||||||
minetest.set_node({x = pos.x, y = pos.y + i, z = pos.z}, { name = crown })
|
minetest.swap_node({x = pos.x, y = pos.y + i - 1, z = pos.z}, { name = crown })
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
@ -44,9 +51,9 @@ end
|
|||||||
-- TODO: Both of these nodes look the same?
|
-- TODO: Both of these nodes look the same?
|
||||||
|
|
||||||
minetest.register_node("ferns:tree_fern_leaves", {
|
minetest.register_node("ferns:tree_fern_leaves", {
|
||||||
description = "Tree Fern Crown (Dicksonia)",
|
description = S("Tree Fern Crown (Dicksonia)"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 2,
|
visual_scale = math.sqrt(8),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
--tiles = {"[combine:32x32:0,0=top_left.png:0,16=bottom_left.png:16,0=top_right.png:16,16=bottom_right.png"},
|
--tiles = {"[combine:32x32:0,0=top_left.png:0,16=bottom_left.png:16,0=top_right.png:16,16=bottom_right.png"},
|
||||||
@ -80,7 +87,7 @@ minetest.register_node("ferns:tree_fern_leaves", {
|
|||||||
})
|
})
|
||||||
minetest.register_node("ferns:tree_fern_leaves_02", {
|
minetest.register_node("ferns:tree_fern_leaves_02", {
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 2,
|
visual_scale = math.sqrt(8),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"ferns_fern_big.png"},
|
tiles = {"ferns_fern_big.png"},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
@ -113,7 +120,7 @@ minetest.register_node("ferns:tree_fern_leaves_02", {
|
|||||||
-- FERN TRUNK
|
-- FERN TRUNK
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("ferns:fern_trunk", {
|
minetest.register_node("ferns:fern_trunk", {
|
||||||
description = "Fern Trunk (Dicksonia)",
|
description = S("Fern Trunk (Dicksonia)"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -144,7 +151,7 @@ minetest.register_node("ferns:fern_trunk", {
|
|||||||
-- TREE FERN SAPLING
|
-- TREE FERN SAPLING
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("ferns:sapling_tree_fern", {
|
minetest.register_node("ferns:sapling_tree_fern", {
|
||||||
description = "Tree Fern Sapling (Dicksonia)",
|
description = S("Tree Fern Sapling (Dicksonia)"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -177,6 +184,7 @@ if abstract_ferns.config.enable_treeferns_in_jungle == true then
|
|||||||
biome_lib:register_generate_plant({
|
biome_lib:register_generate_plant({
|
||||||
surface = {
|
surface = {
|
||||||
"default:dirt_with_grass",
|
"default:dirt_with_grass",
|
||||||
|
"default:dirt_with_rainforest_litter", -- minetest >= 0.4.16
|
||||||
"default:sand",
|
"default:sand",
|
||||||
"default:desert_sand",
|
"default:desert_sand",
|
||||||
},
|
},
|
||||||
@ -213,7 +221,7 @@ if abstract_ferns.config.enable_treeferns_in_oases == true then
|
|||||||
neighbors = {"default:desert_sand"},
|
neighbors = {"default:desert_sand"},
|
||||||
ncount = 1,
|
ncount = 1,
|
||||||
min_elevation = 1,
|
min_elevation = 1,
|
||||||
near_nodes = {"default:water_source"},
|
near_nodes = {"default:water_source","default:river_water_source"},
|
||||||
near_nodes_size = 2,
|
near_nodes_size = 2,
|
||||||
near_nodes_vertical = 1,
|
near_nodes_vertical = 1,
|
||||||
near_nodes_count = 1,
|
near_nodes_count = 1,
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
biome_lib
|
|
||||||
farming?
|
|
@ -1,4 +1,5 @@
|
|||||||
local S = biome_lib.intllib
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("flowers_plus")
|
||||||
|
|
||||||
-- This file supplies a few additional plants and some related crafts
|
-- This file supplies a few additional plants and some related crafts
|
||||||
-- for the plantlife modpack. Last revision: 2013-04-24
|
-- for the plantlife modpack. Last revision: 2013-04-24
|
||||||
@ -63,6 +64,7 @@ for i in ipairs(lilies_list) do
|
|||||||
fixed = { -0.5, -0.49, -0.5, 0.5, -0.49, 0.5 },
|
fixed = { -0.5, -0.49, -0.5, 0.5, -0.49, 0.5 },
|
||||||
},
|
},
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
|
node_placement_prediction = "",
|
||||||
|
|
||||||
liquids_pointable = true,
|
liquids_pointable = true,
|
||||||
drop = "flowers:waterlily",
|
drop = "flowers:waterlily",
|
||||||
@ -113,10 +115,10 @@ for i in ipairs(lilies_list) do
|
|||||||
elseif waterlily == 8 then
|
elseif waterlily == 8 then
|
||||||
nodename = "flowers:waterlily_s4"
|
nodename = "flowers:waterlily_s4"
|
||||||
end
|
end
|
||||||
minetest.set_node(place_pos, {name = nodename, param2 = math.random(0,3) })
|
minetest.swap_node(place_pos, {name = nodename, param2 = math.random(0,3) })
|
||||||
else
|
else
|
||||||
local fdir = minetest.dir_to_facedir(placer:get_look_dir())
|
local fdir = minetest.dir_to_facedir(placer:get_look_dir())
|
||||||
minetest.set_node(place_pos, {name = "flowers:waterlily", param2 = fdir})
|
minetest.swap_node(place_pos, {name = "flowers:waterlily", param2 = fdir})
|
||||||
end
|
end
|
||||||
|
|
||||||
if not biome_lib.expect_infinite_stacks then
|
if not biome_lib.expect_infinite_stacks then
|
||||||
@ -205,10 +207,10 @@ for i in ipairs(algae_list) do
|
|||||||
elseif seaweed == 4 then
|
elseif seaweed == 4 then
|
||||||
nodename = "flowers:seaweed_4"
|
nodename = "flowers:seaweed_4"
|
||||||
end
|
end
|
||||||
minetest.set_node(place_pos, {name = nodename, param2 = math.random(0,3) })
|
minetest.swap_node(place_pos, {name = nodename, param2 = math.random(0,3) })
|
||||||
else
|
else
|
||||||
local fdir = minetest.dir_to_facedir(placer:get_look_dir())
|
local fdir = minetest.dir_to_facedir(placer:get_look_dir())
|
||||||
minetest.set_node(place_pos, {name = "flowers:seaweed", param2 = fdir})
|
minetest.swap_node(place_pos, {name = "flowers:seaweed", param2 = fdir})
|
||||||
end
|
end
|
||||||
|
|
||||||
if not biome_lib.expect_infinite_stacks then
|
if not biome_lib.expect_infinite_stacks then
|
||||||
@ -231,7 +233,7 @@ if minetest.registered_items["farming:seed_spelt"] then
|
|||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node(":flowers:sunflower", {
|
minetest.register_node(":flowers:sunflower", {
|
||||||
description = "Sunflower",
|
description = S("Sunflower"),
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -292,7 +294,7 @@ flowers_plus.grow_waterlily = function(pos)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if chance == num then
|
if chance == num then
|
||||||
minetest.set_node(right_here, {name="flowers:waterlily"..ext, param2=math.random(0,3)})
|
minetest.swap_node(right_here, {name="flowers:waterlily"..ext, param2=math.random(0,3)})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -316,7 +318,7 @@ biome_lib:register_generate_plant({
|
|||||||
|
|
||||||
flowers_plus.grow_seaweed = function(pos)
|
flowers_plus.grow_seaweed = function(pos)
|
||||||
local right_here = {x=pos.x, y=pos.y+1, z=pos.z}
|
local right_here = {x=pos.x, y=pos.y+1, z=pos.z}
|
||||||
minetest.set_node(right_here, {name="along_shore:seaweed_"..math.random(1,4), param2=math.random(1,3)})
|
minetest.swap_node(right_here, {name="along_shore:seaweed_"..math.random(1,4), param2=math.random(1,3)})
|
||||||
end
|
end
|
||||||
|
|
||||||
biome_lib:register_generate_plant({
|
biome_lib:register_generate_plant({
|
||||||
@ -476,4 +478,4 @@ minetest.register_alias("flowers:cotton", "farming:string")
|
|||||||
minetest.register_alias("flowers:cotton_wad", "farming:string")
|
minetest.register_alias("flowers:cotton_wad", "farming:string")
|
||||||
minetest.register_alias("sunflower:sunflower", "flowers:sunflower")
|
minetest.register_alias("sunflower:sunflower", "flowers:sunflower")
|
||||||
|
|
||||||
print(S("[Flowers] Loaded."))
|
print("[Flowers] Loaded.")
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
# Translation by Xanthin
|
|
||||||
|
|
||||||
Waterlily = Seerose
|
|
||||||
Seaweed = Seetang
|
|
||||||
Potted Rose = Eingetopfte Rose
|
|
||||||
Potted Tulip = Eingetopfte Tulpe
|
|
||||||
Potted Yellow Dandelion = Eingetopfter Loewenzahn
|
|
||||||
Potted White Dandelion = Eingetopfte Pusteblume
|
|
||||||
Potted Blue Geranium = Eingetopfte blaue Geranie
|
|
||||||
Potted Viola = Eingetopftes Veilchen
|
|
||||||
Flower Pot = Blumentopf
|
|
||||||
|
|
||||||
[Flowers] Loaded. = [Flowers] Geladen.
|
|
13
flowers_plus/locale/flowers_plus.de.tr
Normal file
13
flowers_plus/locale/flowers_plus.de.tr
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# textdomain: flowers_plus
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# Xanthin, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Waterlily=Seerose
|
||||||
|
Seaweed=Seetang
|
||||||
|
Sunflower=Sonnenblume
|
12
flowers_plus/locale/flowers_plus.es.tr
Normal file
12
flowers_plus/locale/flowers_plus.es.tr
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# textdomain: flowers_plus
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# Carlos Barraza <carlosbarrazaes@gmail.com>, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Waterlily=Lirio de agua
|
||||||
|
Seaweed=Algas marinas
|
||||||
|
Sunflower=Girasol
|
12
flowers_plus/locale/flowers_plus.fr.tr
Normal file
12
flowers_plus/locale/flowers_plus.fr.tr
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# textdomain: flowers_plus
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# fat115 <fat115@framasoft.org>, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Waterlily=Nénuphar
|
||||||
|
Seaweed=Algues
|
||||||
|
Sunflower=Tournesol
|
12
flowers_plus/locale/flowers_plus.tr.tr
Normal file
12
flowers_plus/locale/flowers_plus.tr.tr
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# textdomain: flowers_plus
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# mahmutelmas06@hotmail.com, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Waterlily=Nilüfer
|
||||||
|
Seaweed=Deniz yosunu
|
||||||
|
Sunflower=Ayçiçeği
|
@ -1,13 +0,0 @@
|
|||||||
# Template
|
|
||||||
|
|
||||||
Waterlily = Nénuphar
|
|
||||||
Seaweed = Algues
|
|
||||||
Potted Rose = Rose en pot
|
|
||||||
Potted Tulip = Tulipe en pot
|
|
||||||
Potted Yellow Dandelion = Pissenlit jaune en pot
|
|
||||||
Potted White Dandelion = Pissenlit blanc en pot
|
|
||||||
Potted Blue Geranium = Géranium bleu en pot
|
|
||||||
Potted Viola = Violette en pot
|
|
||||||
Flower Pot = Fleurs en pot
|
|
||||||
|
|
||||||
[Flowers] Loaded. = [Fleurs] Chargées.
|
|
@ -1,13 +1,13 @@
|
|||||||
# Template
|
# textdomain: flowers_plus
|
||||||
|
|
||||||
Waterlily =
|
# SOME DESCRIPTIVE TITLE.
|
||||||
Seaweed =
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
Potted Rose =
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
Potted Tulip =
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
Potted Yellow Dandelion =
|
#
|
||||||
Potted White Dandelion =
|
|
||||||
Potted Blue Geranium =
|
|
||||||
Potted Viola =
|
|
||||||
Flower Pot =
|
|
||||||
|
|
||||||
[Flowers] Loaded. =
|
|
||||||
|
|
||||||
|
Waterlily=
|
||||||
|
Seaweed=
|
||||||
|
Sunflower=
|
||||||
|
3
flowers_plus/mod.conf
Normal file
3
flowers_plus/mod.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
name = flowers_plus
|
||||||
|
depends = biome_lib
|
||||||
|
optional_depends = farming, flowers
|
@ -1,14 +0,0 @@
|
|||||||
# Turkish translation
|
|
||||||
# mahmutelmas06@hotmail.com
|
|
||||||
|
|
||||||
Waterlily = Nilüfer
|
|
||||||
Seaweed = Deniz yosunu
|
|
||||||
Potted Rose = Saksı gülü
|
|
||||||
Potted Tulip = Saksı lalesi
|
|
||||||
Potted Yellow Dandelion = Sarı hindiba
|
|
||||||
Potted White Dandelion = Beyaz hindiba
|
|
||||||
Potted Blue Geranium = Mavi hindiba
|
|
||||||
Potted Viola = Saksı Menekşesi
|
|
||||||
Flower Pot = Saksı
|
|
||||||
|
|
||||||
[Flowers] Loaded. = [Flowers] yüklendi.
|
|
1
junglegrass/mod.conf
Normal file
1
junglegrass/mod.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
name = junglegrass
|
@ -1,2 +0,0 @@
|
|||||||
default
|
|
||||||
biome_lib
|
|
@ -10,6 +10,8 @@ abstract_molehills = {}
|
|||||||
|
|
||||||
dofile(minetest.get_modpath("molehills").."/molehills_settings.txt")
|
dofile(minetest.get_modpath("molehills").."/molehills_settings.txt")
|
||||||
|
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("molehills")
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- NoDe
|
-- NoDe
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
@ -22,7 +24,7 @@ local mh_cbox = {
|
|||||||
minetest.register_node("molehills:molehill",{
|
minetest.register_node("molehills:molehill",{
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "molehill_molehill.obj",
|
mesh = "molehill_molehill.obj",
|
||||||
description = "Mole Hill",
|
description = S("Mole Hill"),
|
||||||
inventory_image = "molehills_side.png",
|
inventory_image = "molehills_side.png",
|
||||||
tiles = { "molehills_dirt.png" },
|
tiles = { "molehills_dirt.png" },
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
@ -56,7 +58,7 @@ abstract_molehills.place_molehill = function(pos)
|
|||||||
and minetest.get_node({x=pos.x+1, y=pos.y, z=pos.z-1}).name ~= "air"
|
and minetest.get_node({x=pos.x+1, y=pos.y, z=pos.z-1}).name ~= "air"
|
||||||
and minetest.get_node({x=pos.x-1, y=pos.y, z=pos.z+1}).name ~= "air"
|
and minetest.get_node({x=pos.x-1, y=pos.y, z=pos.z+1}).name ~= "air"
|
||||||
and minetest.get_node({x=pos.x-1, y=pos.y, z=pos.z-1}).name ~= "air" then
|
and minetest.get_node({x=pos.x-1, y=pos.y, z=pos.z-1}).name ~= "air" then
|
||||||
minetest.set_node(right_here, {name="molehills:molehill"})
|
minetest.swap_node(right_here, {name="molehills:molehill"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -74,5 +76,5 @@ biome_lib:register_generate_plant({
|
|||||||
)
|
)
|
||||||
|
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
print("[Mod] "..title.." ["..version.."] ["..mname.."]".."Loaded...")
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
9
molehills/locale/molehills.fr.tr
Normal file
9
molehills/locale/molehills.fr.tr
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# textdomain: molehills
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# fat115 <fat115@framasoft.org>, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Mole Hill=Taupinière
|
9
molehills/locale/template.txt
Normal file
9
molehills/locale/template.txt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# textdomain: molehills
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
|
||||||
|
Mole Hill=
|
2
molehills/mod.conf
Normal file
2
molehills/mod.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
name = molehills
|
||||||
|
depends = default, biome_lib
|
@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
Molehills_Max_Count = 320 -- absolute maximum number in an area of 80x80x80 nodes
|
Molehills_Max_Count = 320 -- absolute maximum number in an area of 80x80x80 nodes
|
||||||
|
|
||||||
Molehills_Rarity = 87 -- larger values make molehills more rare (100 means chance of 0 %)
|
Molehills_Rarity = 95 -- larger values make molehills more rare (100 means chance of 0 %)
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("nature_classic")
|
||||||
-- Blossoms and such
|
-- Blossoms and such
|
||||||
|
|
||||||
local function spawn_apple_under(pos)
|
local function spawn_apple_under(pos)
|
||||||
@ -7,20 +9,26 @@ local function spawn_apple_under(pos)
|
|||||||
z = pos.z,
|
z = pos.z,
|
||||||
}
|
}
|
||||||
if minetest.get_node(below).name == "air" then
|
if minetest.get_node(below).name == "air" then
|
||||||
minetest.set_node(below, { name = "default:apple" })
|
minetest.swap_node(below, { name = "default:apple" })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node(":"..nature.blossom_node, {
|
minetest.register_node(":"..nature.blossom_node, {
|
||||||
description = "Apple blossoms",
|
description = S("Apple blossoms"),
|
||||||
drawtype = "allfaces_optional",
|
drawtype = "allfaces_optional",
|
||||||
tiles = nature.blossom_textures,
|
tiles = nature.blossom_textures,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = { snappy = 3, leafdecay = 3, flammable = 2, leafdecay = 3 },
|
groups = nature.blossom_groups,
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
waving = 1
|
waving = 1
|
||||||
})
|
})
|
||||||
|
|
||||||
|
default.register_leafdecay({
|
||||||
|
trunks = { nature.blossom_trunk },
|
||||||
|
leaves = { nature.blossom_node, nature.blossom_leaves },
|
||||||
|
radius = nature.blossom_decay,
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "fuel",
|
type = "fuel",
|
||||||
recipe = nature.blossom_node,
|
recipe = nature.blossom_node,
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
default
|
|
||||||
moretrees?
|
|
@ -67,7 +67,7 @@ function nature:grow_node(pos, nodename)
|
|||||||
>= nature.minimum_growth_light
|
>= nature.minimum_growth_light
|
||||||
|
|
||||||
if is_not_young(pos) and light_enough then
|
if is_not_young(pos) and light_enough then
|
||||||
minetest.set_node(pos, { name = nodename })
|
minetest.swap_node(pos, { name = nodename })
|
||||||
set_young_node(pos)
|
set_young_node(pos)
|
||||||
|
|
||||||
minetest.log("info", nodename .. " has grown at " .. pos.x .. ","
|
minetest.log("info", nodename .. " has grown at " .. pos.x .. ","
|
||||||
|
@ -6,17 +6,26 @@
|
|||||||
local current_mod_name = minetest.get_current_modname()
|
local current_mod_name = minetest.get_current_modname()
|
||||||
|
|
||||||
nature = {}
|
nature = {}
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("nature_classic")
|
||||||
|
|
||||||
nature.blossomqueue = {}
|
nature.blossomqueue = {}
|
||||||
nature.blossomqueue_max = 1000
|
nature.blossomqueue_max = 1000
|
||||||
|
|
||||||
|
nature.blossom_decay = 2
|
||||||
|
nature.blossom_trunk = "default:tree"
|
||||||
nature.blossom_node = "nature:blossom"
|
nature.blossom_node = "nature:blossom"
|
||||||
nature.blossom_leaves = "default:leaves"
|
nature.blossom_leaves = "default:leaves"
|
||||||
nature.blossom_textures = { "default_leaves.png^nature_blossom.png" }
|
nature.blossom_textures = { "default_leaves.png^nature_blossom.png" }
|
||||||
|
nature.blossom_groups = { snappy = 3, leafdecay = 1, leaves = 1, flammable = 2 }
|
||||||
|
|
||||||
if minetest.get_modpath("moretrees") then
|
if minetest.get_modpath("moretrees") then
|
||||||
|
nature.blossom_decay = moretrees.leafdecay_radius
|
||||||
|
nature.blossom_trunk = "moretrees:apple_tree_trunk"
|
||||||
nature.blossom_node = "moretrees:apple_blossoms"
|
nature.blossom_node = "moretrees:apple_blossoms"
|
||||||
nature.blossom_leaves = "moretrees:apple_tree_leaves"
|
nature.blossom_leaves = "moretrees:apple_tree_leaves"
|
||||||
nature.blossom_textures = { "moretrees_apple_tree_leaves.png^nature_blossom.png" }
|
nature.blossom_textures = { "moretrees_apple_tree_leaves.png^nature_blossom.png" }
|
||||||
|
nature.blossom_groups = { snappy = 3, leafdecay = 1, leaves = 1, flammable = 2, moretrees_leaves = 1 },
|
||||||
minetest.register_alias("nature:blossom", "default:leaves")
|
minetest.register_alias("nature:blossom", "default:leaves")
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -38,4 +47,4 @@ dofile(minetest.get_modpath(current_mod_name) .. "/config.lua")
|
|||||||
dofile(minetest.get_modpath(current_mod_name) .. "/global_function.lua")
|
dofile(minetest.get_modpath(current_mod_name) .. "/global_function.lua")
|
||||||
dofile(minetest.get_modpath(current_mod_name) .. "/blossom.lua")
|
dofile(minetest.get_modpath(current_mod_name) .. "/blossom.lua")
|
||||||
|
|
||||||
minetest.log("info", "[Nature Classic] loaded!")
|
minetest.log("info", S("[Nature Classic] loaded!"))
|
||||||
|
10
nature_classic/locale/nature_classic.fr.tr
Normal file
10
nature_classic/locale/nature_classic.fr.tr
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# textdomain: nature_classic
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# fat115 <fat115@framasoft.org>, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Apple blossoms=Fleurs de pommier
|
||||||
|
[Nature Classic] loaded!=[Nature Classic] chargé.!
|
10
nature_classic/locale/template.txt
Normal file
10
nature_classic/locale/template.txt
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# textdomain: nature_classic
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
|
||||||
|
Apple blossoms=
|
||||||
|
[Nature Classic] loaded!=
|
3
nature_classic/mod.conf
Normal file
3
nature_classic/mod.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
name = nature_classic
|
||||||
|
depends = default
|
||||||
|
optional_depends = moretrees
|
@ -1,2 +0,0 @@
|
|||||||
biome_lib
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
|||||||
-- This file supplies poison ivy for the plantlife modpack
|
-- This file supplies poison ivy for the plantlife modpack
|
||||||
-- Last revision: 2013-01-24
|
-- Last revision: 2013-01-24
|
||||||
|
|
||||||
local S = biome_lib.intllib
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("poisonivy")
|
||||||
|
|
||||||
local SPAWN_DELAY = 1000
|
local SPAWN_DELAY = 1000
|
||||||
local SPAWN_CHANCE = 200
|
local SPAWN_CHANCE = 200
|
||||||
@ -100,4 +101,4 @@ biome_lib:grow_plants({
|
|||||||
ground_nodes = {"default:dirt_with_grass"}
|
ground_nodes = {"default:dirt_with_grass"}
|
||||||
})
|
})
|
||||||
|
|
||||||
print(S("[Poison Ivy] Loaded."))
|
print("[Poison Ivy] Loaded.")
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
# Translation by Xanthin
|
|
||||||
|
|
||||||
Poison ivy (seedling) = Giftefeu (Saemling)
|
|
||||||
Poison ivy (sproutling) = Giftefeu (Sproessling)
|
|
||||||
Poison ivy (climbing plant) = Giftefeu (Kletterpflanze)
|
|
||||||
|
|
||||||
[Poison Ivy] Loaded. = [Poison Ivy] Geladen.
|
|
@ -1,7 +0,0 @@
|
|||||||
# Template
|
|
||||||
|
|
||||||
Poison ivy (seedling) = Sumac vénéneux (semis)
|
|
||||||
Poison ivy (sproutling) = Sumac vénéneux (pousse)
|
|
||||||
Poison ivy (climbing plant) = Sumac vénéneux (grimpant)
|
|
||||||
|
|
||||||
[Poison Ivy] Loaded. = [Sumac vénéneux] Chargé.
|
|
12
poisonivy/locale/poisonivy.de.tr
Normal file
12
poisonivy/locale/poisonivy.de.tr
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# textdomain: poisonivy
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# Xanthin, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Poison ivy (seedling)=Giftefeu (Saemling)
|
||||||
|
Poison ivy (sproutling)=Giftefeu (Sproessling)
|
||||||
|
Poison ivy (climbing plant)=Giftefeu (Kletterpflanze)
|
||||||
|
[Poison Ivy] Loaded.=[Poison Ivy] Geladen.
|
12
poisonivy/locale/poisonivy.es.tr
Normal file
12
poisonivy/locale/poisonivy.es.tr
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# textdomain: poisonivy
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# Carlos Barraza <carlosbarrazaes@gmail.com>, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Poison ivy (seedling)=Hiedra venenosa (retoño)
|
||||||
|
Poison ivy (sproutling)=Hiedra venenosa (brotes)
|
||||||
|
Poison ivy (climbing plant)=Hiedra venenosa (planta trepadora)
|
||||||
|
[Poison Ivy] Loaded.=[Poison Ivy] Cargado.
|
12
poisonivy/locale/poisonivy.fr.tr
Normal file
12
poisonivy/locale/poisonivy.fr.tr
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# textdomain: poisonivy
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# fat115 <fat115@framasoft.org>, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Poison ivy (seedling)=Sumac vénéneux (semis)
|
||||||
|
Poison ivy (sproutling)=Sumac vénéneux (pousse)
|
||||||
|
Poison ivy (climbing plant)=Sumac vénéneux (grimpant)
|
||||||
|
[Poison Ivy] Loaded.=[Poison Ivy] chargé.
|
12
poisonivy/locale/poisonivy.pt.tr
Normal file
12
poisonivy/locale/poisonivy.pt.tr
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# textdomain: poisonivy
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# fat115 <fat115@framasoft.org>, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Poison ivy (seedling)=Hera venenosa (plantilha)
|
||||||
|
Poison ivy (sproutling)=Hera venenosa (brotando)
|
||||||
|
Poison ivy (climbing plant)=Hera venenosa (planta trepadeira)
|
||||||
|
[Poison Ivy] Loaded.=[Poison Ivy] Carregado
|
6
poisonivy/locale/poisonivy.pt_BR.tr
Normal file
6
poisonivy/locale/poisonivy.pt_BR.tr
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# textdomain: poisonivy
|
||||||
|
|
||||||
|
Poison ivy (seedling) = Hera venenosa (plantilha)
|
||||||
|
Poison ivy (sproutling) = Hera venenosa (brotando)
|
||||||
|
Poison ivy (climbing plant) = Hera venenosa (planta trepadeira)
|
||||||
|
[Poison Ivy] Loaded. =[Poison Ivy] Carregado
|
12
poisonivy/locale/poisonivy.template.trt
Normal file
12
poisonivy/locale/poisonivy.template.trt
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# textdomain: poisonivy
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
|
||||||
|
Poison ivy (seedling)=
|
||||||
|
Poison ivy (sproutling)=
|
||||||
|
Poison ivy (climbing plant)=
|
||||||
|
[Poison Ivy] Loaded.=
|
12
poisonivy/locale/poisonivy.tr.tr
Normal file
12
poisonivy/locale/poisonivy.tr.tr
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# textdomain: poisonivy
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# mahmutelmas06@hotmail.com, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Poison ivy (seedling)=Sarmaşık (Fidan)
|
||||||
|
Poison ivy (sproutling)=Sarmaşık (Filiz)
|
||||||
|
Poison ivy (climbing plant)=Sarmaşık (Dolanan)
|
||||||
|
[Poison Ivy] Loaded.=[Poison Ivy] yüklendi.
|
@ -1,7 +0,0 @@
|
|||||||
# Template
|
|
||||||
|
|
||||||
Poison ivy (seedling) =
|
|
||||||
Poison ivy (sproutling) =
|
|
||||||
Poison ivy (climbing plant) =
|
|
||||||
|
|
||||||
[Poison Ivy] Loaded. =
|
|
@ -1,7 +0,0 @@
|
|||||||
# Turkish translation by mahmutelmas06
|
|
||||||
|
|
||||||
Poison ivy (seedling) = Sarmaşık (Fidan)
|
|
||||||
Poison ivy (sproutling) = Sarmaşık (Filiz)
|
|
||||||
Poison ivy (climbing plant) = Sarmaşık (Dolanan)
|
|
||||||
|
|
||||||
[Poison Ivy] Loaded. = Sarmaşık yüklendi
|
|
2
poisonivy/mod.conf
Normal file
2
poisonivy/mod.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
name = poisonivy
|
||||||
|
depends = biome_lib
|
@ -35,7 +35,7 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "trunks:twig_1 4",
|
output = "trunks:twig_1 4",
|
||||||
recipe = {{"bushes:bushbranches2a"}}
|
recipe = {{"bushes:bushbranches2"}}
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "trunks:twig_1 4",
|
output = "trunks:twig_1 4",
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
default
|
|
||||||
biome_lib
|
|
||||||
bushes?
|
|
||||||
ferns?
|
|
||||||
moretrees?
|
|
||||||
trees?
|
|
@ -1,14 +1,5 @@
|
|||||||
-- Code by Mossmanikin, Neuromancer, and others
|
-- Code by Mossmanikin, Neuromancer, and others
|
||||||
|
|
||||||
local function clone_node(name)
|
|
||||||
local node2 = {}
|
|
||||||
local node = minetest.registered_nodes[name]
|
|
||||||
for k,v in pairs(node) do
|
|
||||||
node2[k]=v
|
|
||||||
end
|
|
||||||
return node2
|
|
||||||
end
|
|
||||||
|
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- TWiGS
|
-- TWiGS
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
@ -37,7 +28,7 @@ abstract_trunks.place_twig = function(pos)
|
|||||||
local node_n_w = minetest.get_node(north_west)
|
local node_n_w = minetest.get_node(north_west)
|
||||||
-- small twigs
|
-- small twigs
|
||||||
if twig_size <= 16 then
|
if twig_size <= 16 then
|
||||||
minetest.set_node(right_here, {name="trunks:twig_"..math.random(1,4), param2=math.random(0,3)})
|
minetest.swap_node(right_here, {name="trunks:twig_"..math.random(1,4), param2=math.random(0,3)})
|
||||||
end
|
end
|
||||||
-- big twigs
|
-- big twigs
|
||||||
if Big_Twigs == true then
|
if Big_Twigs == true then
|
||||||
@ -47,13 +38,13 @@ abstract_trunks.place_twig = function(pos)
|
|||||||
or minetest.registered_nodes[minetest.get_node({x=pos.x+1,y=pos.y,z=pos.z}).name].buildable_to) then
|
or minetest.registered_nodes[minetest.get_node({x=pos.x+1,y=pos.y,z=pos.z}).name].buildable_to) then
|
||||||
|
|
||||||
if minetest.registered_nodes[node_here.name].buildable_to then
|
if minetest.registered_nodes[node_here.name].buildable_to then
|
||||||
minetest.set_node(right_here, {name="trunks:twig_5"})
|
minetest.swap_node(right_here, {name="trunks:twig_5"})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_n_e.name].buildable_to then
|
if minetest.registered_nodes[node_n_e.name].buildable_to then
|
||||||
minetest.set_node(north_east, {name="trunks:twig_7"})
|
minetest.swap_node(north_east, {name="trunks:twig_7"})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_east.name].buildable_to then
|
if minetest.registered_nodes[node_east.name].buildable_to then
|
||||||
minetest.set_node(east, {name="trunks:twig_8"})
|
minetest.swap_node(east, {name="trunks:twig_8"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif twig_size == 18 then
|
elseif twig_size == 18 then
|
||||||
@ -61,13 +52,13 @@ abstract_trunks.place_twig = function(pos)
|
|||||||
or minetest.registered_nodes[minetest.get_node({x=pos.x,y=pos.y,z=pos.z-1}).name].buildable_to) then
|
or minetest.registered_nodes[minetest.get_node({x=pos.x,y=pos.y,z=pos.z-1}).name].buildable_to) then
|
||||||
|
|
||||||
if minetest.registered_nodes[node_here.name].buildable_to then
|
if minetest.registered_nodes[node_here.name].buildable_to then
|
||||||
minetest.set_node(right_here, {name="trunks:twig_5", param2=1})
|
minetest.swap_node(right_here, {name="trunks:twig_5", param2=1})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_s_e.name].buildable_to then
|
if minetest.registered_nodes[node_s_e.name].buildable_to then
|
||||||
minetest.set_node(south_east, {name="trunks:twig_7", param2=1})
|
minetest.swap_node(south_east, {name="trunks:twig_7", param2=1})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_south.name].buildable_to then
|
if minetest.registered_nodes[node_south.name].buildable_to then
|
||||||
minetest.set_node(south, {name="trunks:twig_8", param2=1})
|
minetest.swap_node(south, {name="trunks:twig_8", param2=1})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif twig_size == 19 then
|
elseif twig_size == 19 then
|
||||||
@ -75,13 +66,13 @@ abstract_trunks.place_twig = function(pos)
|
|||||||
or minetest.registered_nodes[minetest.get_node({x=pos.x-1,y=pos.y,z=pos.z}).name].buildable_to) then
|
or minetest.registered_nodes[minetest.get_node({x=pos.x-1,y=pos.y,z=pos.z}).name].buildable_to) then
|
||||||
|
|
||||||
if minetest.registered_nodes[node_here.name].buildable_to then
|
if minetest.registered_nodes[node_here.name].buildable_to then
|
||||||
minetest.set_node(right_here, {name="trunks:twig_5", param2=2})
|
minetest.swap_node(right_here, {name="trunks:twig_5", param2=2})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_s_w.name].buildable_to then
|
if minetest.registered_nodes[node_s_w.name].buildable_to then
|
||||||
minetest.set_node(south_west, {name="trunks:twig_7", param2=2})
|
minetest.swap_node(south_west, {name="trunks:twig_7", param2=2})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_west.name].buildable_to then
|
if minetest.registered_nodes[node_west.name].buildable_to then
|
||||||
minetest.set_node(west, {name="trunks:twig_8", param2=2})
|
minetest.swap_node(west, {name="trunks:twig_8", param2=2})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif twig_size == 20 then
|
elseif twig_size == 20 then
|
||||||
@ -89,13 +80,13 @@ abstract_trunks.place_twig = function(pos)
|
|||||||
or minetest.registered_nodes[minetest.get_node({x=pos.x,y=pos.y,z=pos.z+1}).name].buildable_to) then
|
or minetest.registered_nodes[minetest.get_node({x=pos.x,y=pos.y,z=pos.z+1}).name].buildable_to) then
|
||||||
|
|
||||||
if minetest.registered_nodes[node_here.name].buildable_to then
|
if minetest.registered_nodes[node_here.name].buildable_to then
|
||||||
minetest.set_node(right_here, {name="trunks:twig_5", param2=3})
|
minetest.swap_node(right_here, {name="trunks:twig_5", param2=3})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_n_w.name].buildable_to then
|
if minetest.registered_nodes[node_n_w.name].buildable_to then
|
||||||
minetest.set_node(north_west, {name="trunks:twig_7", param2=3})
|
minetest.swap_node(north_west, {name="trunks:twig_7", param2=3})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_north.name].buildable_to then
|
if minetest.registered_nodes[node_north.name].buildable_to then
|
||||||
minetest.set_node(north, {name="trunks:twig_8", param2=3})
|
minetest.swap_node(north, {name="trunks:twig_8", param2=3})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- big twig 2
|
-- big twig 2
|
||||||
@ -104,13 +95,13 @@ abstract_trunks.place_twig = function(pos)
|
|||||||
or minetest.registered_nodes[minetest.get_node({x=pos.x+1,y=pos.y,z=pos.z+1}).name].buildable_to) then
|
or minetest.registered_nodes[minetest.get_node({x=pos.x+1,y=pos.y,z=pos.z+1}).name].buildable_to) then
|
||||||
|
|
||||||
if minetest.registered_nodes[node_here.name].buildable_to then
|
if minetest.registered_nodes[node_here.name].buildable_to then
|
||||||
minetest.set_node(right_here, {name="trunks:twig_9"})
|
minetest.swap_node(right_here, {name="trunks:twig_9"})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_north.name].buildable_to then
|
if minetest.registered_nodes[node_north.name].buildable_to then
|
||||||
minetest.set_node(north, {name="trunks:twig_10"})
|
minetest.swap_node(north, {name="trunks:twig_10"})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_n_e.name].buildable_to then
|
if minetest.registered_nodes[node_n_e.name].buildable_to then
|
||||||
minetest.set_node(north_east, {name="trunks:twig_11"})
|
minetest.swap_node(north_east, {name="trunks:twig_11"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif twig_size == 22 then
|
elseif twig_size == 22 then
|
||||||
@ -118,13 +109,13 @@ abstract_trunks.place_twig = function(pos)
|
|||||||
or minetest.registered_nodes[minetest.get_node({x=pos.x+1,y=pos.y,z=pos.z-1}).name].buildable_to) then
|
or minetest.registered_nodes[minetest.get_node({x=pos.x+1,y=pos.y,z=pos.z-1}).name].buildable_to) then
|
||||||
|
|
||||||
if minetest.registered_nodes[node_here.name].buildable_to then
|
if minetest.registered_nodes[node_here.name].buildable_to then
|
||||||
minetest.set_node(right_here, {name="trunks:twig_9", param2=1})
|
minetest.swap_node(right_here, {name="trunks:twig_9", param2=1})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_east.name].buildable_to then
|
if minetest.registered_nodes[node_east.name].buildable_to then
|
||||||
minetest.set_node(east, {name="trunks:twig_10", param2=1})
|
minetest.swap_node(east, {name="trunks:twig_10", param2=1})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_s_e.name].buildable_to then
|
if minetest.registered_nodes[node_s_e.name].buildable_to then
|
||||||
minetest.set_node(south_east, {name="trunks:twig_11", param2=1})
|
minetest.swap_node(south_east, {name="trunks:twig_11", param2=1})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif twig_size == 23 then
|
elseif twig_size == 23 then
|
||||||
@ -132,13 +123,13 @@ abstract_trunks.place_twig = function(pos)
|
|||||||
or minetest.registered_nodes[minetest.get_node({x=pos.x-1,y=pos.y,z=pos.z-1}).name].buildable_to) then
|
or minetest.registered_nodes[minetest.get_node({x=pos.x-1,y=pos.y,z=pos.z-1}).name].buildable_to) then
|
||||||
|
|
||||||
if minetest.registered_nodes[node_here.name].buildable_to then
|
if minetest.registered_nodes[node_here.name].buildable_to then
|
||||||
minetest.set_node(right_here, {name="trunks:twig_9", param2=2})
|
minetest.swap_node(right_here, {name="trunks:twig_9", param2=2})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_south.name].buildable_to then
|
if minetest.registered_nodes[node_south.name].buildable_to then
|
||||||
minetest.set_node(south, {name="trunks:twig_10", param2=2})
|
minetest.swap_node(south, {name="trunks:twig_10", param2=2})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_s_w.name].buildable_to then
|
if minetest.registered_nodes[node_s_w.name].buildable_to then
|
||||||
minetest.set_node(south_west, {name="trunks:twig_11", param2=2})
|
minetest.swap_node(south_west, {name="trunks:twig_11", param2=2})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif twig_size == 24 then
|
elseif twig_size == 24 then
|
||||||
@ -146,17 +137,17 @@ abstract_trunks.place_twig = function(pos)
|
|||||||
or minetest.registered_nodes[minetest.get_node({x=pos.x-1,y=pos.y,z=pos.z+1}).name].buildable_to) then
|
or minetest.registered_nodes[minetest.get_node({x=pos.x-1,y=pos.y,z=pos.z+1}).name].buildable_to) then
|
||||||
|
|
||||||
if minetest.registered_nodes[node_here.name].buildable_to then
|
if minetest.registered_nodes[node_here.name].buildable_to then
|
||||||
minetest.set_node(right_here, {name="trunks:twig_9", param2=3})
|
minetest.swap_node(right_here, {name="trunks:twig_9", param2=3})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_west.name].buildable_to then
|
if minetest.registered_nodes[node_west.name].buildable_to then
|
||||||
minetest.set_node(west, {name="trunks:twig_10", param2=3})
|
minetest.swap_node(west, {name="trunks:twig_10", param2=3})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_n_w.name].buildable_to then
|
if minetest.registered_nodes[node_n_w.name].buildable_to then
|
||||||
minetest.set_node(north_west, {name="trunks:twig_11", param2=3})
|
minetest.swap_node(north_west, {name="trunks:twig_11", param2=3})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif twig_size <= 25 then
|
elseif twig_size <= 25 then
|
||||||
minetest.set_node(right_here, {name="trunks:twig_"..math.random(12,13), param2=math.random(0,3)})
|
minetest.swap_node(right_here, {name="trunks:twig_"..math.random(12,13), param2=math.random(0,3)})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -230,7 +221,7 @@ for i in pairs(TRuNKS) do
|
|||||||
if minetest.get_modpath(MoD) ~= nil
|
if minetest.get_modpath(MoD) ~= nil
|
||||||
and NR < 6 -- moretrees trunks allready have facedir
|
and NR < 6 -- moretrees trunks allready have facedir
|
||||||
and minetest.registered_nodes[trunkname] then -- the node being called exists.
|
and minetest.registered_nodes[trunkname] then -- the node being called exists.
|
||||||
temptrunk = clone_node(trunkname)
|
temptrunk = table.copy(minetest.registered_nodes[trunkname])
|
||||||
temptrunk.paramtype2 = "facedir"
|
temptrunk.paramtype2 = "facedir"
|
||||||
minetest.register_node(":"..trunkname, temptrunk)
|
minetest.register_node(":"..trunkname, temptrunk)
|
||||||
end
|
end
|
||||||
@ -269,70 +260,70 @@ abstract_trunks.place_trunk = function(pos)
|
|||||||
local trunk_type = math.random(1,3)
|
local trunk_type = math.random(1,3)
|
||||||
if trunk_type == 1 then
|
if trunk_type == 1 then
|
||||||
if minetest.get_modpath(MoD) ~= nil then
|
if minetest.get_modpath(MoD) ~= nil then
|
||||||
minetest.set_node(right_here, {name=MoD..":"..TRuNK})
|
minetest.swap_node(right_here, {name=MoD..":"..TRuNK})
|
||||||
else
|
else
|
||||||
minetest.set_node(right_here, {name="default:tree"})
|
minetest.swap_node(right_here, {name="default:tree"})
|
||||||
end
|
end
|
||||||
elseif trunk_type == 2 and Horizontal_Trunks == true then
|
elseif trunk_type == 2 and Horizontal_Trunks == true then
|
||||||
if minetest.get_modpath(MoD) ~= nil then
|
if minetest.get_modpath(MoD) ~= nil then
|
||||||
if minetest.registered_nodes[node_north.name].buildable_to then
|
if minetest.registered_nodes[node_north.name].buildable_to then
|
||||||
minetest.set_node(north, {name=MoD..":"..TRuNK, param2=4})
|
minetest.swap_node(north, {name=MoD..":"..TRuNK, param2=4})
|
||||||
end
|
end
|
||||||
|
|
||||||
if length >= 4 and minetest.registered_nodes[node_north2.name].buildable_to then
|
if length >= 4 and minetest.registered_nodes[node_north2.name].buildable_to then
|
||||||
minetest.set_node(north2, {name=MoD..":"..TRuNK, param2=4})
|
minetest.swap_node(north2, {name=MoD..":"..TRuNK, param2=4})
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.set_node(right_here, {name=MoD..":"..TRuNK, param2=4})
|
minetest.swap_node(right_here, {name=MoD..":"..TRuNK, param2=4})
|
||||||
if minetest.registered_nodes[node_south.name].buildable_to then
|
if minetest.registered_nodes[node_south.name].buildable_to then
|
||||||
minetest.set_node(south, {name=MoD..":"..TRuNK, param2=4})
|
minetest.swap_node(south, {name=MoD..":"..TRuNK, param2=4})
|
||||||
end
|
end
|
||||||
if length == 5 and minetest.registered_nodes[node_south2.name].buildable_to then
|
if length == 5 and minetest.registered_nodes[node_south2.name].buildable_to then
|
||||||
minetest.set_node(south2, {name=MoD..":"..TRuNK, param2=4})
|
minetest.swap_node(south2, {name=MoD..":"..TRuNK, param2=4})
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if minetest.registered_nodes[node_north.name].buildable_to then
|
if minetest.registered_nodes[node_north.name].buildable_to then
|
||||||
minetest.set_node(north, {name="default:tree", param2=4})
|
minetest.swap_node(north, {name="default:tree", param2=4})
|
||||||
end
|
end
|
||||||
if length >= 4 and minetest.registered_nodes[node_north2.name].buildable_to then
|
if length >= 4 and minetest.registered_nodes[node_north2.name].buildable_to then
|
||||||
minetest.set_node(north2, {name="default:tree", param2=4})
|
minetest.swap_node(north2, {name="default:tree", param2=4})
|
||||||
end
|
end
|
||||||
minetest.set_node(right_here, {name="default:tree", param2=4})
|
minetest.swap_node(right_here, {name="default:tree", param2=4})
|
||||||
if minetest.registered_nodes[node_south.name].buildable_to then
|
if minetest.registered_nodes[node_south.name].buildable_to then
|
||||||
minetest.set_node(south, {name="default:tree", param2=4})
|
minetest.swap_node(south, {name="default:tree", param2=4})
|
||||||
end
|
end
|
||||||
if length == 5 and minetest.registered_nodes[node_south2.name].buildable_to then
|
if length == 5 and minetest.registered_nodes[node_south2.name].buildable_to then
|
||||||
minetest.set_node(south2, {name="default:tree", param2=4})
|
minetest.swap_node(south2, {name="default:tree", param2=4})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif trunk_type == 3 and Horizontal_Trunks == true then
|
elseif trunk_type == 3 and Horizontal_Trunks == true then
|
||||||
if minetest.get_modpath(MoD) ~= nil then
|
if minetest.get_modpath(MoD) ~= nil then
|
||||||
if minetest.registered_nodes[node_west.name].buildable_to then
|
if minetest.registered_nodes[node_west.name].buildable_to then
|
||||||
minetest.set_node(west, {name=MoD..":"..TRuNK, param2=12})
|
minetest.swap_node(west, {name=MoD..":"..TRuNK, param2=12})
|
||||||
end
|
end
|
||||||
if length >= 4 and minetest.registered_nodes[node_west2.name].buildable_to then
|
if length >= 4 and minetest.registered_nodes[node_west2.name].buildable_to then
|
||||||
minetest.set_node(west2, {name=MoD..":"..TRuNK, param2=12})
|
minetest.swap_node(west2, {name=MoD..":"..TRuNK, param2=12})
|
||||||
end
|
end
|
||||||
minetest.set_node(right_here, {name=MoD..":"..TRuNK, param2=12})
|
minetest.swap_node(right_here, {name=MoD..":"..TRuNK, param2=12})
|
||||||
if minetest.registered_nodes[node_east.name].buildable_to then
|
if minetest.registered_nodes[node_east.name].buildable_to then
|
||||||
minetest.set_node(east, {name=MoD..":"..TRuNK, param2=12})
|
minetest.swap_node(east, {name=MoD..":"..TRuNK, param2=12})
|
||||||
end
|
end
|
||||||
if length == 5 and minetest.registered_nodes[node_east2.name].buildable_to then
|
if length == 5 and minetest.registered_nodes[node_east2.name].buildable_to then
|
||||||
minetest.set_node(east2, {name=MoD..":"..TRuNK, param2=12})
|
minetest.swap_node(east2, {name=MoD..":"..TRuNK, param2=12})
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if minetest.registered_nodes[node_west.name].buildable_to then
|
if minetest.registered_nodes[node_west.name].buildable_to then
|
||||||
minetest.set_node(west, {name="default:tree", param2=12})
|
minetest.swap_node(west, {name="default:tree", param2=12})
|
||||||
end
|
end
|
||||||
if length >= 4 and minetest.registered_nodes[node_west2.name].buildable_to then
|
if length >= 4 and minetest.registered_nodes[node_west2.name].buildable_to then
|
||||||
minetest.set_node(west2, {name="default:tree", param2=12})
|
minetest.swap_node(west2, {name="default:tree", param2=12})
|
||||||
end
|
end
|
||||||
minetest.set_node(right_here, {name="default:tree", param2=12})
|
minetest.swap_node(right_here, {name="default:tree", param2=12})
|
||||||
if minetest.registered_nodes[node_east.name].buildable_to then
|
if minetest.registered_nodes[node_east.name].buildable_to then
|
||||||
minetest.set_node(east, {name="default:tree", param2=12})
|
minetest.swap_node(east, {name="default:tree", param2=12})
|
||||||
end
|
end
|
||||||
if length == 5 and minetest.registered_nodes[node_east2.name].buildable_to then
|
if length == 5 and minetest.registered_nodes[node_east2.name].buildable_to then
|
||||||
minetest.set_node(east2, {name="default:tree", param2=12})
|
minetest.swap_node(east2, {name="default:tree", param2=12})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -367,9 +358,9 @@ abstract_trunks.grow_moss_on_ground = function(pos)
|
|||||||
local moss_type = math.random(1,21)
|
local moss_type = math.random(1,21)
|
||||||
|
|
||||||
if moss_type == 1 then
|
if moss_type == 1 then
|
||||||
minetest.set_node(on_ground, {name="trunks:moss_fungus", param2=math.random(0,3)})
|
minetest.swap_node(on_ground, {name="trunks:moss_fungus", param2=math.random(0,3)})
|
||||||
else
|
else
|
||||||
minetest.set_node(on_ground, {name="trunks:moss", param2=math.random(0,3)})
|
minetest.swap_node(on_ground, {name="trunks:moss", param2=math.random(0,3)})
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
@ -418,41 +409,41 @@ abstract_trunks.grow_moss_on_trunk = function(pos)
|
|||||||
local moss_type = math.random(1,41)
|
local moss_type = math.random(1,41)
|
||||||
if minetest.registered_nodes[node_here.name].buildable_to then -- instead of check_air = true,
|
if minetest.registered_nodes[node_here.name].buildable_to then -- instead of check_air = true,
|
||||||
if moss_type == 1 then
|
if moss_type == 1 then
|
||||||
minetest.set_node(on_ground, {name="trunks:moss_fungus", param2=math.random(0,3) --[[1]]})
|
minetest.swap_node(on_ground, {name="trunks:moss_fungus", param2=math.random(0,3) --[[1]]})
|
||||||
elseif moss_type < 22 then
|
elseif moss_type < 22 then
|
||||||
minetest.set_node(on_ground, {name="trunks:moss", param2=math.random(0,3) --[[1]]})
|
minetest.swap_node(on_ground, {name="trunks:moss", param2=math.random(0,3) --[[1]]})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local moss_type = math.random(1,31) -- cliche of more moss at north
|
local moss_type = math.random(1,31) -- cliche of more moss at north
|
||||||
if minetest.registered_nodes[node_north.name].buildable_to then -- instead of check_air = true,
|
if minetest.registered_nodes[node_north.name].buildable_to then -- instead of check_air = true,
|
||||||
if moss_type == 1 then
|
if moss_type == 1 then
|
||||||
minetest.set_node(at_side_n, {name="trunks:moss_fungus", param2=math.random(4,7)}) -- 5,4,6,7
|
minetest.swap_node(at_side_n, {name="trunks:moss_fungus", param2=math.random(4,7)}) -- 5,4,6,7
|
||||||
elseif moss_type < 22 then
|
elseif moss_type < 22 then
|
||||||
minetest.set_node(at_side_n, {name="trunks:moss", param2=math.random(4,7)})
|
minetest.swap_node(at_side_n, {name="trunks:moss", param2=math.random(4,7)})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local moss_type = math.random(1,41)
|
local moss_type = math.random(1,41)
|
||||||
if minetest.registered_nodes[node_east.name].buildable_to then -- instead of check_air = true,
|
if minetest.registered_nodes[node_east.name].buildable_to then -- instead of check_air = true,
|
||||||
if moss_type == 1 then
|
if moss_type == 1 then
|
||||||
minetest.set_node(at_side_e, {name="trunks:moss_fungus", param2=math.random(12,15)})
|
minetest.swap_node(at_side_e, {name="trunks:moss_fungus", param2=math.random(12,15)})
|
||||||
elseif moss_type < 22 then
|
elseif moss_type < 22 then
|
||||||
minetest.set_node(at_side_e, {name="trunks:moss", param2=math.random(12,15)})
|
minetest.swap_node(at_side_e, {name="trunks:moss", param2=math.random(12,15)})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local moss_type = math.random(1,41)
|
local moss_type = math.random(1,41)
|
||||||
if minetest.registered_nodes[node_south.name].buildable_to then -- instead of check_air = true,
|
if minetest.registered_nodes[node_south.name].buildable_to then -- instead of check_air = true,
|
||||||
if moss_type == 1 then
|
if moss_type == 1 then
|
||||||
minetest.set_node(at_side_s, {name="trunks:moss_fungus", param2=math.random(8,11)})
|
minetest.swap_node(at_side_s, {name="trunks:moss_fungus", param2=math.random(8,11)})
|
||||||
elseif moss_type < 22 then
|
elseif moss_type < 22 then
|
||||||
minetest.set_node(at_side_s, {name="trunks:moss", param2=math.random(8,11)})
|
minetest.swap_node(at_side_s, {name="trunks:moss", param2=math.random(8,11)})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local moss_type = math.random(1,41)
|
local moss_type = math.random(1,41)
|
||||||
if minetest.registered_nodes[node_west.name].buildable_to then -- instead of check_air = true,
|
if minetest.registered_nodes[node_west.name].buildable_to then -- instead of check_air = true,
|
||||||
if moss_type == 1 then
|
if moss_type == 1 then
|
||||||
minetest.set_node(at_side_w, {name="trunks:moss_fungus", param2=math.random(16,19)})
|
minetest.swap_node(at_side_w, {name="trunks:moss_fungus", param2=math.random(16,19)})
|
||||||
elseif moss_type < 22 then
|
elseif moss_type < 22 then
|
||||||
minetest.set_node(at_side_w, {name="trunks:moss", param2=math.random(16,19)})
|
minetest.swap_node(at_side_w, {name="trunks:moss", param2=math.random(16,19)})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
--end
|
--end
|
||||||
@ -520,16 +511,16 @@ abstract_trunks.grow_roots = function(pos)
|
|||||||
and string.find(node_below.name, "dirt")
|
and string.find(node_below.name, "dirt")
|
||||||
and node_here.param2 == 0 then
|
and node_here.param2 == 0 then
|
||||||
if minetest.registered_nodes[node_north.name].buildable_to then
|
if minetest.registered_nodes[node_north.name].buildable_to then
|
||||||
minetest.set_node(north, {name="trunks:"..TRuNK.."root", param2=2})
|
minetest.swap_node(north, {name="trunks:"..TRuNK.."root", param2=2})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_east.name].buildable_to then
|
if minetest.registered_nodes[node_east.name].buildable_to then
|
||||||
minetest.set_node(east, {name="trunks:"..TRuNK.."root", param2=3})
|
minetest.swap_node(east, {name="trunks:"..TRuNK.."root", param2=3})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_south.name].buildable_to then
|
if minetest.registered_nodes[node_south.name].buildable_to then
|
||||||
minetest.set_node(south, {name="trunks:"..TRuNK.."root", param2=0})
|
minetest.swap_node(south, {name="trunks:"..TRuNK.."root", param2=0})
|
||||||
end
|
end
|
||||||
if minetest.registered_nodes[node_west.name].buildable_to then
|
if minetest.registered_nodes[node_west.name].buildable_to then
|
||||||
minetest.set_node(west, {name="trunks:"..TRuNK.."root", param2=1})
|
minetest.swap_node(west, {name="trunks:"..TRuNK.."root", param2=1})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -7,6 +7,9 @@ local mname = "trunks"
|
|||||||
|
|
||||||
abstract_trunks = {}
|
abstract_trunks = {}
|
||||||
|
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("trunks")
|
||||||
|
|
||||||
dofile(minetest.get_modpath("trunks").."/trunks_settings.txt")
|
dofile(minetest.get_modpath("trunks").."/trunks_settings.txt")
|
||||||
dofile(minetest.get_modpath("trunks").."/generating.lua")
|
dofile(minetest.get_modpath("trunks").."/generating.lua")
|
||||||
dofile(minetest.get_modpath("trunks").."/nodes.lua")
|
dofile(minetest.get_modpath("trunks").."/nodes.lua")
|
||||||
|
17
trunks/locale/template.txt
Normal file
17
trunks/locale/template.txt
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# textdomain: trunks
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
|
||||||
|
Twig=
|
||||||
|
Moss=
|
||||||
|
Moss with Fungus=
|
||||||
|
Twigs Block=
|
||||||
|
Twigs Slab=
|
||||||
|
Twigs Roof=
|
||||||
|
Twigs Roof Corner 1=
|
||||||
|
Twigs Roof Corner 2=
|
||||||
|
@1 Root=
|
17
trunks/locale/trunks.fr.tr
Normal file
17
trunks/locale/trunks.fr.tr
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# textdomain: trunks
|
||||||
|
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# fat115 <fat115@framasoft.org>, 2017.
|
||||||
|
#
|
||||||
|
|
||||||
|
Twig=Brindille
|
||||||
|
Moss=Mousse
|
||||||
|
Moss with Fungus=Mousse et champignons
|
||||||
|
Twigs Block=Bloc de brindilles
|
||||||
|
Twigs Slab=Dalle en brindilles
|
||||||
|
Twigs Roof=Toit de brindilles
|
||||||
|
Twigs Roof Corner 1=Angle de toit de brindilles 1
|
||||||
|
Twigs Roof Corner 2=Angle de toit de brindilles 2
|
||||||
|
@1 Root=Racine de @1
|
3
trunks/mod.conf
Normal file
3
trunks/mod.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
name = trunks
|
||||||
|
depends = default, biome_lib
|
||||||
|
optional_depends = bushes, ferns, moretrees, trees
|
@ -1,4 +1,6 @@
|
|||||||
-- Code by Mossmanikin & Neuromancer
|
-- Code by Mossmanikin & Neuromancer
|
||||||
|
-- support for i18n
|
||||||
|
local S = minetest.get_translator("trunks")
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- TWiGS
|
-- TWiGS
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
@ -13,7 +15,7 @@ for i in pairs(NoDe) do
|
|||||||
local NR = NoDe[i][1]
|
local NR = NoDe[i][1]
|
||||||
local iNV = NR - 1
|
local iNV = NR - 1
|
||||||
minetest.register_node("trunks:twig_"..NR, {
|
minetest.register_node("trunks:twig_"..NR, {
|
||||||
description = "Twig",
|
description = S("Twig"),
|
||||||
inventory_image = "trunks_twig_"..NR..".png",
|
inventory_image = "trunks_twig_"..NR..".png",
|
||||||
wield_image = "trunks_twig_"..NR..".png",
|
wield_image = "trunks_twig_"..NR..".png",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -42,7 +44,7 @@ for i in pairs(NoDe) do
|
|||||||
local pt = pointed_thing
|
local pt = pointed_thing
|
||||||
local direction = minetest.dir_to_facedir(placer:get_look_dir())
|
local direction = minetest.dir_to_facedir(placer:get_look_dir())
|
||||||
if minetest.get_node(pt.above).name=="air" then
|
if minetest.get_node(pt.above).name=="air" then
|
||||||
minetest.set_node(pt.above, {name="trunks:twig_"..math.random(1,4), param2=direction})
|
minetest.swap_node(pt.above, {name="trunks:twig_"..math.random(1,4), param2=direction})
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
end
|
end
|
||||||
@ -58,7 +60,7 @@ end
|
|||||||
local flat_moss = {-1/2, -1/2, -1/2, 1/2, -15/32--[[<-flickers if smaller]], 1/2}
|
local flat_moss = {-1/2, -1/2, -1/2, 1/2, -15/32--[[<-flickers if smaller]], 1/2}
|
||||||
|
|
||||||
minetest.register_node("trunks:moss", {
|
minetest.register_node("trunks:moss", {
|
||||||
description = "Moss",
|
description = S("Moss"),
|
||||||
drawtype = "nodebox",--"signlike",
|
drawtype = "nodebox",--"signlike",
|
||||||
tiles = {"trunks_moss.png"},
|
tiles = {"trunks_moss.png"},
|
||||||
inventory_image = "trunks_moss.png",
|
inventory_image = "trunks_moss.png",
|
||||||
@ -77,7 +79,7 @@ minetest.register_node("trunks:moss", {
|
|||||||
-- MoSS & FuNGuS
|
-- MoSS & FuNGuS
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_node("trunks:moss_fungus", {
|
minetest.register_node("trunks:moss_fungus", {
|
||||||
description = "Moss with Fungus",
|
description = S("Moss with Fungus"),
|
||||||
drawtype = "nodebox",--"signlike",
|
drawtype = "nodebox",--"signlike",
|
||||||
tiles = {"trunks_moss_fungus.png"},
|
tiles = {"trunks_moss_fungus.png"},
|
||||||
inventory_image = "trunks_moss_fungus.png",
|
inventory_image = "trunks_moss_fungus.png",
|
||||||
@ -98,7 +100,7 @@ minetest.register_node("trunks:moss_fungus", {
|
|||||||
minetest.register_alias("woodstuff:twigs", "trunks:twigs")
|
minetest.register_alias("woodstuff:twigs", "trunks:twigs")
|
||||||
|
|
||||||
minetest.register_node("trunks:twigs", {
|
minetest.register_node("trunks:twigs", {
|
||||||
description = "Twigs Block",
|
description = S("Twigs Block"),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
tiles = {"trunks_twigs.png"},
|
tiles = {"trunks_twigs.png"},
|
||||||
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
|
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
|
||||||
@ -111,7 +113,7 @@ minetest.register_node("trunks:twigs", {
|
|||||||
minetest.register_alias("woodstuff:twigs_slab", "trunks:twigs_slab")
|
minetest.register_alias("woodstuff:twigs_slab", "trunks:twigs_slab")
|
||||||
|
|
||||||
minetest.register_node("trunks:twigs_slab", {
|
minetest.register_node("trunks:twigs_slab", {
|
||||||
description = "Twigs Slab",
|
description = S("Twigs Slab"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -130,7 +132,7 @@ minetest.register_node("trunks:twigs_slab", {
|
|||||||
minetest.register_alias("woodstuff:twigs_roof", "trunks:twigs_roof")
|
minetest.register_alias("woodstuff:twigs_roof", "trunks:twigs_roof")
|
||||||
|
|
||||||
minetest.register_node("trunks:twigs_roof", {
|
minetest.register_node("trunks:twigs_roof", {
|
||||||
description = "Twigs Roof",
|
description = S("Twigs Roof"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -153,7 +155,7 @@ minetest.register_node("trunks:twigs_roof", {
|
|||||||
minetest.register_alias("woodstuff:twigs_roof_corner", "trunks:twigs_roof_corner")
|
minetest.register_alias("woodstuff:twigs_roof_corner", "trunks:twigs_roof_corner")
|
||||||
|
|
||||||
minetest.register_node("trunks:twigs_roof_corner", {
|
minetest.register_node("trunks:twigs_roof_corner", {
|
||||||
description = "Twigs Roof Corner 1",
|
description = S("Twigs Roof Corner 1"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -181,7 +183,7 @@ minetest.register_node("trunks:twigs_roof_corner", {
|
|||||||
minetest.register_alias("woodstuff:twigs_roof_corner_2", "trunks:twigs_roof_corner_2")
|
minetest.register_alias("woodstuff:twigs_roof_corner_2", "trunks:twigs_roof_corner_2")
|
||||||
|
|
||||||
minetest.register_node("trunks:twigs_roof_corner_2", {
|
minetest.register_node("trunks:twigs_roof_corner_2", {
|
||||||
description = "Twigs Roof Corner 2",
|
description = S("Twigs Roof Corner 2"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -225,7 +227,7 @@ if Auto_Roof_Corner == true then
|
|||||||
and ((node_north.name == roof and node_north.param2 == 3)
|
and ((node_north.name == roof and node_north.param2 == 3)
|
||||||
or (node_north.name == corner and node_north.param2 == 3))
|
or (node_north.name == corner and node_north.param2 == 3))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner, param2=0})
|
minetest.swap_node(pos, {name=corner, param2=0})
|
||||||
end
|
end
|
||||||
|
|
||||||
if ((node_north.name == roof and node_north.param2 == 1)
|
if ((node_north.name == roof and node_north.param2 == 1)
|
||||||
@ -233,7 +235,7 @@ if Auto_Roof_Corner == true then
|
|||||||
and ((node_east.name == roof and node_east.param2 == 0)
|
and ((node_east.name == roof and node_east.param2 == 0)
|
||||||
or (node_east.name == corner and node_east.param2 == 0))
|
or (node_east.name == corner and node_east.param2 == 0))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner, param2=1})
|
minetest.swap_node(pos, {name=corner, param2=1})
|
||||||
end
|
end
|
||||||
|
|
||||||
if ((node_east.name == roof and node_east.param2 == 2)
|
if ((node_east.name == roof and node_east.param2 == 2)
|
||||||
@ -241,7 +243,7 @@ if Auto_Roof_Corner == true then
|
|||||||
and ((node_south.name == roof and node_south.param2 == 1)
|
and ((node_south.name == roof and node_south.param2 == 1)
|
||||||
or (node_south.name == corner and node_south.param2 == 1))
|
or (node_south.name == corner and node_south.param2 == 1))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner, param2=2})
|
minetest.swap_node(pos, {name=corner, param2=2})
|
||||||
end
|
end
|
||||||
|
|
||||||
if ((node_south.name == roof and node_south.param2 == 3)
|
if ((node_south.name == roof and node_south.param2 == 3)
|
||||||
@ -249,7 +251,7 @@ if Auto_Roof_Corner == true then
|
|||||||
and ((node_west.name == roof and node_west.param2 == 2)
|
and ((node_west.name == roof and node_west.param2 == 2)
|
||||||
or (node_west.name == corner and node_west.param2 == 2))
|
or (node_west.name == corner and node_west.param2 == 2))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner, param2=3})
|
minetest.swap_node(pos, {name=corner, param2=3})
|
||||||
end
|
end
|
||||||
-- corner 2
|
-- corner 2
|
||||||
if ((node_west.name == roof and node_west.param2 == 2)
|
if ((node_west.name == roof and node_west.param2 == 2)
|
||||||
@ -257,7 +259,7 @@ if Auto_Roof_Corner == true then
|
|||||||
and ((node_north.name == roof and node_north.param2 == 1)
|
and ((node_north.name == roof and node_north.param2 == 1)
|
||||||
or (node_north.name == corner_2 and node_north.param2 == 3))
|
or (node_north.name == corner_2 and node_north.param2 == 3))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner_2, param2=0})
|
minetest.swap_node(pos, {name=corner_2, param2=0})
|
||||||
end
|
end
|
||||||
|
|
||||||
if ((node_north.name == roof and node_north.param2 == 3)
|
if ((node_north.name == roof and node_north.param2 == 3)
|
||||||
@ -265,7 +267,7 @@ if Auto_Roof_Corner == true then
|
|||||||
and ((node_east.name == roof and node_east.param2 == 2)
|
and ((node_east.name == roof and node_east.param2 == 2)
|
||||||
or (node_east.name == corner_2 and node_east.param2 == 0))
|
or (node_east.name == corner_2 and node_east.param2 == 0))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner_2, param2=1})
|
minetest.swap_node(pos, {name=corner_2, param2=1})
|
||||||
end
|
end
|
||||||
|
|
||||||
if ((node_east.name == roof and node_east.param2 == 0)
|
if ((node_east.name == roof and node_east.param2 == 0)
|
||||||
@ -273,7 +275,7 @@ if Auto_Roof_Corner == true then
|
|||||||
and ((node_south.name == roof and node_south.param2 == 3)
|
and ((node_south.name == roof and node_south.param2 == 3)
|
||||||
or (node_south.name == corner_2 and node_south.param2 == 1))
|
or (node_south.name == corner_2 and node_south.param2 == 1))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner_2, param2=2})
|
minetest.swap_node(pos, {name=corner_2, param2=2})
|
||||||
end
|
end
|
||||||
|
|
||||||
if ((node_south.name == roof and node_south.param2 == 1)
|
if ((node_south.name == roof and node_south.param2 == 1)
|
||||||
@ -281,7 +283,7 @@ if Auto_Roof_Corner == true then
|
|||||||
and ((node_west.name == roof and node_west.param2 == 0)
|
and ((node_west.name == roof and node_west.param2 == 0)
|
||||||
or (node_west.name == corner_2 and node_west.param2 == 2))
|
or (node_west.name == corner_2 and node_west.param2 == 2))
|
||||||
then
|
then
|
||||||
minetest.set_node(pos, {name=corner_2, param2=3})
|
minetest.swap_node(pos, {name=corner_2, param2=3})
|
||||||
end
|
end
|
||||||
|
|
||||||
end,
|
end,
|
||||||
@ -332,7 +334,7 @@ for i in pairs(TRuNKS) do
|
|||||||
local des = node.description
|
local des = node.description
|
||||||
|
|
||||||
minetest.register_node("trunks:"..TRuNK.."root", {
|
minetest.register_node("trunks:"..TRuNK.."root", {
|
||||||
description = des.." Root",
|
description = S("@1 Root", des),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -359,7 +361,7 @@ for i in pairs(TRuNKS) do
|
|||||||
})
|
})
|
||||||
|
|
||||||
else
|
else
|
||||||
print(string.format("[Trunks] warning: tree type '%s:%s' not found", MoD, TRuNK))
|
minetest.log("error", string.format("[Trunks] warning: tree type '%s:%s' not found", MoD, TRuNK))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user