split signs_lib from homedecor, put them into their own separate mods
package the two together as a modpack so that regular homedecor users don't see a functional change, but others can take signs_lib and use it as a standalone mod. also get rid of some *~ files
813
homedecor/LICENSE
Normal file
@ -0,0 +1,813 @@
|
||||
For the Code:
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. 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
|
||||
them 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 prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. 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.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey 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;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If 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 convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU 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 that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
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.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
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.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
|
||||
|
||||
----------
|
||||
|
||||
For the textures and everything else:
|
||||
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
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.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||
|
||||
This license is commonly known as "WTFPL".
|
||||
|
||||
------------------
|
||||
|
||||
|
||||
Creative Commons
|
||||
CC0 1.0 Universal
|
||||
|
||||
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.
|
||||
|
||||
Statement of Purpose
|
||||
|
||||
The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").
|
||||
|
||||
Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
|
||||
|
||||
For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
|
||||
|
||||
1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
|
||||
|
||||
the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
|
||||
moral rights retained by the original author(s) and/or performer(s);
|
||||
publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;
|
||||
rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;
|
||||
rights protecting the extraction, dissemination, use and reuse of data in a Work;
|
||||
database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
|
||||
other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
|
||||
|
||||
2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose.
|
||||
|
||||
3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose.
|
||||
|
||||
4. Limitations and Disclaimers.
|
||||
|
||||
No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
|
||||
Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
|
||||
Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
|
||||
Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
|
||||
|
||||
----------------
|
||||
|
||||
|
||||
Creative Commons
|
||||
Attribution 3.0 Unported
|
||||
|
||||
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 above) for the purposes of 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.
|
||||
"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(b), 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(b), as requested.
|
||||
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 Section 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 (b) 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 this License.
|
||||
|
||||
Creative Commons may be contacted at http://creativecommons.org/.
|
||||
|
||||
|
229
homedecor/changelog.txt
Normal file
@ -0,0 +1,229 @@
|
||||
Changelog
|
||||
---------
|
||||
|
||||
2013-03-16: Kaeza pushed fixes for signs on wrought iron/brass fences not
|
||||
showing the text. This also fixed a potential undesired replacement bug. He
|
||||
also fixed many of the sounds in the mod so that they aren't based on leaves.
|
||||
:-)
|
||||
|
||||
2013-03-11: Kaeza merged in code from my fork of thexyz/PilzAdam's
|
||||
3d/visible-text signs mods and fixed some bugs in my signs-on-fenceposts code
|
||||
in homedecor. If you have any of those three versions of the signs mod,
|
||||
uninstall it. Homedecor will cover its functionality. Thanks to kaeza for the
|
||||
contribution! Also, now signs-on-fences work slightly differently than before
|
||||
when digging - dig to get the sign back from the post, then dig the remaining
|
||||
post to get that back as well.
|
||||
|
||||
2013-02-13: changed glowlight recipes to avoid conflicts with moreblocks (now
|
||||
uses moreblocks glowglass *and* super glowglass together), made IC rely on
|
||||
moreores copper ingot, added recipes to craft glow cubes back into glowlight
|
||||
slabs. See crafting guide for details.
|
||||
|
||||
2012-02-09: Add ability to place a sign directly onto a brass/wrought iron
|
||||
fencepost, rather than crafting a sign-on-fencepost from one of each. Place a
|
||||
brass or wrought iron fencepost, then attempt to place a sign against it.
|
||||
Instead of the sign floating in air, the fencepost will be replaced with one
|
||||
bearing the sign in the same node. Dig to get the two pieces back as separate
|
||||
items, right click the resultant sign to edit the text thereon.
|
||||
|
||||
2012-02-08: Added ability to add signs to brass/wrought iron fenceposts.
|
||||
|
||||
2013-01-23: Completely rewrote all doors code to condense them into two files -
|
||||
one with the nodebox models, and one with the actual node definitions. In the
|
||||
process, cleaned up the code that handles node_ownership and protection mods.
|
||||
Also made the mod automatically enable either left-click or right-click to
|
||||
open/close a door, depending on whether the game supports it (actually it
|
||||
checks for the existance of an unrelated function that happened to be added the
|
||||
same time as the new right-click function). Renamed some textures, duplicated
|
||||
all of the _lr.png textures to make it easier to register the textures in a
|
||||
loop and to allow for more flexible texturing.
|
||||
|
||||
2012-10-11 (late night): Minor update - fixed a recipe conflict with throwing
|
||||
mod. Unprocessed plastic, when made from jungle grass or dry shrubs, now
|
||||
requires three jungle grass (yields 6) or three dry shrubs (yields 3). Still
|
||||
works with 6 leaves also. Extended the above owned-node support to work with
|
||||
glomie's "protector" mod since it has a similar bug as node_ownership has.
|
||||
|
||||
All server Admins: If you have Home Decor and you use either node_ownership
|
||||
or protector (or both), please update your copy of Home Decor as soon as
|
||||
practical.
|
||||
|
||||
2012-10-09: Added code to all doors to check for the presence of node_ownership
|
||||
and adapt accordingly. If that mod is present, you can only place doors in
|
||||
land you own, or land you have been given permission by the owner to build in,
|
||||
or land that is not owned at all. Singleplayer mode still works the same as
|
||||
before. Works around a bug in node_ownership where it doesn't completely
|
||||
handle the on_place= construct in register_node(), causing it to only delete
|
||||
half of an illegally-placed door.
|
||||
|
||||
2012-10-05: Added titanium dioxide and white paint from Unified Dyes as
|
||||
alternates if that mod isn't present. Both are compatible/interchangeable with
|
||||
the ones from that mod. Uses the same crafting recipes as UD uses, plus a
|
||||
couple of alternates in case of materials shortages. Added white and mahogany
|
||||
variants of the aforementioned grid-style glass-and-wood door.
|
||||
|
||||
2012-10-04: Added a couple new types of doors, converted the others to
|
||||
nodeboxes. All door code has been rewritten mostly from scratch. These new
|
||||
doors should convert over just fine, or at least you won't lose anything. You
|
||||
may have to dig and re-place a few if their orientation is wrong. Also note
|
||||
that these always return the left-opening version when you dig one.
|
||||
|
||||
2012-10-03: Refrigerators are now two nodes tall and have a 10x5 inventory
|
||||
space. If you have two stacked up already before this update, you'll need to
|
||||
empty them, dig them, and then re-place one or both, and put their contents
|
||||
back in. Sorry about the inconvenience, the one-node-tall ones were only
|
||||
supposed to be temporary anyway. Besides, now one stores more than twice as
|
||||
much as before. :-) The associated crafting recipe yields only one now, in
|
||||
keeping with this change.
|
||||
|
||||
2012-10-01: Added white glowlights, changed nodenames for yellow glowlights to
|
||||
indicate that they're supposed to be yellow (you'll need to destroy and
|
||||
re-craft them, sorry).
|
||||
|
||||
2012-09-30: Added a few different kinds of fences - bare/unpainted wooden and
|
||||
classic white picket fences, chainlink, barbed wire, and wooden privacy fence
|
||||
(e.g to put around a backyard pool).
|
||||
|
||||
Also added gates that open/close on a click, for the picket fences, chainlink
|
||||
fence, and barbed wire fence. For the privacy fence, use a regular door if you
|
||||
need a gate.
|
||||
|
||||
2012-09-30: Big set of updates today to make the mod a little easier to use in
|
||||
places and to add some more nodes. Recipe changes: Brass and wrought iron
|
||||
poles, table legs, and fences/railings were too expensive in practice.
|
||||
Increased recipe outputs. Small square glass table now comes from one small
|
||||
round table (instead of three-to-two). Large square glass table comes from one
|
||||
small square now instead of two. Small round, small square, and large wooden
|
||||
tables follow the same pattern.
|
||||
|
||||
Recycling: All glass tables can be recycled back into glass blocks via the
|
||||
Vessels mod's recipes. All are 3:1 with glass fragments (and thus, 3:1 with
|
||||
glass blocks), so there's no glass wasted. All wooden tables can be crafted
|
||||
into sticks by putting three of a given item onto the crafting grid. Any
|
||||
such craft yields 4 sticks, so there's no waste. Glass skylights recycle
|
||||
3:1 also, which does result in a little waste.
|
||||
|
||||
New nodes:
|
||||
|
||||
Added working oven (really just a furnace with new textures/recipe)
|
||||
Added mini-fridge that stores 24 slots
|
||||
Added kitchen cabinet that stores 24 slots
|
||||
Added half-size kitchen cabinet that stores 12 slots (6x2)
|
||||
Added kitchen sink with under-sink cabinet that stores 16 slots
|
||||
Added slab-sized, half-slab-sized, and microblock-sized glowlights (e.g.
|
||||
ceiling fixtures and yard/sidewalk lighting)
|
||||
Added curtains in 6 colors: red, green, blue, purple, pink, white
|
||||
|
||||
Misc. changes: 3d-ified nightstands (e.g. nodeboxes), improved their
|
||||
textures somewhat. Got rid of the dressers - they were never brought to a
|
||||
working state, but they're obsolete now (stacked two-drawer nightstands look
|
||||
the same anyway).
|
||||
|
||||
Notes about this update: This mod now requires Moreblocks for some recipes -
|
||||
namely fridge and oven, and uses the Vessels mod's recycle crafts.
|
||||
|
||||
2012-09-27: Changed most uses of dyes so that they can come from the game's
|
||||
in-built groups-based dye system, where appropriate. Unified Dyes can still
|
||||
supply the colors, this just makes it possible to use any other dye system that
|
||||
might come about as long as it uses the groups method. Improved recipe outputs
|
||||
for all shutters and mahogany folding door (better ratios of objects to
|
||||
colorants).
|
||||
|
||||
Added intermediate "unprocessed plastic" step to get from materials to
|
||||
plastic sheeting (now craft some materials to get unprocessed plastic, then
|
||||
smelt that to get the sheeting), added alternate recipes to produce it,
|
||||
improved ratio of materials to plastic. Minor code cleanups.
|
||||
|
||||
Later in the day: Nightstands now offer small inventories - one-drawer units
|
||||
get 8 slots, while two-drawer nightstands get 16 slots (8x2). They're
|
||||
smaller than chests because they're cheaper to make. Note that if you have
|
||||
nightstands already placed, dig them up and place them again to enable their
|
||||
new inventory capabilities.
|
||||
|
||||
2012-09-25: Added alternate recipes for most items that use dyes. Removed
|
||||
Mesecons dependency from TV and stereo (uses in-built silicon lumps if Mesecons
|
||||
isn't present). Replaced speakers' Mesecons Noteblocks with copper ingots from
|
||||
Moreores.
|
||||
|
||||
2012-08-01: Added optional recipes for items that use wool to also use cotton
|
||||
instead. Choose one or the other in any given recipe (you can't mix the two).
|
||||
No, it isn't a Kosher thing. ;-)
|
||||
|
||||
2012-07-28: Noticed I technically had left/right textures swapped on a few
|
||||
blocks. The textures were drawn to counteract this, without my realizing I was
|
||||
doing just that. :-) Fixed. Also replaced all "tile_images" references with
|
||||
"tiles", since the former is deprecated in favor of the latter.
|
||||
|
||||
2012-07-26: Updated to use the Vessels mod to give back empty dye bottles.
|
||||
|
||||
2012-07-24: Made all objects that use a dye require a more appropriate color,
|
||||
made all objects that use a dye give back empty bottles on craft, made grey
|
||||
shutters use the various grey paints directly. Moved this changelog out of the
|
||||
forum post and into this separate file.
|
||||
|
||||
2012-07-12: Moved project to github.
|
||||
|
||||
2012-07-02: Deleted a few redundant files from the unified dyes mod.
|
||||
|
||||
2012-06-30: Added a fancy wood-and-glass door. Textures used here were
|
||||
formerly used for (and have been replaced by new textures for) the default wood
|
||||
door in my realistic texture packs.
|
||||
|
||||
2012-06-27: Relaxed dependency on UnifiedDyes to prevent depending on Flowers.
|
||||
The mod will still use them if available; if not, you just can't craft the
|
||||
various colored objects.
|
||||
|
||||
2012-06-26: Separated dyes into their own mod ("unifieddyes"). Added a copy of
|
||||
flowers and made this mod depend on it and unified dyes. Updated all crafting
|
||||
recipes to fit, got rid of the conditional code for flowers (since it is a
|
||||
dependency now), removed a bunch of redundant register_craftitem code, fixed
|
||||
some copy&paste errors on the window shutters. As a consequence of these
|
||||
changes, white paint, titanium dioxide, and all colors of dyes will have to be
|
||||
removed and replaced (but the things that depend on them are fine).
|
||||
|
||||
2012-06-25: Removed all of the old legacy_wallmounted references - I didn't
|
||||
realize they were deprecated (and they were causing out-of-nodes issues also).
|
||||
|
||||
2012-06-23: Added small speaker, round brass pole, square wrought iron pole
|
||||
(without connecting rungs). Fairly recent version of Minetest required for
|
||||
these to work (uses nodeboxes). Note that if you've placed brass or wrought
|
||||
iron poles in your world already, they will be drawn using these newer styles;
|
||||
if you need the square poles and/or connecting rungs, you'll need to remove
|
||||
them and craft brass/wrought iron fences instead.
|
||||
|
||||
2012-06-16: Tweaked terracotta roof tiles/shingles to give the 4 pieces back on
|
||||
digging a 'shingle'.
|
||||
|
||||
2012-06-15 (a bit later): Did the same for the stereo and television and
|
||||
improved them in the process.
|
||||
|
||||
2012-06-15: Tweaked the speaker textures, added separate images for all 6
|
||||
sides.
|
||||
|
||||
2012-06-14: Added right-opening versions of oak and mahogany "folding" doors -
|
||||
allows one to create double doors. Split the two colors into separate files.
|
||||
Inspired by Calinou's update to the default doors mod - works the same way too.
|
||||
:-)
|
||||
|
||||
2012-06-13 (a lot later): Changed the crafting recipe slightly for nightstands
|
||||
- they're designated as 'oak' now. Added crafting recipe for mahogany
|
||||
variants. If you've already placed nightstands into your world, you should
|
||||
remove them before updating - sorry, you'll have to rebuild them due my having
|
||||
had to change the node names. Added initial crafting recipes for oak and
|
||||
mahogany drawers and complete dressers (dresser components are not yet useful,
|
||||
work in progress. See crafts.lua for more details).
|
||||
|
||||
2012-06-13: Changed buckets of white paint so that the empty bucket is returned
|
||||
when the bucket of paint is crafted into something else (rather than when the
|
||||
bucket of paint is first created). * Fixed copy&paste error from the previous
|
||||
bucket change. * Moved smelting and crafting of white paint from crafts.lua
|
||||
over to dyes.lua.
|
||||
|
||||
2012-06-12: Multiple post-release updates over the course of the day. * Fixed
|
||||
recipe collision with glass panes. * Implemented a full set of dyes derived
|
||||
from flowers, updated all related crafting recipes and screenshots to match. *
|
||||
Collected all dyes into one file. Changed recipes for blue and purple dyes to
|
||||
something that makes a bit more sense. :-) * Tweaked oak shutters to give two
|
||||
pieces on crafting. * Added alternate recipes for orange and green dyes.
|
||||
|
||||
2012-06-12: Initial release.
|
12
homedecor/copyright.txt
Normal file
@ -0,0 +1,12 @@
|
||||
Most code and all textures by Vanessa Ezekowitz.
|
||||
|
||||
Some code copied and modified from the game's default mods (especially
|
||||
doors) and ironzorg's flowers mod.
|
||||
|
||||
Licenses:
|
||||
* For the lua code, GPL.
|
||||
* For the door open/close sound, CC-By-SA 3.0 by Slanesh on freesound.org
|
||||
http://freesound.org/people/Slanesh/sounds/31768/
|
||||
* For the gate open/close sound, CC0, by j1987 on freesound.org
|
||||
http://freesound.org/people/j1987/sounds/106116/
|
||||
* For all images and everything else, WTFPL.
|
1399
homedecor/crafts.lua
Normal file
2
homedecor/depends.txt
Normal file
@ -0,0 +1,2 @@
|
||||
default
|
||||
signs_lib
|
320
homedecor/door_models.lua
Normal file
@ -0,0 +1,320 @@
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
homedecor.door_models = {
|
||||
{
|
||||
"closet_mahogany",
|
||||
S("Mahogany Closet Door"),
|
||||
|
||||
{{ -8/16, 5/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
||||
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
||||
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
||||
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
||||
{ -8/16, 0/32, 13/32, 8/16, 1/32, 15/32 },
|
||||
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
||||
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
||||
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
||||
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
||||
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
||||
{ -8/16, -12/32, 13/32, 8/16, -11/32, 15/32 },
|
||||
{ -8/16, -16/32, 6/16, 8/16, -13/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
||||
|
||||
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
|
||||
{ -8/16, 10/32, 13/32, 8/16, 11/32, 15/32 },
|
||||
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
||||
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
||||
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
||||
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
||||
{ -8/16, 0, 13/32, 8/16, 1/32, 15/32 },
|
||||
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
||||
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
||||
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
||||
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
||||
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
||||
{ -8/16, -16/32, 6/16, 8/16, -11/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
||||
|
||||
{{ -8/16, 5/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
||||
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
||||
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
||||
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
||||
{ -8/16, 0/32, 13/32, 8/16, 1/32, 15/32 },
|
||||
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
||||
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
||||
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
||||
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
||||
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
||||
{ -8/16, -12/32, 13/32, 8/16, -11/32, 15/32 },
|
||||
{ -8/16, -16/32, 6/16, 8/16, -13/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
||||
|
||||
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
|
||||
{ -8/16, 10/32, 13/32, 8/16, 11/32, 15/32 },
|
||||
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
||||
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
||||
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
||||
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
||||
{ -8/16, 0, 13/32, 8/16, 1/32, 15/32 },
|
||||
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
||||
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
||||
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
||||
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
||||
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
||||
{ -8/16, -16/32, 6/16, 8/16, -11/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }}
|
||||
},
|
||||
|
||||
----------
|
||||
|
||||
{
|
||||
"closet_oak",
|
||||
S("Oak Closet Door"),
|
||||
|
||||
{{ -8/16, 5/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
||||
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
||||
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
||||
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
||||
{ -8/16, 0/32, 13/32, 8/16, 1/32, 15/32 },
|
||||
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
||||
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
||||
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
||||
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
||||
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
||||
{ -8/16, -12/32, 13/32, 8/16, -11/32, 15/32 },
|
||||
{ -8/16, -16/32, 6/16, 8/16, -13/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
||||
|
||||
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
|
||||
{ -8/16, 10/32, 13/32, 8/16, 11/32, 15/32 },
|
||||
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
||||
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
||||
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
||||
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
||||
{ -8/16, 0, 13/32, 8/16, 1/32, 15/32 },
|
||||
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
||||
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
||||
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
||||
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
||||
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
||||
{ -8/16, -16/32, 6/16, 8/16, -11/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
||||
|
||||
{{ -8/16, 5/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
||||
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
||||
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
||||
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
||||
{ -8/16, 0/32, 13/32, 8/16, 1/32, 15/32 },
|
||||
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
||||
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
||||
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
||||
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
||||
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
||||
{ -8/16, -12/32, 13/32, 8/16, -11/32, 15/32 },
|
||||
{ -8/16, -16/32, 6/16, 8/16, -13/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
||||
|
||||
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
|
||||
{ -8/16, 10/32, 13/32, 8/16, 11/32, 15/32 },
|
||||
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
|
||||
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
|
||||
{ -8/16, 4/32, 13/32, 8/16, 5/32, 15/32 },
|
||||
{ -8/16, 2/32, 13/32, 8/16, 3/32, 15/32 },
|
||||
{ -8/16, 0, 13/32, 8/16, 1/32, 15/32 },
|
||||
{ -8/16, -2/32, 13/32, 8/16, -1/32, 15/32 },
|
||||
{ -8/16, -4/32, 13/32, 8/16, -3/32, 15/32 },
|
||||
{ -8/16, -6/32, 13/32, 8/16, -5/32, 15/32 },
|
||||
{ -8/16, -8/32, 13/32, 8/16, -7/32, 15/32 },
|
||||
{ -8/16, -10/32, 13/32, 8/16, -9/32, 15/32 },
|
||||
{ -8/16, -16/32, 6/16, 8/16, -11/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
||||
},
|
||||
|
||||
----------
|
||||
|
||||
{
|
||||
"exterior_fancy",
|
||||
S("Fancy Wood/Glass Door"),
|
||||
|
||||
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
||||
|
||||
{{ -8/16, -8/16, 6/16, 8/16, 6/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
||||
|
||||
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
||||
|
||||
{{ -8/16, -8/16, 6/16, 8/16, 6/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }}
|
||||
},
|
||||
|
||||
----------
|
||||
|
||||
{
|
||||
"glass",
|
||||
S("Glass Office Door"),
|
||||
|
||||
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
||||
|
||||
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
||||
|
||||
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
||||
|
||||
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }}
|
||||
},
|
||||
|
||||
----------
|
||||
|
||||
{
|
||||
"wood_glass",
|
||||
S("Glass and Wood, Oak-colored"),
|
||||
|
||||
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -3/32, 6/16, 8/16, 1/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, 8/16, -7/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
||||
|
||||
{{ -8/16, 7/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -1/32, 6/16, 8/16, 3/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, 8/16, -6/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
||||
|
||||
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -3/32, 6/16, 8/16, 1/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, 8/16, -7/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
||||
|
||||
{{ -8/16, 7/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -1/32, 6/16, 8/16, 3/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, 8/16, -6/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }}
|
||||
},
|
||||
|
||||
----------
|
||||
|
||||
{
|
||||
"wood_glass_mahogany",
|
||||
S("Glass and Wood, Mahogany-colored"),
|
||||
|
||||
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -3/32, 6/16, 8/16, 1/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, 8/16, -7/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
||||
|
||||
{{ -8/16, 7/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -1/32, 6/16, 8/16, 3/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, 8/16, -6/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
||||
|
||||
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -3/32, 6/16, 8/16, 1/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, 8/16, -7/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
||||
|
||||
{{ -8/16, 7/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -1/32, 6/16, 8/16, 3/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, 8/16, -6/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }}
|
||||
},
|
||||
|
||||
----------
|
||||
|
||||
{
|
||||
"wood_glass_white",
|
||||
S("Glass and Wood, White"),
|
||||
|
||||
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -3/32, 6/16, 8/16, 1/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, 8/16, -7/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
||||
|
||||
{{ -8/16, 7/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -1/32, 6/16, 8/16, 3/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, 8/16, -6/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
||||
|
||||
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -3/32, 6/16, 8/16, 1/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, 8/16, -7/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }},
|
||||
|
||||
{{ -8/16, 7/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -1/32, 6/16, 8/16, 3/32, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, 8/16, -6/16, 8/16 },
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
|
||||
{ -1/16, -8/16, 6/16, 1/16, 8/16, 8/16 },
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }}
|
||||
},
|
||||
|
||||
----------
|
||||
|
||||
{
|
||||
"wood_plain",
|
||||
S("Plain Wooden Door"),
|
||||
|
||||
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
||||
|
||||
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
||||
|
||||
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
|
||||
|
||||
{{ -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 }}
|
||||
},
|
||||
|
||||
}
|
||||
|
563
homedecor/doors_and_gates.lua
Normal file
@ -0,0 +1,563 @@
|
||||
-- Node definitions for Homedecor doors
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
-- doors
|
||||
|
||||
local function isSolid(pos,adj)
|
||||
local adj = {x=adj[1],y=adj[2],z=adj[3]}
|
||||
local node = minetest.get_node(vector.add(pos,adj))
|
||||
if node then
|
||||
local idef = minetest.registered_nodes[minetest.get_node(vector.add(pos,adj)).name]
|
||||
if idef then
|
||||
return idef.walkable
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
local function countSolids(pos,node,level)
|
||||
local solids = 0
|
||||
for x = -1, 1 do
|
||||
for z = -1, 1 do
|
||||
local y = 0
|
||||
if node.param2 == 5 then
|
||||
y = -level
|
||||
else
|
||||
y = level
|
||||
end
|
||||
-- special cases when x == z == 0
|
||||
if x == 0 and z == 0 then
|
||||
if level == 1 then
|
||||
-- when looking past the trap door, cannot be solid in center
|
||||
if isSolid(pos,{x,y,z}) then
|
||||
return false
|
||||
end
|
||||
-- no else. it doesn't matter if x == y == z is solid, that's us.
|
||||
end
|
||||
elseif isSolid(pos,{x,y,z}) then
|
||||
solids = solids + 1
|
||||
end
|
||||
end
|
||||
end
|
||||
return solids
|
||||
end
|
||||
|
||||
local function calculateClosed(pos)
|
||||
local node = minetest.get_node(pos)
|
||||
-- the door is considered closed if it is closing off something.
|
||||
|
||||
local solids = 0
|
||||
local direction = node.param2 % 6
|
||||
local isTrap = direction == 0 or direction == 5
|
||||
if isTrap then
|
||||
-- the trap door is considered closed when all nodes on its sides are solid
|
||||
-- or all nodes in the 3x3 above/below it are solid except the center
|
||||
for level = 0, 1 do
|
||||
local fail = false
|
||||
local solids = countSolids(pos,node,level)
|
||||
if solids == 8 then
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
else
|
||||
-- the door is considered closed when the nodes on its sides are solid
|
||||
-- or the 3 nodes in its facing direction are solid nonsolid solid
|
||||
-- if the door has two levels (i.e. not a gate) then this must
|
||||
-- be true for the top node as well.
|
||||
|
||||
-- sorry I dunno the math to figure whether to x or z
|
||||
if direction == 1 or direction == 2 then
|
||||
if isSolid(pos,{0,0,-1}) and isSolid(pos,{0,0,1}) then
|
||||
if string.find(node.name,'_bottom_') then
|
||||
return calculateClosed({x=pos.x,y=pos.y+1,z=pos.z})
|
||||
else
|
||||
return true
|
||||
end
|
||||
end
|
||||
local x
|
||||
if direction == 1 then
|
||||
x = 1
|
||||
else
|
||||
x = -1
|
||||
end
|
||||
if isSolid(pos,{x,0,-1}) and not isSolid(pos,{x,0,0}) and isSolid(pos,{x,0,1}) then
|
||||
if string.find(node.name,'_bottom_') then
|
||||
return calculateClosed({x=pos.x,y=pos.y+1,z=pos.z})
|
||||
else
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
else
|
||||
-- direction == 3 or 4
|
||||
if isSolid(pos,{-1,0,0}) and isSolid(pos,{1,0,0}) then
|
||||
if string.find(node.name,'_bottom_') then
|
||||
return calculateClosed({x=pos.x,y=pos.y+1,z=pos.z})
|
||||
else
|
||||
return true
|
||||
end
|
||||
end
|
||||
local z
|
||||
if direction == 3 then
|
||||
z = 1
|
||||
else
|
||||
z = -1
|
||||
end
|
||||
if isSolid(pos,{-1,0,z}) and not isSolid(pos,{0,0,z}) and isSolid(pos,{1,0,z}) then
|
||||
if string.find(node.name,'_bottom_') then
|
||||
return calculateClosed({x=pos.x,y=pos.y+1,z=pos.z})
|
||||
else
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
error("What direction is this???",direction)
|
||||
end
|
||||
end
|
||||
|
||||
-- isClosed flag, is 0 or 1 0 = open, 1 = closed
|
||||
local function getClosed(pos)
|
||||
local isClosed = minetest.get_meta(pos):get_string('closed')
|
||||
if isClosed=='' then
|
||||
if calculateClosed(pos) then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
else
|
||||
isClosed = tonumber(isClosed)
|
||||
-- may be closed or open (1 or 0)
|
||||
return isClosed == 1
|
||||
end
|
||||
end
|
||||
|
||||
local function addDoorNode(pos,def,isClosed)
|
||||
if isClosed then
|
||||
isClosed = 1
|
||||
else
|
||||
isClosed = 0
|
||||
end
|
||||
minetest.add_node(pos, def)
|
||||
minetest.get_meta(pos):set_int('closed',isClosed)
|
||||
end
|
||||
|
||||
local sides = {"left", "right"}
|
||||
local rsides = {"right", "left"}
|
||||
|
||||
for i in ipairs(sides) do
|
||||
local side = sides[i]
|
||||
local rside = rsides[i]
|
||||
|
||||
for j in ipairs(homedecor.door_models) do
|
||||
local doorname = homedecor.door_models[j][1]
|
||||
local doordesc = homedecor.door_models[j][2]
|
||||
local nodeboxes_top = homedecor.door_models[j][5]
|
||||
local nodeboxes_bottom = homedecor.door_models[j][6]
|
||||
local texalpha = false
|
||||
if doorname == "exterior_fancy" then
|
||||
texalpha = true
|
||||
end
|
||||
|
||||
if side == "left" then
|
||||
nodeboxes_top = homedecor.door_models[j][3]
|
||||
nodeboxes_bottom = homedecor.door_models[j][4]
|
||||
end
|
||||
|
||||
local lower_top_side = "homedecor_door_"..doorname.."_tb.png"
|
||||
local upper_bottom_side = "homedecor_door_"..doorname.."_tb.png"
|
||||
|
||||
if doorname == "glass" then
|
||||
lower_top_side = "homedecor_blanktile.png"
|
||||
upper_bottom_side = "homedecor_blanktile.png"
|
||||
end
|
||||
|
||||
local tiles_upper = {
|
||||
"homedecor_door_"..doorname.."_tb.png",
|
||||
upper_bottom_side,
|
||||
"homedecor_door_"..doorname.."_lrt.png",
|
||||
"homedecor_door_"..doorname.."_lrt.png",
|
||||
"homedecor_door_"..doorname.."_"..rside.."_top.png",
|
||||
"homedecor_door_"..doorname.."_"..side.."_top.png",
|
||||
}
|
||||
|
||||
local tiles_lower = {
|
||||
lower_top_side,
|
||||
"homedecor_door_"..doorname.."_tb.png",
|
||||
"homedecor_door_"..doorname.."_lrb.png",
|
||||
"homedecor_door_"..doorname.."_lrb.png",
|
||||
"homedecor_door_"..doorname.."_"..rside.."_bottom.png",
|
||||
"homedecor_door_"..doorname.."_"..side.."_bottom.png",
|
||||
}
|
||||
|
||||
local selectboxes_top = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -1.5, 6/16, 0.5, 0.5, 8/16}
|
||||
}
|
||||
|
||||
local selectboxes_bottom = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 6/16, 0.5, 1.5, 8/16}
|
||||
}
|
||||
|
||||
minetest.register_node("homedecor:door_"..doorname.."_top_"..side, {
|
||||
description = doordesc.." "..S("(Top Half, %s-opening)"):format(side),
|
||||
drawtype = "nodebox",
|
||||
tiles = tiles_upper,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy=3, not_in_creative_inventory=1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
use_texture_alpha = texalpha,
|
||||
selection_box = selectboxes_top,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = nodeboxes_top
|
||||
},
|
||||
drop = "homedecor:door_"..doorname.."_bottom_"..side,
|
||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||
if minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name == "homedecor:door_"..doorname.."_bottom_"..side then
|
||||
minetest.remove_node({x=pos.x, y=pos.y-1, z=pos.z})
|
||||
end
|
||||
end,
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
homedecor.flip_door({x=pos.x, y=pos.y-1, z=pos.z}, node, clicker, doorname, side)
|
||||
end
|
||||
})
|
||||
|
||||
local dgroups = {snappy=3, not_in_creative_inventory=1}
|
||||
if side == "left" then
|
||||
dgroups = {snappy=3}
|
||||
end
|
||||
|
||||
minetest.register_node("homedecor:door_"..doorname.."_bottom_"..side, {
|
||||
description = doordesc.." "..S("(%s-opening)"):format(side),
|
||||
drawtype = "nodebox",
|
||||
tiles = tiles_lower,
|
||||
inventory_image = "homedecor_door_"..doorname.."_"..side.."_inv.png",
|
||||
wield_image = "homedecor_door_"..doorname.."_"..side.."_inv.png",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = dgroups,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
use_texture_alpha = texalpha,
|
||||
selection_box = selectboxes_bottom,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = nodeboxes_bottom
|
||||
},
|
||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||
if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name == "homedecor:door_"..doorname.."_top_"..side then
|
||||
minetest.remove_node({x=pos.x, y=pos.y+1, z=pos.z})
|
||||
end
|
||||
end,
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
local keys=placer:get_player_control()
|
||||
homedecor.place_door(itemstack, placer, pointed_thing, doorname, keys["sneak"])
|
||||
return itemstack
|
||||
end,
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
homedecor.flip_door(pos, node, clicker, doorname, side)
|
||||
end,
|
||||
-- both left and right doors may be used for open or closed doors
|
||||
-- so they have to have both action_on and action_off and just
|
||||
-- check when that action is invoked if to continue
|
||||
|
||||
on_punch = function(pos, node, puncher)
|
||||
minetest.get_meta(pos):set_string('closed',nil)
|
||||
end,
|
||||
drop = "homedecor:door_"..doorname.."_bottom_left",
|
||||
mesecons = {
|
||||
effector = {
|
||||
action_on = function(pos,node)
|
||||
local isClosed = getClosed(pos)
|
||||
if isClosed then
|
||||
homedecor.flip_door(pos,node,nil,doorname,side,isClosed)
|
||||
end
|
||||
end,
|
||||
action_off = function(pos,node)
|
||||
local isClosed = getClosed(pos)
|
||||
if not isClosed then
|
||||
homedecor.flip_door(pos,node,nil,doorname,side,isClosed)
|
||||
end
|
||||
end
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
-- Gates
|
||||
|
||||
local gates_list = { "picket", "picket_white", "barbed_wire", "chainlink" }
|
||||
local gate_names = { "Unpainted Picket", "White Picket", "Barbed Wire", "Chainlink" }
|
||||
|
||||
local gate_models_closed = {
|
||||
{{ -0.5, -0.5, 0.498, 0.5, 0.5, 0.498 }},
|
||||
|
||||
{{ -0.5, -0.5, 0.498, 0.5, 0.5, 0.498 }},
|
||||
|
||||
{{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 }, -- left post
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }, -- right post
|
||||
{ -8/16, 7/16, 13/32, 8/16, 8/16, 15/32 }, -- top piece
|
||||
{ -8/16, -8/16, 13/32, 8/16, -7/16, 15/32 }, -- bottom piece
|
||||
{ -6/16, -8/16, 7/16, 6/16, 8/16, 7/16 }}, -- the wire
|
||||
|
||||
{{ -8/16, -8/16, 6/16, -7/16, 8/16, 8/16 }, -- left post
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }, -- right post
|
||||
{ -8/16, 7/16, 13/32, 8/16, 8/16, 15/32 }, -- top piece
|
||||
{ -8/16, -8/16, 13/32, 8/16, -7/16, 15/32 }, -- bottom piece
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }, -- the chainlink itself
|
||||
{ -8/16, -3/16, 6/16, -6/16, 3/16, 8/16 }} -- the lump representing the lock
|
||||
}
|
||||
|
||||
local gate_models_open = {
|
||||
{{ 0.498, -0.5, -0.5, 0.498, 0.5, 0.5 }},
|
||||
|
||||
{{ 0.498, -0.5, -0.5, 0.498, 0.5, 0.5 }},
|
||||
|
||||
{{ 6/16, -8/16, -8/16, 8/16, 8/16, -6/16 }, -- left post
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }, -- right post
|
||||
{ 13/32, 7/16, -8/16, 15/32, 8/16, 8/16 }, -- top piece
|
||||
{ 13/32, -8/16, -8/16, 15/32, -7/16, 8/16 }, -- bottom piece
|
||||
{ 7/16, -8/16, -6/16, 7/16, 8/16, 6/16 }}, -- the wire
|
||||
|
||||
{{ 6/16, -8/16, -8/16, 8/16, 8/16, -7/16 }, -- left post
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }, -- right post
|
||||
{ 13/32, 7/16, -8/16, 15/32, 8/16, 8/16 }, -- top piece
|
||||
{ 13/32, -8/16, -8/16, 15/32, -7/16, 8/16 }, -- bottom piece
|
||||
{ 7/16, -8/16, -8/16, 7/16, 8/16, 8/16 }, -- the chainlink itself
|
||||
{ 6/16, -3/16, -8/16, 8/16, 3/16, -6/16 }} -- the lump representing the lock
|
||||
}
|
||||
|
||||
for i in ipairs(gates_list) do
|
||||
|
||||
local gate=gates_list[i]
|
||||
|
||||
local def = {
|
||||
drawtype = "nodebox",
|
||||
description = S(gate_names[i].." Fence Gate"),
|
||||
tiles = {
|
||||
"homedecor_gate_"..gate.."_top.png",
|
||||
"homedecor_gate_"..gate.."_bottom.png",
|
||||
"homedecor_gate_"..gate.."_left.png",
|
||||
"homedecor_gate_"..gate.."_right.png",
|
||||
"homedecor_gate_"..gate.."_back.png",
|
||||
"homedecor_gate_"..gate.."_front.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
paramtype2 = "facedir",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 0.4, 0.5, 0.5, 0.5 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = gate_models_closed[i]
|
||||
},
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
homedecor.flip_gate(pos, node, clicker, gate, "closed")
|
||||
end,
|
||||
mesecons = {
|
||||
effector = {
|
||||
action_on = function(pos,node) homedecor.flip_gate(pos,node,player,gate, "closed") end
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-- gates when placed default to closed, closed.
|
||||
|
||||
minetest.register_node("homedecor:gate_"..gate.."_closed", def)
|
||||
|
||||
-- this is either a terrible idea or a great one
|
||||
def = homedecor.table_copy(def)
|
||||
def.groups.not_in_creative_inventory = 1
|
||||
def.selection_box.fixed = { 0.4, -0.5, -0.5, 0.5, 0.5, 0.5 }
|
||||
def.tiles = {
|
||||
"homedecor_gate_"..gate.."_top.png",
|
||||
"homedecor_gate_"..gate.."_bottom.png",
|
||||
"homedecor_gate_"..gate.."_front.png",
|
||||
"homedecor_gate_"..gate.."_back.png",
|
||||
"homedecor_gate_"..gate.."_left.png",
|
||||
"homedecor_gate_"..gate.."_right.png"
|
||||
}
|
||||
def.node_box.fixed = gate_models_open[i]
|
||||
def.drop = "homedecor:gate_"..gate.."_closed"
|
||||
def.on_rightclick = function(pos, node, clicker)
|
||||
homedecor.flip_gate(pos, node, clicker, gate, "open")
|
||||
end
|
||||
def.mesecons.effector = {
|
||||
action_off = function(pos,node) homedecor.flip_gate(pos,node,player,gate, "open") end
|
||||
}
|
||||
|
||||
minetest.register_node("homedecor:gate_"..gate.."_open", def)
|
||||
end
|
||||
|
||||
minetest.register_alias("homedecor:fence_barbed_wire_gate_open", "homedecor:gate_barbed_wire_open")
|
||||
minetest.register_alias("homedecor:fence_barbed_wire_gate_closed", "homedecor:gate_barbed_wire_closed")
|
||||
minetest.register_alias("homedecor:fence_chainlink_gate_open", "homedecor:gate_chainlink_open")
|
||||
minetest.register_alias("homedecor:fence_chainlink_gate_closed", "homedecor:gate_chainlink_closed")
|
||||
minetest.register_alias("homedecor:fence_picket_gate_open", "homedecor:gate_picket_open")
|
||||
minetest.register_alias("homedecor:fence_picket_gate_closed", "homedecor:gate_picket_closed")
|
||||
minetest.register_alias("homedecor:fence_picket_gate_white_open", "homedecor:gate_picket_white_open")
|
||||
minetest.register_alias("homedecor:fence_picket_gate_white_closed", "homedecor:gate_picket_white_closed")
|
||||
|
||||
----- helper functions
|
||||
|
||||
local function get_nodedef_field(nodename, fieldname)
|
||||
if not minetest.registered_nodes[nodename] then
|
||||
return nil
|
||||
end
|
||||
return minetest.registered_nodes[nodename][fieldname]
|
||||
end
|
||||
|
||||
function homedecor.place_door(itemstack, placer, pointed_thing, name, forceright)
|
||||
|
||||
local pointed = pointed_thing.under
|
||||
local pnode = minetest.get_node(pointed)
|
||||
local pname = pnode.name
|
||||
|
||||
if not minetest.registered_nodes[pname]
|
||||
or not minetest.registered_nodes[pname].on_rightclick then
|
||||
|
||||
local pos1 = nil
|
||||
local pos2 = nil
|
||||
|
||||
if minetest.registered_nodes[pname]["buildable_to"] then
|
||||
pos1 = pointed
|
||||
pos2 = {x=pointed.x, y=pointed.y+1, z=pointed.z}
|
||||
else
|
||||
pos1 = pointed_thing.above
|
||||
pos2 = {x=pointed_thing.above.x, y=pointed_thing.above.y+1, z=pointed_thing.above.z}
|
||||
end
|
||||
|
||||
local node_bottom = minetest.get_node(pos1)
|
||||
local node_top = minetest.get_node(pos2)
|
||||
|
||||
if not homedecor.node_is_owned(pos1, placer)
|
||||
and not homedecor.node_is_owned(pos2, placer) then
|
||||
|
||||
if not get_nodedef_field(node_bottom.name, "buildable_to")
|
||||
or not get_nodedef_field(node_top.name, "buildable_to") then
|
||||
minetest.chat_send_player( placer:get_player_name(), S('Not enough space above that spot to place a door!') )
|
||||
else
|
||||
local fdir = minetest.dir_to_facedir(placer:get_look_dir())
|
||||
local p_tests = {
|
||||
{x=pos1.x-1, y=pos1.y, z=pos1.z},
|
||||
{x=pos1.x, y=pos1.y, z=pos1.z+1},
|
||||
{x=pos1.x+1, y=pos1.y, z=pos1.z},
|
||||
{x=pos1.x, y=pos1.y, z=pos1.z-1},
|
||||
}
|
||||
print("fdir="..fdir)
|
||||
local testnode = minetest.get_node(p_tests[fdir+1])
|
||||
local side = "left"
|
||||
|
||||
if string.find(testnode.name, "homedecor:door_"..name.."_bottom_left") or forceright then
|
||||
side = "right"
|
||||
end
|
||||
|
||||
local def = { name = "homedecor:door_"..name.."_bottom_"..side, param2=fdir}
|
||||
addDoorNode(pos1, def, true)
|
||||
minetest.add_node(pos2, { name = "homedecor:door_"..name.."_top_"..side, param2=fdir})
|
||||
if not homedecor.expect_infinite_stacks then
|
||||
itemstack:take_item()
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
minetest.registered_nodes[pname].on_rightclick(pointed_thing.under, pnode, placer, itemstack)
|
||||
end
|
||||
end
|
||||
|
||||
-- to open a door, you switch left for right and subtract from param2, or vice versa right for left
|
||||
-- that is to say open "right" doors become left door nodes, and open left doors right door nodes.
|
||||
-- also adjusting param2 so the node is at 90 degrees.
|
||||
|
||||
function homedecor.flip_door(pos, node, player, name, side, isClosed)
|
||||
if isClosed == nil then
|
||||
isClosed = getClosed(pos)
|
||||
end
|
||||
-- this is where we swap the isClosed status!
|
||||
-- i.e. if isClosed, we're adding an open door
|
||||
-- and if not isClosed, a closed door
|
||||
isClosed = not isClosed
|
||||
|
||||
local rside = nil
|
||||
local nfdir = nil
|
||||
local ofdir = node.param2 or 0
|
||||
if side == "left" then
|
||||
rside = "right"
|
||||
nfdir=ofdir - 1
|
||||
if nfdir < 0 then nfdir = 3 end
|
||||
else
|
||||
rside = "left"
|
||||
nfdir=ofdir + 1
|
||||
if nfdir > 3 then nfdir = 0 end
|
||||
end
|
||||
local sound;
|
||||
if isClosed then
|
||||
sound = 'close'
|
||||
else
|
||||
sound = 'open'
|
||||
end
|
||||
minetest.sound_play("homedecor_door_"..sound, {
|
||||
pos=pos,
|
||||
max_hear_distance = 5,
|
||||
gain = 2,
|
||||
})
|
||||
-- XXX: does the top half have to remember open/closed too?
|
||||
minetest.add_node({x=pos.x, y=pos.y+1, z=pos.z}, { name = "homedecor:door_"..name.."_top_"..rside, param2=nfdir})
|
||||
|
||||
addDoorNode(pos,{ name = "homedecor:door_"..name.."_bottom_"..rside, param2=nfdir },isClosed)
|
||||
end
|
||||
|
||||
function homedecor.flip_gate(pos, node, player, gate, oc)
|
||||
local isClosed = getClosed(pos);
|
||||
minetest.sound_play("homedecor_gate_open_close", {
|
||||
pos=pos,
|
||||
max_hear_distance = 5,
|
||||
gain = 2,
|
||||
})
|
||||
|
||||
local fdir = node.param2 or 0
|
||||
|
||||
-- since right facing gates use "open" nodes for closed, we need an
|
||||
-- isClosed flag to tell if it's "really" closed.
|
||||
|
||||
local gateresult = nil
|
||||
if oc == "closed" then
|
||||
gateresult = "homedecor:gate_"..gate.."_open"
|
||||
else
|
||||
gateresult = "homedecor:gate_"..gate.."_closed"
|
||||
end
|
||||
|
||||
local def = {name=gateresult, param2=fdir}
|
||||
|
||||
addDoorNode(pos, def, isClosed)
|
||||
|
||||
-- the following opens and closes gates below and above in sync with this one
|
||||
-- (without three gate open/close sounds)
|
||||
|
||||
local above = {x=pos.x, y=pos.y+1, z=pos.z}
|
||||
local below = {x=pos.x, y=pos.y-1, z=pos.z}
|
||||
local nodeabove = minetest.get_node(above)
|
||||
local nodebelow = minetest.get_node(below)
|
||||
|
||||
if string.find(nodeabove.name, "homedecor:gate_"..gate) then
|
||||
addDoorNode(above, def, isClosed)
|
||||
end
|
||||
|
||||
if string.find(nodebelow.name, "homedecor:gate_"..gate) then
|
||||
addDoorNode(below, def, isClosed)
|
||||
end
|
||||
end
|
||||
|
107
homedecor/electronics.lua
Normal file
@ -0,0 +1,107 @@
|
||||
-- Various home electronics
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
minetest.register_node('homedecor:speaker', {
|
||||
description = S("Large Stereo Speaker"),
|
||||
tiles = { 'homedecor_speaker_top.png',
|
||||
'homedecor_speaker_bottom.png',
|
||||
'homedecor_speaker_right.png',
|
||||
'homedecor_speaker_left.png',
|
||||
'homedecor_speaker_back.png',
|
||||
'homedecor_speaker_front.png'},
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:speaker_small', {
|
||||
description = S("Small Surround Speaker"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
'homedecor_speaker_top.png',
|
||||
'homedecor_speaker_bottom.png',
|
||||
'homedecor_speaker_right.png',
|
||||
'homedecor_speaker_left.png',
|
||||
'homedecor_speaker_back.png',
|
||||
'homedecor_speaker_front.png'
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.2, -0.5, 0, 0.2, 0, 0.4 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.2, -0.5, 0, 0.2, 0, 0.4 }
|
||||
},
|
||||
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:stereo', {
|
||||
description = S("Stereo Receiver"),
|
||||
tiles = { 'homedecor_stereo_top.png',
|
||||
'homedecor_stereo_bottom.png',
|
||||
'homedecor_stereo_right.png',
|
||||
'homedecor_stereo_left.png',
|
||||
'homedecor_stereo_back.png',
|
||||
'homedecor_stereo_front.png'},
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:projection_screen', {
|
||||
description = S("Projection Screen Material"),
|
||||
drawtype = 'signlike',
|
||||
tiles = { 'homedecor_projection_screen.png' },
|
||||
wield_image = 'homedecor_projection_screen_inv.png',
|
||||
inventory_image = 'homedecor_projection_screen_inv.png',
|
||||
sunlight_propagates = false,
|
||||
paramtype = 'light',
|
||||
walkable = false,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
paramtype2 = 'wallmounted',
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
--wall_side = = <default>
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:television', {
|
||||
description = S("Small CRT Television"),
|
||||
tiles = { 'homedecor_television_top.png',
|
||||
'homedecor_television_bottom.png',
|
||||
'homedecor_television_right.png',
|
||||
'homedecor_television_left.png',
|
||||
'homedecor_television_back.png',
|
||||
{ name="homedecor_television_front_animated.png",
|
||||
animation={
|
||||
type="vertical_frames",
|
||||
aspect_w=16,
|
||||
aspect_h=16,
|
||||
length=80.0
|
||||
}
|
||||
}
|
||||
},
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
light_source = LIGHT_MAX - 1,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
443
homedecor/fences.lua
Normal file
@ -0,0 +1,443 @@
|
||||
-- This file adds fences of various types
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
minetest.register_node("homedecor:fence_brass", {
|
||||
description = S("Brass Fence/railing"),
|
||||
drawtype = "fencelike",
|
||||
tiles = {"homedecor_tile_brass.png"},
|
||||
inventory_image = "homedecor_fence_brass.png",
|
||||
wield_image = "homedecor_pole_brass.png",
|
||||
paramtype = "light",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
|
||||
},
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:fence_wrought_iron", {
|
||||
description = S("Wrought Iron Fence/railing"),
|
||||
drawtype = "fencelike",
|
||||
tiles = {"homedecor_tile_wrought_iron.png"},
|
||||
inventory_image = "homedecor_fence_wrought_iron.png",
|
||||
wield_image = "homedecor_pole_wrought_iron.png",
|
||||
paramtype = "light",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
|
||||
},
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
})
|
||||
|
||||
-- brass/wrought iron with signs:
|
||||
|
||||
minetest.register_node("homedecor:fence_brass_with_sign", {
|
||||
description = S("Brass Fence/railing with sign"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
"homedecor_sign_brass_post_top.png",
|
||||
"homedecor_sign_brass_post_bottom.png",
|
||||
"homedecor_sign_brass_post_side.png",
|
||||
"homedecor_sign_brass_post_side.png",
|
||||
"homedecor_sign_brass_post_back.png",
|
||||
"homedecor_sign_brass_post_front.png",
|
||||
},
|
||||
wield_image = "homedecor_sign_brass_post.png",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.125, -0.5, -0.125, 0.125, 0.5, 0.125 },
|
||||
{ -0.45, -0.1875, -0.225, 0.45, 0.4375, -0.125 },
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.125, -0.5, -0.125, 0.125, 0.5, 0.125 },
|
||||
{ -0.45, -0.1875, -0.225, 0.45, 0.4375, -0.125 },
|
||||
}
|
||||
},
|
||||
groups = {snappy=3,not_in_creative_inventory=1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
{ items = { "default:sign_wall" }},
|
||||
{ items = { "homedecor:fence_brass" }},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:fence_wrought_iron_with_sign", {
|
||||
description = S("Wrought Iron Fence/railing with sign"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
"homedecor_sign_wrought_iron_post_top.png",
|
||||
"homedecor_sign_wrought_iron_post_bottom.png",
|
||||
"homedecor_sign_wrought_iron_post_side.png",
|
||||
"homedecor_sign_wrought_iron_post_side.png",
|
||||
"homedecor_sign_wrought_iron_post_back.png",
|
||||
"homedecor_sign_wrought_iron_post_front.png",
|
||||
},
|
||||
wield_image = "homedecor_sign_wrought_iron_post.png",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.125, -0.5, -0.125, 0.125, 0.5, 0.125 },
|
||||
{ -0.45, -0.1875, -0.225, 0.45, 0.4375, -0.125 },
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.125, -0.5, -0.125, 0.125, 0.5, 0.125 },
|
||||
{ -0.45, -0.1875, -0.225, 0.45, 0.4375, -0.125 },
|
||||
}
|
||||
},
|
||||
groups = {snappy=3,not_in_creative_inventory=1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
{ items = { "default:sign_wall" }},
|
||||
{ items = { "homedecor:fence_wrought_iron" }},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- other types of fences
|
||||
|
||||
minetest.register_node("homedecor:fence_picket", {
|
||||
drawtype = "nodebox",
|
||||
description = S("Unpainted Picket Fence"),
|
||||
tiles = {
|
||||
"homedecor_blanktile.png",
|
||||
"homedecor_blanktile.png",
|
||||
"homedecor_fence_picket.png",
|
||||
"homedecor_fence_picket.png",
|
||||
"homedecor_fence_picket_backside.png",
|
||||
"homedecor_fence_picket.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
paramtype2 = "facedir",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 0.4, 0.5, 0.5, 0.5 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 0.498, 0.5, 0.5, 0.498 }
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:fence_picket_corner", {
|
||||
drawtype = "nodebox",
|
||||
description = S("Unpainted Picket Fence Corner"),
|
||||
tiles = {
|
||||
"homedecor_blanktile.png",
|
||||
"homedecor_blanktile.png",
|
||||
"homedecor_fence_picket.png",
|
||||
"homedecor_fence_picket_backside.png",
|
||||
"homedecor_fence_picket_backside.png",
|
||||
"homedecor_fence_picket.png",
|
||||
},
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
paramtype2 = "facedir",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.5, -0.5, 0.4, 0.5, 0.5, 0.5 },
|
||||
{ -0.5, -0.5, -0.5, -0.4, 0.5, 0.4 }
|
||||
}
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.5, -0.5, 0.498, 0.5, 0.5, 0.5 },
|
||||
{ -0.5, -0.5, -0.5, -0.498, 0.5, 0.5 }
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:fence_picket_white", {
|
||||
drawtype = "nodebox",
|
||||
description = S("White Picket Fence"),
|
||||
tiles = {
|
||||
"homedecor_blanktile.png",
|
||||
"homedecor_blanktile.png",
|
||||
"homedecor_fence_picket_white.png",
|
||||
"homedecor_fence_picket_white.png",
|
||||
"homedecor_fence_picket_white_backside.png",
|
||||
"homedecor_fence_picket_white.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
paramtype2 = "facedir",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 0.4, 0.5, 0.5, 0.5 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 0.498, 0.5, 0.5, 0.498 }
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:fence_picket_corner_white", {
|
||||
drawtype = "nodebox",
|
||||
description = S("White Picket Fence Corner"),
|
||||
tiles = {
|
||||
"homedecor_blanktile.png",
|
||||
"homedecor_blanktile.png",
|
||||
"homedecor_fence_picket_white.png",
|
||||
"homedecor_fence_picket_white_backside.png",
|
||||
"homedecor_fence_picket_white_backside.png",
|
||||
"homedecor_fence_picket_white.png",
|
||||
},
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
paramtype2 = "facedir",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.5, -0.5, 0.4, 0.5, 0.5, 0.5 },
|
||||
{ -0.5, -0.5, -0.5, -0.4, 0.5, 0.4 }
|
||||
}
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.5, -0.5, 0.498, 0.5, 0.5, 0.5 },
|
||||
{ -0.5, -0.5, -0.5, -0.498, 0.5, 0.5 }
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:fence_privacy", {
|
||||
drawtype = "nodebox",
|
||||
description = S("Wooden Privacy Fence"),
|
||||
tiles = {
|
||||
"homedecor_fence_privacy_tb.png",
|
||||
"homedecor_fence_privacy_tb.png",
|
||||
"homedecor_fence_privacy_sides.png",
|
||||
"homedecor_fence_privacy_sides.png",
|
||||
"homedecor_fence_privacy_backside.png",
|
||||
"homedecor_fence_privacy_front.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
paramtype2 = "facedir",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 5/16, 0.5, 0.5, 8/16 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -8/16, -8/16, 5/16, -5/16, 8/16, 7/16 }, -- left part
|
||||
{ -4/16, -8/16, 5/16, 3/16, 8/16, 7/16 }, -- middle part
|
||||
{ 4/16, -8/16, 5/16, 8/16, 8/16, 7/16 }, -- right part
|
||||
{ -8/16, -2/16, 7/16, 8/16, 2/16, 8/16 }, -- connecting rung
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:fence_privacy_corner", {
|
||||
drawtype = "nodebox",
|
||||
description = S("Wooden Privacy Fence"),
|
||||
tiles = {
|
||||
"homedecor_fence_privacy_corner_top.png",
|
||||
"homedecor_fence_privacy_corner_bottom.png",
|
||||
"homedecor_fence_privacy_corner_right.png",
|
||||
"homedecor_fence_privacy_backside2.png",
|
||||
"homedecor_fence_privacy_backside.png",
|
||||
"homedecor_fence_privacy_corner_front.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
paramtype2 = "facedir",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.5, -0.5, 5/16, 0.5, 0.5, 0.5 },
|
||||
{ -0.5, -0.5, -0.5, -5/16, 0.5, 5/16 },
|
||||
}
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -7/16, -8/16, 5/16, -5/16, 8/16, 7/16 }, -- left part
|
||||
{ -4/16, -8/16, 5/16, 3/16, 8/16, 7/16 }, -- middle part
|
||||
{ 4/16, -8/16, 5/16, 8/16, 8/16, 7/16 }, -- right part
|
||||
{ -8/16, -2/16, 7/16, 8/16, 2/16, 8/16 }, -- back-side connecting rung
|
||||
|
||||
{ -7/16, -8/16, 4/16, -5/16, 8/16, 7/16 }, -- back-most part
|
||||
{ -7/16, -8/16, -4/16, -5/16, 8/16, 3/16 }, -- middle part
|
||||
{ -7/16, -8/16, -8/16, -5/16, 8/16, -5/16 }, -- front-most part
|
||||
{ -8/16, -2/16, -8/16, -7/16, 2/16, 7/16 }, -- left-side connecting rung
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:fence_barbed_wire", {
|
||||
drawtype = "nodebox",
|
||||
description = S("Barbed Wire Fence"),
|
||||
tiles = {"homedecor_fence_barbed_wire.png"},
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
paramtype2 = "facedir",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 0.375, 0.5, 0.5, 0.5 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 }, -- left post
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }, -- right post
|
||||
{ -6/16, -8/16, 7/16, 6/16, 8/16, 7/16 } -- the wire
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:fence_barbed_wire_corner", {
|
||||
drawtype = "nodebox",
|
||||
description = S("Barbed Wire Fence"),
|
||||
tiles = {
|
||||
"homedecor_fence_barbed_wire.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
paramtype2 = "facedir",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.5, -0.5, 0.375, 0.5, 0.5, 0.5 },
|
||||
{ -0.5, -0.5, -0.5, -0.375, 0.5, 0.375 }
|
||||
}
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 }, -- left post
|
||||
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }, -- right post
|
||||
{ -6/16, -8/16, 7/16, 6/16, 8/16, 7/16 }, -- the wire
|
||||
|
||||
{ -8/16, -8/16, -8/16, -6/16, 8/16, -6/16 }, -- front post
|
||||
{ -7/16, -8/16, -6/16, -7/16, 8/16, 6/16 } -- more wire
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:fence_chainlink", {
|
||||
drawtype = "nodebox",
|
||||
description = S("Chainlink Fence"),
|
||||
tiles = {
|
||||
"homedecor_fence_chainlink_tb.png",
|
||||
"homedecor_fence_chainlink_tb.png",
|
||||
"homedecor_fence_chainlink_sides.png",
|
||||
"homedecor_fence_chainlink_sides.png",
|
||||
"homedecor_fence_chainlink_fb.png",
|
||||
"homedecor_fence_chainlink_fb.png",
|
||||
},
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
paramtype2 = "facedir",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 0.375, 0.5, 0.5, 0.5 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -8/16, -8/16, 6/16, -7/16, 8/16, 8/16 }, -- left post
|
||||
{ 7/16, -8/16, 6/16, 8/16, 8/16, 8/16 }, -- right post
|
||||
{ -8/16, 7/16, 13/32, 8/16, 8/16, 15/32 }, -- top piece
|
||||
{ -8/16, -8/16, 13/32, 8/16, -7/16, 15/32 }, -- bottom piece
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 } -- the chainlink itself
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:fence_chainlink_corner", {
|
||||
drawtype = "nodebox",
|
||||
description = "Chainlink Fence",
|
||||
tiles = {
|
||||
"homedecor_fence_chainlink_corner_top.png",
|
||||
"homedecor_fence_chainlink_corner_bottom.png",
|
||||
"homedecor_fence_chainlink_corner_left.png",
|
||||
"homedecor_fence_chainlink_corner_right.png",
|
||||
"homedecor_fence_chainlink_corner_front.png",
|
||||
"homedecor_fence_chainlink_corner_back.png",
|
||||
},
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
paramtype2 = "facedir",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.5, -0.5, 0.375, 0.5, 0.5, 0.5 },
|
||||
{ -0.5, -0.5, -0.5, -0.375, 0.5, 0.375 }
|
||||
}
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 }, -- left post, rear
|
||||
{ -8/16, -8/16, -8/16, -6/16, 8/16, -7/16 }, -- left post, front
|
||||
{ 7/16, -8/16, 6/16, 8/16, 8/16, 8/16 }, -- right post, rear
|
||||
{ -8/16, 7/16, 13/32, 8/16, 8/16, 15/32 }, -- top piece, rear
|
||||
{ -8/16, -8/16, 13/32, 8/16, -7/16, 15/32 }, -- bottom piece, rear
|
||||
{ -15/32, 7/16, -8/16, -13/32, 8/16, 8/16 }, -- top piece, side
|
||||
{ -15/32, -8/16, -8/16, -13/32, -7/16, 8/16 }, -- bottom piece, side
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }, -- the chainlink itself, rear
|
||||
{ -7/16, -8/16, -8/16, -7/16, 8/16, 8/16 } -- the chainlink itself, side
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
signs_lib.register_fence_with_sign("homedecor:fence_brass", "homedecor:fence_brass_with_sign")
|
||||
signs_lib.register_fence_with_sign("homedecor:fence_wrought_iron", "homedecor:fence_wrought_iron_with_sign")
|
377
homedecor/furnaces.lua
Normal file
@ -0,0 +1,377 @@
|
||||
-- This code supplies an oven/stove. Basically it's just a copy of the default furnace with different textures.
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
local function hacky_swap_node(pos,name)
|
||||
local node = minetest.get_node(pos)
|
||||
if node.name == name then
|
||||
return
|
||||
end
|
||||
local meta = minetest.get_meta(pos)
|
||||
local meta0 = meta:to_table()
|
||||
node.name = name
|
||||
local meta0 = meta:to_table()
|
||||
minetest.set_node(pos,node)
|
||||
meta = minetest.get_meta(pos)
|
||||
meta:from_table(meta0)
|
||||
end
|
||||
|
||||
local function make_formspec(furnacedef, percent)
|
||||
|
||||
local fire
|
||||
|
||||
if percent and (percent > 0) then
|
||||
fire = ("%s^[lowpart:%d:%s"):format(
|
||||
furnacedef.fire_bg,
|
||||
(100-percent),
|
||||
furnacedef.fire_fg
|
||||
)
|
||||
else
|
||||
fire = "default_furnace_fire_bg.png"
|
||||
end
|
||||
|
||||
local w = furnacedef.output_width
|
||||
local h = math.ceil(furnacedef.output_slots / furnacedef.output_width)
|
||||
|
||||
return "size["..math.max(8, 6 + w)..",9]"..
|
||||
"image[2,2;1,1;"..fire.."]"..
|
||||
"list[current_name;fuel;2,3;1,1;]"..
|
||||
"list[current_name;src;2,1;1,1;]"..
|
||||
"list[current_name;dst;5,1;"..w..","..h..";]"..
|
||||
"list[current_player;main;0,5;8,4;]"
|
||||
end
|
||||
|
||||
--[[
|
||||
furnacedef = {
|
||||
description = "Oven",
|
||||
tiles = { ... },
|
||||
tiles_active = { ... },
|
||||
^ +Y -Y +X -X +Z -Z
|
||||
tile_format = "oven_%s%s.png",
|
||||
^ First '%s' replaced by one of "top", "bottom", "side", "front".
|
||||
^ Second '%s' replaced by "" for inactive, and "_active" for active "front"
|
||||
^ "side" is used for left, right and back.
|
||||
^ tiles_active for front is set
|
||||
output_slots = 4,
|
||||
output_width = 2,
|
||||
cook_speed = 1,
|
||||
^ Higher values cook stuff faster.
|
||||
extra_nodedef_fields = { ... },
|
||||
^ Stuff here is copied verbatim into both active and inactive nodedefs
|
||||
^ Useful for overriding drawtype, etc.
|
||||
}
|
||||
]]
|
||||
|
||||
local function make_tiles(tiles, fmt, active)
|
||||
if not fmt then return tiles end
|
||||
tiles = { }
|
||||
for i,side in ipairs{"top", "bottom", "side", "side", "side", "front"} do
|
||||
if active and (i == 6) then
|
||||
tiles[i] = fmt:format(side, "_active")
|
||||
else
|
||||
tiles[i] = fmt:format(side, "")
|
||||
end
|
||||
end
|
||||
return tiles
|
||||
end
|
||||
|
||||
function homedecor.register_furnace(name, furnacedef)
|
||||
|
||||
local furnacedef = furnacedef
|
||||
|
||||
local tiles = make_tiles(furnacedef.tiles, furnacedef.tile_format, false)
|
||||
local tiles_active = make_tiles(furnacedef.tiles_active, furnacedef.tile_format, true)
|
||||
|
||||
furnacedef.fire_fg = furnacedef.fire_bg or "default_furnace_fire_fg.png"
|
||||
furnacedef.fire_bg = furnacedef.fire_bg or "default_furnace_fire_bg.png"
|
||||
|
||||
furnacedef.output_slots = furnacedef.output_slots or 4
|
||||
furnacedef.output_width = furnacedef.output_width or 2
|
||||
|
||||
furnacedef.cook_speed = furnacedef.cook_speed or 1
|
||||
|
||||
local name_active = name.."_active"
|
||||
|
||||
local desc = furnacedef.description or "Furnace"
|
||||
|
||||
local def = {
|
||||
description = furnacedef.description,
|
||||
tiles = tiles,
|
||||
paramtype2 = furnacedef.paramtype2 or "facedir",
|
||||
groups = furnacedef.groups or {cracky=2},
|
||||
legacy_facedir_simple = true,
|
||||
sounds = furnacedef.sounds or default.node_sound_wood_defaults(),
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec", make_formspec(furnacedef, 0))
|
||||
meta:set_string("infotext", desc)
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("fuel", 1)
|
||||
inv:set_size("src", 1)
|
||||
inv:set_size("dst", furnacedef.output_slots)
|
||||
end,
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
if not inv:is_empty("fuel") then
|
||||
return false
|
||||
elseif not inv:is_empty("dst") then
|
||||
return false
|
||||
elseif not inv:is_empty("src") then
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end,
|
||||
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
if listname == "fuel" then
|
||||
if minetest.get_craft_result({method="fuel",width=1,items={stack}}).time ~= 0 then
|
||||
if inv:is_empty("src") then
|
||||
meta:set_string("infotext", desc.." is empty")
|
||||
end
|
||||
return stack:get_count()
|
||||
else
|
||||
return 0
|
||||
end
|
||||
elseif listname == "src" then
|
||||
return stack:get_count()
|
||||
elseif listname == "dst" then
|
||||
return 0
|
||||
end
|
||||
end,
|
||||
allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
local stack = inv:get_stack(from_list, from_index)
|
||||
if to_list == "fuel" then
|
||||
if minetest.get_craft_result({method="fuel",width=1,items={stack}}).time ~= 0 then
|
||||
if inv:is_empty("src") then
|
||||
meta:set_string("infotext", desc.." is empty")
|
||||
end
|
||||
return count
|
||||
else
|
||||
return 0
|
||||
end
|
||||
elseif to_list == "src" then
|
||||
return count
|
||||
elseif to_list == "dst" then
|
||||
return 0
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
local def_active = {
|
||||
description = furnacedef.description.." (active)",
|
||||
tiles = tiles_active,
|
||||
paramtype = furnacedef.paramtype,
|
||||
paramtype2 = furnacedef.paramtype2 or "facedir",
|
||||
light_source = 8,
|
||||
drop = name,
|
||||
groups = furnacedef.groups or {cracky=2, not_in_creative_inventory=1},
|
||||
legacy_facedir_simple = true,
|
||||
sounds = furnacedef.sounds or default.node_sound_stone_defaults(),
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec", make_formspec(furnacedef, 0))
|
||||
meta:set_string("infotext", desc)
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("fuel", 1)
|
||||
inv:set_size("src", 1)
|
||||
inv:set_size("dst", furnacedef.output_slots)
|
||||
end,
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
if not inv:is_empty("fuel") then
|
||||
return false
|
||||
elseif not inv:is_empty("dst") then
|
||||
return false
|
||||
elseif not inv:is_empty("src") then
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end,
|
||||
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
if listname == "fuel" then
|
||||
if minetest.get_craft_result({method="fuel",width=1,items={stack}}).time ~= 0 then
|
||||
if inv:is_empty("src") then
|
||||
meta:set_string("infotext",desc.." is empty")
|
||||
end
|
||||
return stack:get_count()
|
||||
else
|
||||
return 0
|
||||
end
|
||||
elseif listname == "src" then
|
||||
return stack:get_count()
|
||||
elseif listname == "dst" then
|
||||
return 0
|
||||
end
|
||||
end,
|
||||
allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
local stack = inv:get_stack(from_list, from_index)
|
||||
if to_list == "fuel" then
|
||||
if minetest.get_craft_result({method="fuel",width=1,items={stack}}).time ~= 0 then
|
||||
if inv:is_empty("src") then
|
||||
meta:set_string("infotext",desc.." is empty")
|
||||
end
|
||||
return count
|
||||
else
|
||||
return 0
|
||||
end
|
||||
elseif to_list == "src" then
|
||||
return count
|
||||
elseif to_list == "dst" then
|
||||
return 0
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
if furnacedef.extra_nodedef_fields then
|
||||
for k, v in pairs(furnacedef.extra_nodedef_fields) do
|
||||
def[k] = v
|
||||
def_active[k] = v
|
||||
end
|
||||
end
|
||||
|
||||
minetest.register_node(name, def)
|
||||
minetest.register_node(name_active, def_active)
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {name, name_active, name.."_locked", name_active.."_locked"},
|
||||
interval = 1.0,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local meta = minetest.get_meta(pos)
|
||||
for i, name in ipairs({
|
||||
"fuel_totaltime",
|
||||
"fuel_time",
|
||||
"src_totaltime",
|
||||
"src_time"
|
||||
}) do
|
||||
if meta:get_string(name) == "" then
|
||||
meta:set_float(name, 0.0)
|
||||
end
|
||||
end
|
||||
|
||||
local inv = meta:get_inventory()
|
||||
|
||||
local srclist = inv:get_list("src")
|
||||
local cooked = nil
|
||||
local aftercooked
|
||||
|
||||
if srclist then
|
||||
cooked, aftercooked = minetest.get_craft_result({method = "cooking", width = 1, items = srclist})
|
||||
end
|
||||
|
||||
local was_active = false
|
||||
|
||||
if meta:get_float("fuel_time") < meta:get_float("fuel_totaltime") then
|
||||
was_active = true
|
||||
meta:set_float("fuel_time", meta:get_float("fuel_time") + 1)
|
||||
meta:set_float("src_time", meta:get_float("src_time") + furnacedef.cook_speed)
|
||||
if cooked and cooked.item and meta:get_float("src_time") >= cooked.time then
|
||||
-- check if there's room for output in "dst" list
|
||||
if inv:room_for_item("dst",cooked.item) then
|
||||
-- Put result in "dst" list
|
||||
inv:add_item("dst", cooked.item)
|
||||
-- take stuff from "src" list
|
||||
inv:set_stack("src", 1, aftercooked.items[1])
|
||||
else
|
||||
print(S("Could not insert '%s'"):format(cooked.item:to_string()))
|
||||
end
|
||||
meta:set_string("src_time", 0)
|
||||
end
|
||||
end
|
||||
|
||||
if meta:get_float("fuel_time") < meta:get_float("fuel_totaltime") then
|
||||
local percent = math.floor(meta:get_float("fuel_time") /
|
||||
meta:get_float("fuel_totaltime") * 100)
|
||||
meta:set_string("infotext",desc..((" active: %d%%"):format(percent)))
|
||||
hacky_swap_node(pos,name_active)
|
||||
meta:set_string("formspec", make_formspec(furnacedef, percent))
|
||||
return
|
||||
end
|
||||
|
||||
local fuel = nil
|
||||
local afterfuel
|
||||
local cooked = nil
|
||||
local fuellist = inv:get_list("fuel")
|
||||
local srclist = inv:get_list("src")
|
||||
|
||||
if srclist then
|
||||
cooked = minetest.get_craft_result({method = "cooking", width = 1, items = srclist})
|
||||
end
|
||||
if fuellist then
|
||||
fuel, afterfuel = minetest.get_craft_result({method = "fuel", width = 1, items = fuellist})
|
||||
end
|
||||
|
||||
if (not fuel) or (fuel.time <= 0) then
|
||||
meta:set_string("infotext",desc..": Out of fuel")
|
||||
hacky_swap_node(pos,name)
|
||||
meta:set_string("formspec", make_formspec(furnacedef, 0))
|
||||
return
|
||||
end
|
||||
|
||||
if cooked.item:is_empty() then
|
||||
if was_active then
|
||||
meta:set_string("infotext",desc.." is empty")
|
||||
hacky_swap_node(pos,name)
|
||||
meta:set_string("formspec", make_formspec(furnacedef, 0))
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
if not inv:room_for_item("dst", cooked.item) then
|
||||
meta:set_string("infotext", desc..": output bins are full")
|
||||
hacky_swap_node(pos, name)
|
||||
meta:set_string("formspec", make_formspec(furnacedef, 0))
|
||||
return
|
||||
end
|
||||
|
||||
meta:set_string("fuel_totaltime", fuel.time)
|
||||
meta:set_string("fuel_time", 0)
|
||||
|
||||
inv:set_stack("fuel", 1, afterfuel.items[1])
|
||||
end,
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
homedecor.register_furnace("homedecor:oven", {
|
||||
description = "Oven",
|
||||
tile_format = "homedecor_oven_%s%s.png",
|
||||
output_slots = 4,
|
||||
output_width = 2,
|
||||
cook_speed = 1.25,
|
||||
})
|
||||
|
||||
homedecor.register_furnace("homedecor:microwave_oven", {
|
||||
description = "Microwave Oven",
|
||||
tiles = {
|
||||
"homedecor_microwave_top.png", "homedecor_microwave_bottom.png",
|
||||
"homedecor_microwave_right.png", "homedecor_microwave_left.png",
|
||||
"homedecor_microwave_back.png", "homedecor_microwave_front.png"
|
||||
},
|
||||
tiles_active = {
|
||||
"homedecor_microwave_top.png", "homedecor_microwave_bottom.png",
|
||||
"homedecor_microwave_right.png", "homedecor_microwave_left.png",
|
||||
"homedecor_microwave_back.png", "homedecor_microwave_front_active.png"
|
||||
},
|
||||
output_slots = 2,
|
||||
output_width = 2,
|
||||
cook_speed = 1.5,
|
||||
extra_nodedef_fields = {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
--paramtype2 = "facedir", -- Not needed, set by register_furnace
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { { -0.5, -0.5, -0.125, 0.5, 0.125, 0.5 } },
|
||||
},
|
||||
},
|
||||
})
|
184
homedecor/furniture.lua
Normal file
@ -0,0 +1,184 @@
|
||||
|
||||
-- Test
|
||||
minetest.register_node("homedecor:table", {
|
||||
description = "Table",
|
||||
tiles = {
|
||||
"forniture_wood.png",
|
||||
"forniture_wood.png",
|
||||
"forniture_wood_s1.png",
|
||||
"forniture_wood_s1.png",
|
||||
"forniture_wood_s2.png",
|
||||
"forniture_wood_s2.png",
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.4, -0.5, -0.4, -0.3, 0.4, -0.3 },
|
||||
{ 0.3, -0.5, -0.4, 0.4, 0.4, -0.3 },
|
||||
{ -0.4, -0.5, 0.3, -0.3, 0.4, 0.4 },
|
||||
{ 0.3, -0.5, 0.3, 0.4, 0.4, 0.4 },
|
||||
{ -0.5, 0.4, -0.5, 0.5, 0.5, 0.5 },
|
||||
{ -0.4, -0.2, -0.3, -0.3, -0.1, 0.3 },
|
||||
{ 0.3, -0.2, -0.4, 0.4, -0.1, 0.3 },
|
||||
{ -0.3, -0.2, -0.4, 0.4, -0.1, -0.3 },
|
||||
{ -0.3, -0.2, 0.3, 0.3, -0.1, 0.4 },
|
||||
},
|
||||
},
|
||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:chair", {
|
||||
description = "Chair",
|
||||
tiles = {
|
||||
"forniture_wood.png",
|
||||
"forniture_wood.png",
|
||||
"forniture_wood_s1.png",
|
||||
"forniture_wood_s1.png",
|
||||
"forniture_wood_s2.png",
|
||||
"forniture_wood_s2.png",
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.3, -0.5, 0.20, -0.2, 0.5, 0.30 },
|
||||
{ 0.2, -0.5, 0.20, 0.3, 0.5, 0.30 },
|
||||
{ -0.3, -0.5, -0.30, -0.2, -0.1, -0.20 },
|
||||
{ 0.2, -0.5, -0.30, 0.3, -0.1, -0.20 },
|
||||
{ -0.3, -0.1, -0.30, 0.3, 0.0, 0.20 },
|
||||
{ -0.2, 0.1, 0.25, 0.2, 0.4, 0.26 },
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
|
||||
},
|
||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
||||
})
|
||||
|
||||
local chaircolors = {
|
||||
{ "black", "Black" },
|
||||
{ "red", "Red" },
|
||||
{ "pink", "Pink" },
|
||||
{ "violet", "Violet" },
|
||||
{ "blue", "Blue" },
|
||||
{ "dark_green", "Dark Green" },
|
||||
}
|
||||
|
||||
for i in ipairs(chaircolors) do
|
||||
local color = chaircolors[i][1]
|
||||
local name = chaircolors[i][2]
|
||||
minetest.register_node("homedecor:armchair_"..color, {
|
||||
description = "Armchair ("..name..")",
|
||||
tiles = {
|
||||
"forniture_armchair_top_"..color..".png",
|
||||
"forniture_armchair_top_"..color..".png",
|
||||
"forniture_armchair_lat1_"..color..".png",
|
||||
"forniture_armchair_lat1_"..color..".png",
|
||||
"forniture_armchair_lat2_"..color..".png",
|
||||
"forniture_armchair_lat2_"..color..".png",
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.50, -0.50, -0.45, -0.30, 0.05, 0.30 },
|
||||
{ -0.45, -0.50, -0.50, -0.35, 0.05, -0.45 },
|
||||
{ -0.45, 0.05, -0.45, -0.35, 0.10, 0.15 },
|
||||
{ 0.30, -0.50, -0.45, 0.50, 0.05, 0.30 },
|
||||
{ 0.35, -0.50, -0.50, 0.45, 0.05, -0.45 },
|
||||
{ 0.35, 0.05, -0.45, 0.45, 0.10, 0.15 },
|
||||
{ -0.50, -0.50, 0.30, 0.50, 0.45, 0.50 },
|
||||
{ -0.45, 0.45, 0.35, 0.45, 0.50, 0.45 },
|
||||
{ -0.30, -0.45, -0.35, 0.30, -0.10, 0.30 },
|
||||
{ -0.30, -0.45, -0.40, 0.30, -0.15, -0.35 },
|
||||
{ -0.50, 0.05, 0.15, -0.30, 0.45, 0.30 },
|
||||
{ -0.45, 0.10, 0.10, -0.35, 0.45, 0.15 },
|
||||
{ -0.45, 0.45, 0.15, -0.35, 0.50, 0.35 },
|
||||
{ 0.30, 0.05, 0.15, 0.50, 0.45, 0.30 },
|
||||
{ 0.35, 0.10, 0.10, 0.45, 0.45, 0.15 },
|
||||
{ 0.35, 0.45, 0.15, 0.45, 0.50, 0.35 },
|
||||
},
|
||||
},
|
||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:armchair_"..color.." 2",
|
||||
recipe = {
|
||||
{ "wool:"..color,""},
|
||||
{ "group:wood","group:wood" },
|
||||
{ "wool:"..color,"wool:"..color },
|
||||
},
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
local repl = { off="low", low="med", med="hi", hi="max", max="off", }
|
||||
|
||||
local function reg_lamp(suffix, nxt, desc, tilesuffix, light)
|
||||
minetest.register_node("homedecor:table_lamp_"..suffix, {
|
||||
description = desc,
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
"forniture_table_lamp_s"..tilesuffix..".png",
|
||||
"forniture_table_lamp_s"..tilesuffix..".png",
|
||||
"forniture_table_lamp_l"..tilesuffix..".png",
|
||||
},
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.1500, -0.500, -0.1500, 0.1500, -0.45, 0.1500 },
|
||||
{ -0.0500, -0.450, -0.0500, 0.0500, -0.40, 0.0500 },
|
||||
{ -0.0250, -0.400, -0.0250, 0.0250, -0.10, 0.0250 },
|
||||
{ -0.0125, -0.125, -0.2000, 0.0125, -0.10, 0.2000 },
|
||||
{ -0.2000, -0.125, -0.0125, 0.2000, -0.10, 0.0125 },
|
||||
{ -0.2000, -0.100, -0.2000, -0.1750, 0.30, 0.2000 },
|
||||
{ 0.1750, -0.100, -0.2000, 0.2000, 0.30, 0.2000 },
|
||||
{ -0.1750, -0.100, -0.2000, 0.1750, 0.30, -0.1750 },
|
||||
{ -0.1750, -0.100, 0.1750, 0.1750, 0.30, 0.2000 },
|
||||
},
|
||||
},
|
||||
walkable = false,
|
||||
light_source = light,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.2, -0.5, -0.2, 0.2, 0.30, 0.2 },
|
||||
},
|
||||
groups = {cracky=2,oddly_breakable_by_hand=1,
|
||||
not_in_creative_inventory=((desc == nil) and 1) or nil,
|
||||
},
|
||||
drop = "homedecor:table_lamp_off",
|
||||
on_punch = function(pos, node, puncher)
|
||||
node.name = "homedecor:table_lamp_"..repl[suffix]
|
||||
minetest.set_node(pos, node)
|
||||
nodeupdate(pos)
|
||||
end,
|
||||
})
|
||||
minetest.register_alias("3dforniture:table_lamp_"..suffix, "homedecor:table_lamp_"..suffix)
|
||||
end
|
||||
|
||||
reg_lamp("off", "low", "Table Lamp", "", nil )
|
||||
reg_lamp("low", "med", nil, "l", 3 )
|
||||
reg_lamp("med", "hi" , nil, "m", 7 )
|
||||
reg_lamp("hi" , "max", nil, "h", 11 )
|
||||
reg_lamp("max", "off", nil, "x", 14 )
|
||||
|
||||
-- Aliases for 3dforniture mod.
|
||||
minetest.register_alias("3dforniture:table", "homedecor:table")
|
||||
minetest.register_alias("3dforniture:chair", "homedecor:chair")
|
||||
minetest.register_alias("3dforniture:armchair", "homedecor:armchair_black")
|
||||
minetest.register_alias("homedecor:armchair", "homedecor:armchair_black")
|
||||
|
||||
minetest.register_alias('table', 'homedecor:table')
|
||||
minetest.register_alias('chair', 'homedecor:chair')
|
||||
minetest.register_alias('armchair', 'homedecor:armchair')
|
220
homedecor/furniture_bathroom.lua
Normal file
@ -0,0 +1,220 @@
|
||||
local S = homedecor.gettext
|
||||
|
||||
minetest.register_node("homedecor:toilet", {
|
||||
description = S("Toilet"),
|
||||
tiles = {
|
||||
"forniture_marble.png", "forniture_marble.png",
|
||||
"forniture_marble_s1.png", "forniture_marble_s1.png",
|
||||
"forniture_marble_s2.png", "forniture_marble_s2.png",
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.20, -0.50, -0.20, 0.20, -0.45, 0.50, },
|
||||
{ -0.10, -0.45, -0.10, 0.10, 0.00, 0.50, },
|
||||
{ -0.30, -0.20, -0.30, 0.30, 0.00, 0.35, },
|
||||
{ -0.25, 0.00, -0.25, 0.25, 0.05, 0.25, },
|
||||
{ -0.30, 0.00, 0.30, 0.30, 0.40, 0.50, },
|
||||
{ -0.05, 0.40, 0.35, 0.05, 0.45, 0.45, },
|
||||
},
|
||||
},
|
||||
drop = "3dforniture:toilet",
|
||||
groups = {cracky=3,},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
on_punch = function (pos, node, puncher)
|
||||
node.name = "homedecor:toilet_open"
|
||||
minetest.set_node(pos, node)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:toilet_open", {
|
||||
tiles = {
|
||||
"forniture_marble_top_toilet.png", "forniture_marble.png",
|
||||
"forniture_marble_sb1.png", "forniture_marble_sb1.png",
|
||||
"forniture_marble_sb2.png", "forniture_marble_sb2.png",
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.20, -0.50, -0.20, 0.20, -0.45, 0.50, },
|
||||
{ -0.10, -0.45, -0.10, 0.10, -0.20, 0.50, },
|
||||
{ -0.10, -0.20, 0.30, 0.10, 0.00, 0.50, },
|
||||
{ -0.30, -0.20, 0.10, 0.30, 0.00, 0.35, },
|
||||
{ -0.30, -0.20, -0.30, -0.10, -0.15, 0.10, },
|
||||
{ -0.10, -0.20, -0.30, 0.10, -0.15, -0.10, },
|
||||
{ 0.10, -0.20, -0.30, 0.30, -0.15, 0.10, },
|
||||
{ -0.30, -0.15, -0.30, -0.20, 0.00, 0.10, },
|
||||
{ -0.20, -0.15, -0.30, 0.20, 0.00, -0.20, },
|
||||
{ 0.20, -0.15, -0.30, 0.30, 0.00, 0.10, },
|
||||
{ -0.25, 0.00, 0.20, 0.25, 0.50, 0.25, },
|
||||
{ -0.30, 0.00, 0.30, 0.30, 0.40, 0.50, },
|
||||
},
|
||||
},
|
||||
drop = "3dforniture:toilet",
|
||||
groups = {cracky = 3,},
|
||||
--sounds = {dig = "3dforniture_dig_toilet", gain=0.5},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
on_punch = function (pos, node, puncher)
|
||||
node.name = "homedecor:toilet"
|
||||
minetest.set_node(pos, node)
|
||||
minetest.sound_play("homedecor_toilet_flush",{pos=pos, max_hear_distance=5,})
|
||||
end,
|
||||
})
|
||||
|
||||
--Sink
|
||||
minetest.register_node("homedecor:sink", {
|
||||
description = S("Sink"),
|
||||
tiles = {
|
||||
"forniture_marble_top_sink.png", "forniture_marble.png",
|
||||
"forniture_marble_sb1.png", "forniture_marble_sb1.png",
|
||||
"forniture_marble_sb2.png", "forniture_marble_sb2.png",
|
||||
},
|
||||
inventory_image="3dforniture_inv_sink.png",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.15, 0.35, 0.20, 0.15, 0.40, 0.50, },
|
||||
{ -0.25, 0.40, 0.40, 0.25, 0.45, 0.50, },
|
||||
{ -0.25, 0.40, 0.15, -0.15, 0.45, 0.40, },
|
||||
{ 0.15, 0.40, 0.15, 0.25, 0.45, 0.40, },
|
||||
{ -0.15, 0.40, 0.15, 0.15, 0.45, 0.20, },
|
||||
{ -0.30, 0.45, 0.40, 0.30, 0.50, 0.50, },
|
||||
{ -0.30, 0.45, 0.10, -0.25, 0.50, 0.40, },
|
||||
{ 0.25, 0.45, 0.10, 0.30, 0.50, 0.40, },
|
||||
{ -0.25, 0.45, 0.10, 0.25, 0.50, 0.15, },
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.3,0.35,0.1, 0.3,0.5,0.5},
|
||||
},
|
||||
groups = {cracky=2,},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
--Taps
|
||||
minetest.register_node("homedecor:taps", {
|
||||
description = S("Taps"),
|
||||
tiles = {
|
||||
"forniture_metal.png", "forniture_metal.png",
|
||||
"forniture_metal_s1.png", "forniture_metal_s1.png",
|
||||
"forniture_metal_s2.png", "forniture_metal_s2.png",
|
||||
},
|
||||
inventory_image="3dforniture_inv_taps.png",
|
||||
drawtype = "nodebox",
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.25, -0.450, 0.49, 0.25, -0.30, 0.50, },
|
||||
{ -0.05, -0.400, 0.25, 0.05, -0.35, 0.50, },
|
||||
{ -0.05, -0.425, 0.25, 0.05, -0.40, 0.30, },
|
||||
{ -0.20, -0.400, 0.45, -0.15, -0.35, 0.50, },
|
||||
{ -0.20, -0.450, 0.40, -0.15, -0.30, 0.45, },
|
||||
{ -0.25, -0.400, 0.40, -0.10, -0.35, 0.45, },
|
||||
{ 0.15, -0.400, 0.45, 0.20, -0.35, 0.50, },
|
||||
{ 0.15, -0.450, 0.40, 0.20, -0.30, 0.45, },
|
||||
{ 0.10, -0.400, 0.40, 0.25, -0.35, 0.45, },
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.25, -0.45, 0.25, 0.25, -0.3, 0.5 },
|
||||
},
|
||||
groups = {cracky=2,},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
--Shower Tray
|
||||
minetest.register_node("homedecor:shower_tray", {
|
||||
description = S("Shower Tray"),
|
||||
tiles = {
|
||||
"forniture_marble_base_ducha_top.png",
|
||||
"forniture_marble_base_ducha_top.png",
|
||||
"forniture_marble_sb1.png",
|
||||
"forniture_marble_sb1.png",
|
||||
"forniture_marble_sb2.png",
|
||||
"forniture_marble_sb2.png",
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
legacy_facedir_simple = true,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.50, -0.50, -0.50, 0.50, -0.45, 0.50, },
|
||||
{ -0.50, -0.45, -0.50, 0.50, -0.40, -0.45, },
|
||||
{ -0.50, -0.45, 0.45, 0.50, -0.40, 0.50, },
|
||||
{ -0.50, -0.45, -0.45, -0.45, -0.40, 0.45, },
|
||||
{ 0.45, -0.45, -0.45, 0.50, -0.40, 0.45, },
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 },
|
||||
},
|
||||
groups = {cracky=2,},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
--Shower Head
|
||||
minetest.register_node("homedecor:shower_head", {
|
||||
description = S("Shower Head"),
|
||||
tiles = {
|
||||
"forniture_metal.png",
|
||||
"forniture_metal.png",
|
||||
"forniture_metal_s1.png",
|
||||
"forniture_metal_s1.png",
|
||||
"forniture_metal_s2.png",
|
||||
"forniture_metal_s2.png",
|
||||
},
|
||||
inventory_image="3dforniture_inv_shower_head.png",
|
||||
drawtype = "nodebox",
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.10, -0.50, 0.10, 0.10, -0.40, 0.30, },
|
||||
{ -0.05, -0.40, 0.15, 0.05, -0.30, 0.25, },
|
||||
{ -0.05, -0.35, 0.25, 0.05, -0.30, 0.50, },
|
||||
{ -0.10, -0.40, 0.49, 0.10, -0.25, 0.50, },
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.1, -0.5, 0.1, 0.1, -0.25, 0.5 },
|
||||
},
|
||||
groups = {cracky=2,},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_alias("3dforniture:toilet", "homedecor:toilet")
|
||||
minetest.register_alias("3dforniture:toilet_open", "homedecor:toilet_open")
|
||||
minetest.register_alias("3dforniture:sink", "homedecor:sink")
|
||||
minetest.register_alias("3dforniture:taps", "homedecor:taps")
|
||||
minetest.register_alias("3dforniture:shower_tray", "homedecor:shower_tray")
|
||||
minetest.register_alias("3dforniture:shower_head", "homedecor:shower_head")
|
||||
minetest.register_alias("3dforniture:table_lamp", "homedecor:table_lamp_off")
|
||||
|
||||
minetest.register_alias("toilet", "homedecor:toilet")
|
||||
minetest.register_alias("sink", "homedecor:sink")
|
||||
minetest.register_alias("taps", "homedecor:taps")
|
||||
minetest.register_alias("shower_tray", "homedecor:shower_tray")
|
||||
minetest.register_alias("shower_head", "homedecor:shower_head")
|
||||
minetest.register_alias("table_lamp", "homedecor:table_lamp_off")
|
191
homedecor/furniture_medieval.lua
Normal file
@ -0,0 +1,191 @@
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
minetest.register_node("homedecor:bars", {
|
||||
description = S("Bars"),
|
||||
tiles = {
|
||||
"forniture_black_metal.png",
|
||||
"forniture_black_metal.png",
|
||||
"forniture_black_metal_s1.png",
|
||||
"forniture_black_metal_s1.png",
|
||||
"forniture_black_metal_s2.png",
|
||||
"forniture_black_metal_s2.png",
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.5, -0.50, -0.10, -0.4, 0.50, 0.10 },
|
||||
{ -0.1, -0.50, -0.10, 0.1, 0.50, 0.10 },
|
||||
{ 0.4, -0.50, -0.10, 0.5, 0.50, 0.10 },
|
||||
{ -0.5, -0.50, -0.05, 0.5, -0.45, 0.05 },
|
||||
{ -0.5, 0.45, -0.05, 0.5, 0.50, 0.05 },
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.1, 0.5, 0.5, 0.1 },
|
||||
},
|
||||
groups = {cracky=1},
|
||||
})
|
||||
|
||||
--L Binding Bars
|
||||
minetest.register_node("homedecor:L_binding_bars", {
|
||||
description = S("Binding Bars"),
|
||||
tiles = {
|
||||
"forniture_black_metal.png",
|
||||
"forniture_black_metal.png",
|
||||
"forniture_black_metal_s1.png",
|
||||
"forniture_black_metal_s1.png",
|
||||
"forniture_black_metal_s2.png",
|
||||
"forniture_black_metal_s2.png",
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.10, -0.50, -0.50, 0.10, 0.50, -0.40 },
|
||||
{ -0.15, -0.50, -0.15, 0.15, 0.50, 0.15 },
|
||||
{ 0.40, -0.50, -0.10, 0.50, 0.50, 0.10 },
|
||||
{ 0.00, -0.50, -0.05, 0.50, -0.45, 0.05 },
|
||||
{ -0.05, -0.50, -0.50, 0.05, -0.45, 0.00 },
|
||||
{ 0.00, 0.45, -0.05, 0.50, 0.50, 0.05 },
|
||||
{ -0.05, 0.45, -0.50, 0.05, 0.50, 0.00 },
|
||||
},
|
||||
},
|
||||
groups = {cracky=1,}
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:chains", {
|
||||
description = S("Chains"),
|
||||
tiles = {
|
||||
"forniture_black_metal.png",
|
||||
"forniture_black_metal.png",
|
||||
"forniture_black_metal_s1.png",
|
||||
"forniture_black_metal_s1.png",
|
||||
"forniture_black_metal_s2.png",
|
||||
"forniture_black_metal_s2.png",
|
||||
},
|
||||
inventory_image="3dforniture_inv_chains.png",
|
||||
drawtype = "nodebox",
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.45, 0.25, 0.45, -0.20, 0.50, 0.50, },
|
||||
{ -0.35, 0.40, 0.35, -0.30, 0.45, 0.45, },
|
||||
{ -0.35, 0.30, 0.35, -0.30, 0.35, 0.45, },
|
||||
{ -0.35, 0.35, 0.30, -0.30, 0.40, 0.35, },
|
||||
{ -0.40, 0.35, 0.35, -0.25, 0.40, 0.40, },
|
||||
{ -0.40, 0.15, 0.35, -0.25, 0.20, 0.40, },
|
||||
{ -0.45, 0.20, 0.35, -0.40, 0.35, 0.40, },
|
||||
{ -0.25, 0.20, 0.35, -0.20, 0.35, 0.40, },
|
||||
{ -0.35, 0.20, 0.30, -0.30, 0.25, 0.45, },
|
||||
{ -0.35, 0.00, 0.30, -0.30, 0.05, 0.45, },
|
||||
{ -0.35, 0.05, 0.25, -0.30, 0.20, 0.30, },
|
||||
{ -0.35, 0.05, 0.45, -0.30, 0.20, 0.50, },
|
||||
{ -0.40, 0.05, 0.35, -0.25, 0.10, 0.40, },
|
||||
{ -0.40, -0.15, 0.35, -0.25, -0.10, 0.40, },
|
||||
{ -0.45, -0.10, 0.35, -0.40, 0.05, 0.40, },
|
||||
{ -0.25, -0.10, 0.35, -0.20, 0.05, 0.40, },
|
||||
{ -0.35, -0.10, 0.30, -0.30, -0.05, 0.45, },
|
||||
{ -0.35, -0.30, 0.30, -0.30, -0.25, 0.45, },
|
||||
{ -0.35, -0.25, 0.25, -0.30, -0.10, 0.30, },
|
||||
{ -0.35, -0.25, 0.45, -0.30, -0.10, 0.50, },
|
||||
{ -0.40, -0.25, 0.35, -0.25, -0.20, 0.40, },
|
||||
{ -0.40, -0.45, 0.35, -0.25, -0.40, 0.40, },
|
||||
{ -0.45, -0.40, 0.35, -0.40, -0.25, 0.40, },
|
||||
{ -0.25, -0.40, 0.35, -0.20, -0.25, 0.40, },
|
||||
{ 0.20, 0.25, 0.45, 0.45, 0.50, 0.50, },
|
||||
{ 0.30, 0.40, 0.35, 0.35, 0.45, 0.45, },
|
||||
{ 0.30, 0.30, 0.35, 0.35, 0.35, 0.45, },
|
||||
{ 0.30, 0.35, 0.30, 0.35, 0.40, 0.35, },
|
||||
{ 0.25, 0.35, 0.35, 0.40, 0.40, 0.40, },
|
||||
{ 0.25, 0.15, 0.35, 0.40, 0.20, 0.40, },
|
||||
{ 0.20, 0.20, 0.35, 0.25, 0.35, 0.40, },
|
||||
{ 0.40, 0.20, 0.35, 0.45, 0.35, 0.40, },
|
||||
{ 0.30, 0.20, 0.30, 0.35, 0.25, 0.45, },
|
||||
{ 0.30, 0.00, 0.30, 0.35, 0.05, 0.45, },
|
||||
{ 0.30, 0.05, 0.25, 0.35, 0.20, 0.30, },
|
||||
{ 0.30, 0.05, 0.45, 0.35, 0.20, 0.50, },
|
||||
{ 0.25, 0.05, 0.35, 0.40, 0.10, 0.40, },
|
||||
{ 0.25, -0.15, 0.35, 0.40, -0.10, 0.40, },
|
||||
{ 0.20, -0.10, 0.35, 0.25, 0.05, 0.40, },
|
||||
{ 0.40, -0.10, 0.35, 0.45, 0.05, 0.40, },
|
||||
{ 0.30, -0.10, 0.30, 0.35, -0.05, 0.45, },
|
||||
{ 0.30, -0.30, 0.30, 0.35, -0.25, 0.45, },
|
||||
{ 0.30, -0.25, 0.25, 0.35, -0.10, 0.30, },
|
||||
{ 0.30, -0.25, 0.45, 0.35, -0.10, 0.50, },
|
||||
{ 0.25, -0.25, 0.35, 0.40, -0.20, 0.40, },
|
||||
{ 0.25, -0.45, 0.35, 0.40, -0.40, 0.40, },
|
||||
{ 0.20, -0.40, 0.35, 0.25, -0.25, 0.40, },
|
||||
{ 0.40, -0.40, 0.35, 0.45, -0.25, 0.40, },
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/2, -1/2, 1/4, 1/2, 1/2, 1/2},
|
||||
},
|
||||
groups = {cracky=1},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:torch_wall", {
|
||||
description = S("Wall Torch"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
"forniture_torch_wall_s.png",
|
||||
"forniture_torch_wall_i.png",
|
||||
{
|
||||
name="forniture_torch_wall_anim.png",
|
||||
animation={
|
||||
type="vertical_frames",
|
||||
aspect_w=40,
|
||||
aspect_h=40,
|
||||
length=1.0,
|
||||
},
|
||||
},
|
||||
},
|
||||
inventory_image="3dforniture_inv_torch_wall.png",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.05, -0.45, 0.45, 0.05, -0.35, 0.50, },
|
||||
{ -0.05, -0.35, 0.40, 0.05, -0.25, 0.50, },
|
||||
{ -0.05, -0.25, 0.35, 0.05, -0.15, 0.45, },
|
||||
{ -0.05, -0.15, 0.30, 0.05, -0.05, 0.40, },
|
||||
{ -0.05, -0.05, 0.25, 0.05, 0.00, 0.35, },
|
||||
{ -0.10, 0.00, 0.20, 0.10, 0.05, 0.40, },
|
||||
{ -0.15, 0.05, 0.15, 0.15, 0.15, 0.45, },
|
||||
{ -0.10, 0.15, 0.20, 0.10, 0.25, 0.40, },
|
||||
{ -0.05, 0.25, 0.25, 0.05, 0.35, 0.35, },
|
||||
},
|
||||
},
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
light_source = 14,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.15, -0.45, 0.15, 0.15,0.35, 0.5 },
|
||||
},
|
||||
groups = {cracky=2},
|
||||
})
|
||||
|
||||
minetest.register_alias("3dforniture:bars", "homedecor:bars")
|
||||
minetest.register_alias("3dforniture:L_binding_bars", "homedecor:L_binding_bars")
|
||||
minetest.register_alias("3dforniture:chains", "homedecor:chains")
|
||||
minetest.register_alias("3dforniture:torch_wall", "homedecor:torch_wall")
|
||||
|
||||
minetest.register_alias('bars', 'homedecor:bars')
|
||||
minetest.register_alias('binding_bars', 'homedecor:L_binding_bars')
|
||||
minetest.register_alias('chains', 'homedecor:chains')
|
||||
minetest.register_alias('torch_wall', 'homedecor:torch_wall')
|
138
homedecor/furniture_recipes.lua
Normal file
@ -0,0 +1,138 @@
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:table", "homedecor:chair 2",
|
||||
recipe = {
|
||||
{ "group:wood","group:wood", "group:wood" },
|
||||
{ "default:stick", "", "default:stick" },
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "homedecor:table",
|
||||
burntime = 30,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:chair 2",
|
||||
recipe = {
|
||||
{ "default:stick",""},
|
||||
{ "group:wood","group:wood" },
|
||||
{ "default:stick","default:stick" },
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "homedecor:chair",
|
||||
burntime = 15,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "homedecor:armchair",
|
||||
burntime = 30,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:table_lamp_off",
|
||||
recipe = {
|
||||
{"default:paper","default:torch" ,"default:paper"},
|
||||
{"","default:stick",""},
|
||||
{"","stairs:slab_wood",""},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:table_lamp_off",
|
||||
recipe = {
|
||||
{"default:paper","default:torch" ,"default:paper"},
|
||||
{"","default:stick",""},
|
||||
{"","stairsplus:slab_wood",""},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "homedecor:table_lamp_off",
|
||||
burntime = 10,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:toilet",
|
||||
recipe = {
|
||||
{"","","bucket:bucket_water"},
|
||||
{ "default:cobble","default:cobble", "default:cobble" },
|
||||
{ "", "bucket:bucket_empty", "" },
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:sink",
|
||||
recipe = {
|
||||
{ "default:cobble","bucket:bucket_empty", "default:cobble" },
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:taps",
|
||||
recipe = {
|
||||
{ "default:steel_ingot","bucket:bucket_water", "default:steel_ingot" },
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:shower_tray",
|
||||
recipe = {
|
||||
{ "default:cobble","bucket:bucket_water", "default:cobble" },
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:shower_head",
|
||||
recipe = {
|
||||
{"default:steel_ingot", "bucket:bucket_water"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:bars 10",
|
||||
recipe = {
|
||||
{ "default:steel_ingot","default:steel_ingot","default:steel_ingot" },
|
||||
{ "default:steel_ingot","default:steel_ingot","default:steel_ingot" },
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:L_binding_bars 4",
|
||||
recipe = {
|
||||
{ "homedecor:bars","" },
|
||||
{ "homedecor:bars","homedecor:bars" },
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:chains 4",
|
||||
recipe = {
|
||||
{"","default:steel_ingot","default:steel_ingot"},
|
||||
{ "default:steel_ingot","", "default:steel_ingot" },
|
||||
{ "default:steel_ingot", "default:steel_ingot", "" },
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:chains 4",
|
||||
recipe = {
|
||||
{ "default:steel_ingot", "", "default:steel_ingot"},
|
||||
{ "glooptest:chainlink", "", "glooptest:chainlink" },
|
||||
{ "glooptest:chainlink", "", "glooptest:chainlink" },
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:torch_wall 10",
|
||||
recipe = {
|
||||
{ "default:coal_lump" },
|
||||
{ "default:steel_ingot" },
|
||||
},
|
||||
})
|
93
homedecor/init.lua
Normal file
@ -0,0 +1,93 @@
|
||||
-- Home Decor mod by VanessaE
|
||||
-- 2013-03-17
|
||||
--
|
||||
-- Mostly my own code, with bits and pieces lifted from Minetest's default
|
||||
-- lua files and from ironzorg's flowers mod. Many thanks to GloopMaster
|
||||
-- for helping me figure out the inventories used in the nightstands/dressers.
|
||||
--
|
||||
-- The code for ovens, nightstands, refrigerators are basically modified
|
||||
-- copies of the code for chests and furnaces.
|
||||
--
|
||||
-- License: LGPL 2.0 or higher
|
||||
--
|
||||
|
||||
homedecor = {}
|
||||
|
||||
homedecor.debug = 0
|
||||
|
||||
homedecor.modpath = minetest.get_modpath("homedecor")
|
||||
homedecor.intllib_modpath = minetest.get_modpath("intllib")
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S
|
||||
if homedecor.intllib_modpath then
|
||||
dofile(homedecor.intllib_modpath.."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
homedecor.gettext = S
|
||||
|
||||
-- debug
|
||||
|
||||
local dbg = function(s)
|
||||
if homedecor.debug == 1 then
|
||||
print('[HomeDecor] ' .. s)
|
||||
end
|
||||
end
|
||||
|
||||
-- infinite stacks
|
||||
|
||||
if minetest.get_modpath("unified_inventory") or not minetest.setting_getbool("creative_mode") then
|
||||
homedecor.expect_infinite_stacks = false
|
||||
else
|
||||
homedecor.expect_infinite_stacks = true
|
||||
end
|
||||
|
||||
--table copy
|
||||
|
||||
function homedecor.table_copy(t)
|
||||
local nt = { };
|
||||
for k, v in pairs(t) do
|
||||
if type(v) == "table" then
|
||||
nt[k] = homedecor.table_copy(v)
|
||||
else
|
||||
nt[k] = v
|
||||
end
|
||||
end
|
||||
return nt
|
||||
end
|
||||
|
||||
|
||||
-- load various other components
|
||||
|
||||
dofile(homedecor.modpath.."/ownership.lua")
|
||||
|
||||
dofile(homedecor.modpath.."/misc_nodes.lua") -- the catch-all for all misc nodes
|
||||
dofile(homedecor.modpath.."/tables.lua")
|
||||
dofile(homedecor.modpath.."/electronics.lua")
|
||||
dofile(homedecor.modpath.."/shutters.lua")
|
||||
dofile(homedecor.modpath.."/shingles.lua")
|
||||
dofile(homedecor.modpath.."/slopes.lua")
|
||||
|
||||
dofile(homedecor.modpath.."/door_models.lua")
|
||||
dofile(homedecor.modpath.."/doors_and_gates.lua")
|
||||
|
||||
dofile(homedecor.modpath.."/fences.lua")
|
||||
|
||||
dofile(homedecor.modpath.."/lighting.lua")
|
||||
dofile(homedecor.modpath.."/kitchen_cabinet.lua")
|
||||
dofile(homedecor.modpath.."/refrigerator.lua")
|
||||
dofile(homedecor.modpath.."/furnaces.lua")
|
||||
dofile(homedecor.modpath.."/nightstands.lua")
|
||||
|
||||
dofile(homedecor.modpath.."/crafts.lua")
|
||||
|
||||
dofile(homedecor.modpath.."/furniture.lua")
|
||||
dofile(homedecor.modpath.."/furniture_medieval.lua")
|
||||
dofile(homedecor.modpath.."/furniture_bathroom.lua")
|
||||
dofile(homedecor.modpath.."/furniture_recipes.lua")
|
||||
|
||||
dofile(homedecor.modpath.."/locked.lua")
|
||||
|
||||
print("[HomeDecor] "..S("Loaded!"))
|
160
homedecor/kitchen_cabinet.lua
Normal file
@ -0,0 +1,160 @@
|
||||
-- This file supplies Kitchen cabinets and kitchen sink
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
minetest.register_node('homedecor:kitchen_cabinet', {
|
||||
description = S("Kitchen Cabinet"),
|
||||
tiles = { 'homedecor_kitchen_cabinet_top.png',
|
||||
'homedecor_kitchen_cabinet_bottom.png',
|
||||
'homedecor_kitchen_cabinet_sides.png',
|
||||
'homedecor_kitchen_cabinet_sides.png',
|
||||
'homedecor_kitchen_cabinet_sides.png',
|
||||
'homedecor_kitchen_cabinet_front.png'},
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec",
|
||||
"size[8,8]"..
|
||||
"list[current_name;main;0,0;8,3;]"..
|
||||
"list[current_player;main;0,4;8,4;]")
|
||||
meta:set_string("infotext", S("Kitchen Cabinet"))
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main", 24)
|
||||
end,
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
return inv:is_empty("main")
|
||||
end,
|
||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
minetest.log("action", S("%s moves stuff in kitchen cabinet at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s moves stuff to kitchen cabinet at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s takes stuff from kitchen cabinet at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:kitchen_cabinet_half', {
|
||||
drawtype="nodebox",
|
||||
description = 'Half-height Kitchen Cabinet (on ceiling)',
|
||||
tiles = { 'homedecor_kitchen_cabinet_sides.png',
|
||||
'homedecor_kitchen_cabinet_bottom.png',
|
||||
'homedecor_kitchen_cabinet_sides.png',
|
||||
'homedecor_kitchen_cabinet_sides.png',
|
||||
'homedecor_kitchen_cabinet_sides.png',
|
||||
'homedecor_kitchen_cabinet_front_half.png'},
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, 0, -0.5, 0.5, 0.5, 0.5 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, 0, -0.5, 0.5, 0.5, 0.5 }
|
||||
},
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec",
|
||||
"size[8,7]"..
|
||||
"list[current_name;main;1,0;6,2;]"..
|
||||
"list[current_player;main;0,3;8,4;]")
|
||||
meta:set_string("infotext", S("Kitchen Cabinet"))
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main", 12)
|
||||
end,
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
return inv:is_empty("main")
|
||||
end,
|
||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
minetest.log("action", S("%s moves stuff in kitchen cabinet at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s moves stuff to kitchen cabinet at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s takes stuff from kitchen cabinet at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node('homedecor:kitchen_cabinet_with_sink', {
|
||||
description = S("Kitchen Cabinet with sink"),
|
||||
tiles = { 'homedecor_kitchen_cabinet_sinktop.png',
|
||||
'homedecor_kitchen_cabinet_bottom.png',
|
||||
'homedecor_kitchen_cabinet_sides.png',
|
||||
'homedecor_kitchen_cabinet_sides.png',
|
||||
'homedecor_kitchen_cabinet_sides.png',
|
||||
'homedecor_kitchen_cabinet_front.png'},
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec",
|
||||
"size[8,7]"..
|
||||
"list[current_name;main;0,0;8,2;]"..
|
||||
"list[current_player;main;0,3;8,4;]")
|
||||
meta:set_string("infotext", S("Under-sink cabinet"))
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main", 16)
|
||||
end,
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
return inv:is_empty("main")
|
||||
end,
|
||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
minetest.log("action", S("%s moves stuff in kitchen cabinet at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s moves stuff to kitchen cabinet at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s takes stuff from kitchen cabinet at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
})
|
250
homedecor/lighting.lua
Normal file
@ -0,0 +1,250 @@
|
||||
|
||||
-- This file supplies glowlights
|
||||
|
||||
local dirs1 = { 20, 23, 22, 21 }
|
||||
local dirs2 = { 9, 18, 7, 12 }
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
local colors = {"yellow","white"}
|
||||
|
||||
for i in ipairs(colors) do
|
||||
local color = colors[i]
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = { "homedecor:glowlight_thin_"..color },
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
minetest.add_node(pos, {name = "homedecor:glowlight_quarter_"..color, param2 = 20})
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = { "homedecor:glowlight_thick_"..color },
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
minetest.add_node(pos, {name = "homedecor:glowlight_half_"..color, param2 = 20})
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = { "homedecor:glowlight_thin_"..color.."_wall" },
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local fdir = node.param2 or 0
|
||||
nfdir = dirs2[fdir+1]
|
||||
minetest.add_node(pos, {name = "homedecor:glowlight_quarter_"..color, param2 = nfdir})
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = { "homedecor:glowlight_thick_"..color.."_wall" },
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local fdir = node.param2 or 0
|
||||
nfdir = dirs2[fdir+1]
|
||||
minetest.add_node(pos, {name = "homedecor:glowlight_half_"..color, param2 = nfdir})
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = { "homedecor:glowlight_small_cube_"..color.."_ceiling" },
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
minetest.add_node(pos, {name = "homedecor:glowlight_small_cube_"..color, param2 = 20})
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
-- Yellow
|
||||
|
||||
minetest.register_node('homedecor:glowlight_half_yellow', {
|
||||
description = S("Yellow Glowlight (thick)"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
'homedecor_glowlight_yellow_top.png',
|
||||
'homedecor_glowlight_yellow_bottom.png',
|
||||
'homedecor_glowlight_thick_yellow_sides.png',
|
||||
'homedecor_glowlight_thick_yellow_sides.png',
|
||||
'homedecor_glowlight_thick_yellow_sides.png',
|
||||
'homedecor_glowlight_thick_yellow_sides.png'
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 }
|
||||
},
|
||||
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
light_source = LIGHT_MAX,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = homedecor.protect_and_rotate
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:glowlight_quarter_yellow', {
|
||||
description = S("Yellow Glowlight (thin)"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
'homedecor_glowlight_yellow_top.png',
|
||||
'homedecor_glowlight_yellow_bottom.png',
|
||||
'homedecor_glowlight_thin_yellow_sides.png',
|
||||
'homedecor_glowlight_thin_yellow_sides.png',
|
||||
'homedecor_glowlight_thin_yellow_sides.png',
|
||||
'homedecor_glowlight_thin_yellow_sides.png'
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 }
|
||||
},
|
||||
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
light_source = LIGHT_MAX-1,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = homedecor.protect_and_rotate
|
||||
})
|
||||
|
||||
-- White
|
||||
|
||||
minetest.register_node('homedecor:glowlight_half_white', {
|
||||
description = S("White Glowlight (thick)"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
'homedecor_glowlight_white_top.png',
|
||||
'homedecor_glowlight_white_bottom.png',
|
||||
'homedecor_glowlight_thick_white_sides.png',
|
||||
'homedecor_glowlight_thick_white_sides.png',
|
||||
'homedecor_glowlight_thick_white_sides.png',
|
||||
'homedecor_glowlight_thick_white_sides.png'
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, 0, 0.5 }
|
||||
},
|
||||
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
light_source = LIGHT_MAX,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = homedecor.protect_and_rotate
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:glowlight_quarter_white', {
|
||||
description = S("White Glowlight (thin)"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
'homedecor_glowlight_white_top.png',
|
||||
'homedecor_glowlight_white_bottom.png',
|
||||
'homedecor_glowlight_thin_white_sides.png',
|
||||
'homedecor_glowlight_thin_white_sides.png',
|
||||
'homedecor_glowlight_thin_white_sides.png',
|
||||
'homedecor_glowlight_thin_white_sides.png'
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 }
|
||||
},
|
||||
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
light_source = LIGHT_MAX-1,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = homedecor.protect_and_rotate
|
||||
})
|
||||
|
||||
-- Glowlight "cubes"
|
||||
|
||||
minetest.register_node('homedecor:glowlight_small_cube_yellow', {
|
||||
description = S("Yellow Glowlight (small cube)"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
'homedecor_glowlight_cube_yellow_tb.png',
|
||||
'homedecor_glowlight_cube_yellow_tb.png',
|
||||
'homedecor_glowlight_cube_yellow_sides.png',
|
||||
'homedecor_glowlight_cube_yellow_sides.png',
|
||||
'homedecor_glowlight_cube_yellow_sides.png',
|
||||
'homedecor_glowlight_cube_yellow_sides.png'
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
|
||||
},
|
||||
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
light_source = LIGHT_MAX-1,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
|
||||
on_place = homedecor.protect_and_rotate
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:glowlight_small_cube_white', {
|
||||
description = S("White Glowlight (small cube)"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
'homedecor_glowlight_cube_white_tb.png',
|
||||
'homedecor_glowlight_cube_white_tb.png',
|
||||
'homedecor_glowlight_cube_white_sides.png',
|
||||
'homedecor_glowlight_cube_white_sides.png',
|
||||
'homedecor_glowlight_cube_white_sides.png',
|
||||
'homedecor_glowlight_cube_white_sides.png'
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
|
||||
},
|
||||
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
light_source = LIGHT_MAX-1,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = homedecor.protect_and_rotate
|
||||
})
|
||||
|
13
homedecor/listnodes.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Node listing as of "`date` > nodes.txt
|
||||
|
||||
for i in *.lua; do
|
||||
echo -e "\nIn $i:\n" >> nodes.txt
|
||||
cat $i | grep "minetest.register_node(" | \
|
||||
sed "s/minetest.register_node(.homedecor:/homedecor:/; s/., {//" | \
|
||||
sort >> nodes.txt
|
||||
done
|
||||
|
||||
less nodes.txt
|
||||
rm -f nodes.txt
|
194
homedecor/locale/es.txt
Normal file
@ -0,0 +1,194 @@
|
||||
|
||||
#
|
||||
# Language: Español
|
||||
# Author: Diego Martínez <lkaezadl3@gmail.com>
|
||||
#
|
||||
|
||||
### kitchen_cabinet.lua ###
|
||||
Kitchen Cabinet = Gabinete de Cocina
|
||||
## 1: Player name, 2: position
|
||||
%s moves stuff in kitchen cabinet at %s = %s mueve cosas en gabinete de cocina en %s
|
||||
%s moves stuff to kitchen cabinet at %s = %s mueve cosas al gabinete de cocina en %s
|
||||
%s takes stuff from kitchen cabinet at %s = %s toma cosas del gabinete de cocina en %s
|
||||
Half-height Kitchen Cabinet (on ceiling) = Gabinete de cocina de media altura (en techo)
|
||||
Under-sink cabinet = Gabinete con Lavabo
|
||||
Kitchen Cabinet with sink = Gabinete de cocina con lavabo
|
||||
|
||||
### door_models.lua ###
|
||||
Mahogany Closet Door = Puerta de Armario de Caoba
|
||||
Oak Closet Door = Puerta de Armario de Roble
|
||||
Fancy Wood/Glass Door = Puerta de Madera y Cristal de Lujo
|
||||
Glass Office Door = Puerta de Oficina de Cristal
|
||||
Glass and Wood, Mahogany-colored = Cristal y Madera, color Caoba
|
||||
Glass and Wood, Oak-colored = Cristal y Madera, color Roble
|
||||
Glass and Wood, White = Cristal y Madera, color Blanco
|
||||
Plain Wooden Door = Puerta Simple de Madera
|
||||
left = izquierda
|
||||
right = derecha
|
||||
## 1: Side the doors opens to
|
||||
(Top Half, %s-opening) = (Parte Superior, abre a la %s)
|
||||
(%s-opening) = (abre a la %s)
|
||||
|
||||
### door_nodes.lua ###
|
||||
Not enough vertical space to place a door! = ¡No hay suficiente espacio vertical para colocar una puerta!
|
||||
|
||||
### crafts.lua ###
|
||||
Brass Ingot = Lingote de Latón
|
||||
Bucket of white paint = Cubo de Pintura Blanca
|
||||
Legs for Small Utility table = Patas de Mesa Utilitaria Pequeña
|
||||
Plastic sheet = Lámina de Plástico
|
||||
Silicon lump = Terrón de Silicio
|
||||
Simple Integrated Circuit = Circuito Integrado Simple
|
||||
Small Wooden Drawer = Cajón Pequeño de Madera
|
||||
Terracotta Roof Tile = Teja de Terracota
|
||||
Titanium Dioxide = Dióxido de Titanio
|
||||
Uncooked Terracotta Base = Base de Terracota sin Cocer
|
||||
Unprocessed Plastic base = Base de Plástico sin Procesar
|
||||
|
||||
### fences.lua ###
|
||||
Barbed Wire Fence = Cerca de Alambre de Púas
|
||||
Barbed Wire Fence Gate = Portón de Cerca de Alambre de Púas
|
||||
Brass Fence/railing = Cerca/Barandilla de Latón
|
||||
Brass Fence/railing with sign = Cerca/Barandilla de Latón con Letrero
|
||||
Chainlink Fence = Cerca de Cadenas
|
||||
Chainlink Fence Gate = Portón de Cerca de Cadenas
|
||||
Chainlink Fence Gate (open) = Portón de Cerca de Cadenas (Abierto)
|
||||
Unpainted Picket Fence = Cerca de Piquete sin pintar
|
||||
Unpainted Picket Fence Gate = Portón de Cerca de Piquete sin pintar
|
||||
White Picket Fence = Cerca de Piquete blanca
|
||||
White Picket Fence Gate = Portón de Cerca de Piquete blanca
|
||||
Wooden Privacy Fence = Cerca privada de madera
|
||||
Wrought Iron Fence/railing = Cerca/Barandilla de Hierro Forjado
|
||||
Wrought Iron Fence/railing with sign = Cerca/Barandilla de Hierro Forjado con Letrero
|
||||
want to simply place the wielded item like usual. = solo se desea colocar el objeto empuñado normalmente.
|
||||
|
||||
### furniture_medieval.lua ###
|
||||
Bars = Barras
|
||||
Binding Bars = Barras de Unión
|
||||
Chains = Cadenas
|
||||
Wall Torch = Antorcha de Pared
|
||||
|
||||
### furniture_bathroom.lua ###
|
||||
Toilet = Inodoro
|
||||
Sink = Lavabo
|
||||
Taps = Grifo
|
||||
Shower Tray = Piso de Ducha
|
||||
Shower Head = Ducha
|
||||
|
||||
### init.lua ###
|
||||
Loaded! = ¡Cargado!
|
||||
Asphalt Shingles = Tejas de Asfalto
|
||||
Black Plastic Flower Pot = Florero de Plástico Negro
|
||||
Brass Pole = Poste de Latón
|
||||
Brass Table Legs = Patas de Mesa de Latón
|
||||
red = rojas
|
||||
green = verdes
|
||||
blue = azules
|
||||
white = blancas
|
||||
pink = rosas
|
||||
violet = violetas
|
||||
## 1: Color name
|
||||
Curtains (%s) = Cortinas (%s)
|
||||
Drop-Ceiling Tile = Cielorraso
|
||||
Glass Skylight = Claraboya de Cristal
|
||||
Glass Table (Small, Round) = Mesa de Cristal (Pequeña, Redonda)
|
||||
Glass Table (Small, Square) = Mesa de Cristal (Pequeña, Cuadrada)
|
||||
Green Plastic Flower Pot = Florero de Plástico Negro
|
||||
Large Area Rug = Manta Grande
|
||||
Large Glass Table Piece = Pieza de Mesa de Cristal Grande
|
||||
Large Stereo Speaker = Altavoz de Estéreo Grande
|
||||
Legs for Utility Table = Patas de Mesa Utilitaria
|
||||
Projection Screen Material = Material de Pantalla de Proyección
|
||||
Small Surround Speaker = Pequeño Altavoz Envolvente
|
||||
Small Throw Rug = Manta Pequeña
|
||||
Stereo Receiver = Receptor Estéreo
|
||||
Terracotta Flower Pot = Florero de Terracota
|
||||
Terracotta Roofing = Tejado de Terracota
|
||||
Textured Ceiling Paint = Pintura Texturada para Techo
|
||||
Utility Table = Mesa Utilitaria
|
||||
Utility table mk2 = Mesa Utilitaria mk2
|
||||
Wooden Shutter (Black) = Obturador de Madera (Negro)
|
||||
Wooden Shutter (Dark Grey) = Obturador de Madera (Gris Oscuro)
|
||||
Wooden Shutter (Forest Green) = Obturador de Madera (Verde Bosque)
|
||||
Wooden Shutter (Grey) = Obturador de Madera (Gris)
|
||||
Wooden Shutter (Light Blue) = Obturador de Madera (Azul Claro)
|
||||
Wooden Shutter (Purple) = Obturador de Madera (Púrpura)
|
||||
Wooden Shutter (Red) = Obturador de Madera (Rojo)
|
||||
Wooden Shutter (Unpainted Mahogany) = Obturador de Madera (Caoba sin Pintar)
|
||||
Wooden Shutter (Unpainted Oak) = Obturador de Madera (Roble sin Pintar)
|
||||
Wooden Shutter (White) = Obturador de Madera (Blanco)
|
||||
Wooden Shutter (Yellow) = Obturador de Madera (Amarillo)
|
||||
Wooden Tabletop piece = Pieza de Mesa de Madera
|
||||
Wooden Tabletop (Small, Round) = Pieza de Mesa de Madera (Pequeña, Redonda)
|
||||
Wooden Tabletop (Small, Square) = Pieza de Mesa de Madera (Pequeña, Cuadrada)
|
||||
Wood Shingles = Tejas de Madera
|
||||
Wrought Iron Pole = Poste de Hierro Forjado
|
||||
someone = alguien
|
||||
## 1: Player name
|
||||
Sorry, %s owns that spot. = Lo siento, %s es dueño de ése lugar.
|
||||
|
||||
### lighting.lua ###
|
||||
White Glowlight (small cube) = Luz Blanca (cubo pequeño)
|
||||
White Glowlight (small cube, on ceiling) = Luz Blanca (cubo pequeño, en techo)
|
||||
White Glowlight (thick) = Luz Blanca (Gruesa)
|
||||
White Glowlight (thick, on wall) = Luz Blanca (Gruesa, en pared)
|
||||
White Glowlight (thin) = Luz Blanca (Fina)
|
||||
White Glowlight (thin, on wall) = Luz Blanca (Fina, en pared)
|
||||
Yellow Glowlight (small cube) = Luz Amarilla (cubo pequeño)
|
||||
Yellow Glowlight (small cube, on ceiling) = Luz Amarilla (cubo pequeño, en techo)
|
||||
Yellow Glowlight (thick) = Luz Amarilla (Gruesa)
|
||||
Yellow Glowlight (thick, on wall) = Luz Amarilla (Gruesa, en pared)
|
||||
Yellow Glowlight (thin) = Luz Amarilla (Fina)
|
||||
Yellow Glowlight (thin, on wall) = Luz Amarilla (Fina, en pared)
|
||||
|
||||
### locked.lua ###
|
||||
## 1: Item description, 2: Owner name
|
||||
%s (owned by %s) = %s (propiedad de %s)
|
||||
## 1: Player name, 2: Item description, 3: Owner name, 4: Position
|
||||
%s tried to access a %s belonging to %s at %s = %s ha intentado acceder un(a) %s propiedad de %s en %s
|
||||
## 1: Item description
|
||||
%s (Locked) = %s (Cerrado)
|
||||
Locked Cabinet = Gabinete Cerrado
|
||||
Locked Nightstand = Mesa de Noche Cerrada
|
||||
Locked Fridge = Refri Cerrado
|
||||
Locked Oven = Estufa Cerrada
|
||||
|
||||
### nightstands.lua ###
|
||||
Mahogany Nightstand with One Drawer = Mesa de Noche de Caoba, un Cajón
|
||||
Mahogany Nightstand with Two Drawers = Mesa de Noche de Caoba, dos Cajones
|
||||
Oak Nightstand with One Drawer = Mesa de Noche de Roble, un Cajón
|
||||
Oak Nightstand with Two Drawers = Mesa de Noche de Roble, dos Cajones
|
||||
## 1: Player name, 2: position
|
||||
%s moves stuff in nightstand at %s = %s mueve cosas en mesa de noche en %s
|
||||
%s moves stuff to nightstand at %s = %s mueve cosas hacia mesa de noche en %s
|
||||
%s takes stuff from nightstand at %s = %s mueve cosas desde mesa de noche en %s
|
||||
One-drawer Nightstand = Mesa de Noche de un Cajón
|
||||
Two-drawer Nightstand = Mesa de Noche de dos Cajones
|
||||
|
||||
### oven.lua ###
|
||||
Oven = Estufa
|
||||
## 1: Item name
|
||||
Could not insert '%s' = No se pudo insertar '%s'
|
||||
## 1: Percentage
|
||||
Oven active: %d%% = Estufa activa: %d%%
|
||||
Oven out of fuel = Estufa sin combustible
|
||||
Oven is empty = Estufavacía
|
||||
|
||||
### refrigerator.lua ###
|
||||
Refrigerator = Refrigerador
|
||||
## 1: Player name, 2: position
|
||||
%s moves stuff in refrigerator at %s = %s mueve cosas en refrigerador en %s
|
||||
%s moves stuff to refrigerator at %s = %s mueve cosas hacia refrigerador en %s
|
||||
%s takes stuff from refrigerator at %s = %s mueve cosas desde refrigerador en %s
|
||||
Not enough vertical space to place a refrigerator! = ¡No hay suficiente espacio vertical para colocar un refrigerador!
|
||||
|
||||
### television.lua ###
|
||||
Small CRT Television = Pequeña Televisión CRT
|
||||
|
||||
### signs_lib.lua ###
|
||||
%s wrote "%s" to sign at %s = %s ha escrito "%s" en el letrero en %s
|
||||
Reading cached character database. = Leyendo base de datos de catacteres.
|
||||
Font seems to have changed. Rebuilding cache. = La fuente parece haber cambiado. Reconstruyendo información guardada.
|
||||
Could not find font line height in cached DB. Trying brute force. = No se pudo encontrar la altura de línea en la base de datos. Intentando con fuerza bruta.
|
||||
Registered %s and %s = Registrados %s y %s
|
||||
signs loaded = letreros cargados
|
180
homedecor/locale/fr.txt
Normal file
@ -0,0 +1,180 @@
|
||||
|
||||
#
|
||||
# Language: Français
|
||||
# Author: Calinou
|
||||
#
|
||||
|
||||
### kitchen_cabinet.lua ###
|
||||
Kitchen Cabinet = Meuble de cuisine
|
||||
## 1: Player name, 2: position
|
||||
%s moves stuff in kitchen cabinet at %s = %s déplace des objets dans un meuble de cuisine à %s
|
||||
%s moves stuff to kitchen cabinet at %s = %s édplace des objets vers un meuble de cuisine à %s
|
||||
%s takes stuff from kitchen cabinet at %s = %s prend des objets d'un meuble de cuisine à %s
|
||||
Half-height Kitchen Cabinet (on ceiling) = Meuble de cuisine réduit en hauteur (sur le plafond)
|
||||
Under-sink cabinet = Meuble sous évier
|
||||
Kitchen Cabinet with sink = Meuble de cuisine avec lavabo
|
||||
|
||||
### door_models.lua ###
|
||||
Mahogany Closet Door = Porte en bois d'acajou
|
||||
Oak Closet Door = Porte en bois de chêne
|
||||
Fancy Wood/Glass Door = Porte artistique en bois et verre
|
||||
Glass Office Door = Porte en verre
|
||||
Glass and Wood, Mahogany-colored = Porte couleur acajou en bois et verre
|
||||
Glass and Wood, Oak-colored = Porte couleur chêne en bois et verre
|
||||
Glass and Wood, White = Porte blanche en bois et verre
|
||||
Plain Wooden Door = Porte en bois simple
|
||||
left = gauche
|
||||
right = droite
|
||||
## 1: Side the doors opens to
|
||||
(Top Half, %s-opening) = (partie supérieur, charnière à %s)
|
||||
(%s-opening) = (charnière à %s)
|
||||
|
||||
### door_nodes.lua ###
|
||||
Not enough vertical space to place a door! = Pas assez d'espace vertical pour placer une porte !
|
||||
|
||||
### crafts.lua ###
|
||||
Brass Ingot = Lingot de laiton
|
||||
Bucket of white paint = Seau de peinture blanche
|
||||
Legs for Small Utility table = Pieds pour table basse
|
||||
Plastic sheet = Bout de plastique
|
||||
Silicon lump = Silicone
|
||||
Simple Integrated Circuit = Circuit intégré simple
|
||||
Small Wooden Drawer = Petit tiroir en bois
|
||||
Terracotta Roof Tile = Tuile de toit en terre cuite
|
||||
Titanium Dioxide = Dioxide de titane
|
||||
Uncooked Terracotta Base = Base de terre non cuite
|
||||
Unprocessed Plastic base = Base de plastique non transformée
|
||||
|
||||
### fences.lua ###
|
||||
Barbed Wire Fence = Barrière en fil barbelé
|
||||
Barbed Wire Fence Gate = Porte de barrière en fil barbelé
|
||||
Brass Fence/railing = Barrière en laiton
|
||||
Brass Fence/railing with sign = Barrière en laiton avec pancarte
|
||||
Chainlink Fence = Grillage
|
||||
Chainlink Fence Gate = Porte de grillage
|
||||
Chainlink Fence Gate (open) = Porte de grillage (ouverte)
|
||||
Unpainted Picket Fence = Barrière en piquets non peinte
|
||||
Unpainted Picket Fence Gate = Porte de barrière en piquets non peinte
|
||||
White Picket Fence = Barrière en piquets blanche
|
||||
White Picket Fence Gate = Porte de barrière en piquets blanche
|
||||
Wooden Privacy Fence = Barrière en bois
|
||||
Wrought Iron Fence/railing = Barrière en fer forgé
|
||||
Wrought Iron Fence/railing with sign = Barrière en fer forgé avec pancarte
|
||||
want to simply place the wielded item like usual. = veut simplement placer l'objet comme d'habitude.
|
||||
|
||||
### init.lua ###
|
||||
Loaded! = Chargé !
|
||||
Asphalt Shingles = Bardeaux d'asphalte
|
||||
Black Plastic Flower Pot = Pot de fleur en plastique noir
|
||||
Brass Pole = Barre en laiton
|
||||
Brass Table Legs = Pieds de table en laiton
|
||||
red = rouges
|
||||
green = vertes
|
||||
blue = bleues
|
||||
white = blanches
|
||||
pink = roses
|
||||
violet = violettes
|
||||
## 1: Color name
|
||||
Curtains (%s) = Volets (%s)
|
||||
Drop-Ceiling Tile = Dalle suspendue au plafond
|
||||
Glass Skylight = Verre
|
||||
Glass Table (Small, Round) = Table en verre (petite, ronde)
|
||||
Glass Table (Small, Square) = Table en verre (petite, carrée)
|
||||
Green Plastic Flower Pot = Pot de fleur en plastique vert
|
||||
Large Area Rug = Grande couverture
|
||||
Large Glass Table Piece = Grand bout de verre de table
|
||||
Large Stereo Speaker = Grand haut-parleur stéréo
|
||||
Legs for Utility Table = Pieds pour table basse
|
||||
Projection Screen Material = Matériel pour projecteur
|
||||
Small Surround Speaker = Petit haut-parleur surround
|
||||
Small Throw Rug = Petite couverture
|
||||
Stereo Receiver = Récepteur stéréo
|
||||
Terracotta Flower Pot = Pot de fleur en terre cuite
|
||||
Terracotta Roofing = Tuile en terre cuite
|
||||
Textured Ceiling Paint = Papier peint avec motif pour plafond
|
||||
Utility Table = Table basse
|
||||
Utility table mk2 = Table basse MK2
|
||||
Wooden Shutter (Black) = Volet en bois (noir)
|
||||
Wooden Shutter (Dark Grey) = Volet en bois (gris foncé)
|
||||
Wooden Shutter (Forest Green) = Volet en bois (vert foncé)
|
||||
Wooden Shutter (Grey) = Volet en bois (gris)
|
||||
Wooden Shutter (Light Blue) = Volet en bois (bleu clair)
|
||||
Wooden Shutter (Purple) = Volet en bois (violet)
|
||||
Wooden Shutter (Red) = Volet en bois (rouge)
|
||||
Wooden Shutter (Unpainted Mahogany) = Volet en bois (acajou non peint)
|
||||
Wooden Shutter (Unpainted Oak) = Volet en bois (chêne non peint)
|
||||
Wooden Shutter (White) = Volet en bois (blanc)
|
||||
Wooden Shutter (Yellow) = Volet en bois (jaune)
|
||||
Wooden Tabletop piece = Bout de dessus de table
|
||||
Wooden Tabletop (Small, Round) = Dessus de table (petit, rond)
|
||||
Wooden Tabletop (Small, Square) = Dessus de table (petit, carré)
|
||||
Wood Shingles = Bardeaux de bois
|
||||
Wrought Iron Pole = Barre de fer forgé
|
||||
someone = quelqu'un
|
||||
## 1: Player name
|
||||
Sorry, %s owns that spot. = Désolé, %s est propriétaire de cette zone.
|
||||
|
||||
### lighting.lua ###
|
||||
White Glowlight (small cube) = Lampe blanche (petit cube)
|
||||
White Glowlight (small cube, on ceiling) = Lampe blanche (petit cube, sur le plafond)
|
||||
White Glowlight (thick) = Lampe blanche (épaisse)
|
||||
White Glowlight (thick, on wall) = Lampe blanche (épaisse, sur le mur)
|
||||
White Glowlight (thin) = Lampe blanche (fine)
|
||||
White Glowlight (thin, on wall) = Lampe blanche (fine, sur le mur)
|
||||
Yellow Glowlight (small cube) = Lampe jaune (petit cube)
|
||||
Yellow Glowlight (small cube, on ceiling) = Lampe jaune (petit cube, sur le plafond)
|
||||
Yellow Glowlight (thick) = Lampe jaune (épaisse)
|
||||
Yellow Glowlight (thick, on wall) = Lampe jaune (épaisse, sur le mur)
|
||||
Yellow Glowlight (thin) = Lampe jaune (fine)
|
||||
Yellow Glowlight (thin, on wall) = Lampe jaune (fine, sur le mur)
|
||||
|
||||
### locked.lua ###
|
||||
## 1: Item description, 2: Owner name
|
||||
%s (owned by %s) = %s (propriété de %s)
|
||||
## 1: Player name, 2: Item description, 3: Owner name, 4: Position
|
||||
%s tried to access a %s belonging to %s at %s = %s a essayé d'accéder à %s qui est propriété de %s à %s
|
||||
## 1: Item description
|
||||
%s (Locked) = %s (verrouillé)
|
||||
Locked Cabinet = Meuble verrouillé
|
||||
Locked Nightstand = Table de chevet verrouillée
|
||||
Locked Fridge = Réfrégirateur verrouillé
|
||||
Locked Oven = Four verrouillé
|
||||
|
||||
### nightstands.lua ###
|
||||
Mahogany Nightstand with One Drawer = Table de chevet en acajou avec un tiroir
|
||||
Mahogany Nightstand with Two Drawers = Table de chevet en acajou avec deux tiroirs
|
||||
Oak Nightstand with One Drawer = Table de chevet en chêne avec un tiroir
|
||||
Oak Nightstand with Two Drawers = Table de chevet en chêne avec deux tiroirs
|
||||
## 1: Player name, 2: position
|
||||
%s moves stuff in nightstand at %s = %s déplace des objets dans une table de chevet à %s
|
||||
%s moves stuff to nightstand at %s = %s déplace des objets vers une table de chevet à %s
|
||||
%s takes stuff from nightstand at %s = %s prend des objets d'une table de chevet à %s
|
||||
One-drawer Nightstand = Table de chevet avec un tiroir
|
||||
Two-drawer Nightstand = Table de chevet avec deux tiroirs
|
||||
|
||||
### oven.lua ###
|
||||
Oven = Four
|
||||
## 1: Item name
|
||||
Could not insert '%s' = Ne peut insérer '%s'
|
||||
## 1: Percentage
|
||||
Oven active: %d%% = Four actif : %d%%
|
||||
Oven out of fuel = Four sans carburant
|
||||
Oven is empty = Four vide
|
||||
|
||||
### refrigerator.lua ###
|
||||
Refrigerator = Réfrégirateur
|
||||
## 1: Player name, 2: position
|
||||
%s moves stuff in refrigerator at %s = %s déplace des objets dans un réfrégirateur à %s
|
||||
%s moves stuff to refrigerator at %s = %s déplace des objets vers un réfrégirateur à %s
|
||||
%s takes stuff from refrigerator at %s = %s prend des objets d'un réfrégirateur à %s
|
||||
Not enough vertical space to place a refrigerator! = Pas assez d'espace vertical pour placer un réfrégirateur !
|
||||
|
||||
### television.lua ###
|
||||
Small CRT Television = Petite télévision à tube cathodique
|
||||
|
||||
### signs_lib.lua ###
|
||||
E: character map file not found = E: fichier de table de caractère non trouvé
|
||||
## 1: Full String, 2: pos in string, 3: current char at pos
|
||||
W: unknown symbol in '%s' at %d (probably %s) = A: symbole inconnu dans '%s' dans %d (probablement %s)
|
||||
%s wrote "%s" to sign at %s =
|
||||
signs loaded =
|
198
homedecor/locale/pt.txt
Normal file
@ -0,0 +1,198 @@
|
||||
|
||||
# Brazilian Portuguese translation of homedecor
|
||||
# Last update: 2013/11/10
|
||||
# Last translator: Aracnus <frederico@teia.bio.br>
|
||||
|
||||
### Special strings ###
|
||||
|
||||
### kitchen_cabinet.lua ###
|
||||
Kitchen Cabinet = Armário de cozinha
|
||||
## 1: Player name, 2: position
|
||||
%s moves stuff in kitchen cabinet at %s = %s moveu itens no armário de cozinha em %s
|
||||
%s moves stuff to kitchen cabinet at %s = %s moveu itens para o armário de cozinha em %s
|
||||
%s takes stuff from kitchen cabinet at %s = %s retirou itens do armário de cozinha em %s
|
||||
Half-height Kitchen Cabinet (on ceiling) = Meio armário de cozinha (no teto)
|
||||
Under-sink cabinet = Armário sob a pia
|
||||
Kitchen Cabinet with sink = Armário de cozinha com pia
|
||||
|
||||
### door_models.lua ###
|
||||
Mahogany Closet Door = Porta do armário de mogno
|
||||
Oak Closet Door = Porta do armário de carvalho
|
||||
Fancy Wood/Glass Door = Porta de madeira/vidro trabalhada
|
||||
Glass Office Door = Porta de escritório de vidro
|
||||
Glass and Wood, Mahogany-colored = Vidro e madeira (mogno)
|
||||
Glass and Wood, Oak-colored = Vidro e madeira (carvalho)
|
||||
Glass and Wood, White = Vidro e madeira (branca)
|
||||
Plain Wooden Door = Porta de madeira simples
|
||||
left = esquerda
|
||||
right = direita
|
||||
## 1: Side the doors opens to
|
||||
(Top Half, %s-opening) = (Metade superior, abre para %s)
|
||||
(%s-opening) = (abre para %s)
|
||||
|
||||
|
||||
### door_nodes.lua ###
|
||||
Not enough vertical space to place a door! = Não existe espaço vertical suficiente para colocar uma porta.
|
||||
|
||||
### crafts.lua ###
|
||||
Brass Ingot = Lingote de bronze
|
||||
Bucket of white paint = Balde de tinta branca
|
||||
Legs for Small Utility table = Pernas para mesa pequena
|
||||
Plastic sheet = Folha de plástico
|
||||
Silicon lump = Massa de silício
|
||||
Simple Integrated Circuit = Circuito integrado simples
|
||||
Small Wooden Drawer = Gaveta pequena de madeira
|
||||
Terracotta Roof Tile = Telha de terracota
|
||||
Titanium Dioxide = Dióxido de titânio
|
||||
Uncooked Terracotta Base = Base bruta de terracota
|
||||
Unprocessed Plastic base = Base de plástico não processada
|
||||
|
||||
### door_models.lua ###
|
||||
|
||||
### door_nodes.lua ###
|
||||
|
||||
### fences.lua ###
|
||||
Barbed Wire Fence = Cerca de arame farpado
|
||||
Barbed Wire Fence Gate = Portão da cerca de arame farpado
|
||||
Brass Fence/railing = Cerca/corrimão de bronze
|
||||
Brass Fence/railing with sign = Cerca/corrimão de bronze, com placa
|
||||
Chainlink Fence = Cerca de tela de arame
|
||||
Chainlink Fence Gate = Portão da cerca de tela de arame
|
||||
Chainlink Fence Gate (open) = Portão da cerca de tela de arame (aberto)
|
||||
Unpainted Picket Fence = Cerca de tábuas não pintada
|
||||
Unpainted Picket Fence Gate = Portão da cerca de madeira não pintado
|
||||
White Picket Fence = Cerca de madeira branca
|
||||
White Picket Fence Gate = Portão da cerca de madeira branco
|
||||
Wooden Privacy Fence = Cerca fechada de mandeira
|
||||
Wrought Iron Fence/railing = Cerca/corrimão de ferro forjado
|
||||
Wrought Iron Fence/railing with sign = Cerca/corrimão de ferro forjado, com placa
|
||||
want to simply place the wielded item like usual. = quer somente colocar o item empunhado normalmente.
|
||||
|
||||
### furniture_medieval.lua ###
|
||||
Bars = Barras
|
||||
Binding Bars = Barras do canto
|
||||
Chains = Correntes
|
||||
Wall Torch = Tocha de parede
|
||||
|
||||
### furniture_bathroom.lua ###
|
||||
Toilet = Vaso sanitário
|
||||
Sink = Pia
|
||||
Taps = Torneira
|
||||
Shower Tray = Ralo do chuveiro
|
||||
Shower Head = Chuveiro
|
||||
|
||||
### init.lua ###
|
||||
Loaded! = Carregado!
|
||||
Asphalt Shingles = Telhas de asfalto
|
||||
Black Plastic Flower Pot = Vaso de flor de plástico preto
|
||||
Brass Pole = Poste de bronze
|
||||
Brass Table Legs = Pernas da mesa de bronze
|
||||
red = vermelho
|
||||
green = verde
|
||||
blue = azul
|
||||
white = branco
|
||||
pink = rosa
|
||||
violet = violeta
|
||||
## 1: Color name
|
||||
Curtains (%s) = Cortina (%s)
|
||||
Drop-Ceiling Tile = Placa de teto
|
||||
Glass Skylight = Claraboia de vidro
|
||||
Glass Table (Small, Round) = Mesa de vidro (pequena, redonda)
|
||||
Glass Table (Small, Square) = Mesa de vidro (pequena, quadrada)
|
||||
Green Plastic Flower Pot = Vaso de flor de plástico verde
|
||||
Large Area Rug = Tapete grande
|
||||
Large Glass Table Piece = Pedaço da mesa grande de vidro
|
||||
Large Stereo Speaker = Auto-falante grande
|
||||
Legs for Utility Table = Pernas para mesa
|
||||
Projection Screen Material = Material de tela de projeção
|
||||
Small Surround Speaker = Auto-falante pequeno
|
||||
Small Throw Rug = Tapete pequeno
|
||||
Stereo Receiver = Aparelho de som
|
||||
Terracotta Flower Pot = Vaso de flor de terracota
|
||||
Terracotta Roofing = Telhado de terracota
|
||||
Textured Ceiling Paint = Pintura texturizada do teto
|
||||
Utility Table = Mesa de trabalho
|
||||
Utility table mk2 = Mesa de trabalho mk2
|
||||
Wooden Shutter (Black) = Persiana de madeira (preta)
|
||||
Wooden Shutter (Dark Grey) = Persiana de madeira (cinza escura)
|
||||
Wooden Shutter (Forest Green) = Persiana de madeira (verde)
|
||||
Wooden Shutter (Grey) = Persiana de madeira (cinza)
|
||||
Wooden Shutter (Light Blue) = Persiana de madeira (azul clara)
|
||||
Wooden Shutter (Purple) = Persiana de madeira (roxa)
|
||||
Wooden Shutter (Red) = Persiana de madeira (vermelha)
|
||||
Wooden Shutter (Unpainted Mahogany) = Persiana de madeira (mogno)
|
||||
Wooden Shutter (Unpainted Oak) = Persiana de madeira (carvalho)
|
||||
Wooden Shutter (White) = Persiana de madeira (branca)
|
||||
Wooden Shutter (Yellow) = Persiana de madeira (amarela)
|
||||
Wooden Tabletop piece = Pedaço do tampo da mesa
|
||||
Wooden Tabletop (Small, Round) = Tampo da mesa (pequeno, arredondado)
|
||||
Wooden Tabletop (Small, Square) = Tampo da mesa (pequeno, quadrado)
|
||||
Wood Shingles = Telhas de madeira
|
||||
Wrought Iron Pole = Poste de ferro forjado
|
||||
someone = alguém
|
||||
## 1: Player name
|
||||
Sorry, %s owns that spot. = Desculpe, mas esse local pertence a %s.
|
||||
|
||||
### lighting.lua ###
|
||||
White Glowlight (small cube) = Arandela branca (cubo pequeno)
|
||||
White Glowlight (small cube, on ceiling) = Arandela branca (cubo pequeno, na parede)
|
||||
White Glowlight (thick) = Arandela branca (grossa)
|
||||
White Glowlight (thick, on wall) = Arandela branca (grossa, na parede)
|
||||
White Glowlight (thin) = Arandela branca (fina)
|
||||
White Glowlight (thin, on wall) = Arandela branca (fina, na parede)
|
||||
Yellow Glowlight (small cube) = Arandela amarela (cubo pequeno)
|
||||
Yellow Glowlight (small cube, on ceiling) = Arandela amarela (cubo pequeno, na parede)
|
||||
Yellow Glowlight (thick) = Arandela amarela (grossa)
|
||||
Yellow Glowlight (thick, on wall) = Arandela amarela (grossa, na parede)
|
||||
Yellow Glowlight (thin) = Arandela amarela (fina)
|
||||
Yellow Glowlight (thin, on wall) = Arandela amarela (fina, na parede)
|
||||
|
||||
### locked.lua ###
|
||||
## 1: Item description, 2: Owner name
|
||||
%s (owned by %s) = %s (pertence a %s)
|
||||
## 1: Player name, 2: Item description, 3: Owner name, 4: Position
|
||||
%s tried to access a %s belonging to %s at %s = %s tentou acessar %s pertencente a %s em %s
|
||||
## 1: Item description
|
||||
%s (Locked) = %s (trancado)
|
||||
Locked Cabinet = Armário trancado
|
||||
Locked Nightstand = Criado-mudo trancado
|
||||
|
||||
### nightstands.lua ###
|
||||
Mahogany Nightstand with One Drawer = Criado-mudo de mogno, com uma gaveta
|
||||
Mahogany Nightstand with Two Drawers = Criado-mudo de mogno, com duas gavetas
|
||||
Oak Nightstand with One Drawer = Criado-mudo de carvalho, com uma gaveta
|
||||
Oak Nightstand with Two Drawers = Criado-mudo de carvalho, com duas gavetas
|
||||
## 1: Player name, 2: position
|
||||
%s moves stuff in nightstand at %s = %s moveu item(ns) no criado-mudo em %s
|
||||
%s moves stuff to nightstand at %s = %s moveu item(ns) para o criado-mudo em %s
|
||||
%s takes stuff from nightstand at %s = %s tirou item(ns) do criado-mudo em %s
|
||||
One-drawer Nightstand = Criado-mudo com uma gaveta
|
||||
Two-drawer Nightstand = Criado-mudo com duas gavetas
|
||||
|
||||
### oven.lua ###
|
||||
Oven = Forno
|
||||
## 1: Item name
|
||||
Could not insert '%s' = Não foi possível inserir '%s'
|
||||
## 1: Percentage
|
||||
Oven active: %d%% = Forno ativo: %d%%
|
||||
Oven out of fuel = O forno está sem combustível
|
||||
Oven is empty = O forno está vazio
|
||||
|
||||
### refrigerator.lua ###
|
||||
Refrigerator = Geladeira
|
||||
## 1: Player name, 2: position
|
||||
%s moves stuff in refrigerator at %s = %s moveu item(ns) na geladeira em %s
|
||||
%s moves stuff to refrigerator at %s = %s moveu item(ns) para a geladeira em %s
|
||||
%s takes stuff from refrigerator at %s = %s tirou item(ns) da geladeira em %s
|
||||
Not enough vertical space to place a refrigerator! = Não existe espaço vertical suficiente para adicionar uma geladeira.
|
||||
|
||||
### television.lua ###
|
||||
Small CRT Television = TV de tubo pequena
|
||||
|
||||
### signs_lib.lua ###
|
||||
%s wrote "%s" to sign at %s = %s escreveu "%s" na placa em %s
|
||||
Reading cached character database. = Lendo banco de dados de caracteres no cache.
|
||||
Font seems to have changed. Rebuilding cache. = Aparentemente as fontes foram alteradas. Reconstruindo o cache.
|
||||
Could not find font line height in cached DB. Trying brute force. = Não foi possível encontrar a altura da linha da fonte no cache do BD. Tentando na marra.
|
||||
Registered %s and %s = %s e %s registrados
|
||||
signs loaded = placas carregadas
|
198
homedecor/locale/template.txt
Normal file
@ -0,0 +1,198 @@
|
||||
|
||||
##########################
|
||||
# Template language file #
|
||||
##########################
|
||||
|
||||
### Special strings ###
|
||||
|
||||
### kitchen_cabinet.lua ###
|
||||
Kitchen Cabinet =
|
||||
## 1: Player name, 2: position
|
||||
%s moves stuff in kitchen cabinet at %s =
|
||||
%s moves stuff to kitchen cabinet at %s =
|
||||
%s takes stuff from kitchen cabinet at %s =
|
||||
Half-height Kitchen Cabinet (on ceiling) =
|
||||
Under-sink cabinet =
|
||||
Kitchen Cabinet with sink =
|
||||
|
||||
### door_models.lua ###
|
||||
Mahogany Closet Door =
|
||||
Oak Closet Door =
|
||||
Fancy Wood/Glass Door =
|
||||
Glass Office Door =
|
||||
Glass and Wood, Mahogany-colored =
|
||||
Glass and Wood, Oak-colored =
|
||||
Glass and Wood, White =
|
||||
Plain Wooden Door =
|
||||
left =
|
||||
right =
|
||||
## 1: Side the doors opens to
|
||||
(Top Half, %s-opening) =
|
||||
(%s-opening) =
|
||||
|
||||
|
||||
### door_nodes.lua ###
|
||||
Not enough vertical space to place a door! =
|
||||
|
||||
### crafts.lua ###
|
||||
Brass Ingot =
|
||||
Bucket of white paint =
|
||||
Legs for Small Utility table =
|
||||
Plastic sheet =
|
||||
Silicon lump =
|
||||
Simple Integrated Circuit =
|
||||
Small Wooden Drawer =
|
||||
Terracotta Roof Tile =
|
||||
Titanium Dioxide =
|
||||
Uncooked Terracotta Base =
|
||||
Unprocessed Plastic base =
|
||||
|
||||
### door_models.lua ###
|
||||
|
||||
### door_nodes.lua ###
|
||||
|
||||
### fences.lua ###
|
||||
Barbed Wire Fence =
|
||||
Barbed Wire Fence Gate =
|
||||
Brass Fence/railing =
|
||||
Brass Fence/railing with sign =
|
||||
Chainlink Fence =
|
||||
Chainlink Fence Gate =
|
||||
Chainlink Fence Gate (open) =
|
||||
Unpainted Picket Fence =
|
||||
Unpainted Picket Fence Gate =
|
||||
White Picket Fence =
|
||||
White Picket Fence Gate =
|
||||
Wooden Privacy Fence =
|
||||
Wrought Iron Fence/railing =
|
||||
Wrought Iron Fence/railing with sign =
|
||||
want to simply place the wielded item like usual. =
|
||||
|
||||
### furniture_medieval.lua ###
|
||||
Bars =
|
||||
Binding Bars =
|
||||
Chains =
|
||||
Wall Torch =
|
||||
|
||||
### furniture_bathroom.lua ###
|
||||
Toilet =
|
||||
Sink =
|
||||
Taps =
|
||||
Shower Tray =
|
||||
Shower Head =
|
||||
|
||||
### init.lua ###
|
||||
Loaded! =
|
||||
Asphalt Shingles =
|
||||
Black Plastic Flower Pot =
|
||||
Brass Pole =
|
||||
Brass Table Legs =
|
||||
red =
|
||||
green =
|
||||
blue =
|
||||
white =
|
||||
pink =
|
||||
violet =
|
||||
## 1: Color name
|
||||
Curtains (%s) =
|
||||
Drop-Ceiling Tile =
|
||||
Glass Skylight =
|
||||
Glass Table (Small, Round) =
|
||||
Glass Table (Small, Square) =
|
||||
Green Plastic Flower Pot =
|
||||
Large Area Rug =
|
||||
Large Glass Table Piece =
|
||||
Large Stereo Speaker =
|
||||
Legs for Utility Table =
|
||||
Projection Screen Material =
|
||||
Small Surround Speaker =
|
||||
Small Throw Rug =
|
||||
Stereo Receiver =
|
||||
Terracotta Flower Pot =
|
||||
Terracotta Roofing =
|
||||
Textured Ceiling Paint =
|
||||
Utility Table =
|
||||
Utility table mk2 =
|
||||
Wooden Shutter (Black) =
|
||||
Wooden Shutter (Dark Grey) =
|
||||
Wooden Shutter (Forest Green) =
|
||||
Wooden Shutter (Grey) =
|
||||
Wooden Shutter (Light Blue) =
|
||||
Wooden Shutter (Purple) =
|
||||
Wooden Shutter (Red) =
|
||||
Wooden Shutter (Unpainted Mahogany) =
|
||||
Wooden Shutter (Unpainted Oak) =
|
||||
Wooden Shutter (White) =
|
||||
Wooden Shutter (Yellow) =
|
||||
Wooden Tabletop piece =
|
||||
Wooden Tabletop (Small, Round) =
|
||||
Wooden Tabletop (Small, Square) =
|
||||
Wood Shingles =
|
||||
Wrought Iron Pole =
|
||||
someone =
|
||||
## 1: Player name
|
||||
Sorry, %s owns that spot. =
|
||||
|
||||
### lighting.lua ###
|
||||
White Glowlight (small cube) =
|
||||
White Glowlight (small cube, on ceiling) =
|
||||
White Glowlight (thick) =
|
||||
White Glowlight (thick, on wall) =
|
||||
White Glowlight (thin) =
|
||||
White Glowlight (thin, on wall) =
|
||||
Yellow Glowlight (small cube) =
|
||||
Yellow Glowlight (small cube, on ceiling) =
|
||||
Yellow Glowlight (thick) =
|
||||
Yellow Glowlight (thick, on wall) =
|
||||
Yellow Glowlight (thin) =
|
||||
Yellow Glowlight (thin, on wall) =
|
||||
|
||||
### locked.lua ###
|
||||
## 1: Item description, 2: Owner name
|
||||
%s (owned by %s) =
|
||||
## 1: Player name, 2: Item description, 3: Owner name, 4: Position
|
||||
%s tried to access a %s belonging to %s at %s =
|
||||
## 1: Item description
|
||||
%s (Locked) =
|
||||
Locked Cabinet =
|
||||
Locked Nightstand =
|
||||
|
||||
### nightstands.lua ###
|
||||
Mahogany Nightstand with One Drawer =
|
||||
Mahogany Nightstand with Two Drawers =
|
||||
Oak Nightstand with One Drawer =
|
||||
Oak Nightstand with Two Drawers =
|
||||
## 1: Player name, 2: position
|
||||
%s moves stuff in nightstand at %s =
|
||||
%s moves stuff to nightstand at %s =
|
||||
%s takes stuff from nightstand at %s =
|
||||
One-drawer Nightstand =
|
||||
Two-drawer Nightstand =
|
||||
|
||||
### oven.lua ###
|
||||
Oven =
|
||||
## 1: Item name
|
||||
Could not insert '%s' =
|
||||
## 1: Percentage
|
||||
Oven active: %d%% =
|
||||
Oven out of fuel =
|
||||
Oven is empty =
|
||||
|
||||
### refrigerator.lua ###
|
||||
Refrigerator =
|
||||
## 1: Player name, 2: position
|
||||
%s moves stuff in refrigerator at %s =
|
||||
%s moves stuff to refrigerator at %s =
|
||||
%s takes stuff from refrigerator at %s =
|
||||
Not enough vertical space to place a refrigerator! =
|
||||
|
||||
### television.lua ###
|
||||
Small CRT Television =
|
||||
|
||||
### signs_lib.lua ###
|
||||
%s wrote "%s" to sign at %s =
|
||||
Reading cached character database. =
|
||||
Font seems to have changed. Rebuilding cache. =
|
||||
Could not find font line height in cached DB. Trying brute force. =
|
||||
Registered %s and %s =
|
||||
signs loaded =
|
151
homedecor/locked.lua
Normal file
@ -0,0 +1,151 @@
|
||||
-- Locked Stuff for Home Decor mod, by Kaeza
|
||||
-- 2013-02-19
|
||||
--
|
||||
-- The code is mostly copypasta from default:chest_locked, with a few
|
||||
-- tidbits to ease creation of new items, should need arise.
|
||||
--
|
||||
-- License: LGPL
|
||||
--
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
--[[
|
||||
| create_locked ( name, infotext )
|
||||
|
|
||||
| Description:
|
||||
| This function takes a base node name such as "homedecor:refrigerator",
|
||||
| copies the definition from the original item into a new table, modifies
|
||||
| it a bit, and registers a new node with a "_locked" suffix such as
|
||||
| "homedecor:refrigerator_locked". The new node behaves identically to
|
||||
| the base node, except that moving items to/from the node's inventory
|
||||
| is only allowed for the original placer. In addition, it register a new
|
||||
| shapeless recipe for the node, using the base node plus a steel ingot.
|
||||
|
|
||||
| Arguments:
|
||||
| name The base node name
|
||||
| infotext The infotext description (in case the name is too long).
|
||||
|
|
||||
| Example Usage:
|
||||
| create_locked("homedecor:refrigerator", "Locked Fridge")
|
||||
| ^ This generates a new "Locked Refrigerator" node, whose infotext is
|
||||
| "Locked Fridge (owned by <placer>)".
|
||||
|
|
||||
| Notes:
|
||||
| If <infotext> is not specified (or is nil), the infotext will be the
|
||||
| base node's description prefixed by "Locked ".
|
||||
|
|
||||
| The ABM for the locked oven is defined in oven.lua.
|
||||
]]
|
||||
local function create_locked ( name, infotext )
|
||||
local def = { }
|
||||
for k, v in pairs(minetest.registered_nodes[name]) do
|
||||
def[k] = v
|
||||
end
|
||||
def.type = nil
|
||||
def.name = nil
|
||||
def.description = S("%s (Locked)"):format(def.description)
|
||||
local after_place_node = def.after_place_node
|
||||
def.after_place_node = function(pos, placer)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("owner", placer:get_player_name() or "")
|
||||
meta:set_string("infotext", S("%s (owned by %s)"):format(infotext,meta:get_string("owner")))
|
||||
if (after_place_node) then
|
||||
return after_place_node(pos, placer)
|
||||
end
|
||||
end
|
||||
local allow_metadata_inventory_move = def.allow_metadata_inventory_move;
|
||||
def.allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
local meta = minetest.get_meta(pos)
|
||||
if (player:get_player_name() ~= meta:get_string("owner")) then
|
||||
minetest.log("action", S("%s tried to access a %s belonging to %s at %s"):format(
|
||||
player:get_player_name(),
|
||||
infotext,
|
||||
meta:get_string("owner"),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
return 0
|
||||
end
|
||||
if (allow_metadata_inventory_move) then
|
||||
return allow_metadata_inventory_move(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
else
|
||||
return count
|
||||
end
|
||||
end
|
||||
local allow_metadata_inventory_put = def.allow_metadata_inventory_put;
|
||||
def.allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
local meta = minetest.get_meta(pos)
|
||||
if (player:get_player_name() ~= meta:get_string("owner")) then
|
||||
minetest.log("action", S("%s tried to access a %s belonging to %s at %s"):format(
|
||||
player:get_player_name(),
|
||||
infotext,
|
||||
meta:get_string("owner"),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
return 0
|
||||
end
|
||||
if (allow_metadata_inventory_put) then
|
||||
return allow_metadata_inventory_put(pos, listname, index, stack, player)
|
||||
else
|
||||
return stack:get_count()
|
||||
end
|
||||
end
|
||||
local allow_metadata_inventory_take = def.allow_metadata_inventory_take;
|
||||
def.allow_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||
local meta = minetest.get_meta(pos)
|
||||
if (player:get_player_name() ~= meta:get_string("owner")) then
|
||||
minetest.log("action", S("%s tried to access a %s belonging to %s at %s"):format(
|
||||
player:get_player_name(),
|
||||
infotext,
|
||||
meta:get_string("owner"),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
return 0
|
||||
end
|
||||
if (allow_metadata_inventory_take) then
|
||||
return allow_metadata_inventory_take(pos, listname, index, stack, player)
|
||||
else
|
||||
return stack:get_count()
|
||||
end
|
||||
end
|
||||
minetest.register_node(name.."_locked", def)
|
||||
minetest.register_craft({
|
||||
output = name.."_locked",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
name,
|
||||
"default:steel_ingot",
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
local items = {
|
||||
{ "refrigerator",
|
||||
"Cabinet" },
|
||||
{ "kitchen_cabinet",
|
||||
"Cabinet" },
|
||||
{ "kitchen_cabinet_half",
|
||||
"Cabinet" },
|
||||
{ "kitchen_cabinet_with_sink",
|
||||
"Cabinet" },
|
||||
{ "nightstand_oak_one_drawer",
|
||||
"Nightstand" },
|
||||
{ "nightstand_oak_two_drawers",
|
||||
"Nightstand" },
|
||||
{ "nightstand_mahogany_one_drawer",
|
||||
"Nightstand" },
|
||||
{ "nightstand_mahogany_two_drawers",
|
||||
"Nightstand" },
|
||||
{ "oven",
|
||||
"Oven" },
|
||||
{ "oven_active",
|
||||
"Oven (active)" },
|
||||
{ "microwave_oven",
|
||||
"Microwave Oven" },
|
||||
{ "microwave_oven_active",
|
||||
"Microwave Oven (active)" },
|
||||
}
|
||||
|
||||
for _,item in ipairs(items) do
|
||||
local name, info = item[1], item[2];
|
||||
create_locked("homedecor:"..name, S("Locked "..info));
|
||||
end
|
248
homedecor/misc_nodes.lua
Normal file
@ -0,0 +1,248 @@
|
||||
-- Various misc. nodes
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
minetest.register_node('homedecor:ceiling_paint', {
|
||||
description = S("Textured Ceiling Paint"),
|
||||
drawtype = 'signlike',
|
||||
tiles = { 'homedecor_ceiling_paint.png' },
|
||||
inventory_image = 'homedecor_ceiling_paint_roller.png',
|
||||
wield_image = 'homedecor_ceiling_paint_roller.png',
|
||||
sunlight_propagates = true,
|
||||
paramtype = 'light',
|
||||
walkable = false,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
--wall_top = <default>
|
||||
--wall_bottom = <default>
|
||||
--wall_side = <default>
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:ceiling_tile', {
|
||||
description = S("Drop-Ceiling Tile"),
|
||||
drawtype = 'signlike',
|
||||
tiles = { 'homedecor_ceiling_tile.png' },
|
||||
wield_image = 'homedecor_ceiling_tile.png',
|
||||
inventory_image = 'homedecor_ceiling_tile.png',
|
||||
sunlight_propagates = true,
|
||||
paramtype = 'light',
|
||||
walkable = false,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
--wall_top = <default>
|
||||
--wall_bottom = <default>
|
||||
--wall_side = <default>
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:rug_small', {
|
||||
description = S("Small Throw Rug"),
|
||||
drawtype = 'signlike',
|
||||
tiles = { 'homedecor_rug_small.png' },
|
||||
wield_image = 'homedecor_rug_small.png',
|
||||
inventory_image = 'homedecor_rug_small.png',
|
||||
sunlight_propagates = true,
|
||||
paramtype = 'light',
|
||||
paramtype2 = "wallmounted",
|
||||
is_ground_content = true,
|
||||
walkable = false,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
--wall_top = <default>
|
||||
--wall_bottom = <default>
|
||||
--wall_side = <default>
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:rug_large', {
|
||||
description = S("Large Area Rug"),
|
||||
drawtype = 'signlike',
|
||||
tiles = { 'homedecor_rug_large.png' },
|
||||
wield_image = 'homedecor_rug_large.png',
|
||||
inventory_image = 'homedecor_rug_large.png',
|
||||
sunlight_propagates = true,
|
||||
paramtype = 'light',
|
||||
paramtype2 = "wallmounted",
|
||||
is_ground_content = true,
|
||||
walkable = false,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
--wall_top = <default>
|
||||
--wall_bottom = <default>
|
||||
--wall_side = <default>
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:flower_pot_terracotta', {
|
||||
description = S("Terracotta Flower Pot"),
|
||||
tiles = { 'homedecor_flower_pot_terracotta_top.png',
|
||||
'homedecor_flower_pot_terracotta_bottom.png',
|
||||
'homedecor_flower_pot_terracotta_sides.png',
|
||||
'homedecor_flower_pot_terracotta_sides.png',
|
||||
'homedecor_flower_pot_terracotta_sides.png',
|
||||
'homedecor_flower_pot_terracotta_sides.png'},
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:flower_pot_black', {
|
||||
description = S("Black Plastic Flower Pot"),
|
||||
tiles = { 'homedecor_flower_pot_black_top.png',
|
||||
'homedecor_flower_pot_black_bottom.png',
|
||||
'homedecor_flower_pot_black_sides.png',
|
||||
'homedecor_flower_pot_black_sides.png',
|
||||
'homedecor_flower_pot_black_sides.png',
|
||||
'homedecor_flower_pot_black_sides.png'},
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:flower_pot_green', {
|
||||
description = S("Green Plastic Flower Pot"),
|
||||
tiles = { 'homedecor_flower_pot_green_top.png',
|
||||
'homedecor_flower_pot_green_bottom.png',
|
||||
'homedecor_flower_pot_green_sides.png',
|
||||
'homedecor_flower_pot_green_sides.png',
|
||||
'homedecor_flower_pot_green_sides.png',
|
||||
'homedecor_flower_pot_green_sides.png'},
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
-- cylinder-shaped objects courtesy Jeija
|
||||
|
||||
local cylbox = {}
|
||||
local detail = 50
|
||||
local sehne
|
||||
local size = 0.2
|
||||
|
||||
for i = 1, detail-1 do
|
||||
sehne = math.sqrt(0.25 - (((i/detail)-0.5)^2))
|
||||
cylbox[i]={((i/detail)-0.5)*size, -0.5, -sehne*size, ((i/detail)+(1/detail)-0.5)*size, 0.5, sehne*size}
|
||||
end
|
||||
|
||||
minetest.register_node("homedecor:pole_brass", {
|
||||
description = S("Brass Pole"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {"homedecor_tile_brass2.png"},
|
||||
inventory_image = "homedecor_pole_brass2.png",
|
||||
wield_image = "homedecor_pole_brass2.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-size/2, -0.5, -size/2, size/2, 0.5, size/2},
|
||||
},
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = cylbox,
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:pole_wrought_iron", {
|
||||
description = S("Wrought Iron Pole"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {"homedecor_tile_wrought_iron2.png"},
|
||||
inventory_image = "homedecor_pole_wrought_iron.png",
|
||||
wield_image = "homedecor_pole_wrought_iron.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.0625, -0.5, -0.0625, 0.0625, 0.5, 0.0625}
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.0625, -0.5, -0.0625, 0.0625, 0.5, 0.0625}
|
||||
},
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
})
|
||||
|
||||
--
|
||||
|
||||
local curtaincolors = {
|
||||
"red",
|
||||
"green",
|
||||
"blue",
|
||||
"white",
|
||||
"pink",
|
||||
"violet"
|
||||
}
|
||||
|
||||
for c in ipairs(curtaincolors) do
|
||||
local color = curtaincolors[c]
|
||||
local color_d = S(curtaincolors[c])
|
||||
|
||||
minetest.register_node("homedecor:curtain_"..color, {
|
||||
description = S("Curtains (%s)"):format(color_d),
|
||||
tiles = { "homedecor_curtain_"..color..".png" },
|
||||
inventory_image = "homedecor_curtain_"..color..".png",
|
||||
wield_image = "homedecor_curtain_"..color..".png",
|
||||
drawtype = 'signlike',
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = false,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
paramtype2 = 'wallmounted',
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
--wall_side = = <default>
|
||||
},
|
||||
})
|
||||
if color_d ~= color then
|
||||
minetest.register_alias("homedecor:curtain_"..color_d, "homedecor:curtain_"..color)
|
||||
end
|
||||
end
|
||||
|
||||
minetest.register_node('homedecor:air_conditioner', {
|
||||
drawtype = "nodebox",
|
||||
description = S("Air Conditioner"),
|
||||
tiles = { 'homedecor_ac_tb.png',
|
||||
'homedecor_ac_tb.png',
|
||||
'homedecor_ac_sides.png',
|
||||
'homedecor_ac_sides.png',
|
||||
'homedecor_ac_back.png',
|
||||
'homedecor_ac_front.png'},
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.124, 0.5 }, -- off by just a tad to force the adjoining faces to be drawn.
|
||||
{-0.5, 0.125, -0.5, 0.5, 0.5, 0.5 },
|
||||
}
|
||||
},
|
||||
selection_box = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
|
||||
})
|
261
homedecor/nightstands.lua
Normal file
@ -0,0 +1,261 @@
|
||||
-- This file supplies nightstands
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
minetest.register_node('homedecor:nightstand_oak_one_drawer', {
|
||||
drawtype = "nodebox",
|
||||
description = S("Oak Nightstand with One Drawer"),
|
||||
tiles = { 'homedecor_nightstand_oak_top.png',
|
||||
'homedecor_nightstand_oak_bottom.png',
|
||||
'homedecor_nightstand_oak_right.png',
|
||||
'homedecor_nightstand_oak_left.png',
|
||||
'homedecor_nightstand_oak_back.png',
|
||||
'homedecor_nightstand_oak_1_drawer_front.png'},
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -8/16, 0, -30/64, 8/16, 8/16, 8/16 }, -- top half
|
||||
{ -7/16, 1/16, -32/64, 7/16, 7/16, -29/64}, -- drawer face
|
||||
{ -8/16, -8/16, -30/64, -7/16, 0, 8/16 }, -- left
|
||||
{ 7/16, -8/16, -30/64, 8/16, 0, 8/16 }, -- right
|
||||
{ -8/16, -8/16, 7/16, 8/16, 0, 8/16 }, -- back
|
||||
{ -8/16, -8/16, -30/64, 8/16, -7/16, 8/16 } -- bottom
|
||||
}
|
||||
},
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec",
|
||||
"size[8,6]"..
|
||||
"list[current_name;main;0,0;8,1;]"..
|
||||
"list[current_player;main;0,2;8,4;]")
|
||||
meta:set_string("infotext", S("One-drawer Nightstand"))
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main", 8)
|
||||
end,
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
return inv:is_empty("main")
|
||||
end,
|
||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
minetest.log("action", S("%s moves stuff in nightstand at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s moves stuff to nightstand at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s takes stuff from nightstand at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:nightstand_oak_two_drawers', {
|
||||
drawtype = "nodebox",
|
||||
description = S("Oak Nightstand with Two Drawers"),
|
||||
tiles = { 'homedecor_nightstand_oak_top.png',
|
||||
'homedecor_nightstand_oak_bottom.png',
|
||||
'homedecor_nightstand_oak_right.png',
|
||||
'homedecor_nightstand_oak_left.png',
|
||||
'homedecor_nightstand_oak_back.png',
|
||||
'homedecor_nightstand_oak_2_drawer_front.png'},
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -8/16, -8/16, -30/64, 8/16, 8/16, 8/16 }, -- main body
|
||||
{ -7/16, 1/16, -32/64, 7/16, 7/16, -29/64 }, -- top drawer face
|
||||
{ -7/16, -7/16, -32/64, 7/16, -1/16, -29/64 }, -- bottom drawer face
|
||||
|
||||
}
|
||||
},
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec",
|
||||
"size[8,7]"..
|
||||
"list[current_name;main;0,0;8,2;]"..
|
||||
"list[current_player;main;0,3;8,4;]")
|
||||
meta:set_string("infotext", S("Two-drawer Nightstand"))
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main", 16)
|
||||
end,
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
return inv:is_empty("main")
|
||||
end,
|
||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
minetest.log("action", S("%s moves stuff in nightstand at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s moves stuff to nightstand at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s takes stuff from nightstand at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:nightstand_mahogany_one_drawer', {
|
||||
drawtype = "nodebox",
|
||||
description = S("Mahogany Nightstand with One Drawer"),
|
||||
tiles = { 'homedecor_nightstand_mahogany_top.png',
|
||||
'homedecor_nightstand_mahogany_bottom.png',
|
||||
'homedecor_nightstand_mahogany_right.png',
|
||||
'homedecor_nightstand_mahogany_left.png',
|
||||
'homedecor_nightstand_mahogany_back.png',
|
||||
'homedecor_nightstand_mahogany_1_drawer_front.png'},
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -8/16, 0, -30/64, 8/16, 8/16, 8/16 }, -- top half
|
||||
{ -7/16, 1/16, -32/64, 7/16, 7/16, -29/64}, -- drawer face
|
||||
{ -8/16, -8/16, -30/64, -7/16, 0, 8/16 }, -- left
|
||||
{ 7/16, -8/16, -30/64, 8/16, 0, 8/16 }, -- right
|
||||
{ -8/16, -8/16, 7/16, 8/16, 0, 8/16 }, -- back
|
||||
{ -8/16, -8/16, -30/64, 8/16, -7/16, 8/16 } -- bottom
|
||||
}
|
||||
},
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec",
|
||||
"size[8,6]"..
|
||||
"list[current_name;main;0,0;8,1;]"..
|
||||
"list[current_player;main;0,2;8,4;]")
|
||||
meta:set_string("infotext", S("One-drawer Nightstand"))
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main", 8)
|
||||
end,
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
return inv:is_empty("main")
|
||||
end,
|
||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
minetest.log("action", S("%s moves stuff in nightstand at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s moves stuff to nightstand at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s takes stuff from nightstand at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:nightstand_mahogany_two_drawers', {
|
||||
drawtype = "nodebox",
|
||||
description = S("Mahogany Nightstand with Two Drawers"),
|
||||
tiles = { 'homedecor_nightstand_mahogany_top.png',
|
||||
'homedecor_nightstand_mahogany_bottom.png',
|
||||
'homedecor_nightstand_mahogany_right.png',
|
||||
'homedecor_nightstand_mahogany_left.png',
|
||||
'homedecor_nightstand_mahogany_back.png',
|
||||
'homedecor_nightstand_mahogany_2_drawer_front.png'},
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -8/16, -8/16, -30/64, 8/16, 8/16, 8/16 }, -- main body
|
||||
{ -7/16, 1/16, -32/64, 7/16, 7/16, -29/64 }, -- top drawer face
|
||||
{ -7/16, -7/16, -32/64, 7/16, -1/16, -29/64 }, -- bottom drawer face
|
||||
|
||||
}
|
||||
},
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec",
|
||||
"size[8,7]"..
|
||||
"list[current_name;main;0,0;8,2;]"..
|
||||
"list[current_player;main;0,3;8,4;]")
|
||||
meta:set_string("infotext", S("Two-drawer Nightstand"))
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main", 16)
|
||||
end,
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
return inv:is_empty("main")
|
||||
end,
|
||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
minetest.log("action", S("%s moves stuff in nightstand at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s moves stuff to nightstand at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s takes stuff from nightstand at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
})
|
48
homedecor/ownership.lua
Normal file
@ -0,0 +1,48 @@
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
function homedecor.node_is_owned(pos, placer)
|
||||
local ownername = false
|
||||
if type(IsPlayerNodeOwner) == "function" then -- node_ownership mod
|
||||
if HasOwner(pos, placer) then -- returns true if the node is owned
|
||||
if not IsPlayerNodeOwner(pos, placer:get_player_name()) then
|
||||
if type(getLastOwner) == "function" then -- ...is an old version
|
||||
ownername = getLastOwner(pos)
|
||||
elseif type(GetNodeOwnerName) == "function" then -- ...is a recent version
|
||||
ownername = GetNodeOwnerName(pos)
|
||||
else
|
||||
ownername = S("someone")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
elseif type(isprotect)=="function" then -- glomie's protection mod
|
||||
if not isprotect(5, pos, placer) then
|
||||
ownername = S("someone")
|
||||
end
|
||||
elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod
|
||||
if not protector.can_dig(5, pos, placer) then
|
||||
ownername = S("someone")
|
||||
end
|
||||
end
|
||||
|
||||
if ownername ~= false then
|
||||
minetest.chat_send_player( placer:get_player_name(), S("Sorry, %s owns that spot."):format(ownername) )
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
-- protection wrapper for 6d stuff
|
||||
|
||||
function homedecor.protect_and_rotate(itemstack, placer, pointed_thing)
|
||||
if not homedecor.node_is_owned(pointed_thing.under, placer)
|
||||
and not homedecor.node_is_owned(pointed_thing.above, placer) then
|
||||
local keys=placer:get_player_control()
|
||||
minetest.rotate_and_place(itemstack, placer, pointed_thing,
|
||||
homedecor.expect_infinite_stacks, {invert_wall = keys.sneak})
|
||||
end
|
||||
return itemstack
|
||||
end
|
||||
|
76
homedecor/refrigerator.lua
Normal file
@ -0,0 +1,76 @@
|
||||
-- This file supplies refrigerators
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
minetest.register_node('homedecor:refrigerator', {
|
||||
drawtype = "nodebox",
|
||||
description = S("Refrigerator"),
|
||||
tiles = {
|
||||
'homedecor_refrigerator_top.png',
|
||||
'homedecor_refrigerator_bottom.png',
|
||||
'homedecor_refrigerator_right.png',
|
||||
'homedecor_refrigerator_left.png',
|
||||
'homedecor_refrigerator_back.png',
|
||||
'homedecor_refrigerator_front.png'
|
||||
},
|
||||
inventory_image = "homedecor_refrigerator_inv.png",
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
|
||||
},
|
||||
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec",
|
||||
"size[10,10]"..
|
||||
"list[current_name;main;0,0;10,5;]"..
|
||||
"list[current_player;main;1,6;8,4;]")
|
||||
meta:set_string("infotext", S("Refrigerator"))
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main",50)
|
||||
end,
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
local pos = pointed_thing.above
|
||||
if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name ~= "air" then
|
||||
minetest.chat_send_player( placer:get_player_name(), S('Not enough vertical space to place a refrigerator!') )
|
||||
return
|
||||
end
|
||||
return minetest.item_place(itemstack, placer, pointed_thing)
|
||||
end,
|
||||
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
return inv:is_empty("main")
|
||||
end,
|
||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
minetest.log("action", S("%s moves stuff in refrigerator at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s moves stuff to refrigerator at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", S("%s takes stuff from refrigerator at %s"):format(
|
||||
player:get_player_name(),
|
||||
minetest.pos_to_string(pos)
|
||||
))
|
||||
end,
|
||||
})
|
90
homedecor/shingles.lua
Normal file
@ -0,0 +1,90 @@
|
||||
-- Various kidns of shingles
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
minetest.register_node("homedecor:skylight", {
|
||||
description = S("Glass Skylight"),
|
||||
drawtype = "raillike",
|
||||
tiles = { "default_glass.png" },
|
||||
wield_image = "default_glass.png",
|
||||
inventory_image = "homedecor_skylight_inv.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:skylight_frosted", {
|
||||
description = S("Glass Skylight"),
|
||||
drawtype = "raillike",
|
||||
tiles = { "homedecor_skylight_frosted.png" },
|
||||
wield_image = "homedecor_skylight_frosted.png",
|
||||
inventory_image = "homedecor_skylight_frosted_inv.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
use_texture_alpha = true,
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:shingles_wood", {
|
||||
description = S("Wood Shingles"),
|
||||
drawtype = "raillike",
|
||||
tiles = { "homedecor_shingles_wood.png" },
|
||||
wield_image = "homedecor_shingles_wood.png",
|
||||
inventory_image = "homedecor_shingles_wood_inv.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = false,
|
||||
walkable = false,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:shingles_asphalt", {
|
||||
description = S("Asphalt Shingles"),
|
||||
drawtype = "raillike",
|
||||
tiles = { "homedecor_shingles_asphalt.png" },
|
||||
wield_image = "homedecor_shingles_asphalt.png",
|
||||
inventory_image = "homedecor_shingles_asphalt_inv.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = false,
|
||||
walkable = false,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:shingles_terracotta", {
|
||||
description = S("Terracotta Roofing"),
|
||||
drawtype = "raillike",
|
||||
tiles = { "homedecor_shingles_terracotta.png" },
|
||||
wield_image = "homedecor_shingles_terracotta.png",
|
||||
inventory_image = "homedecor_shingles_terracotta_inv.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = false,
|
||||
walkable = false,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
|
||||
}
|
||||
})
|
||||
|
43
homedecor/shutters.lua
Normal file
@ -0,0 +1,43 @@
|
||||
-- Various kinds of window shutters
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
local shutters = {
|
||||
{"oak", "Unpainted oak"},
|
||||
{"mahogany", "Mahogany"},
|
||||
{"red", "Red"},
|
||||
{"yellow", "Yellow"},
|
||||
{"forest_green", "Forest green"},
|
||||
{"light_blue", "Light blue"},
|
||||
{"violet", "Violet"},
|
||||
{"black", "Black"},
|
||||
{"dark_grey", "Dark grey"},
|
||||
{"grey", "Grey"},
|
||||
{"white", "White"},
|
||||
}
|
||||
|
||||
for i in ipairs(shutters) do
|
||||
local name = shutters[i][1]
|
||||
local desc = shutters[i][2]
|
||||
|
||||
minetest.register_node("homedecor:shutter_"..name, {
|
||||
description = S("Wooden Shutter ("..desc..")"),
|
||||
tiles = { "homedecor_window_shutter_"..name..".png" },
|
||||
inventory_image = "homedecor_window_shutter_"..name..".png",
|
||||
wield_image = "homedecor_window_shutter_"..name..".png",
|
||||
drawtype = 'signlike',
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = false,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
paramtype2 = 'wallmounted',
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
--wall_side = = <default>
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_alias("homedecor:shutter_purple", "homedecor:shutter_violet")
|
288
homedecor/slopes.lua
Normal file
@ -0,0 +1,288 @@
|
||||
-- Various kinds of shingles
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
-- Corner shingle nodes, courtesy Bas080
|
||||
|
||||
homedecor.detail_level = 16
|
||||
|
||||
homedecor.register_outer_corner = function(modname, subname, groups, images, description)
|
||||
local slopeboxedge = {}
|
||||
local detail = homedecor.detail_level
|
||||
for i = 0, detail-1 do
|
||||
slopeboxedge[i+1]={-0.5, -0.5, (i/detail)-0.5, 0.5-(i/detail), (i/detail)-0.5+(1.25/detail), 0.5}
|
||||
end
|
||||
minetest.register_node(modname..":shingle_outer_corner_" .. subname, {
|
||||
description = S(description.. " (outer corner)"),
|
||||
drawtype = "nodebox",
|
||||
tiles = images,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
||||
{-0.5, -0.25, -0.25, 0.25, 0, 0.5},
|
||||
{-0.5, 0, 0, 0, 0.25, 0.5},
|
||||
{-0.5, 0.25, 0.25, -0.25, 0.5, 0.5}
|
||||
}
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = slopeboxedge
|
||||
},
|
||||
groups = groups,
|
||||
})
|
||||
end
|
||||
|
||||
homedecor.register_inner_corner = function(modname, subname, groups, images, description)
|
||||
local slopeboxedge = {}
|
||||
local detail = homedecor.detail_level
|
||||
for i = 0, detail-1 do
|
||||
slopeboxedge[i+1]={-0.5, -0.5, -0.5, 0.5-(i/detail), (i/detail)-0.5+(1.25/detail), 0.5}
|
||||
slopeboxedge[i+detail+1]={-0.5, -0.5, (i/detail)-0.5, 0.5, (i/detail)-0.5+(1.25/detail), 0.5}
|
||||
end
|
||||
minetest.register_node(modname..":shingle_inner_corner_" .. subname, {
|
||||
description = S(description.. " (inner corner)"),
|
||||
drawtype = "nodebox",
|
||||
tiles = images,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = slopeboxedge
|
||||
},
|
||||
groups = groups,
|
||||
})
|
||||
end
|
||||
|
||||
homedecor.register_slope = function(modname, subname, recipeitem, groups, images, description)
|
||||
local slopeboxedge = {}
|
||||
local detail = homedecor.detail_level
|
||||
for i = 0, detail-1 do
|
||||
slopeboxedge[i+1]={-0.5, -0.5, (i/detail)-0.5, 0.5, (i/detail)-0.5+(1.25/detail), 0.5}
|
||||
end
|
||||
minetest.register_node(modname..":shingle_side_" .. subname, {
|
||||
description = S(description),
|
||||
drawtype = "nodebox",
|
||||
tiles = images,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
||||
{-0.5, -0.25, -0.25, 0.5, 0, 0.5},
|
||||
{-0.5, 0, 0, 0.5, 0.25, 0.5},
|
||||
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}
|
||||
}
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = slopeboxedge,
|
||||
},
|
||||
groups = groups,
|
||||
})
|
||||
|
||||
-- convert between flat shingles and slopes
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname..":shingle_side_"..subname.." 3",
|
||||
recipe = {
|
||||
{recipeitem, recipeitem, recipeitem}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = recipeitem.." 3",
|
||||
recipe = {
|
||||
{modname..":shingle_side_"..subname, modname..":shingle_side_"..subname, modname..":shingle_side_"..subname},
|
||||
}
|
||||
})
|
||||
|
||||
-- craft outer corners
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname..":shingle_outer_corner_"..subname.." 3",
|
||||
recipe = {
|
||||
{ "", recipeitem, "" },
|
||||
{ recipeitem, "", recipeitem }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname..":shingle_outer_corner_"..subname.." 3",
|
||||
recipe = {
|
||||
{ "", modname..":shingle_side_"..subname, "" },
|
||||
{ modname..":shingle_side_"..subname, "", modname..":shingle_side_"..subname },
|
||||
}
|
||||
})
|
||||
|
||||
-- craft inner corners
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname..":shingle_inner_corner_"..subname.." 3",
|
||||
recipe = {
|
||||
{recipeitem, recipeitem},
|
||||
{"", recipeitem}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname..":shingle_inner_corner_"..subname.." 3",
|
||||
recipe = {
|
||||
{modname..":shingle_side_"..subname, modname..":shingle_side_"..subname},
|
||||
{"", modname..":shingle_side_"..subname}
|
||||
}
|
||||
})
|
||||
-- convert between flat shingles and inner/outer corners
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = recipeitem.." 1",
|
||||
recipe = { modname..":shingle_outer_corner_"..subname }
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = recipeitem.." 1",
|
||||
recipe = { modname..":shingle_inner_corner_"..subname }
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "homedecor:roof_tile_terracotta 8",
|
||||
recipe = {
|
||||
{ "homedecor:shingle_outer_corner_terracotta", "homedecor:shingle_outer_corner_terracotta" }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "homedecor:roof_tile_terracotta 8",
|
||||
recipe = {
|
||||
{ "homedecor:shingle_inner_corner_terracotta", "homedecor:shingle_inner_corner_terracotta" }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "homedecor:roof_tile_terracotta 8",
|
||||
recipe = {
|
||||
{ "homedecor:shingle_side_terracotta", "homedecor:shingle_side_terracotta" }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "homedecor:shingle_inner_corner_wood",
|
||||
burntime = 30,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "homedecor:shingle_outer_corner_wood",
|
||||
burntime = 30,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "homedecor:shingle_side_wood",
|
||||
burntime = 30,
|
||||
})
|
||||
|
||||
homedecor.register_roof = function(modname, subname, groups, images , description)
|
||||
homedecor.register_outer_corner(modname, subname, groups, images, description)
|
||||
homedecor.register_inner_corner(modname, subname, groups, images, description)
|
||||
end
|
||||
|
||||
-- corners
|
||||
|
||||
homedecor.register_roof("homedecor", "wood",
|
||||
{ snappy = 3 },
|
||||
{
|
||||
"homedecor_shingles_wood_c_t.png",
|
||||
"homedecor_shingles_wood_c_x.png",
|
||||
"homedecor_shingles_wood_c_x.png",
|
||||
"homedecor_shingles_wood_c_x.png",
|
||||
"homedecor_shingles_wood_c_z.png",
|
||||
"homedecor_shingles_wood_c_z.png",
|
||||
},
|
||||
"Wood Shingles"
|
||||
)
|
||||
|
||||
homedecor.register_roof("homedecor", "asphalt",
|
||||
{ snappy = 3 },
|
||||
{
|
||||
"homedecor_shingles_asphalt_c_t.png",
|
||||
"homedecor_shingles_asphalt_c_x.png",
|
||||
"homedecor_shingles_asphalt_c_x.png",
|
||||
"homedecor_shingles_asphalt_c_x.png",
|
||||
"homedecor_shingles_asphalt_c_z.png",
|
||||
"homedecor_shingles_asphalt_c_z.png",
|
||||
},
|
||||
"Asphalt Shingles"
|
||||
)
|
||||
|
||||
homedecor.register_roof("homedecor", "terracotta",
|
||||
{ snappy = 3 },
|
||||
{
|
||||
"homedecor_shingles_terracotta_c_t.png",
|
||||
"homedecor_shingles_terracotta_c_x.png",
|
||||
"homedecor_shingles_terracotta_c_x.png",
|
||||
"homedecor_shingles_terracotta_c_x.png",
|
||||
"homedecor_shingles_terracotta_c_z.png",
|
||||
"homedecor_shingles_terracotta_c_z.png",
|
||||
},
|
||||
"Terracotta Shingles"
|
||||
)
|
||||
|
||||
-- register just the slopes
|
||||
|
||||
homedecor.register_slope("homedecor", "wood",
|
||||
"homedecor:shingles_wood",
|
||||
{ snappy = 3 },
|
||||
{
|
||||
"homedecor_shingles_wood_s_t.png",
|
||||
"homedecor_shingles_wood_s_z.png",
|
||||
"homedecor_shingles_wood_s_z.png",
|
||||
"homedecor_shingles_wood_s_z.png",
|
||||
"homedecor_shingles_wood_s_z.png",
|
||||
"homedecor_shingles_wood_s_z.png",
|
||||
},
|
||||
"Wood Shingles"
|
||||
)
|
||||
|
||||
homedecor.register_slope("homedecor", "asphalt",
|
||||
"homedecor:shingles_asphalt",
|
||||
{ snappy = 3 },
|
||||
{
|
||||
"homedecor_shingles_asphalt_s_t.png",
|
||||
"homedecor_shingles_asphalt_s_z.png",
|
||||
"homedecor_shingles_asphalt_s_z.png",
|
||||
"homedecor_shingles_asphalt_s_z.png",
|
||||
"homedecor_shingles_asphalt_s_z.png",
|
||||
"homedecor_shingles_asphalt_s_z.png",
|
||||
},
|
||||
"Asphalt Shingles"
|
||||
)
|
||||
|
||||
homedecor.register_slope("homedecor", "terracotta",
|
||||
"homedecor:shingles_terracotta",
|
||||
{ snappy = 3 },
|
||||
{
|
||||
"homedecor_shingles_terracotta_s_t.png",
|
||||
"homedecor_shingles_terracotta_s_z.png",
|
||||
"homedecor_shingles_terracotta_s_z.png",
|
||||
"homedecor_shingles_terracotta_s_z.png",
|
||||
"homedecor_shingles_terracotta_s_z.png",
|
||||
"homedecor_shingles_terracotta_s_z.png",
|
||||
},
|
||||
"Terracotta Shingles"
|
||||
)
|
||||
|
BIN
homedecor/sounds/homedecor_door_close.ogg
Normal file
BIN
homedecor/sounds/homedecor_door_open.ogg
Normal file
BIN
homedecor/sounds/homedecor_gate_open_close.ogg
Normal file
BIN
homedecor/sounds/homedecor_toilet_flush.ogg
Normal file
491
homedecor/tables.lua
Normal file
@ -0,0 +1,491 @@
|
||||
-- Various kinds of tables
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
local materials = {
|
||||
{"glass","Glass"},
|
||||
{"wood","Wood"}
|
||||
}
|
||||
|
||||
for i in ipairs(materials) do
|
||||
local m = materials[i][1]
|
||||
local d = materials[i][2]
|
||||
local s = nil
|
||||
|
||||
if m == "glass" then
|
||||
s = default.node_sound_glass_defaults()
|
||||
else
|
||||
s = default.node_sound_wood_defaults()
|
||||
end
|
||||
|
||||
-- small square tables
|
||||
|
||||
minetest.register_node("homedecor:"..m.."_table_small_square_b", {
|
||||
description = S(d.." Table (Small, Square)"),
|
||||
drawtype = 'nodebox',
|
||||
tiles = {
|
||||
'homedecor_'..m..'_table_small_square_tb.png',
|
||||
'homedecor_'..m..'_table_small_square_tb.png',
|
||||
'homedecor_'..m..'_table_small_square_edges.png',
|
||||
'homedecor_'..m..'_table_small_square_edges.png',
|
||||
'homedecor_'..m..'_table_small_square_edges.png',
|
||||
'homedecor_'..m..'_table_small_square_edges.png'
|
||||
},
|
||||
wield_image = 'homedecor_'..m..'_table_small_square_tb.png',
|
||||
inventory_image = 'homedecor_'..m..'_table_small_square_tb.png',
|
||||
sunlight_propagates = true,
|
||||
paramtype = 'light',
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
sounds = s,
|
||||
paramtype2 = "facedir",
|
||||
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.4375, -0.5, -0.5, 0.4375, -0.4375, 0.5 },
|
||||
{ -0.5, -0.5, -0.4375, 0.5, -0.4375, 0.4375 }
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },
|
||||
},
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
|
||||
local node = minetest.get_node(pointed_thing.under)
|
||||
if not minetest.registered_nodes[node.name] or not minetest.registered_nodes[node.name].on_rightclick then
|
||||
|
||||
local above = pointed_thing.above
|
||||
local under = pointed_thing.under
|
||||
local pitch = placer:get_look_pitch()
|
||||
local node = minetest.get_node(above)
|
||||
|
||||
if node.name ~= "air" then return end
|
||||
|
||||
if above.x ~= under.x or above.z ~= under.z then
|
||||
local fdir = minetest.dir_to_facedir(placer:get_look_dir())
|
||||
minetest.add_node(above, {name = 'homedecor:'..m..'_table_small_square_s', param2 = fdir})
|
||||
elseif pitch > 0 then
|
||||
minetest.add_node(above, {name = 'homedecor:'..m..'_table_small_square_t'})
|
||||
else
|
||||
minetest.add_node(above, {name = 'homedecor:'..m..'_table_small_square_b'})
|
||||
end
|
||||
if not homedecor.expect_infinite_stacks then
|
||||
itemstack:take_item()
|
||||
return itemstack
|
||||
end
|
||||
else
|
||||
minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:'..m..'_table_small_square_t', {
|
||||
description = S(d.."Glass Table (Small, Square)"),
|
||||
drawtype = 'nodebox',
|
||||
tiles = {
|
||||
'homedecor_'..m..'_table_small_square_tb.png',
|
||||
'homedecor_'..m..'_table_small_square_tb.png',
|
||||
'homedecor_'..m..'_table_small_square_edges.png',
|
||||
'homedecor_'..m..'_table_small_square_edges.png',
|
||||
'homedecor_'..m..'_table_small_square_edges.png',
|
||||
'homedecor_'..m..'_table_small_square_edges.png'
|
||||
},
|
||||
sunlight_propagates = true,
|
||||
paramtype = 'light',
|
||||
walkable = true,
|
||||
groups = { snappy = 3, not_in_creative_inventory=1 },
|
||||
sounds = s,
|
||||
paramtype2 = "facedir",
|
||||
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.4375, 0.4375, -0.5, 0.4375, 0.5, 0.5 },
|
||||
{ -0.5, 0.4375, -0.4375, 0.5, 0.5, 0.4375 }
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, 0.4375, -0.5, 0.5, 0.5, 0.5 },
|
||||
},
|
||||
drop = 'homedecor:'..m..'_table_small_square_b'
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:'..m..'_table_small_square_s', {
|
||||
description = S(d.." Table (Small, Square)"),
|
||||
drawtype = 'nodebox',
|
||||
tiles = {
|
||||
'homedecor_'..m..'_table_small_square_edges.png',
|
||||
'homedecor_'..m..'_table_small_square_edges.png',
|
||||
'homedecor_'..m..'_table_small_square_edges.png',
|
||||
'homedecor_'..m..'_table_small_square_edges.png',
|
||||
'homedecor_'..m..'_table_small_square_tb.png',
|
||||
'homedecor_'..m..'_table_small_square_tb.png',
|
||||
},
|
||||
sunlight_propagates = true,
|
||||
paramtype = 'light',
|
||||
walkable = true,
|
||||
groups = { snappy = 3, not_in_creative_inventory=1 },
|
||||
sounds = s,
|
||||
paramtype2 = "facedir",
|
||||
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.4375, -0.5, 0.4375, 0.4375, 0.5, 0.5 },
|
||||
{ -0.5, -0.4375, 0.4375, 0.5, 0.4375, 0.5 }
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 0.4375, 0.5, 0.5, 0.5 },
|
||||
},
|
||||
drop = 'homedecor:'..m..'_table_small_square_b'
|
||||
})
|
||||
|
||||
-- small round tables
|
||||
|
||||
minetest.register_node('homedecor:'..m..'_table_small_round_b', {
|
||||
description = S(d.." Table (Small, Round)"),
|
||||
drawtype = 'nodebox',
|
||||
tiles = {
|
||||
'homedecor_'..m..'_table_small_round_tb.png',
|
||||
'homedecor_'..m..'_table_small_round_tb.png',
|
||||
'homedecor_'..m..'_table_small_round_edges.png',
|
||||
'homedecor_'..m..'_table_small_round_edges.png',
|
||||
'homedecor_'..m..'_table_small_round_edges.png',
|
||||
'homedecor_'..m..'_table_small_round_edges.png'
|
||||
},
|
||||
wield_image = 'homedecor_'..m..'_table_small_round_tb.png',
|
||||
inventory_image = 'homedecor_'..m..'_table_small_round_tb.png',
|
||||
sunlight_propagates = true,
|
||||
paramtype = 'light',
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
sounds = s,
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.25, -0.5, -0.5, 0.25, -0.4375, 0.5 },
|
||||
{ -0.375, -0.5, -0.4375, 0.375, -0.4375, 0.4375 },
|
||||
{ -0.5, -0.5, -0.25, 0.5, -0.4375, 0.25 },
|
||||
{ -0.4375, -0.5, -0.375, 0.4375, -0.4375, 0.375 },
|
||||
{ -0.25, -0.5, -0.5, 0.25, -0.4375, 0.5 },
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },
|
||||
},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
local node = minetest.get_node(pointed_thing.under)
|
||||
if not minetest.registered_nodes[node.name] or not minetest.registered_nodes[node.name].on_rightclick then
|
||||
|
||||
local above = pointed_thing.above
|
||||
local under = pointed_thing.under
|
||||
local pitch = placer:get_look_pitch()
|
||||
local node = minetest.get_node(above)
|
||||
|
||||
if node.name ~= "air" then return end
|
||||
|
||||
if above.x ~= under.x or above.z ~= under.z then
|
||||
local fdir = minetest.dir_to_facedir(placer:get_look_dir())
|
||||
minetest.add_node(above, {name = 'homedecor:'..m..'_table_small_round_s', param2 = fdir})
|
||||
elseif pitch > 0 then
|
||||
minetest.add_node(above, {name = 'homedecor:'..m..'_table_small_round_t'})
|
||||
else
|
||||
minetest.add_node(above, {name = 'homedecor:'..m..'_table_small_round_b'})
|
||||
end
|
||||
if not homedecor.expect_infinite_stacks then
|
||||
itemstack:take_item()
|
||||
return itemstack
|
||||
end
|
||||
else
|
||||
minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:'..m..'_table_small_round_t', {
|
||||
description = S(d.." Table (Small, Round)"),
|
||||
drawtype = 'nodebox',
|
||||
tiles = {
|
||||
'homedecor_'..m..'_table_small_round_tb.png',
|
||||
'homedecor_'..m..'_table_small_round_tb.png',
|
||||
'homedecor_'..m..'_table_small_round_edges.png',
|
||||
'homedecor_'..m..'_table_small_round_edges.png',
|
||||
'homedecor_'..m..'_table_small_round_edges.png',
|
||||
'homedecor_'..m..'_table_small_round_edges.png'
|
||||
},
|
||||
sunlight_propagates = true,
|
||||
paramtype = 'light',
|
||||
walkable = true,
|
||||
groups = { snappy = 3, not_in_creative_inventory=1 },
|
||||
sounds = s,
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.25, 0.4375, -0.5, 0.25, 0.5, 0.5 },
|
||||
{ -0.375, 0.4375, -0.4375, 0.375, 0.5, 0.4375 },
|
||||
{ -0.5, 0.4375, -0.25, 0.5, 0.5, 0.25 },
|
||||
{ -0.4375, 0.4375, -0.375, 0.4375, 0.5, 0.375 },
|
||||
{ -0.25, 0.4375, -0.5, 0.25, 0.5, 0.5 },
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, 0.4375, -0.5, 0.5, 0.5, 0.5 },
|
||||
},
|
||||
drop = 'homedecor:'..m..'_table_small_round_b'
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:'..m..'_table_small_round_s', {
|
||||
description = S(d.." Table (Small, Round)"),
|
||||
drawtype = 'nodebox',
|
||||
tiles = {
|
||||
'homedecor_'..m..'_table_small_round_edges.png',
|
||||
'homedecor_'..m..'_table_small_round_edges.png',
|
||||
'homedecor_'..m..'_table_small_round_edges.png',
|
||||
'homedecor_'..m..'_table_small_round_edges.png',
|
||||
'homedecor_'..m..'_table_small_round_tb.png',
|
||||
'homedecor_'..m..'_table_small_round_tb.png',
|
||||
},
|
||||
sunlight_propagates = true,
|
||||
paramtype = 'light',
|
||||
walkable = true,
|
||||
groups = { snappy = 3, not_in_creative_inventory=1 },
|
||||
sounds = s,
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.25, -0.5, 0.4375, 0.25, 0.5, 0.5 },
|
||||
{ -0.375, -0.4375, 0.4375, 0.375, 0.4375, 0.5 },
|
||||
{ -0.5, -0.25, 0.4375, 0.5, 0.25, 0.5 },
|
||||
{ -0.4375, -0.375, 0.4375, 0.4375, 0.375, 0.5 },
|
||||
{ -0.25, -0.5, 0.4375, 0.25, 0.5, 0.5 },
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 0.4375, 0.5, 0.5, 0.5 },
|
||||
},
|
||||
drop = 'homedecor:'..m..'_table_small_round_b'
|
||||
})
|
||||
|
||||
-- Large square table pieces
|
||||
|
||||
minetest.register_node('homedecor:'..m..'_table_large_b', {
|
||||
description = S(d.."Table Piece (large)"),
|
||||
drawtype = 'nodebox',
|
||||
tiles = {
|
||||
'homedecor_'..m..'_table_large_tb.png',
|
||||
'homedecor_'..m..'_table_large_tb.png',
|
||||
'homedecor_'..m..'_table_large_edges.png',
|
||||
'homedecor_'..m..'_table_large_edges.png',
|
||||
'homedecor_'..m..'_table_large_edges.png',
|
||||
'homedecor_'..m..'_table_large_edges.png'
|
||||
},
|
||||
wield_image = 'homedecor_'..m..'_table_large_tb.png',
|
||||
inventory_image = 'homedecor_'..m..'_table_large_tb.png',
|
||||
sunlight_propagates = true,
|
||||
paramtype = 'light',
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
sounds = s,
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },
|
||||
},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
|
||||
local node = minetest.get_node(pointed_thing.under)
|
||||
if not minetest.registered_nodes[node.name] or not minetest.registered_nodes[node.name].on_rightclick then
|
||||
|
||||
local above = pointed_thing.above
|
||||
local under = pointed_thing.under
|
||||
local pitch = placer:get_look_pitch()
|
||||
local node = minetest.get_node(above)
|
||||
|
||||
if node.name ~= "air" then return end
|
||||
|
||||
if above.x ~= under.x or above.z ~= under.z then
|
||||
local fdir = minetest.dir_to_facedir(placer:get_look_dir())
|
||||
minetest.add_node(above, {name = 'homedecor:'..m..'_table_large_s', param2 = fdir})
|
||||
elseif pitch > 0 then
|
||||
minetest.add_node(above, {name = 'homedecor:'..m..'_table_large_t'})
|
||||
else
|
||||
minetest.add_node(above, {name = 'homedecor:'..m..'_table_large_b'})
|
||||
end
|
||||
if not homedecor.expect_infinite_stacks then
|
||||
itemstack:take_item()
|
||||
return itemstack
|
||||
end
|
||||
else
|
||||
minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:'..m..'_table_large_t', {
|
||||
description = S(d.."Table Piece (large)"),
|
||||
drawtype = 'nodebox',
|
||||
tiles = {
|
||||
'homedecor_'..m..'_table_large_tb.png',
|
||||
'homedecor_'..m..'_table_large_tb.png',
|
||||
'homedecor_'..m..'_table_large_edges.png',
|
||||
'homedecor_'..m..'_table_large_edges.png',
|
||||
'homedecor_'..m..'_table_large_edges.png',
|
||||
'homedecor_'..m..'_table_large_edges.png'
|
||||
},
|
||||
wield_image = 'homedecor_'..m..'_table_large_tb.png',
|
||||
inventory_image = 'homedecor_'..m..'_table_large_tb.png',
|
||||
sunlight_propagates = true,
|
||||
paramtype = 'light',
|
||||
walkable = true,
|
||||
groups = { snappy = 3, not_in_creative_inventory=1 },
|
||||
sounds = s,
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, 0.4375, -0.5, 0.5, 0.5, 0.5 },
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, 0.4375, -0.5, 0.5, 0.5, 0.5 },
|
||||
},
|
||||
drop = 'homedecor:'..m..'_table_large_b'
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:'..m..'_table_large_s', {
|
||||
description = S(d.."Table Piece (large)"),
|
||||
drawtype = 'nodebox',
|
||||
tiles = {
|
||||
'homedecor_'..m..'_table_large_edges.png',
|
||||
'homedecor_'..m..'_table_large_edges.png',
|
||||
'homedecor_'..m..'_table_large_edges.png',
|
||||
'homedecor_'..m..'_table_large_edges.png',
|
||||
'homedecor_'..m..'_table_large_tb.png',
|
||||
'homedecor_'..m..'_table_large_tb.png',
|
||||
},
|
||||
wield_image = 'homedecor_'..m..'_table_large_tb.png',
|
||||
inventory_image = 'homedecor_'..m..'_table_large_tb.png',
|
||||
sunlight_propagates = true,
|
||||
paramtype = 'light',
|
||||
walkable = true,
|
||||
groups = { snappy = 3, not_in_creative_inventory=1 },
|
||||
sounds = s,
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 0.4375, 0.5, 0.5, 0.5 },
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 0.4375, 0.5, 0.5, 0.5 },
|
||||
},
|
||||
drop = 'homedecor:'..m..'_table_large_b'
|
||||
})
|
||||
|
||||
minetest.register_alias('homedecor:'..m..'_table_large', 'homedecor:'..m..'_table_large_b')
|
||||
minetest.register_alias('homedecor:'..m..'_table_small_square', 'homedecor:'..m..'_table_small_square_b')
|
||||
minetest.register_alias('homedecor:'..m..'_table_small_round', 'homedecor:'..m..'_table_small_round_b')
|
||||
|
||||
end
|
||||
|
||||
minetest.register_node('homedecor:utility_table_top', {
|
||||
description = S("Utility Table"),
|
||||
tiles = {
|
||||
'homedecor_utility_table_tb.png',
|
||||
'homedecor_utility_table_tb.png',
|
||||
'homedecor_utility_table_edges.png',
|
||||
'homedecor_utility_table_edges.png',
|
||||
'homedecor_utility_table_edges.png',
|
||||
'homedecor_utility_table_edges.png'
|
||||
},
|
||||
wield_image = 'homedecor_utility_table_tb.png',
|
||||
inventory_image = 'homedecor_utility_table_tb.png',
|
||||
drawtype = "nodebox",
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
paramtype2 = "wallmounted",
|
||||
node_box = {
|
||||
type = "wallmounted",
|
||||
wall_bottom = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },
|
||||
wall_top = { -0.5, 0.4375, -0.5, 0.5, 0.5, 0.5 },
|
||||
wall_side = { -0.5, -0.5, -0.5, -0.4375, 0.5, 0.5 },
|
||||
},
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
wall_bottom = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },
|
||||
wall_top = { -0.5, 0.4375, -0.5, 0.5, 0.5, 0.5 },
|
||||
wall_side = { -0.5, -0.5, -0.5, -0.4375, 0.5, 0.5 },
|
||||
},
|
||||
})
|
||||
|
||||
-- Various kinds of table legs
|
||||
|
||||
minetest.register_node("homedecor:table_legs_brass", {
|
||||
description = S("Brass Table Legs"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"homedecor_table_legs_brass.png"},
|
||||
inventory_image = "homedecor_table_legs_brass.png",
|
||||
wield_image = "homedecor_table_legs_brass.png",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
walkable = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.37, -0.5, -0.37, 0.37, 0.5, 0.37 }
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:table_legs_wrought_iron", {
|
||||
description = S("Brass Table Legs"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"homedecor_table_legs_wrought_iron.png"},
|
||||
inventory_image = "homedecor_table_legs_wrought_iron.png",
|
||||
wield_image = "homedecor_table_legs_wrought_iron.png",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
walkable = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.37, -0.5, -0.37, 0.37, 0.5, 0.37 }
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:utility_table_legs', {
|
||||
description = S("Legs for Utility Table"),
|
||||
drawtype = "plantlike",
|
||||
tiles = { 'homedecor_utility_table_legs.png' },
|
||||
inventory_image = 'homedecor_utility_table_legs_inv.png',
|
||||
wield_image = 'homedecor_utility_table_legs.png',
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.37, -0.5, -0.37, 0.37, 0.5, 0.37 }
|
||||
},
|
||||
})
|
||||
|
BIN
homedecor/textures/3dforniture_inv_chains.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
homedecor/textures/3dforniture_inv_shower_head.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
homedecor/textures/3dforniture_inv_sink.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
homedecor/textures/3dforniture_inv_taps.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
homedecor/textures/3dforniture_inv_torch_wall.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
homedecor/textures/forniture_armchair_lat1_black.png
Normal file
After Width: | Height: | Size: 476 B |
BIN
homedecor/textures/forniture_armchair_lat1_blue.png
Normal file
After Width: | Height: | Size: 408 B |
BIN
homedecor/textures/forniture_armchair_lat1_dark_green.png
Normal file
After Width: | Height: | Size: 422 B |
BIN
homedecor/textures/forniture_armchair_lat1_pink.png
Normal file
After Width: | Height: | Size: 369 B |
BIN
homedecor/textures/forniture_armchair_lat1_red.png
Normal file
After Width: | Height: | Size: 433 B |
BIN
homedecor/textures/forniture_armchair_lat1_violet.png
Normal file
After Width: | Height: | Size: 422 B |
BIN
homedecor/textures/forniture_armchair_lat2_black.png
Normal file
After Width: | Height: | Size: 442 B |
BIN
homedecor/textures/forniture_armchair_lat2_blue.png
Normal file
After Width: | Height: | Size: 375 B |
BIN
homedecor/textures/forniture_armchair_lat2_dark_green.png
Normal file
After Width: | Height: | Size: 391 B |
BIN
homedecor/textures/forniture_armchair_lat2_pink.png
Normal file
After Width: | Height: | Size: 339 B |
BIN
homedecor/textures/forniture_armchair_lat2_red.png
Normal file
After Width: | Height: | Size: 395 B |
BIN
homedecor/textures/forniture_armchair_lat2_violet.png
Normal file
After Width: | Height: | Size: 391 B |
BIN
homedecor/textures/forniture_armchair_top_black.png
Normal file
After Width: | Height: | Size: 481 B |
BIN
homedecor/textures/forniture_armchair_top_blue.png
Normal file
After Width: | Height: | Size: 398 B |
BIN
homedecor/textures/forniture_armchair_top_dark_green.png
Normal file
After Width: | Height: | Size: 409 B |
BIN
homedecor/textures/forniture_armchair_top_pink.png
Normal file
After Width: | Height: | Size: 376 B |
BIN
homedecor/textures/forniture_armchair_top_red.png
Normal file
After Width: | Height: | Size: 446 B |
BIN
homedecor/textures/forniture_armchair_top_violet.png
Normal file
After Width: | Height: | Size: 409 B |
BIN
homedecor/textures/forniture_black_metal.png
Normal file
After Width: | Height: | Size: 354 B |
BIN
homedecor/textures/forniture_black_metal_s1.png
Normal file
After Width: | Height: | Size: 426 B |
BIN
homedecor/textures/forniture_black_metal_s2.png
Normal file
After Width: | Height: | Size: 437 B |
BIN
homedecor/textures/forniture_marble.png
Normal file
After Width: | Height: | Size: 818 B |
BIN
homedecor/textures/forniture_marble_base_ducha_top.png
Normal file
After Width: | Height: | Size: 778 B |
BIN
homedecor/textures/forniture_marble_s1.png
Normal file
After Width: | Height: | Size: 721 B |
BIN
homedecor/textures/forniture_marble_s2.png
Normal file
After Width: | Height: | Size: 814 B |
BIN
homedecor/textures/forniture_marble_sb1.png
Normal file
After Width: | Height: | Size: 788 B |
BIN
homedecor/textures/forniture_marble_sb2.png
Normal file
After Width: | Height: | Size: 939 B |
BIN
homedecor/textures/forniture_marble_top_sink.png
Normal file
After Width: | Height: | Size: 777 B |
BIN
homedecor/textures/forniture_marble_top_toilet.png
Normal file
After Width: | Height: | Size: 801 B |
BIN
homedecor/textures/forniture_metal.png
Normal file
After Width: | Height: | Size: 467 B |
BIN
homedecor/textures/forniture_metal_s1.png
Normal file
After Width: | Height: | Size: 505 B |
BIN
homedecor/textures/forniture_metal_s2.png
Normal file
After Width: | Height: | Size: 444 B |
BIN
homedecor/textures/forniture_papyrus.png
Normal file
After Width: | Height: | Size: 938 B |
BIN
homedecor/textures/forniture_papyrus_s1.png
Normal file
After Width: | Height: | Size: 959 B |
BIN
homedecor/textures/forniture_papyrus_s2.png
Normal file
After Width: | Height: | Size: 1016 B |
BIN
homedecor/textures/forniture_table_lamp_l.png
Normal file
After Width: | Height: | Size: 446 B |
BIN
homedecor/textures/forniture_table_lamp_lh.png
Normal file
After Width: | Height: | Size: 446 B |
BIN
homedecor/textures/forniture_table_lamp_ll.png
Normal file
After Width: | Height: | Size: 446 B |
BIN
homedecor/textures/forniture_table_lamp_lm.png
Normal file
After Width: | Height: | Size: 446 B |
BIN
homedecor/textures/forniture_table_lamp_lx.png
Normal file
After Width: | Height: | Size: 446 B |
BIN
homedecor/textures/forniture_table_lamp_s.png
Normal file
After Width: | Height: | Size: 300 B |
BIN
homedecor/textures/forniture_table_lamp_sh.png
Normal file
After Width: | Height: | Size: 300 B |
BIN
homedecor/textures/forniture_table_lamp_sl.png
Normal file
After Width: | Height: | Size: 300 B |
BIN
homedecor/textures/forniture_table_lamp_sm.png
Normal file
After Width: | Height: | Size: 300 B |
BIN
homedecor/textures/forniture_table_lamp_sx.png
Normal file
After Width: | Height: | Size: 300 B |
BIN
homedecor/textures/forniture_torch_wall_anim.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
homedecor/textures/forniture_torch_wall_i.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
homedecor/textures/forniture_torch_wall_s.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
homedecor/textures/forniture_wood.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
homedecor/textures/forniture_wood_s1.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
homedecor/textures/forniture_wood_s2.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
homedecor/textures/homedecor_ac_back.png
Normal file
After Width: | Height: | Size: 168 B |
BIN
homedecor/textures/homedecor_ac_front.png
Normal file
After Width: | Height: | Size: 249 B |
BIN
homedecor/textures/homedecor_ac_sides.png
Normal file
After Width: | Height: | Size: 162 B |
BIN
homedecor/textures/homedecor_ac_tb.png
Normal file
After Width: | Height: | Size: 118 B |
BIN
homedecor/textures/homedecor_blanktile.png
Normal file
After Width: | Height: | Size: 113 B |
BIN
homedecor/textures/homedecor_brass_ingot.png
Normal file
After Width: | Height: | Size: 292 B |
BIN
homedecor/textures/homedecor_ceiling_paint.png
Normal file
After Width: | Height: | Size: 330 B |
BIN
homedecor/textures/homedecor_ceiling_paint_roller.png
Normal file
After Width: | Height: | Size: 256 B |
BIN
homedecor/textures/homedecor_ceiling_tile.png
Normal file
After Width: | Height: | Size: 282 B |