Compare commits
33 Commits
master
...
2018-11-09
Author | SHA1 | Date | |
---|---|---|---|
d521e34758 | |||
109b2009fb | |||
90a2d33707 | |||
61d1c54faf | |||
4e8cfdcd8c | |||
f08f2d46f8 | |||
324155f805 | |||
e5524c007d | |||
ae53dc2e9b | |||
ba2cd3d9b8 | |||
af6d08414b | |||
1c0e3c7215 | |||
aac8386b5a | |||
c9add9b24d | |||
f9d12a9def | |||
82744f4a96 | |||
e5d30fed3d | |||
4e4636d6fe | |||
922058700d | |||
cccfb1953b | |||
f3a740f07e | |||
37e39a9ba7 | |||
3d7bcca134 | |||
2967c107d8 | |||
f83f167d18 | |||
471a11f92d | |||
b00d4f4a18 | |||
5735554d6a | |||
23ac37fc4c | |||
d72574d288 | |||
8aa4888dee | |||
9028366407 | |||
9dd610e0e6 |
17
.luacheckrc
Normal file
@ -0,0 +1,17 @@
|
||||
unused_args = false
|
||||
allow_defined_top = true
|
||||
|
||||
read_globals = {
|
||||
"DIR_DELIM",
|
||||
"minetest", "core",
|
||||
"dump",
|
||||
"vector", "nodeupdate",
|
||||
"VoxelManip", "VoxelArea",
|
||||
"PseudoRandom", "ItemStack",
|
||||
"intllib",
|
||||
"default",
|
||||
table = { fields = { "copy", "getn" } },
|
||||
"biome_lib",
|
||||
"stairs", "stairsplus",
|
||||
}
|
||||
|
955
LICENSE
@ -3,399 +3,618 @@ Minetest mod moretrees
|
||||
|
||||
All source code:
|
||||
© 2013, Vanessa Ezekowitz <vanessaezekowitz@gmail.com>
|
||||
Published under the terms and conditions of the WTFPL.
|
||||
Date & cocos palm code (date_palm.lua, cocos_palm.lua)
|
||||
© 2016, Rogier <rogier777@gmail.com>
|
||||
Published under the terms and conditions of the WTFPL.
|
||||
All date & date palm textures, date-based food, cocos flower & green coconuts:
|
||||
All date & date palm textures, date-based food, cocos flower & green coconuts,
|
||||
and all poplar textures:
|
||||
© 2016, Rogier <rogier777@gmail.com>
|
||||
Published under the terms and conditions of CC-BY-SA-3.0 Unported.
|
||||
- Three of the date palm textures are modifications of existing moretrees textures
|
||||
- The green coconuts are a modification of the brown coconut
|
||||
- The date cake batter is a modification of the acorn muffin batter
|
||||
All sapling textures (textures/*_sapling.png):
|
||||
All other sapling textures (textures/*_sapling.png):
|
||||
© 2013, Tim Huppertz <mitroman@naturalnet.de>
|
||||
Published under the terms and conditions of CC-BY-SA-3.0 Unported.
|
||||
All other textures:
|
||||
© 2013, Vanessa Ezekowitz <vanessaezekowitz@gmail.com>
|
||||
Published under the terms and conditions of CC-BY-SA-3.0 Unported.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
###############################################################################
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
License for all code: LGPL 3.0
|
||||
License for all media and all other assets: CC-by-SA 4.0
|
||||
|
||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||
###############################################################################
|
||||
|
||||
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.
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
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.
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||
|
||||
This license is commonly known as "WTFPL".
|
||||
This version of the GNU Lesser General Public License incorporates
|
||||
the terms and conditions of version 3 of the GNU General Public
|
||||
License, supplemented by the additional permissions listed below.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
0. Additional Definitions.
|
||||
|
||||
Creative Commons Legal Code
|
||||
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.
|
||||
|
||||
Attribution-ShareAlike 3.0 Unported
|
||||
"The Library" refers to a covered work governed by this License,
|
||||
other than an Application or a Combined Work as defined below.
|
||||
|
||||
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
||||
LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN
|
||||
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
||||
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
||||
REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR
|
||||
DAMAGES RESULTING FROM ITS USE.
|
||||
An "Application" is any work that makes use of an interface provided
|
||||
by the Library, but which is not otherwise based on the Library.
|
||||
Defining a subclass of a class defined by the Library is deemed a mode
|
||||
of using an interface provided by the Library.
|
||||
|
||||
A "Combined Work" is a work produced by combining or linking an
|
||||
Application with the Library. The particular version of the Library
|
||||
with which the Combined Work was made is also called the "Linked
|
||||
Version".
|
||||
|
||||
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.
|
||||
|
||||
The "Corresponding Application Code" for a Combined Work means the
|
||||
object code and/or source code for the Application, including any data
|
||||
and utility programs needed for reproducing the Combined Work from the
|
||||
Application, but excluding the System Libraries of the Combined Work.
|
||||
|
||||
1. Exception to Section 3 of the GNU GPL.
|
||||
|
||||
You may convey a covered work under sections 3 and 4 of this License
|
||||
without being bound by section 3 of the GNU GPL.
|
||||
|
||||
2. Conveying Modified Versions.
|
||||
|
||||
If you modify a copy of the Library, and, in your modifications, a
|
||||
facility refers to a function or data to be supplied by an Application
|
||||
that uses the facility (other than as an argument passed when the
|
||||
facility is invoked), then you may convey a copy of the modified
|
||||
version:
|
||||
|
||||
a) under this License, provided that you make a good faith effort to
|
||||
ensure that, in the event an Application does not supply the
|
||||
function or data, the facility still operates, and performs
|
||||
whatever part of its purpose remains meaningful, or
|
||||
|
||||
b) under the GNU GPL, with none of the additional permissions of
|
||||
this License applicable to that copy.
|
||||
|
||||
3. Object Code Incorporating Material from Library Header Files.
|
||||
|
||||
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:
|
||||
|
||||
a) Give prominent notice with each copy of the object code that the
|
||||
Library is used in it and that the Library and its use are
|
||||
covered by this License.
|
||||
|
||||
b) Accompany the object code with a copy of the GNU GPL and this license
|
||||
document.
|
||||
|
||||
4. Combined Works.
|
||||
|
||||
You may convey a Combined Work under terms of your choice that,
|
||||
taken together, effectively do not restrict modification of the
|
||||
portions of the Library contained in the Combined Work and reverse
|
||||
engineering for debugging such modifications, if you also do each of
|
||||
the following:
|
||||
|
||||
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.
|
||||
|
||||
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
||||
document.
|
||||
|
||||
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.
|
||||
|
||||
d) Do one of the following:
|
||||
|
||||
0) Convey the Minimal Corresponding Source under the terms of this
|
||||
License, and the Corresponding Application Code in a form
|
||||
suitable for, and under terms that permit, the user to
|
||||
recombine or relink the Application with a modified version of
|
||||
the Linked Version to produce a modified Combined Work, in the
|
||||
manner specified by section 6 of the GNU GPL for conveying
|
||||
Corresponding Source.
|
||||
|
||||
1) Use a suitable shared library mechanism for linking with the
|
||||
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
|
||||
|
||||
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
|
||||
COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
|
||||
COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
|
||||
AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
|
||||
|
||||
BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE
|
||||
TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY
|
||||
BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS
|
||||
CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
|
||||
CONDITIONS.
|
||||
|
||||
1. Definitions
|
||||
|
||||
a. "Adaptation" means a work based upon the Work, or upon the Work and
|
||||
other pre-existing works, such as a translation, adaptation,
|
||||
derivative work, arrangement of music or other alterations of a
|
||||
literary or artistic work, or phonogram or performance and includes
|
||||
cinematographic adaptations or any other form in which the Work may be
|
||||
recast, transformed, or adapted including in any form recognizably
|
||||
derived from the original, except that a work that constitutes a
|
||||
Collection will not be considered an Adaptation for the purpose of
|
||||
this License. For the avoidance of doubt, where the Work is a musical
|
||||
work, performance or phonogram, the synchronization of the Work in
|
||||
timed-relation with a moving image ("synching") will be considered an
|
||||
Adaptation for the purpose of this License.
|
||||
b. "Collection" means a collection of literary or artistic works, such as
|
||||
encyclopedias and anthologies, or performances, phonograms or
|
||||
broadcasts, or other works or subject matter other than works listed
|
||||
in Section 1(f) below, which, by reason of the selection and
|
||||
arrangement of their contents, constitute intellectual creations, in
|
||||
which the Work is included in its entirety in unmodified form along
|
||||
with one or more other contributions, each constituting separate and
|
||||
independent works in themselves, which together are assembled into a
|
||||
collective whole. A work that constitutes a Collection will not be
|
||||
considered an Adaptation (as defined below) for the purposes of this
|
||||
License.
|
||||
c. "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 adaptations of works made available under that license under this
|
||||
License or a Creative Commons jurisdiction license with the same
|
||||
License Elements as this License.
|
||||
d. "Distribute" means to make available to the public the original and
|
||||
copies of the Work or Adaptation, as appropriate, through sale or
|
||||
other transfer of ownership.
|
||||
e. "License Elements" means the following high-level license attributes
|
||||
as selected by Licensor and indicated in the title of this License:
|
||||
Attribution, ShareAlike.
|
||||
f. "Licensor" means the individual, individuals, entity or entities that
|
||||
offer(s) the Work under the terms of this License.
|
||||
g. "Original Author" means, in the case of a literary or artistic work,
|
||||
the individual, individuals, entity or entities who created the Work
|
||||
or if no individual or entity can be identified, the publisher; and in
|
||||
addition (i) in the case of a performance the actors, singers,
|
||||
musicians, dancers, and other persons who act, sing, deliver, declaim,
|
||||
play in, interpret or otherwise perform literary or artistic works or
|
||||
expressions of folklore; (ii) in the case of a phonogram the producer
|
||||
being the person or legal entity who first fixes the sounds of a
|
||||
performance or other sounds; and, (iii) in the case of broadcasts, the
|
||||
organization that transmits the broadcast.
|
||||
h. "Work" means the literary and/or artistic work offered under the terms
|
||||
of this License including without limitation any production in the
|
||||
literary, scientific and artistic domain, whatever may be the mode or
|
||||
form of its expression including digital form, such as a book,
|
||||
pamphlet and other writing; a lecture, address, sermon or other work
|
||||
of the same nature; a dramatic or dramatico-musical work; a
|
||||
choreographic work or entertainment in dumb show; a musical
|
||||
composition with or without words; a cinematographic work to which are
|
||||
assimilated works expressed by a process analogous to cinematography;
|
||||
a work of drawing, painting, architecture, sculpture, engraving or
|
||||
lithography; a photographic work to which are assimilated works
|
||||
expressed by a process analogous to photography; a work of applied
|
||||
art; an illustration, map, plan, sketch or three-dimensional work
|
||||
relative to geography, topography, architecture or science; a
|
||||
performance; a broadcast; a phonogram; a compilation of data to the
|
||||
extent it is protected as a copyrightable work; or a work performed by
|
||||
a variety or circus performer to the extent it is not otherwise
|
||||
considered a literary or artistic work.
|
||||
i. "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.
|
||||
j. "Publicly Perform" means to perform public recitations of the Work and
|
||||
to communicate to the public those public recitations, by any means or
|
||||
process, including by wire or wireless means or public digital
|
||||
performances; to make available to the public Works in such a way that
|
||||
members of the public may access these Works from a place and at a
|
||||
place individually chosen by them; to perform the Work to the public
|
||||
by any means or process and the communication to the public of the
|
||||
performances of the Work, including by public digital performance; to
|
||||
broadcast and rebroadcast the Work by any means including signs,
|
||||
sounds or images.
|
||||
k. "Reproduce" means to make copies of the Work by any means including
|
||||
without limitation by sound or visual recordings and the right of
|
||||
fixation and reproducing fixations of the Work, including storage of a
|
||||
protected performance or phonogram in digital form or other electronic
|
||||
medium.
|
||||
|
||||
2. Fair Dealing Rights. Nothing in this License is intended to reduce,
|
||||
limit, or restrict any uses free from copyright or rights arising from
|
||||
limitations or exceptions that are provided for in connection with the
|
||||
copyright protection under copyright law or other applicable laws.
|
||||
|
||||
3. License Grant. Subject to the terms and conditions of this License,
|
||||
Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
|
||||
perpetual (for the duration of the applicable copyright) license to
|
||||
exercise the rights in the Work as stated below:
|
||||
|
||||
a. to Reproduce the Work, to incorporate the Work into one or more
|
||||
Collections, and to Reproduce the Work as incorporated in the
|
||||
Collections;
|
||||
b. to create and Reproduce Adaptations provided that any such Adaptation,
|
||||
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.";
|
||||
c. to Distribute and Publicly Perform the Work including as incorporated
|
||||
in Collections; and,
|
||||
d. to Distribute and Publicly Perform Adaptations.
|
||||
e. For the avoidance of doubt:
|
||||
|
||||
i. Non-waivable Compulsory License Schemes. In those jurisdictions in
|
||||
which the right to collect royalties through any statutory or
|
||||
compulsory licensing scheme cannot be waived, the Licensor
|
||||
reserves the exclusive right to collect such royalties for any
|
||||
exercise by You of the rights granted under this License;
|
||||
ii. Waivable Compulsory License Schemes. In those jurisdictions in
|
||||
which the right to collect royalties through any statutory or
|
||||
compulsory licensing scheme can be waived, the Licensor waives the
|
||||
exclusive right to collect such royalties for any exercise by You
|
||||
of the rights granted under this License; and,
|
||||
iii. Voluntary License Schemes. The Licensor waives the right to
|
||||
collect royalties, whether individually or, in the event that the
|
||||
Licensor is a member of a collecting society that administers
|
||||
voluntary licensing schemes, via that society, from any exercise
|
||||
by You of the rights granted under this License.
|
||||
|
||||
The above rights may be exercised in all media and formats whether now
|
||||
known or hereafter devised. The above rights include the right to make
|
||||
such modifications as are technically necessary to exercise the rights in
|
||||
other media and formats. Subject to Section 8(f), all rights not expressly
|
||||
granted by Licensor are hereby reserved.
|
||||
|
||||
4. Restrictions. The license granted in Section 3 above is expressly made
|
||||
subject to and limited by the following restrictions:
|
||||
|
||||
a. You may Distribute or Publicly Perform the Work only under the terms
|
||||
of this License. You must include a copy of, or the Uniform Resource
|
||||
Identifier (URI) for, this License with every copy of the Work You
|
||||
Distribute or Publicly Perform. You may not offer or impose any terms
|
||||
on the Work that restrict the terms of this License or the ability of
|
||||
the recipient of the Work to exercise 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 with every copy of the Work You
|
||||
Distribute or Publicly Perform. When You Distribute or Publicly
|
||||
Perform the Work, You may not impose any effective technological
|
||||
measures on the Work that restrict the ability of a recipient of the
|
||||
Work from You to exercise the rights granted to that recipient under
|
||||
the terms of the License. This Section 4(a) applies to the Work as
|
||||
incorporated in a Collection, but this does not require the Collection
|
||||
apart from the Work itself to be made subject to the terms of this
|
||||
License. If You create a Collection, upon notice from any Licensor You
|
||||
must, to the extent practicable, remove from the Collection any credit
|
||||
as required by Section 4(c), as requested. If You create an
|
||||
Adaptation, upon notice from any Licensor You must, to the extent
|
||||
practicable, remove from the Adaptation any credit as required by
|
||||
Section 4(c), as requested.
|
||||
b. You may Distribute or Publicly Perform an Adaptation only under the
|
||||
terms of: (i) this License; (ii) a later version of this License with
|
||||
the same License Elements as this License; (iii) 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 US)); (iv) a Creative Commons Compatible
|
||||
License. If you license the Adaptation under one of the licenses
|
||||
mentioned in (iv), you must comply with the terms of that license. If
|
||||
you license the Adaptation 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 the
|
||||
following provisions: (I) You must include a copy of, or the URI for,
|
||||
the Applicable License with every copy of each Adaptation You
|
||||
Distribute or Publicly Perform; (II) You may not offer or impose any
|
||||
terms on the Adaptation that restrict the terms of the Applicable
|
||||
License or the ability of the recipient of the Adaptation 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 with every copy
|
||||
of the Work as included in the Adaptation You Distribute or Publicly
|
||||
Perform; (IV) when You Distribute or Publicly Perform the Adaptation,
|
||||
You may not impose any effective technological measures on the
|
||||
Adaptation that restrict the ability of a recipient of the Adaptation
|
||||
from You to exercise the rights granted to that recipient under the
|
||||
terms of the Applicable License. This Section 4(b) applies to the
|
||||
Adaptation as incorporated in a Collection, but this does not require
|
||||
the Collection apart from the Adaptation itself to be made subject to
|
||||
the terms of the Applicable License.
|
||||
c. If You Distribute, or Publicly Perform the Work or any Adaptations or
|
||||
Collections, 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 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; (ii) the title of the Work if supplied; (iii) to the
|
||||
extent reasonably practicable, the URI, 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 (iv) , consistent with Ssection 3(b), in the case of an
|
||||
Adaptation, a credit identifying the use of the Work in the Adaptation
|
||||
(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 Adaptation or
|
||||
Collection, at a minimum such credit will appear, if a credit for all
|
||||
contributing authors of the Adaptation or Collection 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.
|
||||
d. Except as otherwise agreed in writing by the Licensor or as may be
|
||||
otherwise permitted by applicable law, if You Reproduce, Distribute or
|
||||
Publicly Perform the Work either by itself or as part of any
|
||||
Adaptations or Collections, You must not distort, mutilate, modify or
|
||||
take other derogatory action in relation to the Work which would be
|
||||
prejudicial to the Original Author's honor or reputation. Licensor
|
||||
agrees that in those jurisdictions (e.g. Japan), in which any exercise
|
||||
of the right granted in Section 3(b) of this License (the right to
|
||||
make Adaptations) would be deemed to be a distortion, mutilation,
|
||||
modification or other derogatory action prejudicial to the Original
|
||||
Author's honor and reputation, the Licensor will waive or not assert,
|
||||
as appropriate, this Section, to the fullest extent permitted by the
|
||||
applicable national law, to enable You to reasonably exercise Your
|
||||
right under Section 3(b) of this License (right to make Adaptations)
|
||||
but not otherwise.
|
||||
|
||||
5. Representations, Warranties and Disclaimer
|
||||
|
||||
UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR
|
||||
OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY
|
||||
KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE,
|
||||
INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, 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 APPLICABLE
|
||||
LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY 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
|
||||
|
||||
a. This License and the rights granted hereunder will terminate
|
||||
automatically upon any breach by You of the terms of this License.
|
||||
Individuals or entities who have received Adaptations or Collections
|
||||
from You under this License, however, will not have their licenses
|
||||
terminated provided such individuals or entities remain in full
|
||||
compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will
|
||||
survive any termination of this License.
|
||||
b. 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. Each time You Distribute or Publicly Perform the Work or a Collection,
|
||||
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.
|
||||
b. Each time You Distribute or Publicly Perform an Adaptation, 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.
|
||||
c. 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.
|
||||
d. 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.
|
||||
e. 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.
|
||||
f. The rights granted under, and the subject matter referenced, in this
|
||||
License were drafted utilizing the terminology of the Berne Convention
|
||||
for the Protection of Literary and Artistic Works (as amended on
|
||||
September 28, 1979), the Rome Convention of 1961, the WIPO Copyright
|
||||
Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996
|
||||
and the Universal Copyright Convention (as revised on July 24, 1971).
|
||||
These rights and subject matter take effect in the relevant
|
||||
jurisdiction in which the License terms are sought to be enforced
|
||||
according to the corresponding provisions of the implementation of
|
||||
those treaty provisions in the applicable national law. If the
|
||||
standard suite of rights granted under applicable copyright law
|
||||
includes additional rights not granted under this License, such
|
||||
additional rights are deemed to be included in the License; this
|
||||
License is not intended to restrict the license of any rights under
|
||||
applicable law.
|
||||
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.
|
||||
|
||||
|
||||
Creative Commons Notice
|
||||
Section 1 -- Definitions.
|
||||
|
||||
Creative Commons is not a party to this License, and makes no 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.
|
||||
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.
|
||||
|
||||
Except for the limited purpose of indicating to the public that the
|
||||
Work is licensed under the CCPL, Creative Commons does not authorize
|
||||
the use by either party of the trademark "Creative Commons" or any
|
||||
related trademark or logo of Creative Commons without the prior
|
||||
written consent of Creative Commons. Any permitted use will be in
|
||||
compliance with Creative Commons' then-current trademark usage
|
||||
guidelines, as may be published on 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 the License.
|
||||
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.
|
||||
|
||||
Creative Commons may be contacted at http://creativecommons.org/.
|
||||
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.
|
||||
|
103
biome_defs.lua
@ -124,18 +124,6 @@ moretrees.willow_biome = {
|
||||
max_count = 5,
|
||||
}
|
||||
|
||||
moretrees.acacia_biome = {
|
||||
surface = { "default:dirt_with_grass", "default:dirt_with_dry_grass", "default:desert_sand" },
|
||||
avoid_nodes = moretrees.avoidnodes,
|
||||
avoid_radius = 15,
|
||||
seed_diff = 1,
|
||||
rarity = 50,
|
||||
max_count = 15,
|
||||
plantlife_limit = -1,
|
||||
humidity_min = 0.3,
|
||||
humidity_max = 0,
|
||||
}
|
||||
|
||||
moretrees.rubber_tree_biome = {
|
||||
surface = "default:dirt_with_grass",
|
||||
avoid_nodes = moretrees.avoidnodes,
|
||||
@ -196,6 +184,97 @@ moretrees.cedar_biome = {
|
||||
max_count = 10,
|
||||
}
|
||||
|
||||
|
||||
-- Poplar requires a lot of water.
|
||||
moretrees.poplar_biome = {
|
||||
surface = "default:dirt_with_grass",
|
||||
avoid_nodes = moretrees.avoidnodes,
|
||||
avoid_radius = 6,
|
||||
seed_diff = 341,
|
||||
min_elevation = 0,
|
||||
max_elevation = 50,
|
||||
near_nodes = {"default:water_source"},
|
||||
near_nodes_size = 15,
|
||||
near_nodes_vertical = 5,
|
||||
near_nodes_count = 1,
|
||||
humidity_min = -0.7,
|
||||
humidity_max = -1,
|
||||
rarity = 50,
|
||||
max_count = 15,
|
||||
}
|
||||
|
||||
-- The humidity requirement it quite restrictive (apparently).
|
||||
-- Spawn an occasional poplar elsewhere.
|
||||
moretrees.poplar_biome_2 = {
|
||||
surface = "default:dirt_with_grass",
|
||||
avoid_nodes = moretrees.avoidnodes,
|
||||
avoid_radius = 6,
|
||||
seed_diff = 341,
|
||||
min_elevation = 0,
|
||||
max_elevation = 50,
|
||||
near_nodes = {"default:water_source"},
|
||||
near_nodes_size = 15,
|
||||
near_nodes_vertical = 4,
|
||||
near_nodes_count = 10,
|
||||
humidity_min = 0.1,
|
||||
humidity_max = -0.6,
|
||||
rarity = 50,
|
||||
max_count = 1,
|
||||
}
|
||||
|
||||
-- Subterranean lakes provide enough water for poplars to grow
|
||||
moretrees.poplar_biome_3 = {
|
||||
surface = "default:dirt_with_grass",
|
||||
avoid_nodes = moretrees.avoidnodes,
|
||||
avoid_radius = 6,
|
||||
seed_diff = 342,
|
||||
min_elevation = 0,
|
||||
max_elevation = 50,
|
||||
near_nodes = {"default:water_source"},
|
||||
near_nodes_size = 1,
|
||||
near_nodes_vertical = 25,
|
||||
near_nodes_count = 1,
|
||||
humidity_min = -0.5,
|
||||
humidity_max = -1,
|
||||
rarity = 0,
|
||||
max_count = 30,
|
||||
}
|
||||
|
||||
moretrees.poplar_small_biome = {
|
||||
surface = "default:dirt_with_grass",
|
||||
avoid_nodes = moretrees.avoidnodes,
|
||||
avoid_radius = 4,
|
||||
seed_diff = 343,
|
||||
min_elevation = 0,
|
||||
max_elevation = 50,
|
||||
near_nodes = {"default:water_source"},
|
||||
near_nodes_size = 10,
|
||||
near_nodes_vertical = 5,
|
||||
near_nodes_count = 1,
|
||||
humidity_min = -0.7,
|
||||
humidity_max = -1,
|
||||
rarity = 50,
|
||||
max_count = 10,
|
||||
}
|
||||
|
||||
moretrees.poplar_small_biome_2 = {
|
||||
surface = "default:dirt_with_grass",
|
||||
avoid_nodes = moretrees.avoidnodes,
|
||||
avoid_radius = 4,
|
||||
seed_diff = 343,
|
||||
min_elevation = 0,
|
||||
max_elevation = 50,
|
||||
near_nodes = {"default:water_source"},
|
||||
near_nodes_size = 10,
|
||||
near_nodes_vertical = 4,
|
||||
near_nodes_count = 5,
|
||||
humidity_min = 0.1,
|
||||
humidity_max = -0.6,
|
||||
rarity = 50,
|
||||
max_count = 3,
|
||||
}
|
||||
|
||||
|
||||
moretrees.fir_biome = {
|
||||
surface = "default:dirt_with_grass",
|
||||
avoid_nodes = moretrees.avoidnodes,
|
||||
|
@ -28,7 +28,7 @@ ftrunk.after_destruct = function(pos, oldnode)
|
||||
-- minetest.dig_node(coconutpos) does not cause nearby coconuts to be dropped :-( ...
|
||||
--minetest.dig_node(coconutpos)
|
||||
local items = minetest.get_node_drops(minetest.get_node(coconutpos).name)
|
||||
minetest.remove_node(coconutpos)
|
||||
minetest.swap_node(coconutpos, biome_lib.air)
|
||||
for _, itemname in pairs(items) do
|
||||
minetest.add_item(coconutpos, itemname)
|
||||
end
|
||||
@ -56,7 +56,7 @@ local coconut_regrow_abm_spec = {
|
||||
local coconutpos = {x=pos.x+dx, y=pos.y, z=pos.z+dz}
|
||||
local coconutnode = minetest.get_node(coconutpos)
|
||||
if coconutnode.name == "air" then
|
||||
minetest.set_node(coconutpos, {name="moretrees:coconut_0"})
|
||||
minetest.swap_node(coconutpos, {name="moretrees:coconut_0"})
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -85,7 +85,7 @@ minetest.register_abm({
|
||||
local gen
|
||||
local count = 0
|
||||
for _,gen in pairs(genlist) do
|
||||
minetest.set_node(gen.pos, {name = "moretrees:coconut_3"})
|
||||
minetest.swap_node(gen.pos, {name = "moretrees:coconut_3"})
|
||||
count = count + 1
|
||||
if count == 4 then
|
||||
break
|
||||
@ -115,7 +115,7 @@ local coconut_growfn = function(pos, elapsed)
|
||||
minetest.add_item(pos, itemname)
|
||||
end
|
||||
end
|
||||
minetest.remove_node(pos)
|
||||
minetest.swap_node(pos, biome_lib.air)
|
||||
end
|
||||
else
|
||||
-- Grow coconuts to the next stage
|
||||
@ -240,7 +240,7 @@ if moretrees.coconuts_convert_existing_palms then
|
||||
minetest.swap_node(tpos, {name = "moretrees:palm_fruit_trunk"})
|
||||
coconuts = minetest.find_nodes_in_area({x=tpos.x-1, y=tpos.y, z=tpos.z-1}, {x=tpos.x+1, y=tpos.y, z=tpos.z+1}, "moretrees:coconut")
|
||||
for _, coconutpos in pairs(coconuts) do
|
||||
minetest.set_node(coconutpos, {name = "moretrees:coconut_3"})
|
||||
minetest.swap_node(coconutpos, {name = "moretrees:coconut_3"})
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
16
crafts.lua
@ -3,14 +3,6 @@ local S = moretrees.intllib
|
||||
for i in ipairs(moretrees.treelist) do
|
||||
local treename = moretrees.treelist[i][1]
|
||||
|
||||
minetest.register_craft({
|
||||
output = "moretrees:"..treename.."_trunk 2",
|
||||
recipe = {
|
||||
{"moretrees:"..treename.."_trunk_sideways"},
|
||||
{"moretrees:"..treename.."_trunk_sideways"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "moretrees:"..treename.."_planks 4",
|
||||
@ -19,14 +11,6 @@ for i in ipairs(moretrees.treelist) do
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "moretrees:"..treename.."_planks 4",
|
||||
recipe = {
|
||||
"moretrees:"..treename.."_trunk_sideways"
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "moretrees:"..treename.."_sapling",
|
||||
|
@ -10,7 +10,6 @@
|
||||
-- (e.g. eaten by birds, ...), and a small fraction will drop as items.
|
||||
|
||||
-- © 2016, Rogier <rogier777@gmail.com>
|
||||
-- License: WTFPL
|
||||
|
||||
local S = moretrees.intllib
|
||||
|
||||
@ -22,6 +21,15 @@ local flowers_wither_ichance = 3
|
||||
|
||||
-- implementation
|
||||
|
||||
local dates_regrow_prob
|
||||
if moretrees.dates_regrow_unpollinated_percent <= 0 then
|
||||
dates_regrow_prob = 0
|
||||
elseif moretrees.dates_regrow_unpollinated_percent >= 100 then
|
||||
dates_regrow_prob = 1
|
||||
else
|
||||
dates_regrow_prob = 1 - math.pow(moretrees.dates_regrow_unpollinated_percent/100, 1/flowers_wither_ichance)
|
||||
end
|
||||
|
||||
-- Make the date palm fruit trunk a real trunk (it is generated as a fruit)
|
||||
local trunk = minetest.registered_nodes["moretrees:date_palm_trunk"]
|
||||
local ftrunk = {}
|
||||
@ -40,7 +48,7 @@ ftrunk.after_destruct = function(pos, oldnode)
|
||||
for _,datespos in pairs(dates) do
|
||||
-- minetest.dig_node(datespos) does not cause nearby dates to be dropped :-( ...
|
||||
local items = minetest.get_node_drops(minetest.get_node(datespos).name)
|
||||
minetest.remove_node(datespos)
|
||||
minetest.swap_node(datespos, biome_lib.air)
|
||||
for _, itemname in pairs(items) do
|
||||
minetest.add_item(datespos, itemname)
|
||||
end
|
||||
@ -83,15 +91,15 @@ local date_regrow_abm_spec = {
|
||||
local datenode = minetest.get_node(datepos)
|
||||
if datenode.name == "air" then
|
||||
if node.name == "moretrees:date_palm_ffruit_trunk" then
|
||||
minetest.set_node(datepos, {name="moretrees:dates_f0"})
|
||||
minetest.swap_node(datepos, {name="moretrees:dates_f0"})
|
||||
else
|
||||
minetest.set_node(datepos, {name="moretrees:dates_m0"})
|
||||
minetest.swap_node(datepos, {name="moretrees:dates_m0"})
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
}
|
||||
if moretrees.dates_regrow then
|
||||
if moretrees.dates_regrow_pollinated or moretrees.dates_regrow_unpollinated_percent > 0 then
|
||||
minetest.register_abm(date_regrow_abm_spec)
|
||||
end
|
||||
|
||||
@ -117,9 +125,9 @@ minetest.register_abm({
|
||||
for _,genpos in pairs(dates1) do
|
||||
if math.random(100) <= 20 then
|
||||
if type == "m" then
|
||||
minetest.set_node(genpos, {name = "moretrees:dates_n"})
|
||||
minetest.swap_node(genpos, {name = "moretrees:dates_n"})
|
||||
else
|
||||
minetest.set_node(genpos, {name = "moretrees:dates_f4"})
|
||||
minetest.swap_node(genpos, {name = "moretrees:dates_f4"})
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -127,9 +135,9 @@ minetest.register_abm({
|
||||
for _,genpos in pairs(dates2) do
|
||||
if math.random(100) <= 5 then
|
||||
if type == "m" then
|
||||
minetest.set_node(genpos, {name = "moretrees:dates_n"})
|
||||
minetest.swap_node(genpos, {name = "moretrees:dates_n"})
|
||||
else
|
||||
minetest.set_node(genpos, {name = "moretrees:dates_f4"})
|
||||
minetest.swap_node(genpos, {name = "moretrees:dates_f4"})
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -214,13 +222,18 @@ local function find_fruit_trunks_near(ftpos, sect)
|
||||
return nil
|
||||
end
|
||||
|
||||
local basevec = { x = ftpos.x + 2 * sect.x * sect_hr,
|
||||
y = ftpos.y,
|
||||
z = ftpos.z + 2 * sect.z * sect_hr}
|
||||
-- find_nodes_in_area is limited to 82^3, make sure to not overrun it
|
||||
local sizevec = { x = sect_hr, y = sect_vr, z = sect_hr }
|
||||
if sect_hr * sect_hr * sect_vr > 41^3 then
|
||||
sizevec = vector.apply(sizevec, function(a) return math.min(a, 41) end)
|
||||
end
|
||||
|
||||
local all_palms = minetest.find_nodes_in_area(
|
||||
{ x = ftpos.x + 2 * sect.x * sect_hr - sect_hr,
|
||||
y = ftpos.y - sect_vr,
|
||||
z = ftpos.z + 2 * sect.z * sect_hr - sect_hr },
|
||||
{ x = ftpos.x + 2 * sect.x * sect_hr + sect_hr,
|
||||
y = ftpos.y + sect_vr,
|
||||
z = ftpos.z + 2 * sect.z * sect_hr + sect_hr },
|
||||
vector.subtract(basevec, sizevec),
|
||||
vector.add(basevec, sizevec),
|
||||
{"moretrees:date_palm_mfruit_trunk", "moretrees:date_palm_ffruit_trunk"})
|
||||
|
||||
-- Collect different palms in separate lists.
|
||||
@ -276,11 +289,11 @@ end
|
||||
local function dates_print_search_stats(log)
|
||||
local stats
|
||||
if sect_search_stats.count > 0 then
|
||||
stats = string.format("Male date tree searching stats: count: %d/%d: average: %d µs (%d..%d)",
|
||||
stats = string.format("Male date tree searching stats: searches: %d/%d: average: %d µs (%d..%d)",
|
||||
sect_search_stats.count, sect_search_stats.count + sect_search_stats.skip,
|
||||
sect_search_stats.sum/sect_search_stats.count, sect_search_stats.min, sect_search_stats.max)
|
||||
else
|
||||
stats = string.format("Male date tree searching stats: (not yet available)")
|
||||
stats = string.format("Male date tree searching stats: searches: 0/0: average: (no searches yet)")
|
||||
end
|
||||
if log then
|
||||
minetest.log("action", "[moretrees] " .. stats)
|
||||
@ -517,16 +530,21 @@ local dates_growfn = function(pos, elapsed)
|
||||
local action
|
||||
if not node then
|
||||
return
|
||||
elseif not moretrees.dates_regrow then
|
||||
elseif not moretrees.dates_regrow_pollinated and dates_regrow_prob == 0 then
|
||||
-- Regrowing of dates is disabled.
|
||||
if string.find(node.name, "moretrees:dates_f") then
|
||||
minetest.swap_node(pos, {name="moretrees:dates_f4"})
|
||||
elseif string.find(node.name, "moretrees:dates_m") then
|
||||
minetest.swap_node(pos, {name="moretrees:dates_n"})
|
||||
else
|
||||
minetest.remove_node(pos)
|
||||
minetest.swap_node(pos, biome_lib.air)
|
||||
end
|
||||
return
|
||||
elseif node.name == "moretrees:dates_f0" and find_male_blossom(pos) then
|
||||
elseif node.name == "moretrees:dates_f0" and math.random(100) <= 100 * dates_regrow_prob then
|
||||
-- Dates grow unpollinated
|
||||
minetest.swap_node(pos, {name="moretrees:dates_f1"})
|
||||
action = "nopollinate"
|
||||
elseif node.name == "moretrees:dates_f0" and moretrees.dates_regrow_pollinated and find_male_blossom(pos) then
|
||||
-- Pollinate flowers
|
||||
minetest.swap_node(pos, {name="moretrees:dates_f1"})
|
||||
action = "pollinate"
|
||||
@ -559,7 +577,7 @@ local dates_growfn = function(pos, elapsed)
|
||||
elseif string.match(node.name, "n$") then
|
||||
-- Remove stems.
|
||||
if math.random(stems_drop_ichance) == 1 then
|
||||
minetest.remove_node(pos)
|
||||
minetest.swap_node(pos, biome_lib.air)
|
||||
return "stemdrop"
|
||||
end
|
||||
action = "nostemdrop"
|
||||
@ -614,13 +632,13 @@ local dates_growfn_profiling = function(pos, elapsed)
|
||||
local sum = 0
|
||||
local count = 0
|
||||
if sect_search_stats.count > 0 and stat.pollinate and stat.pollinate.count > 0 then
|
||||
print(string.format("\t%-10s: %6d (%4.1f%%): %6dus (%d..%d)",
|
||||
print(string.format("\t%-12s: %6d (%4.1f%%): %6dus (%d..%d)",
|
||||
"search", sect_search_stats.count,
|
||||
100*sect_search_stats.count/stat.pollinate.count,
|
||||
sect_search_stats.sum/sect_search_stats.count,
|
||||
sect_search_stats.min, sect_search_stats.max))
|
||||
else
|
||||
print(string.format("\t%-10s: %6d (%4.1f%%): %6dus (%d..%d)",
|
||||
print(string.format("\t%-12s: %6d (%4.1f%%): %6dus (%d..%d)",
|
||||
"search", sect_search_stats.count,
|
||||
0, 0, 0, 0))
|
||||
end
|
||||
@ -628,13 +646,13 @@ local dates_growfn_profiling = function(pos, elapsed)
|
||||
if action ~= "count" then
|
||||
count = count + data.count
|
||||
sum = sum + data.sum
|
||||
print(string.format("\t%-10s: %6d (%4.1f%%): %6dus (%d..%d)",
|
||||
print(string.format("\t%-12s: %6d (%4.1f%%): %6dus (%d..%d)",
|
||||
action, data.count,
|
||||
100*data.count/stat.count, data.sum/data.count,
|
||||
data.min, data.max))
|
||||
end
|
||||
end
|
||||
print(string.format("\t%-10s: %6d ( 100%%): %6dus",
|
||||
print(string.format("\t%-12s: %6d ( 100%%): %6dus",
|
||||
"TOTAL", count, sum/count))
|
||||
end
|
||||
end
|
||||
@ -696,14 +714,15 @@ for _,suffix in ipairs({"f0", "f1", "f2", "f3", "f4", "m0", "fn", "n"}) do
|
||||
fixed = {-0.3, -0.3, -0.3, 0.3, 3.5, 0.3}
|
||||
},
|
||||
on_timer = dates_growfn,
|
||||
on_construct = moretrees.dates_regrow and dates_starttimer,
|
||||
on_construct = (moretrees.dates_regrow_pollinated or moretrees.dates_regrow_unpollinated_percent > 0)
|
||||
and dates_starttimer,
|
||||
|
||||
}
|
||||
minetest.register_node("moretrees:dates_"..suffix, datedef)
|
||||
end
|
||||
|
||||
-- If regrowing was previously disabled, but is enabled now, make sure timers are started for existing dates
|
||||
if moretrees.dates_regrow then
|
||||
if moretrees.dates_regrow_pollinated or moretrees.dates_regrow_unpollinated_percent > 0 then
|
||||
local spec = {
|
||||
name = "moretrees:restart_dates_regrow_timer",
|
||||
nodenames = "group:moretrees_dates",
|
||||
|
@ -10,18 +10,19 @@ moretrees.enable_date_palm = true
|
||||
moretrees.enable_cedar = true
|
||||
moretrees.enable_rubber_tree = true
|
||||
moretrees.enable_willow = true
|
||||
moretrees.enable_acacia = true
|
||||
moretrees.enable_birch = true
|
||||
moretrees.enable_spruce = true
|
||||
moretrees.enable_jungle_tree = true
|
||||
moretrees.enable_fir = true
|
||||
moretrees.enable_poplar = true
|
||||
moretrees.enable_beech = false
|
||||
|
||||
-- set this to true to make moretrees spawn saplings at mapgen time instead
|
||||
-- of fully-grown trees, which will grow into full trees after a very short
|
||||
-- delay. This reduces mapgen lag in some situations.
|
||||
-- delay. This reduces mapgen lag in some situations, and fixes situations
|
||||
-- where the mapgen conflicts with the tree generator.
|
||||
|
||||
moretrees.spawn_saplings = false
|
||||
moretrees.spawn_saplings = true
|
||||
|
||||
-- Set this to true to allow defining stairs/slabs/etc. If Moreblocks is
|
||||
-- installed, this will use that mod's Stairs Plus component. Otherwise, it
|
||||
@ -75,7 +76,29 @@ moretrees.coconut_item_drop_ichance = 10 -- inverse probability of ripe coconu
|
||||
|
||||
-- Date palm settings
|
||||
|
||||
moretrees.dates_regrow = true
|
||||
-- Suggested configuration alternatives:
|
||||
-- - Dates grow only when pollinated:
|
||||
-- - Set dates_regrow_pollinated to true
|
||||
-- - Set dates_regrow_unpollinated_percent to 0
|
||||
-- - Dates grow without pollination. Pollination disabled:
|
||||
-- - Set dates_regrow_pollinated to false
|
||||
-- - Set dates_regrow_unpollinated_percent to some larger positive value, e.g. 95
|
||||
-- - Dates grow, but more and faster if male flowers are nearby
|
||||
-- - Set dates_regrow_pollinated to true
|
||||
-- - Set dates_regrow_unpollinated_percent to some small positive value, e.g. 33
|
||||
-- - Optional but recommended: Reduce the pollination distance, e.g. to 30
|
||||
|
||||
-- Note that it should not be necessary to disable pollination for performance
|
||||
-- reasons. A lot of effort has gone into ensuring that date growing will not cause lag.
|
||||
--
|
||||
-- If lag is suspected, use the chat command '/dates_stats' to obtain the male dates
|
||||
-- search time, as well as the counts of total number of searches requested and the
|
||||
-- number of searches actually performed.
|
||||
|
||||
moretrees.dates_regrow_pollinated = true -- Enable pollination. If enabled, male trees are required for dates to grow.
|
||||
-- If disabled, dates_regrow_unpollinated_percent must be non-zero for dates to regrow.
|
||||
moretrees.dates_regrow_unpollinated_percent = 0 -- Percentage of female dates becoming dates without being pollinated.
|
||||
-- If 0, dates_regrow_pollinated must be enabled for dates to grow.
|
||||
moretrees.dates_female_percent = 57 -- Ratio of female to male trees - tune this to improve # of generated trees that actually bear fruit
|
||||
-- ~57% gives near optimal results for groups of 3 random trees, while it is only slightly suboptimal
|
||||
-- for groups of 2 and 4 random trees (~2% less fruit than optimal).
|
||||
@ -83,7 +106,7 @@ moretrees.dates_female_percent = 57 -- Ratio of female to male trees - tune th
|
||||
-- So 57% is optimal for small groups of trees. As larger groups have more female palms anyway, a
|
||||
-- less than optimal proportion of female to male trees is not a problem.
|
||||
moretrees.dates_pollination_distance = 120
|
||||
moretrees.dates_blossom_search_time_treshold = 1000 -- If average male blossom search time exceeds this, start limiting the search load.
|
||||
moretrees.dates_blossom_search_time_treshold = 1000 -- If average male blossom search time (in microseconds) exceeds this, start limiting the search load.
|
||||
moretrees.dates_blossom_search_iload = 10 -- Inverse fraction of CPU time that male blossom searching search may consume.
|
||||
-- As searching a large area (radius: dates_pollination_distance/3 per attempt) can cause lag,
|
||||
-- this limits the search frequency server-wide so that the impact on server lag is minimised
|
||||
|
45
init.lua
@ -2,18 +2,16 @@
|
||||
--
|
||||
-- This mod adds more types of trees to the game
|
||||
--
|
||||
-- Some of the node definitions and textures came from cisoun's conifers mod
|
||||
-- Some of the node definitions and textures came from cisoun's conifers mod
|
||||
-- and bas080's jungle trees mod.
|
||||
--
|
||||
-- Brought together into one mod and made L-systems compatible by Vanessa
|
||||
-- Ezekowitz.
|
||||
--
|
||||
-- Firs and Jungle tree axioms/rules by Vanessa Ezekowitz, with the
|
||||
-- Firs and Jungle tree axioms/rules by Vanessa Dannenberg, with the
|
||||
-- latter having been tweaked by RealBadAngel, most other axioms/rules written
|
||||
-- by RealBadAngel.
|
||||
--
|
||||
-- License: WTFPL for all parts (code and textures, including those copied
|
||||
-- from the the old jungletree and conifers mods).
|
||||
|
||||
moretrees = {}
|
||||
|
||||
@ -51,7 +49,8 @@ end
|
||||
|
||||
-- infinite stacks checking
|
||||
|
||||
if minetest.get_modpath("unified_inventory") or not minetest.setting_getbool("creative_mode") then
|
||||
if minetest.get_modpath("unified_inventory") or not
|
||||
minetest.settings:get_bool("creative_mode") then
|
||||
moretrees.expect_infinite_stacks = false
|
||||
else
|
||||
moretrees.expect_infinite_stacks = true
|
||||
@ -91,12 +90,13 @@ if moretrees.spawn_saplings then
|
||||
moretrees.spawn_cedar_object = "moretrees:cedar_sapling_ongen"
|
||||
moretrees.spawn_rubber_tree_object = "moretrees:rubber_tree_sapling_ongen"
|
||||
moretrees.spawn_willow_object = "moretrees:willow_sapling_ongen"
|
||||
moretrees.spawn_acacia_object = "moretrees:acacia_sapling_ongen"
|
||||
moretrees.spawn_birch_object = "moretrees:birch_sapling_ongen"
|
||||
moretrees.spawn_spruce_object = "moretrees:spruce_sapling_ongen"
|
||||
moretrees.spawn_jungletree_object = "moretrees:jungletree_sapling_ongen"
|
||||
moretrees.spawn_fir_object = "moretrees:fir_sapling_ongen"
|
||||
moretrees.spawn_fir_snow_object = "snow:sapling_pine"
|
||||
moretrees.spawn_poplar_object = "moretrees:poplar_sapling_ongen"
|
||||
moretrees.spawn_poplar_small_object = "moretrees:poplar_small_sapling_ongen"
|
||||
else
|
||||
moretrees.spawn_beech_object = moretrees.beech_model
|
||||
moretrees.spawn_apple_tree_object = moretrees.apple_tree_model
|
||||
@ -107,12 +107,13 @@ else
|
||||
moretrees.spawn_cedar_object = moretrees.cedar_model
|
||||
moretrees.spawn_rubber_tree_object = moretrees.rubber_tree_model
|
||||
moretrees.spawn_willow_object = moretrees.willow_model
|
||||
moretrees.spawn_acacia_object = moretrees.acacia_model
|
||||
moretrees.spawn_birch_object = "moretrees.grow_birch"
|
||||
moretrees.spawn_spruce_object = "moretrees.grow_spruce"
|
||||
moretrees.spawn_jungletree_object = "moretrees.grow_jungletree"
|
||||
moretrees.spawn_fir_object = "moretrees.grow_fir"
|
||||
moretrees.spawn_fir_snow_object = "moretrees.grow_fir_snow"
|
||||
moretrees.spawn_poplar_object = moretrees.poplar_model
|
||||
moretrees.spawn_poplar_small_object = moretrees.poplar_small_model
|
||||
end
|
||||
|
||||
if moretrees.enable_beech then
|
||||
@ -152,10 +153,6 @@ if moretrees.enable_willow then
|
||||
biome_lib:register_generate_plant(moretrees.willow_biome, moretrees.spawn_willow_object)
|
||||
end
|
||||
|
||||
if moretrees.enable_acacia then
|
||||
biome_lib:register_generate_plant(moretrees.acacia_biome, moretrees.spawn_acacia_object)
|
||||
end
|
||||
|
||||
if moretrees.enable_birch then
|
||||
biome_lib:register_generate_plant(moretrees.birch_biome, moretrees.spawn_birch_object)
|
||||
end
|
||||
@ -175,10 +172,18 @@ if moretrees.enable_fir then
|
||||
end
|
||||
end
|
||||
|
||||
if moretrees.enable_poplar then
|
||||
biome_lib:register_generate_plant(moretrees.poplar_biome, moretrees.spawn_poplar_object)
|
||||
biome_lib:register_generate_plant(moretrees.poplar_biome_2, moretrees.spawn_poplar_object)
|
||||
biome_lib:register_generate_plant(moretrees.poplar_biome_3, moretrees.spawn_poplar_object)
|
||||
biome_lib:register_generate_plant(moretrees.poplar_small_biome, moretrees.spawn_poplar_small_object)
|
||||
biome_lib:register_generate_plant(moretrees.poplar_small_biome_2, moretrees.spawn_poplar_small_object)
|
||||
end
|
||||
|
||||
-- Code to spawn a birch tree
|
||||
|
||||
function moretrees.grow_birch(pos)
|
||||
minetest.remove_node(pos)
|
||||
minetest.swap_node(pos, biome_lib.air)
|
||||
if math.random(1,2) == 1 then
|
||||
minetest.spawn_tree(pos, moretrees.birch_model1)
|
||||
else
|
||||
@ -189,7 +194,7 @@ end
|
||||
-- Code to spawn a spruce tree
|
||||
|
||||
function moretrees.grow_spruce(pos)
|
||||
minetest.remove_node(pos)
|
||||
minetest.swap_node(pos, biome_lib.air)
|
||||
if math.random(1,2) == 1 then
|
||||
minetest.spawn_tree(pos, moretrees.spruce_model1)
|
||||
else
|
||||
@ -218,7 +223,7 @@ function moretrees.grow_jungletree(pos)
|
||||
local r2 = math.random(3)
|
||||
if r1 == 1 then
|
||||
moretrees.jungletree_model.leaves2 = "moretrees:jungletree_leaves_red"
|
||||
else
|
||||
else
|
||||
moretrees.jungletree_model.leaves2 = "moretrees:jungletree_leaves_yellow"
|
||||
end
|
||||
moretrees.jungletree_model.leaves2_chance = math.random(25, 75)
|
||||
@ -243,10 +248,10 @@ function moretrees.grow_jungletree(pos)
|
||||
moretrees.jungletree_model.rules_b = moretrees.jt_rules_b2
|
||||
end
|
||||
|
||||
minetest.remove_node(pos)
|
||||
minetest.swap_node(pos, biome_lib.air)
|
||||
local leaves = minetest.find_nodes_in_area({x = pos.x-1, y = pos.y, z = pos.z-1}, {x = pos.x+1, y = pos.y+10, z = pos.z+1}, "default:leaves")
|
||||
for leaf in ipairs(leaves) do
|
||||
minetest.remove_node(leaves[leaf])
|
||||
minetest.swap_node(leaves[leaf], biome_lib.air)
|
||||
end
|
||||
minetest.spawn_tree(pos, moretrees.jungletree_model)
|
||||
end
|
||||
@ -270,10 +275,10 @@ function moretrees.grow_fir(pos)
|
||||
moretrees.fir_model.iterations = 7
|
||||
moretrees.fir_model.random_level = 5
|
||||
|
||||
minetest.remove_node(pos)
|
||||
minetest.swap_node(pos, biome_lib.air)
|
||||
local leaves = minetest.find_nodes_in_area({x = pos.x, y = pos.y, z = pos.z}, {x = pos.x, y = pos.y+5, z = pos.z}, "default:leaves")
|
||||
for leaf in ipairs(leaves) do
|
||||
minetest.remove_node(leaves[leaf])
|
||||
minetest.swap_node(leaves[leaf], biome_lib.air)
|
||||
end
|
||||
minetest.spawn_tree(pos,moretrees.fir_model)
|
||||
end
|
||||
@ -297,10 +302,10 @@ function moretrees.grow_fir_snow(pos)
|
||||
moretrees.fir_model.iterations = 2
|
||||
moretrees.fir_model.random_level = 2
|
||||
|
||||
minetest.remove_node(pos)
|
||||
minetest.swap_node(pos, biome_lib.air)
|
||||
local leaves = minetest.find_nodes_in_area({x = pos.x, y = pos.y, z = pos.z}, {x = pos.x, y = pos.y+5, z = pos.z}, "default:leaves")
|
||||
for leaf in ipairs(leaves) do
|
||||
minetest.remove_node(leaves[leaf])
|
||||
minetest.swap_node(leaves[leaf], biome_lib.air)
|
||||
end
|
||||
minetest.spawn_tree(pos,moretrees.fir_model)
|
||||
end
|
||||
|
100
locale/es.txt
Normal file
@ -0,0 +1,100 @@
|
||||
# Traducido por Carlos Barraza
|
||||
|
||||
### crafts.lua ###
|
||||
Coconut Milk = Leche de Coco
|
||||
Raw Coconut = Coco crudo
|
||||
Acorn Muffin batter = Masa de Mollete de Bellota
|
||||
Acorn Muffin = Mollete de Bellota
|
||||
Roasted Spruce Cone Nuts = Cono de Picea Tostado
|
||||
Roasted Pine Cone Nuts = Cono de Pino Tostado
|
||||
Roasted Fir Cone Nuts = Cono de Abeto Tostado
|
||||
Roasted Cedar Cone Nuts = Coco de Alamo Tostado
|
||||
Date = Datilera
|
||||
Date & nut snack = Datilera y Nueces
|
||||
Date-nut cake batter = Pasta de torta de Datilera
|
||||
Date-nut cake = Pastel de Datilera
|
||||
Date-nut energy bar = Barra energetica de Datilera
|
||||
|
||||
### date_palm.lua ###
|
||||
Dates = Datilera
|
||||
Date Stem = Tallo de Datilera
|
||||
Date Flowers = Flores de Datilera
|
||||
|
||||
### node_defs.lua ###
|
||||
Beech Tree Trunk = Tronco de Arbol de Haya
|
||||
Apple Tree Trunk = Tronco de Arbol de Manzana
|
||||
Oak Tree Trunk = Tronco de Arbol de Roble
|
||||
Giant Sequoia Trunk = Tronco de Sequoia Gigante
|
||||
Birch Tree Trunk = Tronco de Arbol de Abedul
|
||||
Palm Tree Trunk = Tronco de Palmera
|
||||
Spruce Tree Trunk = Tronco de Arbol de Abeto
|
||||
Willow Tree Trunk = Tronco de Arbol de Sauce
|
||||
Rubber Tree Trunk = Tronco de Arbol de Arbol de Goma
|
||||
Jungle Tree = Tronco de Arbol de Arbol de la Selva
|
||||
Douglas Fir Trunk = Tronco de Arbol de Abeto de Douglas
|
||||
Cedar Tree Trunk = Tronco de Arbol de Cedro
|
||||
Date Palm Tree Trunk = Tronco de Palmera Datilera
|
||||
Acacia Tree Trunk = Tronco de Arbol de Acacia
|
||||
Poplar Tree Trunk = Tronco de Arbol de Alamo
|
||||
|
||||
Beech Tree Planks = Madera de Arbol de Haya
|
||||
Apple Tree Planks = Madera de Arbol de Manzana
|
||||
Oak Tree Planks = Madera de Arbol de Roble
|
||||
Giant Sequoia Planks = Madera de Sequoia Gigante
|
||||
Birch Tree Planks = Madera de Arbol de Abedul
|
||||
Palm Tree Planks = Madera de Palmera
|
||||
Spruce Tree Planks = Madera de Arbol de Abeto
|
||||
Willow Tree Planks = Madera de Arbol de Sauce
|
||||
Rubber Tree Planks = Madera de Arbol de Arbol de Goma
|
||||
Jungle Planks = Madera de Arbol de Arbol de la Selva
|
||||
Douglas Fir Planks = Madera de Arbol de Abeto de Douglas
|
||||
Cedar Tree Planks = Madera de Arbol de Cedro
|
||||
Date Palm Tree Planks = Madera de Palmera Datilera
|
||||
Acacia Tree Planks = Madera de Arbol de Acacia
|
||||
Poplar Tree Planks = Madera de Arbol de Alamo
|
||||
|
||||
Beech Tree Sapling = Retoño de Arbol de Haya
|
||||
Apple Tree Sapling = Retoño de Arbol de Manzana
|
||||
Oak Tree Sapling = Retoño de Arbol de Roble
|
||||
Giant Sequoia Sapling = Retoño de Arbol de Sequoia Gigante
|
||||
Birch Tree Sapling = Retoño de Arbol de Abedul
|
||||
Palm Tree Sapling = Retoño de Palmera
|
||||
Spruce Tree Sapling = Retoño de Arbol de Abeto
|
||||
Willow Tree Sapling = Retoño de Arbol de Sauce
|
||||
Rubber Tree Sapling = Retoño de Arbol de Arbol de Goma
|
||||
Jungle Sapling = Retoño de Arbol de Arbol de la Selva
|
||||
Douglas Fir Sapling = Retoño de Arbol de Abeto de Douglas
|
||||
Cedar Tree Sapling = Retoño de Arbol de Cedro
|
||||
Date Palm Tree Tree Sapling = Retoño de Palmera Datilera
|
||||
Acacia Tree Sapling = Retoño de Arbol de Acacia
|
||||
Poplar Tree Sapling = Retoño de Arbol de Alamo
|
||||
|
||||
Beech Tree Leaves = Hojas de Arbol de Haya
|
||||
Apple Tree Leaves = Hojas de Arbol de Manzana
|
||||
Oak Tree Leaves = Hojas de Arbol de Roble
|
||||
Giant Sequoia Leaves = Hojas de Sequoia Gigante
|
||||
Birch Tree Leaves = Hojas de Arbol de Abedul
|
||||
Palm Tree Leaves = Hojas de Palmera
|
||||
Spruce Tree Leaves = Hojas de Arbol de Abeto
|
||||
Willow Tree Leaves = Hojas de Arbol de Sauce
|
||||
Rubber Tree Leaves = Hojas de Arbol de Arbol de Goma
|
||||
Jungle Leaves = Hojas de Arbol de Arbol de la Selva
|
||||
Douglas Fir Leaves = Hojas de Arbol de Abeto de Douglas
|
||||
Cedar Tree Leaves = Hojas de Arbol de Cedro
|
||||
Date Palm Tree Tree Leaves = Hojas de Palmera Datilera
|
||||
Acacia Tree Leaves = Hojas de Arbol de Acacia
|
||||
Poplar Tree Leaves = Hojas de Arbol de Alamo
|
||||
|
||||
Acorn = Bellota
|
||||
Coconut = Coco
|
||||
Spruce Cone = Coco de Picea
|
||||
Pine Cone = Coco de Pino
|
||||
Fir Cone = Coco de Abeto
|
||||
Cedar Cone = Coco de Alamo
|
||||
Jungle Sapling = Retoño de Arbol de la Selva
|
||||
Jungle Tree Leaves (Yellow) = Hojas de Arbol de la Selva (Amarilla)
|
||||
Jungle Tree Leaves (Red) = Hojas de Arbol de la Selva (Roja)
|
||||
Douglas Fir Leaves (Bright) = Hojas de Arbol de Abeto de Douglas (Brillante)
|
||||
Rubber Tree Trunk (Empty) = Tronco de Arbol de Goma (Vacio)
|
||||
|
||||
[Moretrees] Loaded (2013-02-11) = [Masarboles] Cargado
|
74
locale/fr.txt
Normal file
@ -0,0 +1,74 @@
|
||||
# Traduction par Yoan31
|
||||
#
|
||||
|
||||
### crafts.lua ###
|
||||
Coconut Milk = Lait de Coco
|
||||
Raw Coconut = Noix de Coco Crue
|
||||
Acorn Muffin batter = Pate à Muffins au Gland
|
||||
Acorn Muffin = Muffins au Gland
|
||||
Roasted Spruce Cone Nuts = Noix de Cône de Sapin Roties
|
||||
Roasted Pine Cone Nuts = Noix de Pomme de pin Roties
|
||||
Roasted Fir Cone Nuts = Noix de Cône de Sapin Roties
|
||||
|
||||
### node_defs.lua ###
|
||||
Beech Tree Trunk = Tronc d'Arbre de Hêtre
|
||||
Apple Tree Trunk = Tronc d'Arbre de Pommier
|
||||
Oak Tree Trunk = Tronc d'Arbre de chêne
|
||||
Giant Sequoia Trunk = Tronc d'Arbre de Séquoia Géant
|
||||
Birch Tree Trunk = Tronc d'Arbre de bouleau
|
||||
Palm Tree Trunk = Tronc d'Arbre de Palmier
|
||||
Spruce Tree Trunk = Tronc d'Arbre d'Epicéa
|
||||
Pine Tree Trunk = Tronc d'Arbre de Pin
|
||||
Willow Tree Trunk = Tronc d'Arbre de Saule
|
||||
Rubber Tree Trunk = Tronc d'Arbre a Caoutchouc
|
||||
Jungle Tree Trunk = Tronc d'Arbre de la Jungle
|
||||
Douglas Fir Trunk = Tronc de Sapin de Douglas
|
||||
Beech Tree Planks = Planches de Hêtre
|
||||
Apple Tree Planks = Planches de Pommier
|
||||
Oak Tree Planks = Planches de Chêne
|
||||
Giant Sequoia Planks = Planches de d'Arbre de Séquoia Géant
|
||||
Birch Tree Planks = Planches d'Arbre de bouleau
|
||||
Palm Tree Planks = Planches d'Arbre de Palmier
|
||||
Spruce Tree Planks = Planches d'Arbre d'Epicéa
|
||||
Pine Tree Planks = Planches d'Arbre de Pin
|
||||
Willow Tree Planks = Planches d'Arbre de Saule
|
||||
Rubber Tree Planks = Planches d'Arbre a Caoutchouc
|
||||
Jungle Tree Planks = Planches d'Arbre de la Jungle
|
||||
Douglas Fir Planks = Planches de Sapin de Douglas
|
||||
Beech Tree Sapling = Pousse d'Arbre de Hêtre
|
||||
Apple Tree Sapling = Pousse d'Arbre de Pommier
|
||||
Oak Tree Sapling = Pousse d'Arbre de chêne
|
||||
Giant Sequoia Sapling = Pousse d'Arbre de Séquoia Géant
|
||||
Birch Tree Sapling = Pousse d'Arbre de bouleau
|
||||
Palm Tree Sapling = Pousse d'Arbre de Palmier
|
||||
Spruce Tree Sapling = Pousse d'Arbre d'Epicéa
|
||||
Pine Tree Sapling = Pousse d'Arbre de Pin
|
||||
Willow Tree Sapling = Pousse d'Arbre de Saule
|
||||
Rubber Tree Sapling = Pousse d'Arbre a Caoutchouc
|
||||
Jungle Tree Sapling = Pousse d'Arbre de la Jungle
|
||||
Douglas Fir Sapling = Pousse de Sapin de Douglas
|
||||
Beech Tree Leaves = Feuilles d'Arbre de Hêtre
|
||||
Apple Tree Leaves = Feuilles d'Arbre de Pommier
|
||||
Oak Tree Leaves = Feuilles d'Arbre de chêne
|
||||
Giant Sequoia Leaves = Feuilles d'Arbre de Séquoia Géant
|
||||
Birch Tree Leaves = Feuilles d'Arbre de bouleau
|
||||
Palm Tree Leaves = Feuilles d'Arbre de Palmier
|
||||
Spruce Tree Leaves = Feuilles d'Arbre d'Epicéa
|
||||
Pine Tree Leaves = Feuilles d'Arbre de Pin
|
||||
Willow Tree Leaves = Feuilles d'Arbre de Saule
|
||||
Rubber Tree Leaves = Feuilles d'Arbre a Caoutchouc
|
||||
Jungle Tree Leaves = Feuilles d'Arbre de la Jungle
|
||||
Douglas Fir Leaves = Feuilles de Sapin de Douglas
|
||||
|
||||
Acorn = Gland
|
||||
Coconut = Noix de Coco
|
||||
Spruce Cone = Cône de Sapin
|
||||
Pine Cone = Pomme de Pin
|
||||
Fir Cone = Pomme de Sapin
|
||||
Jungle Sapling = Pousse d'Arbre de la Jungle
|
||||
Jungle Tree Leaves (Yellow) = Feuille d'Arbre de la Jungle (Jaune)
|
||||
Jungle Tree Leaves (Red) = Feuille d'Arbre de la Jungle (Rouge)
|
||||
Douglas Fir Leaves (Bright) = Feuille de Sapin de Douglas (Brillant)
|
||||
Rubber Tree Trunk (Empty) = Tronc d'Arbre en Caoutchouc (Vide)
|
||||
|
||||
[Moretrees] Loaded (2013-02-11) =
|
193
node_defs.lua
@ -1,23 +1,23 @@
|
||||
local S = moretrees.intllib
|
||||
|
||||
moretrees.avoidnodes = {}
|
||||
|
||||
moretrees.treelist = {
|
||||
{"beech", "Beech Tree"},
|
||||
{"apple_tree", "Apple Tree"},
|
||||
{"oak", "Oak Tree", "acorn", "Acorn", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
|
||||
{"sequoia", "Giant Sequoia"},
|
||||
{"birch", "Birch Tree"},
|
||||
{"palm", "Palm Tree", "palm_fruit_trunk_gen", "Palm Tree", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 1.0 },
|
||||
{"date_palm", "Date Palm Tree", "date_palm_fruit_trunk", "Date Palm Tree", {0, 0, 0, 0, 0, 0}, 0.0 },
|
||||
{"spruce", "Spruce Tree", "spruce_cone", "Spruce Cone", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
|
||||
{"cedar", "Cedar Tree", "cedar_cone", "Cedar Cone", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
|
||||
{"willow", "Willow Tree"},
|
||||
{"rubber_tree", "Rubber Tree"},
|
||||
{"fir", "Douglas Fir", "fir_cone", "Fir Cone", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
|
||||
|
||||
{"jungletree", "Jungle Tree", nil, nil, nil, nil, "default_junglesapling.png" },
|
||||
{"acacia", "Acacia Tree", nil, nil, nil, nil, "default_acacia_sapling.png" },
|
||||
moretrees.treelist = {
|
||||
{"beech", "Beech Tree"},
|
||||
{"apple_tree", "Apple Tree"},
|
||||
{"oak", "Oak Tree", "acorn", "Acorn", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
|
||||
{"sequoia", "Giant Sequoia"},
|
||||
{"birch", "Birch Tree"},
|
||||
{"palm", "Palm Tree", "palm_fruit_trunk_gen", "Palm Tree", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 1.0 },
|
||||
{"date_palm", "Date Palm Tree", "date_palm_fruit_trunk", "Date Palm Tree", {0, 0, 0, 0, 0, 0}, 0.0 },
|
||||
{"spruce", "Spruce Tree", "spruce_cone", "Spruce Cone", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
|
||||
{"cedar", "Cedar Tree", "cedar_cone", "Cedar Cone", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
|
||||
{"poplar", "Poplar Tree"},
|
||||
{"poplar_small", "Poplar Tree"},
|
||||
{"willow", "Willow Tree"},
|
||||
{"rubber_tree", "Rubber Tree"},
|
||||
{"fir", "Douglas Fir", "fir_cone", "Fir Cone", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
|
||||
{"jungletree", "Jungle Tree", nil, nil, nil, nil, "default_junglesapling.png" },
|
||||
}
|
||||
|
||||
local dirs1 = { 21, 20, 23, 22, 21 }
|
||||
@ -27,9 +27,9 @@ local dirs3 = { 14, 11, 16, 5, 14 }
|
||||
local moretrees_new_leaves_drawtype = "allfaces_optional"
|
||||
local moretrees_plantlike_leaves_visual_scale = 1
|
||||
|
||||
if moretrees.plantlike_leaves then
|
||||
if moretrees.plantlike_leaves then
|
||||
moretrees_new_leaves_drawtype = "plantlike"
|
||||
moretrees_plantlike_leaves_visual_scale = 1.189
|
||||
moretrees_plantlike_leaves_visual_scale = math.sqrt(2)
|
||||
end
|
||||
|
||||
-- redefine default leaves to handle plantlike and/or leaf decay options
|
||||
@ -38,11 +38,7 @@ if moretrees.plantlike_leaves then
|
||||
minetest.override_item("default:leaves", {
|
||||
inventory_image = minetest.inventorycube("default_leaves.png"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.189
|
||||
})
|
||||
else
|
||||
minetest.override_item("default:leaves", {
|
||||
waving = 1
|
||||
visual_scale = math.sqrt(2)
|
||||
})
|
||||
end
|
||||
|
||||
@ -52,11 +48,7 @@ if moretrees.plantlike_leaves then
|
||||
minetest.override_item("default:jungleleaves", {
|
||||
inventory_image = minetest.inventorycube("default_jungleleaves.png"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.189
|
||||
})
|
||||
else
|
||||
minetest.override_item("default:jungleleaves", {
|
||||
waving = 1
|
||||
visual_scale = math.sqrt(2)
|
||||
})
|
||||
end
|
||||
|
||||
@ -70,8 +62,22 @@ for i in ipairs(moretrees.treelist) do
|
||||
|
||||
local saptex = moretrees.treelist[i][7]
|
||||
|
||||
if treename ~= "jungletree" -- the default game provides jungle tree, acacia, and pine trunk/planks nodes.
|
||||
and treename ~= "acacia"
|
||||
-- player will get a sapling with 1/100 chance
|
||||
-- player will get leaves only if he/she gets no saplings,
|
||||
-- this is because max_items is 1
|
||||
|
||||
local droprarity = 100
|
||||
local decay = moretrees.leafdecay_radius
|
||||
|
||||
if treename == "palm" then
|
||||
droprarity = 20
|
||||
decay = moretrees.palm_leafdecay_radius
|
||||
elseif treename == "date_palm" then
|
||||
decay = moretrees.palm_leafdecay_radius
|
||||
end
|
||||
|
||||
if treename ~= "jungletree" -- the default game provides jungle tree and pine trunk/planks nodes.
|
||||
and treename ~= "poplar_small"
|
||||
and treename ~= "pine" then
|
||||
|
||||
saptex = "moretrees_"..treename.."_sapling.png"
|
||||
@ -84,7 +90,7 @@ for i in ipairs(moretrees.treelist) do
|
||||
"moretrees_"..treename.."_trunk.png"
|
||||
},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = true,
|
||||
is_ground_content = false,
|
||||
groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
@ -93,7 +99,7 @@ for i in ipairs(moretrees.treelist) do
|
||||
minetest.register_node("moretrees:"..treename.."_planks", {
|
||||
description = S(treedesc.." Planks"),
|
||||
tiles = {"moretrees_"..treename.."_wood.png"},
|
||||
is_ground_content = true,
|
||||
is_ground_content = false,
|
||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
@ -106,6 +112,7 @@ for i in ipairs(moretrees.treelist) do
|
||||
paramtype = "light",
|
||||
paramtype2 = "waving",
|
||||
walkable = false,
|
||||
is_ground_content = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
|
||||
@ -113,20 +120,6 @@ for i in ipairs(moretrees.treelist) do
|
||||
groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1,sapling=1},
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
|
||||
-- player will get a sapling with 1/100 chance
|
||||
-- player will get leaves only if he/she gets no saplings,
|
||||
-- this is because max_items is 1
|
||||
|
||||
local droprarity = 100
|
||||
local decay = moretrees.leafdecay_radius
|
||||
|
||||
if treename == "palm" then
|
||||
droprarity = 20
|
||||
decay = moretrees.palm_leafdecay_radius
|
||||
elseif treename == "date_palm" then
|
||||
decay = moretrees.palm_leafdecay_radius
|
||||
end
|
||||
|
||||
local moretrees_leaves_inventory_image = nil
|
||||
local moretrees_new_leaves_waving = nil
|
||||
@ -145,7 +138,8 @@ for i in ipairs(moretrees.treelist) do
|
||||
tiles = { "moretrees_"..treename.."_leaves.png" },
|
||||
inventory_image = moretrees_leaves_inventory_image,
|
||||
paramtype = "light",
|
||||
groups = {snappy = 3, flammable = 2, leaves = 1, moretrees_leaves = 1, leafdecay = decay},
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 3, flammable = 2, leaves = 1, moretrees_leaves = 1, leafdecay = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
drop = {
|
||||
@ -165,7 +159,7 @@ for i in ipairs(moretrees.treelist) do
|
||||
stairsplus:register_all(
|
||||
"moretrees",
|
||||
treename.."_trunk",
|
||||
"moretrees:"..treename.."_trunk",
|
||||
"moretrees:"..treename.."_trunk",
|
||||
{
|
||||
groups = { snappy=1, choppy=2, oddly_breakable_by_hand=1, flammable=2, not_in_creative_inventory=1 },
|
||||
tiles = {
|
||||
@ -218,13 +212,14 @@ for i in ipairs(moretrees.treelist) do
|
||||
end
|
||||
|
||||
minetest.register_node("moretrees:"..treename.."_sapling_ongen", {
|
||||
description = S(treedesc.." Sapling"),
|
||||
description = S(treedesc.." Sapling (on-generated)"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {saptex},
|
||||
inventory_image = saptex,
|
||||
paramtype = "light",
|
||||
paramtype2 = "waving",
|
||||
walkable = false,
|
||||
is_ground_content = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
|
||||
@ -234,8 +229,10 @@ for i in ipairs(moretrees.treelist) do
|
||||
drop = "moretrees:"..treename.."_sapling"
|
||||
})
|
||||
|
||||
local fruitname = nil
|
||||
if fruit then
|
||||
minetest.register_node("moretrees:"..fruit, {
|
||||
fruitname = "moretrees:"..fruit
|
||||
minetest.register_node(fruitname, {
|
||||
description = S(fruitdesc),
|
||||
drawtype = "plantlike",
|
||||
tiles = { "moretrees_"..fruit..".png" },
|
||||
@ -244,16 +241,27 @@ for i in ipairs(moretrees.treelist) do
|
||||
visual_scale = vscale,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = selbox
|
||||
},
|
||||
groups = {fleshy=3,dig_immediate=3,flammable=2, attached_node=1},
|
||||
groups = {fleshy=3,dig_immediate=3,flammable=2, attached_node=1, leafdecay = 1, leafdecay_drop = 1},
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
if treename ~= "jungletree"
|
||||
and treename ~= "poplar_small"
|
||||
and treename ~= "pine" then
|
||||
default.register_leafdecay({
|
||||
trunks = { "moretrees:"..treename.."_trunk" },
|
||||
leaves = { "moretrees:"..treename.."_leaves", fruitname },
|
||||
radius = decay,
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = { "moretrees:"..treename.."_trunk_sideways" },
|
||||
interval = 1,
|
||||
@ -273,6 +281,45 @@ for i in ipairs(moretrees.treelist) do
|
||||
end
|
||||
end
|
||||
|
||||
-- Add small poplar saplings
|
||||
|
||||
local poplar_sapling = minetest.registered_nodes["moretrees:poplar_sapling"]
|
||||
local poplar_sapling_ongen = minetest.registered_nodes["moretrees:poplar_sapling_ongen"]
|
||||
local poplar_small_sapling = {}
|
||||
local poplar_small_sapling_ongen = {}
|
||||
for k,v in pairs(poplar_sapling) do
|
||||
poplar_small_sapling[k] = v
|
||||
end
|
||||
for k,v in pairs(poplar_sapling_ongen) do
|
||||
poplar_small_sapling_ongen[k] = v
|
||||
end
|
||||
poplar_small_sapling.tiles = {"moretrees_poplar_small_sapling.png"}
|
||||
poplar_small_sapling.inventory_image = "moretrees_poplar_small_sapling.png"
|
||||
poplar_small_sapling.is_ground_content = true
|
||||
poplar_small_sapling_ongen.tiles_ongen = {"moretrees_poplar_small_sapling.png"}
|
||||
poplar_small_sapling_ongen.inventory_image_ongen = "moretrees_poplar_small_sapling.png"
|
||||
poplar_small_sapling_ongen.drop = "moretrees:poplar_small_sapling"
|
||||
poplar_small_sapling_ongen.is_ground_content = true
|
||||
|
||||
minetest.register_node("moretrees:poplar_small_sapling", poplar_small_sapling)
|
||||
minetest.register_node("moretrees:poplar_small_sapling_ongen", poplar_small_sapling_ongen)
|
||||
if moretrees.spawn_saplings then
|
||||
table.insert(moretrees.avoidnodes, "moretrees:poplar_sapling")
|
||||
table.insert(moretrees.avoidnodes, "moretrees:poplar_small_sapling_ongen")
|
||||
end
|
||||
|
||||
local poplar_leaves_drop = minetest.registered_nodes["moretrees:poplar_leaves"].drop
|
||||
minetest.override_item("moretrees:poplar_leaves", {
|
||||
drop = {
|
||||
max_items = poplar_leaves_drop.maxitems,
|
||||
items = {
|
||||
{items = {"moretrees:poplar_sapling"}, rarity = 1.33 * poplar_leaves_drop.items[1].rarity },
|
||||
{items = {"moretrees:poplar_small_sapling"}, rarity = 1.33 * poplar_leaves_drop.items[1].rarity },
|
||||
{items = {"moretrees:poplar_leaves"} }
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
-- Extra nodes for jungle trees:
|
||||
|
||||
local jungleleaves = {"yellow","red"}
|
||||
@ -296,7 +343,8 @@ for color = 1, #jungleleaves do
|
||||
tiles = {"moretrees_jungletree_leaves_"..jungleleaves[color]..".png"},
|
||||
inventory_image = moretrees_leaves_inventory_image,
|
||||
paramtype = "light",
|
||||
groups = {snappy = 3, flammable = 2, leaves = 1, moretrees_leaves = 1, leafdecay = moretrees.leafdecay_radius },
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 3, flammable = 2, leaves = 1, moretrees_leaves = 1, leafdecay = 3 },
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
@ -308,6 +356,18 @@ for color = 1, #jungleleaves do
|
||||
})
|
||||
end
|
||||
|
||||
-- To get Moretrees to generate its own jungle trees among the default mapgen
|
||||
-- we need our own copy of that node, which moretrees will match against.
|
||||
|
||||
local jungle_tree = table.copy(minetest.registered_nodes["default:jungletree"])
|
||||
minetest.register_node("moretrees:jungletree_trunk", jungle_tree)
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = { "default:jungletree", "moretrees:jungletree_trunk" },
|
||||
leaves = { "default:jungleleaves", "moretrees:jungletree_leaves_yellow", "moretrees:jungletree_leaves_red" },
|
||||
radius = moretrees.leafdecay_radius,
|
||||
})
|
||||
|
||||
-- Extra needles for firs
|
||||
|
||||
local moretrees_leaves_inventory_image = nil
|
||||
@ -324,7 +384,8 @@ minetest.register_node("moretrees:fir_leaves_bright", {
|
||||
tiles = { "moretrees_fir_leaves_bright.png" },
|
||||
inventory_image = moretrees_leaves_inventory_image,
|
||||
paramtype = "light",
|
||||
groups = {snappy = 3, flammable = 2, leaves = 1, moretrees_leaves = 1, leafdecay = moretrees.leafdecay_radius },
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 3, flammable = 2, leaves = 1, moretrees_leaves = 1, leafdecay = 3 },
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
@ -335,6 +396,13 @@ minetest.register_node("moretrees:fir_leaves_bright", {
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = { "moretrees:fir_trunk" },
|
||||
leaves = { "moretrees:fir_leaves", "moretrees:fir_leaves_bright" },
|
||||
radius = moretrees.leafdecay_radius,
|
||||
})
|
||||
|
||||
|
||||
if moretrees.enable_redefine_apple then
|
||||
local appledef = moretrees.clone_node("default:apple")
|
||||
appledef.groups.attached_node = 1
|
||||
@ -348,10 +416,9 @@ table.insert(moretrees.avoidnodes, "moretrees:fir_trunk")
|
||||
table.insert(moretrees.avoidnodes, "default:tree")
|
||||
|
||||
if moretrees.spawn_saplings then
|
||||
table.insert(moretrees.avoidnodes, "snow:sapling_pine")
|
||||
table.insert(moretrees.avoidnodes, "default:junglesapling")
|
||||
table.insert(moretrees.avoidnodes, "default:pine_sapling")
|
||||
table.insert(moretrees.avoidnodes, "default:acacia_sapling")
|
||||
table.insert(moretrees.avoidnodes, "snow:sapling_pine")
|
||||
table.insert(moretrees.avoidnodes, "default:junglesapling")
|
||||
table.insert(moretrees.avoidnodes, "default:pine_sapling")
|
||||
end
|
||||
|
||||
-- "empty" (tapped) rubber tree nodes
|
||||
@ -367,6 +434,7 @@ minetest.register_node("moretrees:rubber_tree_trunk_empty", {
|
||||
groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
on_place = minetest.rotate_node,
|
||||
})
|
||||
|
||||
@ -381,12 +449,6 @@ minetest.register_abm({
|
||||
end,
|
||||
})
|
||||
|
||||
-- To get Moretrees to generate its own jungle trees among the default mapgen
|
||||
-- we need our own copy of that node, which moretrees will match against.
|
||||
|
||||
local jungle_tree = moretrees.clone_node("default:jungletree")
|
||||
minetest.register_node("moretrees:jungletree_trunk", jungle_tree)
|
||||
|
||||
-- For compatibility with old nodes, recently-changed nodes, and default nodes
|
||||
|
||||
minetest.register_alias("technic:rubber_tree_full", "moretrees:rubber_tree_trunk")
|
||||
@ -418,10 +480,6 @@ minetest.register_alias("moretrees:jungletree_trunk_sideways", "moreblocks:horiz
|
||||
minetest.register_alias("moretrees:jungletree_planks", "default:junglewood")
|
||||
minetest.register_alias("moretrees:jungletree_leaves_green", "default:jungleleaves")
|
||||
|
||||
minetest.register_alias("jungletree:leaves_green", "default:jungleleaves")
|
||||
minetest.register_alias("jungletree:leaves_red", "moretrees:jungletree_leaves_red")
|
||||
minetest.register_alias("jungletree:leaves_yellow", "moretrees:jungletree_leaves_yellow")
|
||||
|
||||
minetest.register_alias("moretrees:acacia_trunk", "default:acacia_tree")
|
||||
minetest.register_alias("moretrees:acacia_planks", "default:acacia_wood")
|
||||
minetest.register_alias("moretrees:acacia_sapling", "default:acacia_sapling")
|
||||
@ -433,5 +491,6 @@ minetest.register_alias("moretrees:pine_sapling", "moretrees:cedar_sapling")
|
||||
minetest.register_alias("moretrees:pine_leaves", "moretrees:cedar_leaves")
|
||||
minetest.register_alias("moretrees:pine_cone", "moretrees:cedar_cone")
|
||||
minetest.register_alias("moretrees:pine_nuts", "moretrees:cedar_nuts")
|
||||
minetest.register_alias("moretrees:pine_sapling_ongen", "moretrees:cedar_sapling_ongen")
|
||||
|
||||
minetest.register_alias("moretrees:dates", "moretrees:dates_f4")
|
||||
|
79
saplings.lua
@ -16,13 +16,15 @@ for i in ipairs(moretrees.treelist) do
|
||||
grow_function = moretrees[tree_model],
|
||||
})
|
||||
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = 2,
|
||||
grow_chance = 30,
|
||||
grow_plant = "moretrees:"..treename.."_sapling_ongen",
|
||||
grow_nodes = moretrees[tree_biome].surface,
|
||||
grow_function = moretrees[tree_model],
|
||||
})
|
||||
if moretrees.spawn_saplings then
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = 2,
|
||||
grow_chance = 30,
|
||||
grow_plant = "moretrees:"..treename.."_sapling_ongen",
|
||||
grow_nodes = moretrees[tree_biome].surface,
|
||||
grow_function = moretrees[tree_model],
|
||||
})
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
@ -35,13 +37,6 @@ biome_lib:grow_plants({
|
||||
grow_function = "moretrees.grow_birch"
|
||||
})
|
||||
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = 2,
|
||||
grow_chance = 30,
|
||||
grow_plant = "moretrees:birch_sapling_ongen",
|
||||
grow_nodes = moretrees.birch_biome.surface,
|
||||
grow_function = "moretrees.grow_birch"
|
||||
})
|
||||
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = moretrees.sapling_interval,
|
||||
@ -51,14 +46,6 @@ biome_lib:grow_plants({
|
||||
grow_function = "moretrees.grow_spruce"
|
||||
})
|
||||
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = 2,
|
||||
grow_chance = 30,
|
||||
grow_plant = "moretrees:spruce_sapling_ongen",
|
||||
grow_nodes = moretrees.spruce_biome.surface,
|
||||
grow_function = "moretrees.grow_spruce"
|
||||
})
|
||||
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = moretrees.sapling_interval,
|
||||
grow_chance = moretrees.sapling_chance,
|
||||
@ -67,14 +54,6 @@ biome_lib:grow_plants({
|
||||
grow_function = "moretrees.grow_fir"
|
||||
})
|
||||
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = 2,
|
||||
grow_chance = 30,
|
||||
grow_plant = "moretrees:fir_sapling_ongen",
|
||||
grow_nodes = moretrees.fir_biome.surface,
|
||||
grow_function = "moretrees.grow_fir"
|
||||
})
|
||||
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = moretrees.sapling_interval,
|
||||
grow_chance = moretrees.sapling_chance,
|
||||
@ -83,11 +62,37 @@ biome_lib:grow_plants({
|
||||
grow_function = "moretrees.grow_jungletree"
|
||||
})
|
||||
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = 2,
|
||||
grow_chance = 30,
|
||||
grow_plant = "moretrees:jungletree_sapling_ongen",
|
||||
grow_nodes = moretrees.jungletree_biome.surface,
|
||||
grow_function = "moretrees.grow_jungletree"
|
||||
})
|
||||
if moretrees.spawn_saplings then
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = 2,
|
||||
grow_chance = 30,
|
||||
grow_plant = "moretrees:jungletree_sapling_ongen",
|
||||
grow_nodes = moretrees.jungletree_biome.surface,
|
||||
grow_function = "moretrees.grow_jungletree"
|
||||
})
|
||||
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = 2,
|
||||
grow_chance = 30,
|
||||
grow_plant = "moretrees:fir_sapling_ongen",
|
||||
grow_nodes = moretrees.fir_biome.surface,
|
||||
grow_function = "moretrees.grow_fir"
|
||||
})
|
||||
|
||||
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = 2,
|
||||
grow_chance = 30,
|
||||
grow_plant = "moretrees:spruce_sapling_ongen",
|
||||
grow_nodes = moretrees.spruce_biome.surface,
|
||||
grow_function = "moretrees.grow_spruce"
|
||||
})
|
||||
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = 2,
|
||||
grow_chance = 30,
|
||||
grow_plant = "moretrees:birch_sapling_ongen",
|
||||
grow_nodes = moretrees.birch_biome.surface,
|
||||
grow_function = "moretrees.grow_birch"
|
||||
})
|
||||
end
|
||||
|
168
screenshot.lua
Normal file
@ -0,0 +1,168 @@
|
||||
-- Usage:
|
||||
-- - Create a new world
|
||||
-- - Set world mapgen: v6
|
||||
-- - Set world seed: 2625051331357512570
|
||||
-- - Enable the moretrees mod
|
||||
-- - Edit the moretrees source
|
||||
-- - Disable all trees in default_settings.lua
|
||||
-- - Recommended: make saplings grow fast in default_settings.lua:
|
||||
-- sapling_interval = 5
|
||||
-- sapling_chance = 1
|
||||
-- - Apply the patch below to moretrees
|
||||
-- (so that jungle trees are always large, and differently-colored):
|
||||
-- use 'git apply --ignore-space-change'
|
||||
-- - Make sure this file (you are reading) will be loaded when minetest starts !
|
||||
-- (e.g. add 'dofile(modpath.."/screenshot.lua")' to init.lua)
|
||||
-- - Start minetest
|
||||
-- - Goto 700,y,-280 (approximately)
|
||||
-- - Make sure the world is loaded between x = 650 .. 780 and z = -350 .. -180
|
||||
-- - Give the chat command '/make-scene'
|
||||
-- - Wait & walk/fly around until all trees have grown
|
||||
-- - goto the platform at 780, 30, -277
|
||||
-- - Set the viewing range to 300, with fog enabled
|
||||
-- - Take a screenshot.
|
||||
|
||||
-- Patch to apply to moretrees
|
||||
--[[
|
||||
diff --git a/init.lua b/init.lua
|
||||
index 8189ffd..afd4644 100644
|
||||
--- a/init.lua
|
||||
+++ b/init.lua
|
||||
@@ -225,9 +225,12 @@ moretrees.ct_rules_b1 = "[-FBf][+FBf]"
|
||||
moretrees.ct_rules_a2 = "FF[FF][&&-FBF][&&+FBF][&&---FBF][&&+++FBF]F/A"
|
||||
moretrees.ct_rules_b2 = "[-fB][+fB]"
|
||||
|
||||
+local jleaves = 1
|
||||
function moretrees.grow_jungletree(pos)
|
||||
local r1 = math.random(2)
|
||||
local r2 = math.random(3)
|
||||
+ r1 = jleaves
|
||||
+ jleaves = jleaves % 2 + 1
|
||||
if r1 == 1 then
|
||||
moretrees.jungletree_model.leaves2 = "moretrees:jungletree_leaves_red"
|
||||
else
|
||||
@@ -235,6 +238,7 @@ function moretrees.grow_jungletree(pos)
|
||||
end
|
||||
moretrees.jungletree_model.leaves2_chance = math.random(25, 75)
|
||||
|
||||
+ r2=3
|
||||
if r2 == 1 then
|
||||
moretrees.jungletree_model.trunk_type = "single"
|
||||
moretrees.jungletree_model.iterations = 2
|
||||
]]
|
||||
|
||||
|
||||
minetest.register_chatcommand("make-scene", {
|
||||
func = function()
|
||||
minetest.place_node({x=780, y=30, z=-277}, {name="default:obsidian"})
|
||||
minetest.place_node({x=780, y=30, z=-278}, {name="default:obsidian"})
|
||||
minetest.place_node({x=781, y=30, z=-277}, {name="default:obsidian"})
|
||||
minetest.place_node({x=781, y=30, z=-278}, {name="default:obsidian"})
|
||||
minetest.place_node({x=781, y=30, z=-276}, {name="default:obsidian"})
|
||||
minetest.place_node({x=780, y=30, z=-276}, {name="default:obsidian"})
|
||||
|
||||
for z = -360, -300 do
|
||||
dy=2
|
||||
for x = 630 + (-z - 360)/3, 660 + (-z - 300)/3 do
|
||||
for y = 5, 22 do
|
||||
minetest.place_node({x=x, y=y, z=z}, {name="default:desert_stone"})
|
||||
end
|
||||
for y = 23, 25 + dy do
|
||||
minetest.place_node({x=x, y=y, z=z}, {name="default:desert_sand"})
|
||||
end
|
||||
dy = 0
|
||||
end
|
||||
end
|
||||
|
||||
minetest.place_node({x=717, y=2, z=-298}, {name = "moretrees:palm_sapling"})
|
||||
minetest.place_node({x=713, y=2, z=-302}, {name = "moretrees:palm_sapling"})
|
||||
minetest.place_node({x=713, y=2, z=-307}, {name = "moretrees:palm_sapling"})
|
||||
minetest.place_node({x=717, y=2, z=-318}, {name = "moretrees:palm_sapling"})
|
||||
minetest.place_node({x=723, y=2, z=-320}, {name = "moretrees:palm_sapling"})
|
||||
|
||||
minetest.place_node({x=645, y=26, z=-314}, {name="moretrees:date_palm_sapling"})
|
||||
minetest.place_node({x=653, y=26, z=-322}, {name="moretrees:date_palm_sapling"})
|
||||
minetest.place_node({x=649, y=26, z=-334}, {name="moretrees:date_palm_sapling"})
|
||||
minetest.place_node({x=662, y=26, z=-342}, {name="moretrees:date_palm_sapling"})
|
||||
|
||||
minetest.place_node({x=672, y=5, z=-305}, {name="moretrees:oak_sapling"})
|
||||
minetest.place_node({x=690, y=6, z=-322}, {name="moretrees:oak_sapling"})
|
||||
minetest.place_node({x=695, y=7, z=-335}, {name="moretrees:oak_sapling"})
|
||||
minetest.place_node({x=699, y=4, z=-301}, {name="moretrees:oak_sapling"})
|
||||
|
||||
minetest.place_node({x=751, y=5, z=-254}, {name="moretrees:apple_tree_sapling"})
|
||||
minetest.place_node({x=729, y=3, z=-275}, {name="moretrees:apple_tree_sapling"})
|
||||
minetest.place_node({x=747, y=4, z=-270}, {name="moretrees:apple_tree_sapling"})
|
||||
|
||||
minetest.place_node({x=671, y=5, z=-283}, {name="default:junglesapling"})
|
||||
minetest.place_node({x=680, y=4, z=-287}, {name="default:junglesapling"})
|
||||
minetest.place_node({x=702, y=4, z=-288}, {name="default:junglesapling"})
|
||||
|
||||
minetest.place_node({x=646, y=12, z=-199}, {name="moretrees:spruce_sapling"})
|
||||
minetest.place_node({x=644, y=14, z=-177}, {name="moretrees:spruce_sapling"})
|
||||
minetest.place_node({x=678, y=9, z=-211}, {name="moretrees:spruce_sapling"})
|
||||
minetest.place_node({x=663, y=10, z=-215}, {name="moretrees:spruce_sapling"})
|
||||
|
||||
minetest.place_node({x=637, y=3, z=-263}, {name="moretrees:sequoia_sapling"})
|
||||
minetest.place_node({x=625, y=3, z=-250}, {name="moretrees:sequoia_sapling"})
|
||||
minetest.place_node({x=616, y=3, z=-233}, {name="moretrees:sequoia_sapling"})
|
||||
minetest.place_node({x=635, y=3, z=-276}, {name="moretrees:sequoia_sapling"})
|
||||
minetest.place_node({x=681, y=11, z=-260}, {name="moretrees:sequoia_sapling"})
|
||||
minetest.place_node({x=682, y=10, z=-247}, {name="moretrees:sequoia_sapling"})
|
||||
|
||||
minetest.place_node({x=737, y=7, z=-195}, {name="moretrees:cedar_sapling"})
|
||||
minetest.place_node({x=720, y=8, z=-189}, {name="moretrees:cedar_sapling"})
|
||||
minetest.place_node({x=704, y=7, z=-187}, {name="moretrees:cedar_sapling"})
|
||||
|
||||
minetest.place_node({x=731, y=2, z=-227}, {name="moretrees:poplar_sapling"})
|
||||
minetest.place_node({x=721, y=2, z=-233}, {name="moretrees:poplar_sapling"})
|
||||
minetest.place_node({x=712, y=1, z=-237}, {name="moretrees:poplar_sapling"})
|
||||
minetest.place_node({x=743, y=3, z=-228}, {name="moretrees:poplar_small_sapling"})
|
||||
minetest.place_node({x=750, y=3, z=-230}, {name="moretrees:poplar_small_sapling"})
|
||||
minetest.place_node({x=731, y=5, z=-233}, {name="moretrees:poplar_small_sapling"})
|
||||
|
||||
minetest.place_node({x=702, y=2, z=-274}, {name="moretrees:birch_sapling"})
|
||||
minetest.place_node({x=697, y=2, z=-271}, {name="moretrees:birch_sapling"})
|
||||
minetest.place_node({x=696, y=2, z=-264}, {name="moretrees:birch_sapling"})
|
||||
minetest.place_node({x=710, y=2, z=-265}, {name="moretrees:birch_sapling"})
|
||||
|
||||
minetest.place_node({x=707, y=8, z=-247}, {name="moretrees:fir_sapling"})
|
||||
minetest.place_node({x=699, y=10, z=-254}, {name="moretrees:fir_sapling"})
|
||||
minetest.place_node({x=729, y=5, z=-261}, {name="moretrees:fir_sapling"})
|
||||
minetest.place_node({x=732, y=5, z=-252}, {name="moretrees:fir_sapling"})
|
||||
minetest.place_node({x=741, y=4, z=-262}, {name="moretrees:fir_sapling"})
|
||||
|
||||
minetest.place_node({x=751, y=2, z=-286}, {name="moretrees:willow_sapling"})
|
||||
|
||||
minetest.place_node({x=760, y=5, z=-223}, {name="moretrees:rubber_tree_sapling"})
|
||||
minetest.place_node({x=762, y=5, z=-230}, {name="moretrees:rubber_tree_sapling"})
|
||||
minetest.place_node({x=766, y=5, z=-243}, {name="moretrees:rubber_tree_sapling"})
|
||||
minetest.place_node({x=764, y=6, z=-252}, {name="moretrees:rubber_tree_sapling"})
|
||||
end
|
||||
})
|
||||
|
||||
--[[
|
||||
The following is a search/replace command suitable for vi (/vim) or sed, to convert minetest log
|
||||
messages to equivalent lua commands:
|
||||
|
||||
s/.*\(\(moretrees\|default\)[^ ]*\) at (\([-0-9]\+\),\([-0-9]\+\),\([-0-9]\+\)).*/\t\tminetest.place_node({x=\3, y=\4, z=\5}, {name="\1"})/
|
||||
|
||||
E.g. a minetest log line of the following kind:
|
||||
2016-07-03 11:30:50: ACTION[Server]: singleplayer places node moretrees:rubber_tree_sapling at (760,5,-223)
|
||||
Becomes:
|
||||
minetest.place_node({x=760, y=5, z=-223}, {name="moretrees:rubber_tree_sapling"})
|
||||
(Except that the example log line above has an extra space added, so it won't be converted)
|
||||
|
||||
vi/vim users: Add the minetest log lines to this file, then enter the following command, with
|
||||
<expression> replaced with the search/replace expression above.
|
||||
:%<expression>
|
||||
|
||||
sed users: Add the minetest log lines to this file, then execute the following command at the shell
|
||||
prompt with <expression> replaced by the search/replace expression above. Don't forget the
|
||||
single-quotes.
|
||||
sed '<expression>' < screenshot.lua > screenshot-new.lua
|
||||
|
||||
Windows users: You're probably out of luck. And the effort of doing such a thing is probably
|
||||
larger anyway than the effort of copying an existing line and typing things manually.
|
||||
]]
|
||||
|
BIN
screenshot.png
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 101 KiB |
BIN
textures/moretrees_poplar_leaves.png
Normal file
After Width: | Height: | Size: 563 B |
BIN
textures/moretrees_poplar_sapling.png
Normal file
After Width: | Height: | Size: 447 B |
BIN
textures/moretrees_poplar_small_sapling.png
Normal file
After Width: | Height: | Size: 347 B |
BIN
textures/moretrees_poplar_trunk-1.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
textures/moretrees_poplar_trunk.png
Normal file
After Width: | Height: | Size: 980 B |
BIN
textures/moretrees_poplar_trunk_top.png
Normal file
After Width: | Height: | Size: 751 B |
BIN
textures/moretrees_poplar_wood.png
Normal file
After Width: | Height: | Size: 726 B |
@ -1,25 +1,24 @@
|
||||
|
||||
Elevation Temperature Nearness to Nearby What nodes Perlin Avoid
|
||||
Tree type (m) (approx., °C) some node water to spawn on seed diff radius
|
||||
-----------------------------------------------------------------------------------------------------------------------
|
||||
jungle tree - 5 to +10 above +15 water, 20 10 dirt_with_grass 329 5
|
||||
fir above +25 -20 to +10 n/a n/a dirt_with_grass 359 8
|
||||
firs on snow above +15 -20 to +10 n/a n/a snow:snow 359 8
|
||||
palm - 1 to + 1 +15 to +32 water, 15 10 sand 330 5
|
||||
date palm - 1 to +10 above +39 water, 20h,20v 100 desert_sand 339 10
|
||||
date palm +11 to +30 above +39 water, 1h,30v 1 desert_sand 340 10
|
||||
apple + 1 to +10 +23 to +32 n/a n/a dirt_with grass 331 15
|
||||
oak 0 to +10 + 4 to +16 n/a n/a dirt_with grass 332 15
|
||||
sequoia 0 to +10 -30 to +50 n/a n/a dirt_with grass 333 10
|
||||
birch +10 to +15 -20 to +10 n/a n/a dirt_with grass 334 5
|
||||
spruce above +20 -20 to +10 n/a n/a dirt_with grass 335 10
|
||||
cedar n/a n/a water, 15 5 dirt_with grass 336 10
|
||||
willow - 5 to + 5 n/a water, 15 5 dirt_with grass 337 20
|
||||
acacia n/a n/a n/a n/a dirt_with_grass,
|
||||
desert_sand n/a 15
|
||||
rubber - 5 to + 5 above +32 water, 15 10 dirt_with_grass 338 20
|
||||
Elevation Temperature Nearness to Nearby What nodes Perlin Avoid
|
||||
Tree type (m) (approx., °C) some node water to spawn on seed diff radius
|
||||
--------------------------------------------------------------------------------------------------------------
|
||||
jungle tree - 5 to +10 above +15 water, 20 10 dirt_with_grass 329 5
|
||||
fir above +25 -20 to +10 n/a n/a dirt_with_grass 359 8
|
||||
firs on snow above +15 -20 to +10 n/a n/a snow:snow 359 8
|
||||
palm - 1 to + 1 +15 to +32 water, 15 10 sand 330 5
|
||||
date palm - 1 to +10 above +39 water, 20h,20v 100 desert_sand 339 10
|
||||
date palm +11 to +30 above +39 water, 1h,30v 1 desert_sand 340 10
|
||||
apple + 1 to +10 +23 to +32 n/a n/a dirt_with grass 331 15
|
||||
oak 0 to +10 + 4 to +16 n/a n/a dirt_with grass 332 15
|
||||
sequoia 0 to +10 -30 to +50 n/a n/a dirt_with grass 333 10
|
||||
birch +10 to +15 -20 to +10 n/a n/a dirt_with grass 334 5
|
||||
spruce above +20 -20 to +10 n/a n/a dirt_with grass 335 10
|
||||
cedar n/a n/a water, 15 5 dirt_with grass 336 10
|
||||
willow - 5 to + 5 n/a water, 15 5 dirt_with grass 337 20
|
||||
rubber - 5 to + 5 above +32 water, 15 10 dirt_with_grass 338 20
|
||||
poplar n/a -10 to +26 water, 15h,5v 1 dirt_with_grass 341,342,343 10
|
||||
|
||||
beech n/a n/a n/a n/a dirt_with_grass 2 10
|
||||
beech n/a n/a n/a n/a dirt_with_grass 2 10
|
||||
|
||||
|
||||
Notes:
|
||||
@ -28,10 +27,6 @@ Notes:
|
||||
Beech trees are meant to replace default trees, but are themselves disabled by default. They grow in the same areas
|
||||
as the default ones do, and under the same conditions.
|
||||
|
||||
Acacia trees depend on humidity as their primary control, and they don't use the fertile ground option. They grow near
|
||||
the edges of a desert biome, occasionally into the grass beyond, and anywhere else on desert sand or dirt with grass,
|
||||
where the humidity is low (but not bone dry).
|
||||
|
||||
Fir trees appear in a snow biome only with older versions of SPlizard's Snow Biomes mod. In more recent versions,
|
||||
these trees will not grow, due to an engine bug.
|
||||
|
||||
|
@ -43,6 +43,37 @@ moretrees.oak_model={
|
||||
fruit_chance=3,
|
||||
}
|
||||
|
||||
moretrees.poplar_model={
|
||||
axiom="TTTaaBCCCCCCCCCCCcccBBB[[f]&&G++f++Gf++Gf++Gf++G--]G[[f]&&G++f++Gf++Gf++Gf++G--]Gff",
|
||||
rules_a="T",
|
||||
rules_b="[[T]&&G++f++ff++ff++ff++f--]G",
|
||||
rules_c="[[T]&&G++f++ff++ff++ff++f--G++[d]G[d]G++G[d]G[d]G[d]G++G[d]G[d]G[d]G++G[d]G[d]G[d]G++G[d]G]G",
|
||||
rules_d="f",
|
||||
trunk="air",
|
||||
trunk="moretrees:poplar_trunk",
|
||||
leaves="moretrees:poplar_leaves",
|
||||
angle=45,
|
||||
iterations=0,
|
||||
random_level=0,
|
||||
trunk_type="single",
|
||||
thin_branches=false,
|
||||
}
|
||||
|
||||
moretrees.poplar_small_model={
|
||||
axiom="TT[T]BCCCCccBBff",
|
||||
rules_a="T",
|
||||
rules_b="[[f]&&G++f++Gf++Gf++Gf++G--]G",
|
||||
rules_c="[[T]&&G++f++[d]Gf++[d]Gf++[d]Gf++[d]G--]G",
|
||||
rules_d="f",
|
||||
trunk="moretrees:poplar_trunk",
|
||||
leaves="moretrees:poplar_leaves",
|
||||
angle=45,
|
||||
iterations=0,
|
||||
random_level=0,
|
||||
trunk_type="single",
|
||||
thin_branches=false,
|
||||
}
|
||||
|
||||
moretrees.sequoia_model={
|
||||
axiom="FFFFFFFFFFddccA///cccFddcFA///ddFcFA/cFFddFcdBddd/A/ccdcddd/ccAddddcFBcccAccFdFcFBcccc/BFdFFcFFdcccc/B",
|
||||
rules_a="[&&&GGF[++^FFdd][--&Fddd]//Fdd[+^Fd][--&Fdd]]////[&&&GGF[++^FFdd][--&Fddd]//Fdd[+^Fd][--&Fdd]]////[&&&GGF[++^FFdd][--&Fddd]//Fdd[+^Fd][--&Fdd]]",
|
||||
@ -199,37 +230,6 @@ moretrees.willow_model={
|
||||
thin_branches=true
|
||||
}
|
||||
|
||||
moretrees.acacia_model={
|
||||
axiom="FFFFFFccccA",
|
||||
rules_a = "[B]//[B]//[B]//[B]",
|
||||
rules_b = "&TTTT&TT^^G&&----GGGGGG++GGG++" -- line up with the "canvas" edge
|
||||
.."fffffffGG++G++" -- first layer, drawn in a zig-zag raster pattern
|
||||
.."Gffffffff--G--"
|
||||
.."ffffffffG++G++"
|
||||
.."fffffffff--G--"
|
||||
.."fffffffff++G++"
|
||||
.."fffffffff--G--"
|
||||
.."ffffffffG++G++"
|
||||
.."Gffffffff--G--"
|
||||
.."fffffffGG"
|
||||
.."^^G&&----GGGGGGG++GGGGGG++" -- re-align to second layer canvas edge
|
||||
.."ffffGGG++G++" -- second layer
|
||||
.."GGfffff--G--"
|
||||
.."ffffffG++G++"
|
||||
.."fffffff--G--"
|
||||
.."ffffffG++G++"
|
||||
.."GGfffff--G--"
|
||||
.."ffffGGG",
|
||||
rules_c = "/",
|
||||
trunk="default:acacia_tree",
|
||||
leaves="default:acacia_leaves",
|
||||
angle=45,
|
||||
iterations=3,
|
||||
random_level=0,
|
||||
trunk_type="single",
|
||||
thin_branches=true,
|
||||
}
|
||||
|
||||
moretrees.rubber_tree_model={
|
||||
axiom="FFFFA",
|
||||
rules_a="[&FFBFA]////[&BFFFA]////[&FBFFA]",
|
||||
|