Convert the modpack into a standalone game for the Minetest engine
Integrated into the game is most of minetest_game as the stable base
This commit is contained in:
committed by
Vanessa Dannenberg
parent
11adf56b75
commit
4394beec6a
614
mods/stained_glass/LICENSE
Normal file
614
mods/stained_glass/LICENSE
Normal file
@@ -0,0 +1,614 @@
|
||||
LICENSING INFORMATION
|
||||
|
||||
For everything but the bucket textures, GPL 2.0
|
||||
|
||||
-----
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the 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 Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
==============================================================================
|
||||
|
||||
For the bucket textures, CC-BY-SA 3.0
|
||||
|
||||
-----
|
||||
|
||||
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.
|
||||
|
||||
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
|
||||
|
||||
"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.
|
||||
"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.
|
||||
"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.
|
||||
"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.
|
||||
"License Elements" means the following high-level license attributes as
|
||||
selected by Licensor and indicated in the title of this License: Attribution,
|
||||
ShareAlike.
|
||||
"Licensor" means the individual, individuals, entity or entities that
|
||||
offer(s) the Work under the terms of this License.
|
||||
"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.
|
||||
"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.
|
||||
"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.
|
||||
"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.
|
||||
"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:
|
||||
|
||||
to Reproduce the Work, to incorporate the Work into one or more
|
||||
Collections, and to Reproduce the Work as incorporated in the Collections;
|
||||
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.";
|
||||
to Distribute and Publicly Perform the Work including as incorporated in
|
||||
Collections; and,
|
||||
to Distribute and Publicly Perform Adaptations.
|
||||
|
||||
For the avoidance of doubt:
|
||||
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;
|
||||
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,
|
||||
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:
|
||||
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
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
|
||||
|
||||
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.
|
||||
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
|
||||
|
||||
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.
|
||||
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.
|
||||
If any provision of this License is invalid or unenforceable under
|
||||
applicable law, it shall not affect the validity or enforceability of the
|
||||
remainder of the terms of this License, and without further action by the
|
||||
parties to this agreement, such provision shall be reformed to the minimum
|
||||
extent necessary to make such provision valid and enforceable.
|
||||
No term or provision of this License shall be deemed waived and no breach
|
||||
consented to unless such waiver or consent shall be in writing and signed by
|
||||
the party to be charged with such waiver or consent.
|
||||
This License constitutes the entire agreement between the parties with
|
||||
respect to the Work licensed here. There are no understandings, agreements or
|
||||
representations with respect to the Work not specified here. Licensor shall not
|
||||
be bound by any additional provisions that may appear in any communication from
|
||||
You. This License may not be modified without the mutual written agreement of
|
||||
the Licensor and You.
|
||||
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.
|
||||
|
||||
Creative Commons Notice
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Creative Commons may be contacted at http://creativecommons.org/.
|
13
mods/stained_glass/LICENSE.txt
Normal file
13
mods/stained_glass/LICENSE.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
+---- zlib/libpng license----+
|
||||
|
||||
Copyright (c) 2012 Calinou
|
||||
|
||||
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
|
||||
|
||||
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
|
||||
|
||||
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
|
||||
|
||||
3. This notice may not be removed or altered from any source distribution.
|
195
mods/stained_glass/README.md
Normal file
195
mods/stained_glass/README.md
Normal file
@@ -0,0 +1,195 @@
|
||||
|
||||
Doyousketch2's Stained Glass mod
|
||||
ver 1.7
|
||||
|
||||
Image: http://oi47.tinypic.com/hst6s3.jpg
|
||||
|
||||
With alpha enabled: http://oi44.tinypic.com/5vraxf.jpg
|
||||
|
||||
==============================================================================
|
||||
Originally developed by Eli Innes/Doyousketch2, and distributed
|
||||
under GPL v2. Further changes by VanessaE (removing from creative inventory)
|
||||
and Jeremy Anderson (fixing craft recipes, renaming blocks)
|
||||
|
||||
==============================================================================
|
||||
|
||||
Dependencies: VanessaE's Unified Dyes, Calinou's More Blocks
|
||||
|
||||
to Install:
|
||||
|
||||
Unzip the mod file you just downloaded.
|
||||
|
||||
it should be something like: Doyousketch2-stained_glass-1.1.zip
|
||||
or stained_glass-master.zip, depending on where you downloaded it from
|
||||
|
||||
rename the new folder that looks like:
|
||||
Doyousketch2-stained_glass-1.1 -or- stained_glass-master
|
||||
to simply read "stained_glass"
|
||||
|
||||
then move it into your Minetest mods folder.
|
||||
|
||||
Even better, get stained_glass from one of the github pages:
|
||||
https://github.com/doyousketch2/stained_glass
|
||||
https://github.com/VanessaE/stained_glass
|
||||
https://github.com/andersje/stained_glass
|
||||
|
||||
-- this will get you the latest version of the code, and you
|
||||
can update at any time by doing a git pull
|
||||
|
||||
|
||||
|
||||
==============================================================================
|
||||
To turn off types of glass, alter settings.txt in the stained_glass directory.
|
||||
By default, all six (SIX!) types of stained_glass are enabled: regular (based on super_glow_glass), med_glow (based on glow_glass) and no-glow (Based on default:glass), trap regular (based on trap_super_glow_glass), trap med_glow (based on trap_glow_glass) and trap_noglow (based on trapglass)
|
||||
|
||||
stained_glass.full_light = true
|
||||
stained_glass.med_light = true
|
||||
stained_glass.no_light = true
|
||||
stained_glass.trap_full_light = true
|
||||
stained_glass.trap_med_light = true
|
||||
stained_glass.trap_no_light = true
|
||||
|
||||
Setting any of these to false will prevent that type of stained_glass from being loaded. If you set them all to false, you won't get any stained_glass. Mix and match as you choose -- you can turn on only one, if you wish, and it will work just fine.
|
||||
|
||||
One of the high points of trap stained glass is that liquids flow through it -- making illuminated waterfalls a possibility.
|
||||
|
||||
|
||||
==============================================================================
|
||||
|
||||
(use trap super glow glass or trap glow glass or trapglass -- now available in moreblocks -- to make the trap variant of this)
|
||||
|
||||
Recipe for standard colors:
|
||||
|
||||
image: http://oi50.tinypic.com/1ibs7c.jpg
|
||||
|
||||
dye
|
||||
super glow glass
|
||||
super glow glass
|
||||
super glow glass
|
||||
|
||||
|
||||
|
||||
Recipe for pastel colors:
|
||||
|
||||
image: http://oi45.tinypic.com/2wbvkti.jpg
|
||||
|
||||
light dye
|
||||
white paint
|
||||
super glow glass
|
||||
super glow glass
|
||||
super glow glass
|
||||
|
||||
Recipe for faint colors:
|
||||
|
||||
image: http://oi45.tinypic.com/2wbvkti.jpg
|
||||
|
||||
light dye
|
||||
white paint
|
||||
white paint
|
||||
super glow glass
|
||||
super glow glass
|
||||
super glow glass
|
||||
|
||||
|
||||
All recipes produce three glowing stained glass blocks.
|
||||
|
||||
|
||||
==============================================================================
|
||||
|
||||
|
||||
The Palette includes:
|
||||
|
||||
red, orange, yellow, lime, green, aqua
|
||||
cyan, skyblue, blue, violet, magenta, redviolet
|
||||
|
||||
Full & half-saturation, medium and dark shades have been included
|
||||
as well as light, pastel, and faint tints.
|
||||
|
||||
Look at settings.txt to see how you can enable/disable full-glow, half-glow and no-glow blocks -- tested in all combinations. enjoy.
|
||||
|
||||
|
||||
==============================================================================
|
||||
|
||||
|
||||
Misc. Notes
|
||||
-----------
|
||||
|
||||
Blocks are now available by name:
|
||||
e.g. /giveme stained_glass:orange 3 # get 3 orange sg blocks
|
||||
or /giveme stained_glass:light_yellow
|
||||
or /giveme stained_glass:pastel_yellow
|
||||
or /giveme stained_glass:faint_yellow
|
||||
or /giveme stained_glass:yellow
|
||||
|
||||
or /giveme stained_glass:lowglow_yellow
|
||||
or /giveme stained_glass:noglow_dark_green
|
||||
or /giveme stained_glass:trap_noglow_dark_green
|
||||
or /giveme stained_glass:trap_lowglow_yellow
|
||||
or /giveme stained_glass:trap_medium_aqua
|
||||
|
||||
You get the idea.
|
||||
|
||||
|
||||
NUMERIC CODES FOR BLOCKS (this is the old way of coding these blocks
|
||||
developed by Doyousketch2)
|
||||
|
||||
Please don't try to use /give commands, the items are now in numerical format,
|
||||
and it would be tough to try to explain it.
|
||||
|
||||
If you really want to try, it goes like this:
|
||||
|
||||
yellow = 1
|
||||
lime = 2
|
||||
green = 3
|
||||
aqua = 4
|
||||
cyan = 5
|
||||
skyblue = 6
|
||||
blue = 7
|
||||
violet = 8
|
||||
magenta = 9
|
||||
redviolet = 10
|
||||
red = 11
|
||||
orange = 12
|
||||
|
||||
|
||||
however, minetest sees it in the order 10, 11, 12, 1, 2, 3...
|
||||
so redviolet actually comes first.
|
||||
|
||||
and for whatever reason, minetest doesn't take blank spaces _ into consideration.
|
||||
so the attributes just act like the next column of digits.
|
||||
|
||||
I had to offset them to keep it all in order.
|
||||
|
||||
Brightness:
|
||||
|
||||
dark = 3
|
||||
medium = 4
|
||||
full = 5
|
||||
|
||||
Saturation:
|
||||
|
||||
50% = 6
|
||||
full = 7
|
||||
|
||||
so "Red, dark 50%" would be: stained_glass:11_3_6
|
||||
"Blue, medium full-saturation" is: stained_glass:7_4_7
|
||||
|
||||
then we get to the bright colors.
|
||||
|
||||
same hue numbers, 1 - 12
|
||||
but the attributes are:
|
||||
|
||||
light = 8
|
||||
pastel = 9
|
||||
faint = 91
|
||||
|
||||
so "Violet, light" is: stained_glass:8_8
|
||||
and ""Orange, faint" is: stained_glass:12_91
|
||||
|
||||
I think this is too much to keep track of, but I hope this explains things in case anybody else is developing code.
|
||||
For everyday purposes, let the computer keep track of the registered nodes, and just pick them out with the menu instead.
|
||||
|
||||
|
||||
==============================================================================
|
||||
|
||||
|
119
mods/stained_glass/changelog.txt
Normal file
119
mods/stained_glass/changelog.txt
Normal file
@@ -0,0 +1,119 @@
|
||||
|
||||
Changelog
|
||||
|
||||
---------
|
||||
ver 1.7
|
||||
Sat 1 Sep 2013
|
||||
I like trapglass, so _all_ variants of stained_glass are now available as (identical) trapglass variants. also, ability to ditch trapglass blocks via settings.txt added. In fact, you can now pick and choose which variants of stained_glass you wish to enable.
|
||||
|
||||
ver 1.6
|
||||
Fri 30 Aug 2013
|
||||
added configfile settings.txt to allow disabling of full_light (super_glow_glass-based), med_light (glow_glass-based) and no_light (default:glass) blocks. just set the relevant fields to 'false' and they will not be loaded when you start the game.
|
||||
|
||||
ver 1.5.1
|
||||
Mon 26 Aug 2013
|
||||
prompted by VanessaE's initial cleanup, MUCH cleanup of the code. No need to have > 1 file anymore.
|
||||
|
||||
ver 1.5
|
||||
Sun 25 Aug 2013
|
||||
added low-glow (brightness 11) and noglow (brightness 0) stained glass blows, using glow_glass and regular glass accordingly.
|
||||
|
||||
ver 1.4
|
||||
Thu 22 Aug 2013
|
||||
*phew* made aliases for all numeric block names to map to new color-name based scheme
|
||||
updated craft recipes to work with new dyes format
|
||||
rejiggered whole system of block and craft registration
|
||||
set to have all blocks at LIGHT_MAX -- since they were manually specifying '14' as a light level before (which is current max)
|
||||
nothing returns buckets anymore, because you don't need buckets to make the dyes to make the blocks.
|
||||
|
||||
---------
|
||||
|
||||
ver 1.1
|
||||
|
||||
Sun 24 Feb 2013 05:26:29 AM EST
|
||||
|
||||
Faint was too faint in-game, so I made 'em look more the way I expected.
|
||||
|
||||
Fixed recipes for pastel and faint blocks.
|
||||
|
||||
Also, made certain the faint blocks return two buckets instead of only one.
|
||||
|
||||
---------
|
||||
|
||||
|
||||
ver 1.0
|
||||
|
||||
Sun 24 Feb 2013 12:13:17 AM EST
|
||||
|
||||
|
||||
Think everything's in order.
|
||||
|
||||
|
||||
---------
|
||||
|
||||
|
||||
ver 0.9
|
||||
|
||||
Sat 23 Feb 2013 05:23:17 5M EST
|
||||
|
||||
Added light colors.
|
||||
Attempted to order colors by hue.
|
||||
Turned out to be a lot harder than imagined.
|
||||
|
||||
alpha-numeric order is goofy.
|
||||
|
||||
I was thinking it was doing: 1, 10, 11, 12, 2, 3, 4...
|
||||
but it was doing: 10, 11, 12, 1, 2, 3, 4...
|
||||
|
||||
---------
|
||||
|
||||
|
||||
ver 0.8
|
||||
|
||||
Sat 23 Feb 2013 01:18:24 AM EST
|
||||
|
||||
Fixed missing comma in script.
|
||||
|
||||
|
||||
---------
|
||||
|
||||
|
||||
ver 0.7
|
||||
|
||||
Sat 23 Feb 2013 01:01:22 AM EST
|
||||
|
||||
Added full saturation Medium and Dark shades.
|
||||
|
||||
|
||||
---------
|
||||
|
||||
|
||||
ver 0.6
|
||||
|
||||
Fri 22 Feb 2013 08:27:53 PM EST
|
||||
|
||||
Fixed a bug where I forgot a comma in the script.
|
||||
Nothing major, but it wouldn't load unless it was in the right spot.
|
||||
|
||||
The blocks light up nice and bright. Quite saturated.
|
||||
Perhaps too intense for my purposes.
|
||||
|
||||
Will create more subdued colors, much more like actual stained glass.
|
||||
Especially pastels, and flesh tones.
|
||||
|
||||
Perhaps turn the light intensity down.
|
||||
Maybe make some/all of them out of standard glow glass instead.
|
||||
|
||||
|
||||
---------
|
||||
|
||||
|
||||
ver 0.5
|
||||
|
||||
Fri 22 Feb 2013 06:42:24 PM EST
|
||||
|
||||
Essentially the first version, but I'm starting at ver 0.5 because I want to check for bugs before it's released.
|
||||
|
||||
Has the Full saturation colors included. (except for yellow, as super-glow-glass is already)
|
||||
Haven't decided if/when I'll include the other colors.
|
||||
Perhaps some/all eventually.
|
148
mods/stained_glass/colors.txt
Normal file
148
mods/stained_glass/colors.txt
Normal file
@@ -0,0 +1,148 @@
|
||||
|
||||
|
||||
Full-saturation colors:
|
||||
-----------------------
|
||||
|
||||
|
||||
red 255, 0, 0 stained_glass_red.png
|
||||
orange 255,127, 0 stained_glass_orange.png
|
||||
lime 127,255, 0 stained_glass_lime.png
|
||||
green 0,255, 0 stained_glass_green.png
|
||||
aqua 0,255,127 stained_glass_aqua.png
|
||||
cyan 0,255,255 stained_glass_cyan.png
|
||||
skyblue 0,127,255 stained_glass_skyblue.png
|
||||
blue 0, 0,255 stained_glass_blue.png
|
||||
violet 127, 0,255 stained_glass_violet.png
|
||||
magenta 255, 0,255 stained_glass_magenta.png
|
||||
redviolet 255, 0,127 stained_glass_redviolet.png
|
||||
|
||||
|
||||
medium red 169, 0, 0 stained_glass_medium_red.png
|
||||
medium orange 169, 84, 0 stained_glass_medium_orange.png
|
||||
medium yellow 169,169, 0 stained_glass_medium_yellow.png
|
||||
medium lime 84,169, 0 stained_glass_medium_lime.png
|
||||
medium green 0,169, 0 stained_glass_medium_green.png
|
||||
medium aqua 0,169, 84 stained_glass_medium_aqua.png
|
||||
medium cyan 0,169,169 stained_glass_medium_cyan.png
|
||||
medium skyblue 0, 84,169 stained_glass_medium_skyblue.png
|
||||
medium blue 0, 0,169 stained_glass_medium_blue.png
|
||||
medium violet 84, 0,169 stained_glass_medium_violet.png
|
||||
medium magenta 169, 0,169 stained_glass_medium_magenta.png
|
||||
medium redviolet 169, 0, 84 stained_glass_medium_redviolet.png
|
||||
|
||||
|
||||
dark red 84, 0, 0 stained_glass_dark_red.png
|
||||
dark orange 84, 42, 0 stained_glass_dark_orange.png
|
||||
dark yellow 84, 84, 0 stained_glass_dark_yellow.png
|
||||
dark lime 42, 84, 0 stained_glass_dark_lime.png
|
||||
dark green 0, 84, 0 stained_glass_dark_green.png
|
||||
dark aqua 0, 84, 42 stained_glass_dark_aqua.png
|
||||
dark cyan 0, 84, 84 stained_glass_dark_cyan.png
|
||||
dark skyblue 0, 42, 84 stained_glass_dark_skyblue.png
|
||||
dark blue 0, 0, 84 stained_glass_dark_blue.png
|
||||
dark violet 42, 0, 84 stained_glass_dark_violet.png
|
||||
dark magenta 84, 0, 84 stained_glass_dark_magenta.png
|
||||
dark redviolet 84, 0, 42 stained_glass_dark_redviolet.png
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Low-saturation colors:
|
||||
----------------------
|
||||
|
||||
|
||||
red 50% saturation 191, 65, 65 stained_glass_red_s50.png
|
||||
orange 50% saturation 191,127, 65 stained_glass_orange_s50.png
|
||||
yellow 50% saturation 191,191, 65 stained_glass_yellow_s50.png
|
||||
lime 50% saturation 127,191, 65 stained_glass_lime_s50.png
|
||||
green 50% saturation 65,191, 65 stained_glass_green_s50.png
|
||||
aqua 50% saturation 65,191,127 stained_glass_aqua_s50.png
|
||||
cyan 50% saturation 65,191,191 stained_glass_cyan_s50.png
|
||||
skyblue 50% saturation 65,127,191 stained_glass_skyblue_s50.png
|
||||
blue 50% saturation 65, 65,191 stained_glass_blue_s50.png
|
||||
violet 50% saturation 127, 65,191 stained_glass_violet_s50.png
|
||||
magenta 50% saturation 191, 65,191 stained_glass_magenta_s50.png
|
||||
redviolet 50% saturation 191, 65,127 stained_glass_redviolet_s50.png
|
||||
|
||||
|
||||
|
||||
medium red 50% saturation 126, 42, 42 stained_glass_medium_red_s50.png
|
||||
medium orange 50% saturation 126, 84, 42 stained_glass_medium_orange_s50.png
|
||||
medium yellow 50% saturation 126,126, 42 stained_glass_medium_yellow_s50.png
|
||||
medium lime 50% saturation 86,126, 42 stained_glass_medium_lime_s50.png
|
||||
medium green 50% saturation 42,126, 42 stained_glass_medium_green_s50.png
|
||||
medium aqua 50% saturation 42,126, 84 stained_glass_medium_aqua_s50.png
|
||||
medium cyan 50% saturation 42,126,126 stained_glass_medium_cyan_s50.png
|
||||
medium skyblue 50% saturation 42, 84,126 stained_glass_medium_skyblue_s50.png
|
||||
medium blue 50% saturation 42, 42,126 stained_glass_medium_blue_s50.png
|
||||
medium violet 50% saturation 86, 42,126 stained_glass_medium_violet_s50.png
|
||||
medium magenta 50% saturation 126, 42,126 stained_glass_medium_magenta_s50.png
|
||||
medium redviolet 50% saturation 126, 42, 84 stained_glass_medium_redviolet_s50.png
|
||||
|
||||
|
||||
|
||||
dark red 50% saturation 63, 21, 21 stained_glass_dark_red_s50.png
|
||||
dark orange 50% saturation 63, 42, 21 stained_glass_dark_orange_s50.png
|
||||
dark yellow 50% saturation 63, 63, 21 stained_glass_dark_yellow_s50.png
|
||||
dark lime 50% saturation 42, 63, 21 stained_glass_dark_lime_s50.png
|
||||
dark green 50% saturation 21, 63, 21 stained_glass_dark_green_s50.png
|
||||
dark aqua 50% saturation 21, 63, 42 stained_glass_dark_aqua_s50.png
|
||||
dark cyan 50% saturation 21, 63, 63 stained_glass_dark_cyan_s50.png
|
||||
dark skyblue 50% saturation 21, 42, 63 stained_glass_dark_skyblue_s50.png
|
||||
dark blue 50% saturation 21, 21, 63 stained_glass_dark_blue_s50.png
|
||||
dark violet 50% saturation 42, 21, 63 stained_glass_dark_violet_s50.png
|
||||
dark magenta 50% saturation 63, 21, 63 stained_glass_dark_magenta_s50.png
|
||||
dark redviolet 50% saturation 63, 21, 42 stained_glass_dark_redviolet_s50.png
|
||||
|
||||
|
||||
|
||||
|
||||
Light colors:
|
||||
----------------------
|
||||
|
||||
|
||||
light red 255,121,121 stained_glass_light_red.png
|
||||
light orange 255,187,121 stained_glass_light_orange.png
|
||||
light yellow 253,255,121 stained_glass_light_yellow.png
|
||||
light lime 187,255,121 stained_glass_light_lime.png
|
||||
light green 121,255,121 stained_glass_light_green.png
|
||||
light aqua 121,255,187 stained_glass_light_aqua.png
|
||||
light cyan 121,253,255 stained_glass_light_cyan.png
|
||||
light skyblue 121,187,255 stained_glass_light_skyblue.png
|
||||
light blue 121,121,255 stained_glass_light_blue.png
|
||||
light violet 187,121,255 stained_glass_light_violet.png
|
||||
light magenta 255,121,253 stained_glass_light_magenta.png
|
||||
light redviolet 255,121,187 stained_glass_light_redviolet.png
|
||||
|
||||
|
||||
|
||||
pastel red 255,187,187 stained_glass_pastel_red.png
|
||||
pastel orange 255,221,187 stained_glass_pastel_orange.png
|
||||
pastel yellow 254,255,187 stained_glass_pastel_yellow.png
|
||||
pastel lime 221,255,187 stained_glass_pastel_lime.png
|
||||
pastel green 187,255,187 stained_glass_pastel_green.png
|
||||
pastel aqua 187,255,221 stained_glass_pastel_aqua.png
|
||||
pastel cyan 187,254,255 stained_glass_pastel_cyan.png
|
||||
pastel skyblue 187,221,255 stained_glass_pastel_skyblue.png
|
||||
pastel blue 187,187,255 stained_glass_pastel_blue.png
|
||||
pastel violet 221,187,255 stained_glass_pastel_violet.png
|
||||
pastel magenta 255,187,254 stained_glass_pastel_magenta.png
|
||||
pastel redviolet 255,187,221 stained_glass_pastel_redviolet.png
|
||||
|
||||
|
||||
|
||||
faint red 255,219,219 stained_glass_faint_red.png
|
||||
faint orange 255,237,219 stained_glass_faint_orange.png
|
||||
faint yellow 254,255,219 stained_glass_faint_yellow.png
|
||||
faint lime 237,255,219 stained_glass_faint_lime.png
|
||||
faint green 219,255,219 stained_glass_faint_green.png
|
||||
faint aqua 219,255,237 stained_glass_faint_aqua.png
|
||||
faint cyan 219,254,255 stained_glass_faint_cyan.png
|
||||
faint skyblue 219,237,255 stained_glass_faint_skyblue.png
|
||||
faint blue 227,227,255 stained_glass_faint_blue.png
|
||||
faint violet 237,219,255 stained_glass_faint_violet.png
|
||||
faint magenta 255,219,254 stained_glass_faint_magenta.png
|
||||
faint redviolet 255,219,237 stained_glass_faint_redviolet.png
|
||||
|
||||
|
16
mods/stained_glass/geany_run_script.sh
Normal file
16
mods/stained_glass/geany_run_script.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm $0
|
||||
|
||||
lua "init.lua"
|
||||
|
||||
echo "
|
||||
|
||||
------------------
|
||||
(program exited with code: $?)"
|
||||
|
||||
|
||||
echo "Press return to continue"
|
||||
#to be more compatible with shells like dash
|
||||
dummy_var=""
|
||||
read dummy_var
|
410
mods/stained_glass/init.lua
Normal file
410
mods/stained_glass/init.lua
Normal file
@@ -0,0 +1,410 @@
|
||||
--[[
|
||||
|
||||
Stained Glass
|
||||
|
||||
This mod provides luminescent stained glass blocks for Minetest 0.4.7+
|
||||
|
||||
Depends:
|
||||
[moreblocks] by Calinou
|
||||
[unifieddyes] by VanessaE
|
||||
|
||||
==============================================================================
|
||||
Sat 04 May 2013 01:52:35 PM EDT
|
||||
|
||||
Copyright (C) 2013, Eli Innis
|
||||
Email: doyousketch2 @ yahoo.com
|
||||
|
||||
Unified Dyes was released under GNU-GPL 2.0, see LICENSE for info.
|
||||
More Blocks was released under zlib/libpng for code and CC BY-SA 3.0 Unported for textures, see LICENSE.txt for info.
|
||||
|
||||
|
||||
Additional changes by VanessaEzekowitz in July 2013 to take all items
|
||||
out of creative inventory.
|
||||
|
||||
August 2013 -- Jeremy Anderson tries to get this working after the new color
|
||||
changes, and to resurrect the craft recipes. Still GPL'd as far as I'm concerned.
|
||||
|
||||
August 2013 -- rewritten a bit by VanessaEzekowitz to further condense the code.
|
||||
|
||||
January 2017 -- rewritten a bit more by Vanessa E. to use engine param2 colorization
|
||||
and place-then-paint creation of colors. To get the pastel colors,
|
||||
place super glow glass, right-click with dye to color it, then right-
|
||||
click with Moreblocks' "sweeper" to "brush off" some of the color. Do
|
||||
it again to change pastel to faint. Right click a pastel or faint with
|
||||
some dye to re-color it (you have to dig and re-place if you want to
|
||||
darken it). Crafting is no longer used to create the colors.
|
||||
|
||||
August 2018 -- altered to use proper colored itemstacks with crafting
|
||||
|
||||
==============================================================================
|
||||
]]--
|
||||
|
||||
stainedglass = {}
|
||||
stainedglass.old_static_nodes = {}
|
||||
|
||||
local myglow = LIGHT_MAX-3
|
||||
|
||||
minetest.register_node("stained_glass:stained_glass", {
|
||||
description = "Stained Glass",
|
||||
drawtype = "glasslike_framed_optional",
|
||||
tiles = { "stained_glass.png", "stained_glass_detail.png" },
|
||||
paramtype = "light",
|
||||
paramtype2 = "color",
|
||||
palette = "unifieddyes_palette_extended.png",
|
||||
sunlight_propagates = true,
|
||||
use_texture_alpha = true,
|
||||
light_source = myglow,
|
||||
is_ground_content = true,
|
||||
walkable = true,
|
||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, not_in_creative_inventory=1, ud_param2_colorable = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
on_construct = unifieddyes.on_construct,
|
||||
on_dig = unifieddyes.on_dig,
|
||||
})
|
||||
|
||||
minetest.override_item("moreblocks:super_glow_glass", {
|
||||
palette = "unifieddyes_palette_extended.png",
|
||||
airbrush_replacement_node = "stained_glass:stained_glass",
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3, ud_param2_colorable = 1},
|
||||
})
|
||||
|
||||
-- trap glass
|
||||
|
||||
minetest.register_node("stained_glass:stained_trap_glass", {
|
||||
description = "Stained Trap-glass",
|
||||
drawtype = "glasslike_framed_optional",
|
||||
tiles = { "stained_glass.png", "stained_glass_detail.png" },
|
||||
paramtype = "light",
|
||||
paramtype2 = "color",
|
||||
palette = "unifieddyes_palette_extended.png",
|
||||
sunlight_propagates = true,
|
||||
use_texture_alpha = true,
|
||||
light_source = myglow,
|
||||
is_ground_content = true,
|
||||
walkable = false,
|
||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, not_in_creative_inventory=1, ud_param2_colorable = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
on_construct = unifieddyes.on_construct,
|
||||
on_dig = unifieddyes.on_dig,
|
||||
})
|
||||
|
||||
minetest.override_item("moreblocks:trap_super_glow_glass", {
|
||||
palette = "unifieddyes_palette_extended.png",
|
||||
airbrush_replacement_node = "stained_glass:stained_trap_glass",
|
||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, ud_param2_colorable = 1},
|
||||
})
|
||||
|
||||
-- crafting
|
||||
|
||||
unifieddyes.register_color_craft({
|
||||
output = "stained_glass:stained_glass",
|
||||
palette = "extended",
|
||||
type = "shapeless",
|
||||
neutral_node = "moreblocks:super_glow_glass",
|
||||
recipe = {
|
||||
"NEUTRAL_NODE",
|
||||
"MAIN_DYE"
|
||||
}
|
||||
})
|
||||
|
||||
unifieddyes.register_color_craft({
|
||||
output = "stained_glass:stained_trap_glass",
|
||||
palette = "extended",
|
||||
type = "shapeless",
|
||||
neutral_node = "moreblocks:trap_super_glow_glass",
|
||||
recipe = {
|
||||
"NEUTRAL_NODE",
|
||||
"MAIN_DYE"
|
||||
}
|
||||
})
|
||||
|
||||
-- old static stuff
|
||||
|
||||
function stainedglass.makenode(arg)
|
||||
local name=arg.blockname
|
||||
local myglow=arg.glow
|
||||
local myprefix=arg.prefix
|
||||
local imagename=arg.imagename
|
||||
local safe=arg.walkflag
|
||||
|
||||
local function tchelper(first, rest)
|
||||
return first:upper()..rest:lower()
|
||||
end -- from lua-users.org/wiki/StringRecipes
|
||||
|
||||
table.insert(stainedglass.old_static_nodes, "stained_glass:"..name)
|
||||
end
|
||||
|
||||
-- maybe someday, I can cleanly combine these two functions.
|
||||
|
||||
function stained_trapglass_define(arg)
|
||||
local code=arg.colorcode
|
||||
local name=arg.colorname
|
||||
local rawdyename=arg.recipe
|
||||
local mydye=arg.recipe
|
||||
local myshadename=arg.shade
|
||||
local imagename=name
|
||||
|
||||
local stained_glass_blocktype = { }
|
||||
|
||||
local stained_glass_lightlevel = { }
|
||||
|
||||
if stained_glass.trap_full_light then
|
||||
stained_glass_lightlevel[""] = LIGHT_MAX
|
||||
stained_glass_blocktype[""] = "moreblocks:trap_super_glow_glass"
|
||||
end -- see settings.txt for these settings.
|
||||
|
||||
if stained_glass.trap_med_light then
|
||||
stained_glass_lightlevel["lowglow_"] = LIGHT_MAX-3
|
||||
stained_glass_blocktype["lowglow_"] = "moreblocks:trap_glow_glass"
|
||||
end
|
||||
|
||||
if stained_glass.trap_no_light then
|
||||
stained_glass_lightlevel["noglow_"] = 0
|
||||
stained_glass_blocktype["noglow_"] = "moreblocks:trap_glass"
|
||||
end
|
||||
|
||||
for myprefix,myglow in pairs(stained_glass_lightlevel) do
|
||||
local glasstype = stained_glass_blocktype[myprefix]
|
||||
local name="trap_" .. name
|
||||
|
||||
-- define myrecipe as a table, pass it in.
|
||||
|
||||
local myrecipe = { mydye, glasstype, glasstype, glasstype }
|
||||
-- those four items will ALWAYS be there. For faint and pastel, we
|
||||
-- need to add additional dyes. If you have defined a new shade, then
|
||||
-- you should probably handle it here.
|
||||
|
||||
if myshadename == "pastel_" then
|
||||
myrecipe[5] = "dye:white"
|
||||
end
|
||||
|
||||
if myshadename == "faint_" then
|
||||
myrecipe[5] = "dye:white"
|
||||
myrecipe[6] = "dye:white"
|
||||
end
|
||||
|
||||
stainedglass.makenode{blockname=name, glow=myglow, prefix=myprefix, imagename=imagename, walkflag=false}
|
||||
end
|
||||
end
|
||||
|
||||
function stained_glass_define(arg)
|
||||
local code=arg.colorcode
|
||||
local name=arg.colorname
|
||||
local rawdyename=arg.recipe
|
||||
local mydye=arg.recipe
|
||||
local myshadename=arg.shade
|
||||
local imagename=name
|
||||
|
||||
local stained_glass_blocktype = { }
|
||||
|
||||
local stained_glass_lightlevel = { }
|
||||
|
||||
if stained_glass.full_light then
|
||||
stained_glass_lightlevel[""] = LIGHT_MAX
|
||||
stained_glass_blocktype[""] = "moreblocks:super_glow_glass"
|
||||
end -- see settings.txt for these settings.
|
||||
|
||||
if stained_glass.med_light then
|
||||
stained_glass_lightlevel["lowglow_"] = LIGHT_MAX-3
|
||||
stained_glass_blocktype["lowglow_"] = "moreblocks:glow_glass"
|
||||
end
|
||||
|
||||
if stained_glass.no_light then
|
||||
stained_glass_lightlevel["noglow_"] = 0
|
||||
stained_glass_blocktype["noglow_"] = "default:glass"
|
||||
end
|
||||
|
||||
for myprefix,myglow in pairs(stained_glass_lightlevel) do
|
||||
local glasstype = stained_glass_blocktype[myprefix]
|
||||
|
||||
-- define myrecipe as a table, pass it in.
|
||||
|
||||
local myrecipe = { mydye, glasstype, glasstype, glasstype }
|
||||
-- those four items will ALWAYS be there. For faint and pastel, we
|
||||
-- need to add additional dyes. If you have defined a new shade, then
|
||||
-- you should probably handle it here.
|
||||
|
||||
if myshadename == "pastel_" then
|
||||
myrecipe[5] = "dye:white"
|
||||
end
|
||||
|
||||
if myshadename == "faint_" then
|
||||
myrecipe[5] = "dye:white"
|
||||
myrecipe[6] = "dye:white"
|
||||
end
|
||||
|
||||
stainedglass.makenode{blockname=name, glow=myglow, prefix=myprefix, imagename=name, walkflag=true}
|
||||
|
||||
if myprefix == "" then
|
||||
local aliasname
|
||||
minetest.register_alias( "stained_glass:" .. code, "stained_glass:" .. name)
|
||||
if string.match(name,"redviolet") then
|
||||
local oldname=name
|
||||
aliasname=string.gsub(name, "redviolet","red_violet") -- need to support red_violet existence, too.
|
||||
minetest.register_alias( "stained_glass:" .. aliasname, "stained_glass:" .. oldname)
|
||||
end
|
||||
end
|
||||
-- and an alias from the numeric to the named block
|
||||
-- we need to keep the numeric block for all the people that used
|
||||
-- pre-v1.4 blocks in their worlds.
|
||||
-- no aliases for noglow- and lowglow- blocks, because they didn't
|
||||
-- exist until v1.5
|
||||
end
|
||||
end
|
||||
|
||||
-- true means this color's recipe must use a direct "dye:xxxxx" item name
|
||||
-- (perhaps because the related groups overlap two or more distinct colors)
|
||||
-- false means the recipe uses "group:dye,unicolor_xxxxx"
|
||||
|
||||
stained_glass= {}
|
||||
local worldpath=minetest.get_worldpath()
|
||||
local modpath=minetest.get_modpath("stained_glass")
|
||||
dofile(modpath .. "/settings.txt")
|
||||
|
||||
-- the new settings.txt file has a variety of possible settings.
|
||||
-- see the file for examples. We'll access those settings where its important, in
|
||||
-- the stained glass module, where we'll build up the tables to contain
|
||||
-- only what we need.
|
||||
|
||||
stained_glass_hues = {
|
||||
{ "yellow", true },
|
||||
{ "lime", false },
|
||||
{ "green", true },
|
||||
{ "aqua", false },
|
||||
{ "cyan", false },
|
||||
{ "skyblue", true },
|
||||
{ "blue", false },
|
||||
{ "violet", false },
|
||||
{ "magenta", true },
|
||||
{ "redviolet", true },
|
||||
{ "red", true },
|
||||
{ "orange", false },
|
||||
|
||||
-- please note that these only apply when our shadelevel is ""
|
||||
|
||||
}
|
||||
|
||||
stained_glass_shades = {
|
||||
{"dark_", 3 },
|
||||
{"medium_", 4 },
|
||||
{"", 5 }, -- full brightness
|
||||
{"light_", 8 },
|
||||
{"pastel_", 9 },
|
||||
{"faint_", 91 }
|
||||
|
||||
-- note that dark_ medium_ and plain also have a half-saturation
|
||||
-- equivalent automatically defined in the code
|
||||
}
|
||||
|
||||
for i in ipairs(stained_glass_hues) do
|
||||
|
||||
local huename = stained_glass_hues[i][1]
|
||||
local huenumber = i
|
||||
|
||||
for j in ipairs(stained_glass_shades) do
|
||||
|
||||
local shadename = stained_glass_shades[j][1]
|
||||
local shadenumber = stained_glass_shades[j][2]
|
||||
|
||||
local recipevalue = nil
|
||||
|
||||
recipevalue = "group:dye,unicolor_"..shadename..huename
|
||||
if (shadename == "" and stained_glass_hues[i][2]) then
|
||||
recipevalue = "dye:"..huename
|
||||
elseif (shadename=="pastel_" or shadename=="faint_") then
|
||||
-- force light_dye for pastel and faint colors
|
||||
recipevalue = "group:dye,unicolor_light_"..huename
|
||||
else -- default case
|
||||
recipevalue = "group:dye,unicolor_"..shadename..huename
|
||||
end
|
||||
|
||||
if shadename == "dark_" or shadename == "medium_" or shadename == "" then
|
||||
stained_glass_define({
|
||||
colorcode = huenumber.."_"..shadenumber.."_7",
|
||||
colorname = shadename..huename,
|
||||
recipe = recipevalue,
|
||||
shade = shadename,
|
||||
})
|
||||
|
||||
stained_trapglass_define({
|
||||
colorcode = huenumber.."_"..shadenumber.."_7",
|
||||
colorname = shadename..huename,
|
||||
recipe = recipevalue,
|
||||
shade = shadename,
|
||||
}) -- only defines something if the trap is enabled.
|
||||
|
||||
-- below is the automatic "half saturation" block
|
||||
-- which was mentioned previously
|
||||
-- this is unicolor only, so switch dyename
|
||||
-- back to unicolor...
|
||||
recipevalue="group:dye,unicolor_"..shadename..huename
|
||||
stained_glass_define({
|
||||
colorcode = huenumber.."_"..shadenumber.."_6",
|
||||
colorname = shadename..huename.."_s50",
|
||||
recipe = recipevalue.."_s50",
|
||||
shade = shadename,
|
||||
})
|
||||
stained_trapglass_define({
|
||||
colorcode = huenumber.."_"..shadenumber.."_6",
|
||||
colorname = shadename..huename.."_s50",
|
||||
recipe = recipevalue.."_s50",
|
||||
shade = shadename,
|
||||
}) -- only defines something if the trap is enabled.
|
||||
-- because we define two blocks inside this chunk of
|
||||
-- code, we can't just define the relevant vars and
|
||||
-- move the proc_call after the if-then loop.
|
||||
|
||||
elseif shadename == "light_" or shadename == "pastel_" or shadename == "faint_" then
|
||||
stained_glass_define({
|
||||
colorcode = huenumber.."_"..shadenumber,
|
||||
colorname = shadename..huename,
|
||||
recipe = recipevalue,
|
||||
shade = shadename,
|
||||
})
|
||||
stained_trapglass_define({
|
||||
colorcode = huenumber.."_"..shadenumber,
|
||||
colorname = shadename..huename,
|
||||
recipe = recipevalue,
|
||||
shade = shadename,
|
||||
}) -- only defines something if the trap is enabled.
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
-- convert in-map static nodes to use param2 coloring
|
||||
|
||||
minetest.register_lbm({
|
||||
name = "stained_glass:convert_glass",
|
||||
label = "Convert static glass blocks to use param2 color",
|
||||
run_at_every_load = false,
|
||||
nodenames = stainedglass.old_static_nodes,
|
||||
action = function(pos, node)
|
||||
local name = node.name
|
||||
|
||||
name = string.gsub(name, "aqua", "spring")
|
||||
name = string.gsub(name, "skyblue", "azure")
|
||||
name = string.gsub(name, "redviolet", "rose")
|
||||
|
||||
local n = string.find(name, ":")
|
||||
local color = string.sub(name, n + 1)
|
||||
local h,s,v = unifieddyes.get_hsv(name)
|
||||
|
||||
if string.find(name, "trap") then
|
||||
n = string.find(color, "_")
|
||||
color = string.sub(color, n + 1)
|
||||
local paletteidx = unifieddyes.getpaletteidx("unifieddyes:"..color, "extended")
|
||||
minetest.set_node(pos, { name = "stained_glass:stained_trap_glass", param2 = paletteidx })
|
||||
else
|
||||
local paletteidx = unifieddyes.getpaletteidx("unifieddyes:"..color, "extended")
|
||||
minetest.set_node(pos, { name = "stained_glass:stained_glass", param2 = paletteidx })
|
||||
end
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("dye", "unifieddyes:"..v..h..s)
|
||||
meta:set_string("palette", "ext")
|
||||
end
|
||||
})
|
||||
|
||||
|
||||
print("[stained_glass] Loaded!")
|
2
mods/stained_glass/mod.conf
Normal file
2
mods/stained_glass/mod.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
name = stained_glass
|
||||
depends = default, moreblocks, unifieddyes
|
6
mods/stained_glass/settings.txt
Normal file
6
mods/stained_glass/settings.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
stained_glass.full_light = true
|
||||
stained_glass.med_light = true
|
||||
stained_glass.no_light = true
|
||||
stained_glass.trap_full_light = true
|
||||
stained_glass.trap_med_light = true
|
||||
stained_glass.trap_no_light = true
|
BIN
mods/stained_glass/textures/stained_glass.png
Normal file
BIN
mods/stained_glass/textures/stained_glass.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 291 B |
BIN
mods/stained_glass/textures/stained_glass_detail.png
Normal file
BIN
mods/stained_glass/textures/stained_glass_detail.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 402 B |
Reference in New Issue
Block a user