Compare commits
	
		
			103 Commits
		
	
	
		
			stable-201
			...
			2018-11-23
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					37c6b99ac1 | ||
| 
						 | 
					bcf9238e47 | ||
| 
						 | 
					e291a45d99 | ||
| 
						 | 
					12bdbd6684 | ||
| 
						 | 
					13a35d12a0 | ||
| 
						 | 
					c5393f1462 | ||
| 
						 | 
					93351aecda | ||
| 
						 | 
					bf79c7d430 | ||
| 
						 | 
					f7ff5ae3f4 | ||
| 
						 | 
					c64dabfa28 | ||
| 
						 | 
					d4e85cbab2 | ||
| 
						 | 
					3791311422 | ||
| 
						 | 
					ec0e332918 | ||
| 
						 | 
					6dec410d29 | ||
| 
						 | 
					0c58327df7 | ||
| 
						 | 
					fba875f474 | ||
| 
						 | 
					f983710899 | ||
| 
						 | 
					6a3c009276 | ||
| 
						 | 
					69e87419ea | ||
| 
						 | 
					25fef974e3 | ||
| 
						 | 
					4980844320 | ||
| 
						 | 
					fc781daca0 | ||
| 
						 | 
					5b631142aa | ||
| 
						 | 
					eb6089a03e | ||
| 
						 | 
					41455647a2 | ||
| 
						 | 
					55fea4f6ca | ||
| 
						 | 
					a8729575ab | ||
| 
						 | 
					9e69a6db73 | ||
| 
						 | 
					54ce73b616 | ||
| 
						 | 
					8a5bc0e038 | ||
| 
						 | 
					d6ff137657 | ||
| 
						 | 
					a4ca53cc05 | ||
| 
						 | 
					017326dbed | ||
| 
						 | 
					31bf6b8c40 | ||
| 
						 | 
					b526ec1714 | ||
| 
						 | 
					7e98534179 | ||
| 
						 | 
					8132cfc6f8 | ||
| 
						 | 
					39984c356b | ||
| 
						 | 
					eb2b3d7980 | ||
| 
						 | 
					08bbd0f592 | ||
| 
						 | 
					3597c2c1aa | ||
| 
						 | 
					5db791deb4 | ||
| 
						 | 
					8ccbe6abc4 | ||
| 
						 | 
					cafba3bc53 | ||
| 
						 | 
					ac10702849 | ||
| 
						 | 
					fe2acaaa1e | ||
| 
						 | 
					bfda7c49fd | ||
| 
						 | 
					4d9c4c2410 | ||
| 
						 | 
					1471a0cba9 | ||
| 
						 | 
					eabd237252 | ||
| 
						 | 
					9d4ac9bd9a | ||
| 
						 | 
					5efa9af1b7 | ||
| 
						 | 
					7d40724d39 | ||
| 
						 | 
					5e6307ea3a | ||
| 
						 | 
					8882ab8e19 | ||
| 
						 | 
					3021248538 | ||
| 
						 | 
					4eaf265e65 | ||
| 
						 | 
					228e25e123 | ||
| 
						 | 
					ddcb08fe62 | ||
| 
						 | 
					972d30dd38 | ||
| 
						 | 
					cc9276841e | ||
| 
						 | 
					f2f49a3aac | ||
| 
						 | 
					b92c9e065b | ||
| 
						 | 
					ea77ac32ea | ||
| 
						 | 
					14697ef71b | ||
| 
						 | 
					9921efeeef | ||
| 
						 | 
					87e3c9f9ce | ||
| 
						 | 
					095e34ad7f | ||
| 
						 | 
					6c9da755f3 | ||
| 
						 | 
					c786e3ae05 | ||
| 
						 | 
					48be7ddef1 | ||
| 
						 | 
					2c5be0735a | ||
| 
						 | 
					36e5e319e3 | ||
| 
						 | 
					57b988c185 | ||
| 
						 | 
					d6f660b72a | ||
| 
						 | 
					7b4db2fc5a | ||
| 
						 | 
					b45ace825d | ||
| 
						 | 
					9d2704c0c2 | ||
| 
						 | 
					d7a4054dda | ||
| 
						 | 
					f03e71397a | ||
| 
						 | 
					6349c53824 | ||
| 
						 | 
					c60607aa0d | ||
| 
						 | 
					78ec2119f6 | ||
| 
						 | 
					c247318dd8 | ||
| 
						 | 
					9693d9dd46 | ||
| 
						 | 
					23d1365939 | ||
| 
						 | 
					f391bc59b0 | ||
| 
						 | 
					790557f6ce | ||
| 
						 | 
					c9c4214bff | ||
| 
						 | 
					914aee41fe | ||
| 
						 | 
					ec83040d10 | ||
| 
						 | 
					9bb4222aa5 | ||
| 
						 | 
					67ddc87d2c | ||
| 
						 | 
					970636571e | ||
| 
						 | 
					4ee5b6b87f | ||
| 
						 | 
					1f2676b8f6 | ||
| 
						 | 
					ad4790f74c | ||
| 
						 | 
					7925897748 | ||
| 
						 | 
					459c02548e | ||
| 
						 | 
					1eb1e87f08 | ||
| 
						 | 
					27eae09d93 | ||
| 
						 | 
					761b18c17e | ||
| 
						 | 
					763bcb2e95 | 
@@ -4,7 +4,9 @@ allow_defined_top = true
 | 
			
		||||
read_globals = {
 | 
			
		||||
	"DIR_DELIM",
 | 
			
		||||
	"minetest", "core",
 | 
			
		||||
	"unpack",
 | 
			
		||||
	"dump",
 | 
			
		||||
	table = { fields = { "copy", "getn" } },
 | 
			
		||||
	"vector", "nodeupdate",
 | 
			
		||||
	"VoxelManip", "VoxelArea",
 | 
			
		||||
	"PseudoRandom", "ItemStack",
 | 
			
		||||
@@ -17,6 +19,7 @@ read_globals = {
 | 
			
		||||
	"mesecon",
 | 
			
		||||
	"unifieddyes",
 | 
			
		||||
	"creative",
 | 
			
		||||
	"homedecor_i18n",
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
globals = {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										450
									
								
								LICENSE
									
									
									
									
									
								
							
							
						
						@@ -1,17 +1,15 @@
 | 
			
		||||
For the Lua code:  LGPL 3.0 or higher
 | 
			
		||||
For all models, all textures, and all sounds:  CC-by-SA 3.0 or higher
 | 
			
		||||
For everything else: WTFPL
 | 
			
		||||
License for code: LGPL 3.0
 | 
			
		||||
License for media and all other assets:  CC-by-SA 4.0
 | 
			
		||||
 | 
			
		||||
Exceptions to the above:
 | 
			
		||||
These licenses apply to all modules and components in this modpack,
 | 
			
		||||
unless otherwise stated.
 | 
			
		||||
 | 
			
		||||
Fancy mesh fire model and texture by NathanS (CC-0).
 | 
			
		||||
 | 
			
		||||
===============================================================================
 | 
			
		||||
###############################################################################
 | 
			
		||||
 | 
			
		||||
                   GNU LESSER GENERAL PUBLIC LICENSE
 | 
			
		||||
                       Version 3, 29 June 2007
 | 
			
		||||
 | 
			
		||||
 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 | 
			
		||||
 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 | 
			
		||||
 Everyone is permitted to copy and distribute verbatim copies
 | 
			
		||||
 of this license document, but changing it is not allowed.
 | 
			
		||||
 | 
			
		||||
@@ -174,26 +172,432 @@ apply, that proxy's public statement of acceptance of any version is
 | 
			
		||||
permanent authorization for you to choose that version for the
 | 
			
		||||
Library.
 | 
			
		||||
 | 
			
		||||
===============================================================================
 | 
			
		||||
###############################################################################
 | 
			
		||||
 | 
			
		||||
This work is licensed under the Creative Commons Attribution-ShareAlike 
 | 
			
		||||
4.0 International License. To view a copy of this license, visit 
 | 
			
		||||
http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to 
 | 
			
		||||
Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
 | 
			
		||||
Attribution-ShareAlike 4.0 International
 | 
			
		||||
 | 
			
		||||
===============================================================================
 | 
			
		||||
=======================================================================
 | 
			
		||||
 | 
			
		||||
            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
 | 
			
		||||
                    Version 2, December 2004
 | 
			
		||||
Creative Commons Corporation ("Creative Commons") is not a law firm and
 | 
			
		||||
does not provide legal services or legal advice. Distribution of
 | 
			
		||||
Creative Commons public licenses does not create a lawyer-client or
 | 
			
		||||
other relationship. Creative Commons makes its licenses and related
 | 
			
		||||
information available on an "as-is" basis. Creative Commons gives no
 | 
			
		||||
warranties regarding its licenses, any material licensed under their
 | 
			
		||||
terms and conditions, or any related information. Creative Commons
 | 
			
		||||
disclaims all liability for damages resulting from their use to the
 | 
			
		||||
fullest extent possible.
 | 
			
		||||
 | 
			
		||||
 Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
 | 
			
		||||
Using Creative Commons Public Licenses
 | 
			
		||||
 | 
			
		||||
 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.
 | 
			
		||||
Creative Commons public licenses provide a standard set of terms and
 | 
			
		||||
conditions that creators and other rights holders may use to share
 | 
			
		||||
original works of authorship and other material subject to copyright
 | 
			
		||||
and certain other rights specified in the public license below. The
 | 
			
		||||
following considerations are for informational purposes only, are not
 | 
			
		||||
exhaustive, and do not form part of our licenses.
 | 
			
		||||
 | 
			
		||||
            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
 | 
			
		||||
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
 | 
			
		||||
     Considerations for licensors: Our public licenses are
 | 
			
		||||
     intended for use by those authorized to give the public
 | 
			
		||||
     permission to use material in ways otherwise restricted by
 | 
			
		||||
     copyright and certain other rights. Our licenses are
 | 
			
		||||
     irrevocable. Licensors should read and understand the terms
 | 
			
		||||
     and conditions of the license they choose before applying it.
 | 
			
		||||
     Licensors should also secure all rights necessary before
 | 
			
		||||
     applying our licenses so that the public can reuse the
 | 
			
		||||
     material as expected. Licensors should clearly mark any
 | 
			
		||||
     material not subject to the license. This includes other CC-
 | 
			
		||||
     licensed material, or material used under an exception or
 | 
			
		||||
     limitation to copyright. More considerations for licensors:
 | 
			
		||||
	wiki.creativecommons.org/Considerations_for_licensors
 | 
			
		||||
 | 
			
		||||
  0. You just DO WHAT THE FUCK YOU WANT TO.
 | 
			
		||||
     Considerations for the public: By using one of our public
 | 
			
		||||
     licenses, a licensor grants the public permission to use the
 | 
			
		||||
     licensed material under specified terms and conditions. If
 | 
			
		||||
     the licensor's permission is not necessary for any reason--for
 | 
			
		||||
     example, because of any applicable exception or limitation to
 | 
			
		||||
     copyright--then that use is not regulated by the license. Our
 | 
			
		||||
     licenses grant only permissions under copyright and certain
 | 
			
		||||
     other rights that a licensor has authority to grant. Use of
 | 
			
		||||
     the licensed material may still be restricted for other
 | 
			
		||||
     reasons, including because others have copyright or other
 | 
			
		||||
     rights in the material. A licensor may make special requests,
 | 
			
		||||
     such as asking that all changes be marked or described.
 | 
			
		||||
     Although not required by our licenses, you are encouraged to
 | 
			
		||||
     respect those requests where reasonable. More considerations
 | 
			
		||||
     for the public: 
 | 
			
		||||
	wiki.creativecommons.org/Considerations_for_licensees
 | 
			
		||||
 | 
			
		||||
=======================================================================
 | 
			
		||||
 | 
			
		||||
Creative Commons Attribution-ShareAlike 4.0 International Public
 | 
			
		||||
License
 | 
			
		||||
 | 
			
		||||
By exercising the Licensed Rights (defined below), You accept and agree
 | 
			
		||||
to be bound by the terms and conditions of this Creative Commons
 | 
			
		||||
Attribution-ShareAlike 4.0 International Public License ("Public
 | 
			
		||||
License"). To the extent this Public License may be interpreted as a
 | 
			
		||||
contract, You are granted the Licensed Rights in consideration of Your
 | 
			
		||||
acceptance of these terms and conditions, and the Licensor grants You
 | 
			
		||||
such rights in consideration of benefits the Licensor receives from
 | 
			
		||||
making the Licensed Material available under these terms and
 | 
			
		||||
conditions.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Section 1 -- Definitions.
 | 
			
		||||
 | 
			
		||||
  a. Adapted Material means material subject to Copyright and Similar
 | 
			
		||||
     Rights that is derived from or based upon the Licensed Material
 | 
			
		||||
     and in which the Licensed Material is translated, altered,
 | 
			
		||||
     arranged, transformed, or otherwise modified in a manner requiring
 | 
			
		||||
     permission under the Copyright and Similar Rights held by the
 | 
			
		||||
     Licensor. For purposes of this Public License, where the Licensed
 | 
			
		||||
     Material is a musical work, performance, or sound recording,
 | 
			
		||||
     Adapted Material is always produced where the Licensed Material is
 | 
			
		||||
     synched in timed relation with a moving image.
 | 
			
		||||
 | 
			
		||||
  b. Adapter's License means the license You apply to Your Copyright
 | 
			
		||||
     and Similar Rights in Your contributions to Adapted Material in
 | 
			
		||||
     accordance with the terms and conditions of this Public License.
 | 
			
		||||
 | 
			
		||||
  c. BY-SA Compatible License means a license listed at
 | 
			
		||||
     creativecommons.org/compatiblelicenses, approved by Creative
 | 
			
		||||
     Commons as essentially the equivalent of this Public License.
 | 
			
		||||
 | 
			
		||||
  d. Copyright and Similar Rights means copyright and/or similar rights
 | 
			
		||||
     closely related to copyright including, without limitation,
 | 
			
		||||
     performance, broadcast, sound recording, and Sui Generis Database
 | 
			
		||||
     Rights, without regard to how the rights are labeled or
 | 
			
		||||
     categorized. For purposes of this Public License, the rights
 | 
			
		||||
     specified in Section 2(b)(1)-(2) are not Copyright and Similar
 | 
			
		||||
     Rights.
 | 
			
		||||
 | 
			
		||||
  e. Effective Technological Measures means those measures that, in the
 | 
			
		||||
     absence of proper authority, may not be circumvented under laws
 | 
			
		||||
     fulfilling obligations under Article 11 of the WIPO Copyright
 | 
			
		||||
     Treaty adopted on December 20, 1996, and/or similar international
 | 
			
		||||
     agreements.
 | 
			
		||||
 | 
			
		||||
  f. Exceptions and Limitations means fair use, fair dealing, and/or
 | 
			
		||||
     any other exception or limitation to Copyright and Similar Rights
 | 
			
		||||
     that applies to Your use of the Licensed Material.
 | 
			
		||||
 | 
			
		||||
  g. License Elements means the license attributes listed in the name
 | 
			
		||||
     of a Creative Commons Public License. The License Elements of this
 | 
			
		||||
     Public License are Attribution and ShareAlike.
 | 
			
		||||
 | 
			
		||||
  h. Licensed Material means the artistic or literary work, database,
 | 
			
		||||
     or other material to which the Licensor applied this Public
 | 
			
		||||
     License.
 | 
			
		||||
 | 
			
		||||
  i. Licensed Rights means the rights granted to You subject to the
 | 
			
		||||
     terms and conditions of this Public License, which are limited to
 | 
			
		||||
     all Copyright and Similar Rights that apply to Your use of the
 | 
			
		||||
     Licensed Material and that the Licensor has authority to license.
 | 
			
		||||
 | 
			
		||||
  j. Licensor means the individual(s) or entity(ies) granting rights
 | 
			
		||||
     under this Public License.
 | 
			
		||||
 | 
			
		||||
  k. Share means to provide material to the public by any means or
 | 
			
		||||
     process that requires permission under the Licensed Rights, such
 | 
			
		||||
     as reproduction, public display, public performance, distribution,
 | 
			
		||||
     dissemination, communication, or importation, and to make material
 | 
			
		||||
     available to the public including in ways that members of the
 | 
			
		||||
     public may access the material from a place and at a time
 | 
			
		||||
     individually chosen by them.
 | 
			
		||||
 | 
			
		||||
  l. Sui Generis Database Rights means rights other than copyright
 | 
			
		||||
     resulting from Directive 96/9/EC of the European Parliament and of
 | 
			
		||||
     the Council of 11 March 1996 on the legal protection of databases,
 | 
			
		||||
     as amended and/or succeeded, as well as other essentially
 | 
			
		||||
     equivalent rights anywhere in the world.
 | 
			
		||||
 | 
			
		||||
  m. You means the individual or entity exercising the Licensed Rights
 | 
			
		||||
     under this Public License. Your has a corresponding meaning.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Section 2 -- Scope.
 | 
			
		||||
 | 
			
		||||
  a. License grant.
 | 
			
		||||
 | 
			
		||||
       1. Subject to the terms and conditions of this Public License,
 | 
			
		||||
          the Licensor hereby grants You a worldwide, royalty-free,
 | 
			
		||||
          non-sublicensable, non-exclusive, irrevocable license to
 | 
			
		||||
          exercise the Licensed Rights in the Licensed Material to:
 | 
			
		||||
 | 
			
		||||
            a. reproduce and Share the Licensed Material, in whole or
 | 
			
		||||
               in part; and
 | 
			
		||||
 | 
			
		||||
            b. produce, reproduce, and Share Adapted Material.
 | 
			
		||||
 | 
			
		||||
       2. Exceptions and Limitations. For the avoidance of doubt, where
 | 
			
		||||
          Exceptions and Limitations apply to Your use, this Public
 | 
			
		||||
          License does not apply, and You do not need to comply with
 | 
			
		||||
          its terms and conditions.
 | 
			
		||||
 | 
			
		||||
       3. Term. The term of this Public License is specified in Section
 | 
			
		||||
          6(a).
 | 
			
		||||
 | 
			
		||||
       4. Media and formats; technical modifications allowed. The
 | 
			
		||||
          Licensor authorizes You to exercise the Licensed Rights in
 | 
			
		||||
          all media and formats whether now known or hereafter created,
 | 
			
		||||
          and to make technical modifications necessary to do so. The
 | 
			
		||||
          Licensor waives and/or agrees not to assert any right or
 | 
			
		||||
          authority to forbid You from making technical modifications
 | 
			
		||||
          necessary to exercise the Licensed Rights, including
 | 
			
		||||
          technical modifications necessary to circumvent Effective
 | 
			
		||||
          Technological Measures. For purposes of this Public License,
 | 
			
		||||
          simply making modifications authorized by this Section 2(a)
 | 
			
		||||
          (4) never produces Adapted Material.
 | 
			
		||||
 | 
			
		||||
       5. Downstream recipients.
 | 
			
		||||
 | 
			
		||||
            a. Offer from the Licensor -- Licensed Material. Every
 | 
			
		||||
               recipient of the Licensed Material automatically
 | 
			
		||||
               receives an offer from the Licensor to exercise the
 | 
			
		||||
               Licensed Rights under the terms and conditions of this
 | 
			
		||||
               Public License.
 | 
			
		||||
 | 
			
		||||
            b. Additional offer from the Licensor -- Adapted Material.
 | 
			
		||||
               Every recipient of Adapted Material from You
 | 
			
		||||
               automatically receives an offer from the Licensor to
 | 
			
		||||
               exercise the Licensed Rights in the Adapted Material
 | 
			
		||||
               under the conditions of the Adapter's License You apply.
 | 
			
		||||
 | 
			
		||||
            c. No downstream restrictions. You may not offer or impose
 | 
			
		||||
               any additional or different terms or conditions on, or
 | 
			
		||||
               apply any Effective Technological Measures to, the
 | 
			
		||||
               Licensed Material if doing so restricts exercise of the
 | 
			
		||||
               Licensed Rights by any recipient of the Licensed
 | 
			
		||||
               Material.
 | 
			
		||||
 | 
			
		||||
       6. No endorsement. Nothing in this Public License constitutes or
 | 
			
		||||
          may be construed as permission to assert or imply that You
 | 
			
		||||
          are, or that Your use of the Licensed Material is, connected
 | 
			
		||||
          with, or sponsored, endorsed, or granted official status by,
 | 
			
		||||
          the Licensor or others designated to receive attribution as
 | 
			
		||||
          provided in Section 3(a)(1)(A)(i).
 | 
			
		||||
 | 
			
		||||
  b. Other rights.
 | 
			
		||||
 | 
			
		||||
       1. Moral rights, such as the right of integrity, are not
 | 
			
		||||
          licensed under this Public License, nor are publicity,
 | 
			
		||||
          privacy, and/or other similar personality rights; however, to
 | 
			
		||||
          the extent possible, the Licensor waives and/or agrees not to
 | 
			
		||||
          assert any such rights held by the Licensor to the limited
 | 
			
		||||
          extent necessary to allow You to exercise the Licensed
 | 
			
		||||
          Rights, but not otherwise.
 | 
			
		||||
 | 
			
		||||
       2. Patent and trademark rights are not licensed under this
 | 
			
		||||
          Public License.
 | 
			
		||||
 | 
			
		||||
       3. To the extent possible, the Licensor waives any right to
 | 
			
		||||
          collect royalties from You for the exercise of the Licensed
 | 
			
		||||
          Rights, whether directly or through a collecting society
 | 
			
		||||
          under any voluntary or waivable statutory or compulsory
 | 
			
		||||
          licensing scheme. In all other cases the Licensor expressly
 | 
			
		||||
          reserves any right to collect such royalties.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Section 3 -- License Conditions.
 | 
			
		||||
 | 
			
		||||
Your exercise of the Licensed Rights is expressly made subject to the
 | 
			
		||||
following conditions.
 | 
			
		||||
 | 
			
		||||
  a. Attribution.
 | 
			
		||||
 | 
			
		||||
       1. If You Share the Licensed Material (including in modified
 | 
			
		||||
          form), You must:
 | 
			
		||||
 | 
			
		||||
            a. retain the following if it is supplied by the Licensor
 | 
			
		||||
               with the Licensed Material:
 | 
			
		||||
 | 
			
		||||
                 i. identification of the creator(s) of the Licensed
 | 
			
		||||
                    Material and any others designated to receive
 | 
			
		||||
                    attribution, in any reasonable manner requested by
 | 
			
		||||
                    the Licensor (including by pseudonym if
 | 
			
		||||
                    designated);
 | 
			
		||||
 | 
			
		||||
                ii. a copyright notice;
 | 
			
		||||
 | 
			
		||||
               iii. a notice that refers to this Public License;
 | 
			
		||||
 | 
			
		||||
                iv. a notice that refers to the disclaimer of
 | 
			
		||||
                    warranties;
 | 
			
		||||
 | 
			
		||||
                 v. a URI or hyperlink to the Licensed Material to the
 | 
			
		||||
                    extent reasonably practicable;
 | 
			
		||||
 | 
			
		||||
            b. indicate if You modified the Licensed Material and
 | 
			
		||||
               retain an indication of any previous modifications; and
 | 
			
		||||
 | 
			
		||||
            c. indicate the Licensed Material is licensed under this
 | 
			
		||||
               Public License, and include the text of, or the URI or
 | 
			
		||||
               hyperlink to, this Public License.
 | 
			
		||||
 | 
			
		||||
       2. You may satisfy the conditions in Section 3(a)(1) in any
 | 
			
		||||
          reasonable manner based on the medium, means, and context in
 | 
			
		||||
          which You Share the Licensed Material. For example, it may be
 | 
			
		||||
          reasonable to satisfy the conditions by providing a URI or
 | 
			
		||||
          hyperlink to a resource that includes the required
 | 
			
		||||
          information.
 | 
			
		||||
 | 
			
		||||
       3. If requested by the Licensor, You must remove any of the
 | 
			
		||||
          information required by Section 3(a)(1)(A) to the extent
 | 
			
		||||
          reasonably practicable.
 | 
			
		||||
 | 
			
		||||
  b. ShareAlike.
 | 
			
		||||
 | 
			
		||||
     In addition to the conditions in Section 3(a), if You Share
 | 
			
		||||
     Adapted Material You produce, the following conditions also apply.
 | 
			
		||||
 | 
			
		||||
       1. The Adapter's License You apply must be a Creative Commons
 | 
			
		||||
          license with the same License Elements, this version or
 | 
			
		||||
          later, or a BY-SA Compatible License.
 | 
			
		||||
 | 
			
		||||
       2. You must include the text of, or the URI or hyperlink to, the
 | 
			
		||||
          Adapter's License You apply. You may satisfy this condition
 | 
			
		||||
          in any reasonable manner based on the medium, means, and
 | 
			
		||||
          context in which You Share Adapted Material.
 | 
			
		||||
 | 
			
		||||
       3. You may not offer or impose any additional or different terms
 | 
			
		||||
          or conditions on, or apply any Effective Technological
 | 
			
		||||
          Measures to, Adapted Material that restrict exercise of the
 | 
			
		||||
          rights granted under the Adapter's License You apply.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Section 4 -- Sui Generis Database Rights.
 | 
			
		||||
 | 
			
		||||
Where the Licensed Rights include Sui Generis Database Rights that
 | 
			
		||||
apply to Your use of the Licensed Material:
 | 
			
		||||
 | 
			
		||||
  a. for the avoidance of doubt, Section 2(a)(1) grants You the right
 | 
			
		||||
     to extract, reuse, reproduce, and Share all or a substantial
 | 
			
		||||
     portion of the contents of the database;
 | 
			
		||||
 | 
			
		||||
  b. if You include all or a substantial portion of the database
 | 
			
		||||
     contents in a database in which You have Sui Generis Database
 | 
			
		||||
     Rights, then the database in which You have Sui Generis Database
 | 
			
		||||
     Rights (but not its individual contents) is Adapted Material,
 | 
			
		||||
 | 
			
		||||
     including for purposes of Section 3(b); and
 | 
			
		||||
  c. You must comply with the conditions in Section 3(a) if You Share
 | 
			
		||||
     all or a substantial portion of the contents of the database.
 | 
			
		||||
 | 
			
		||||
For the avoidance of doubt, this Section 4 supplements and does not
 | 
			
		||||
replace Your obligations under this Public License where the Licensed
 | 
			
		||||
Rights include other Copyright and Similar Rights.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
 | 
			
		||||
 | 
			
		||||
  a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
 | 
			
		||||
     EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
 | 
			
		||||
     AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
 | 
			
		||||
     ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
 | 
			
		||||
     IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
 | 
			
		||||
     WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
 | 
			
		||||
     PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
 | 
			
		||||
     ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
 | 
			
		||||
     KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
 | 
			
		||||
     ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
 | 
			
		||||
 | 
			
		||||
  b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
 | 
			
		||||
     TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
 | 
			
		||||
     NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
 | 
			
		||||
     INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
 | 
			
		||||
     COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
 | 
			
		||||
     USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
 | 
			
		||||
     ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
 | 
			
		||||
     DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
 | 
			
		||||
     IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
 | 
			
		||||
 | 
			
		||||
  c. The disclaimer of warranties and limitation of liability provided
 | 
			
		||||
     above shall be interpreted in a manner that, to the extent
 | 
			
		||||
     possible, most closely approximates an absolute disclaimer and
 | 
			
		||||
     waiver of all liability.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Section 6 -- Term and Termination.
 | 
			
		||||
 | 
			
		||||
  a. This Public License applies for the term of the Copyright and
 | 
			
		||||
     Similar Rights licensed here. However, if You fail to comply with
 | 
			
		||||
     this Public License, then Your rights under this Public License
 | 
			
		||||
     terminate automatically.
 | 
			
		||||
 | 
			
		||||
  b. Where Your right to use the Licensed Material has terminated under
 | 
			
		||||
     Section 6(a), it reinstates:
 | 
			
		||||
 | 
			
		||||
       1. automatically as of the date the violation is cured, provided
 | 
			
		||||
          it is cured within 30 days of Your discovery of the
 | 
			
		||||
          violation; or
 | 
			
		||||
 | 
			
		||||
       2. upon express reinstatement by the Licensor.
 | 
			
		||||
 | 
			
		||||
     For the avoidance of doubt, this Section 6(b) does not affect any
 | 
			
		||||
     right the Licensor may have to seek remedies for Your violations
 | 
			
		||||
     of this Public License.
 | 
			
		||||
 | 
			
		||||
  c. For the avoidance of doubt, the Licensor may also offer the
 | 
			
		||||
     Licensed Material under separate terms or conditions or stop
 | 
			
		||||
     distributing the Licensed Material at any time; however, doing so
 | 
			
		||||
     will not terminate this Public License.
 | 
			
		||||
 | 
			
		||||
  d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
 | 
			
		||||
     License.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Section 7 -- Other Terms and Conditions.
 | 
			
		||||
 | 
			
		||||
  a. The Licensor shall not be bound by any additional or different
 | 
			
		||||
     terms or conditions communicated by You unless expressly agreed.
 | 
			
		||||
 | 
			
		||||
  b. Any arrangements, understandings, or agreements regarding the
 | 
			
		||||
     Licensed Material not stated herein are separate from and
 | 
			
		||||
     independent of the terms and conditions of this Public License.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Section 8 -- Interpretation.
 | 
			
		||||
 | 
			
		||||
  a. For the avoidance of doubt, this Public License does not, and
 | 
			
		||||
     shall not be interpreted to, reduce, limit, restrict, or impose
 | 
			
		||||
     conditions on any use of the Licensed Material that could lawfully
 | 
			
		||||
     be made without permission under this Public License.
 | 
			
		||||
 | 
			
		||||
  b. To the extent possible, if any provision of this Public License is
 | 
			
		||||
     deemed unenforceable, it shall be automatically reformed to the
 | 
			
		||||
     minimum extent necessary to make it enforceable. If the provision
 | 
			
		||||
     cannot be reformed, it shall be severed from this Public License
 | 
			
		||||
     without affecting the enforceability of the remaining terms and
 | 
			
		||||
     conditions.
 | 
			
		||||
 | 
			
		||||
  c. No term or condition of this Public License will be waived and no
 | 
			
		||||
     failure to comply consented to unless expressly agreed to by the
 | 
			
		||||
     Licensor.
 | 
			
		||||
 | 
			
		||||
  d. Nothing in this Public License constitutes or may be interpreted
 | 
			
		||||
     as a limitation upon, or waiver of, any privileges and immunities
 | 
			
		||||
     that apply to the Licensor or You, including from the legal
 | 
			
		||||
     processes of any jurisdiction or authority.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
=======================================================================
 | 
			
		||||
 | 
			
		||||
Creative Commons is not a party to its public
 | 
			
		||||
licenses. Notwithstanding, Creative Commons may elect to apply one of
 | 
			
		||||
its public licenses to material it publishes and in those instances
 | 
			
		||||
will be considered the “Licensor.” The text of the Creative Commons
 | 
			
		||||
public licenses is dedicated to the public domain under the CC0 Public
 | 
			
		||||
Domain Dedication. Except for the limited purpose of indicating that
 | 
			
		||||
material is shared under a Creative Commons public license or as
 | 
			
		||||
otherwise permitted by the Creative Commons policies published at
 | 
			
		||||
creativecommons.org/policies, Creative Commons does not authorize the
 | 
			
		||||
use of the trademark "Creative Commons" or any other trademark or logo
 | 
			
		||||
of Creative Commons without its prior written consent including,
 | 
			
		||||
without limitation, in connection with any unauthorized modifications
 | 
			
		||||
to any of its public licenses or any other arrangements,
 | 
			
		||||
understandings, or agreements concerning use of licensed material. For
 | 
			
		||||
the avoidance of doubt, this paragraph does not form part of the
 | 
			
		||||
public licenses.
 | 
			
		||||
 | 
			
		||||
Creative Commons may be contacted at creativecommons.org.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										61
									
								
								building_blocks/alias.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,61 @@
 | 
			
		||||
local S = homedecor_i18n.gettext
 | 
			
		||||
 | 
			
		||||
if minetest.get_modpath("moreblocks") or minetest.get_modpath("stairs") then
 | 
			
		||||
	minetest.register_alias("building_blocks:slab_tar", "stairs:slab_Tar")
 | 
			
		||||
	minetest.register_alias("building_blocks:stair_tar", "stairs:stair_Tar")
 | 
			
		||||
	minetest.register_alias("building_blocks:slab_marble", "stairs:slab_Marble")
 | 
			
		||||
	minetest.register_alias("building_blocks:stair_marble", "stairs:stair_Marble")
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if minetest.get_modpath("moreblocks") then
 | 
			
		||||
	stairsplus:register_alias_all("building_blocks", "tar", "building_blocks", "Tar")
 | 
			
		||||
	stairsplus:register_alias_all("building_blocks", "marble", "building_blocks", "Marble")
 | 
			
		||||
	for _, i in ipairs(stairsplus.shapes_list) do
 | 
			
		||||
		local class = i[1]
 | 
			
		||||
		local cut = i[2]
 | 
			
		||||
		minetest.unregister_item("moreblocks:"..class.."tar"..cut)
 | 
			
		||||
		minetest.register_alias("moreblocks:"..class.."tar"..cut, "building_blocks:"..class.."tar"..cut)
 | 
			
		||||
	end
 | 
			
		||||
	minetest.unregister_item("moreblocks:tar")
 | 
			
		||||
	minetest.register_alias("moreblocks:tar", "building_blocks:Tar")
 | 
			
		||||
	stairsplus:register_alias_all("moreblocks", "tar", "building_blocks", "Tar")
 | 
			
		||||
 | 
			
		||||
	if minetest.get_modpath("gloopblocks") then
 | 
			
		||||
		minetest.register_alias("building_blocks:gravel_spread", "gloopblocks:slab_gravel_1")
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("adobe", "building_blocks:Adobe")
 | 
			
		||||
minetest.register_alias("fakegrass", "building_blocks:fakegrass")
 | 
			
		||||
minetest.register_alias("hardwood", "building_blocks:hardwood")
 | 
			
		||||
minetest.register_alias("tar_knife", "building_blocks:knife")
 | 
			
		||||
minetest.register_alias("marble", "building_blocks:Marble")
 | 
			
		||||
minetest.register_alias("building_blocks_roofing", "building_blocks:Roofing")
 | 
			
		||||
minetest.register_alias("sticks", "building_blocks:sticks")
 | 
			
		||||
minetest.register_alias("building_blocks:faggot", "building_blocks:sticks")
 | 
			
		||||
minetest.register_alias("tar", "building_blocks:Tar")
 | 
			
		||||
 | 
			
		||||
if not minetest.get_modpath("technic") then
 | 
			
		||||
	minetest.register_node( ":technic:granite", {
 | 
			
		||||
		    description = S("Granite"),
 | 
			
		||||
		    tiles = { "technic_granite.png" },
 | 
			
		||||
		    is_ground_content = true,
 | 
			
		||||
		    groups = {cracky=1},
 | 
			
		||||
		    sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
	})
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		output = "technic:granite 9",
 | 
			
		||||
		recipe = {
 | 
			
		||||
			{ "group:tar_block", "group:marble", "group:tar_block" },
 | 
			
		||||
			{ "group:marble", "group:tar_block", "group:marble" },
 | 
			
		||||
			{ "group:tar_block", "group:marble", "group:tar_block" }
 | 
			
		||||
		},
 | 
			
		||||
	})
 | 
			
		||||
	if minetest.get_modpath("moreblocks") then
 | 
			
		||||
		stairsplus:register_all("technic", "granite", "technic:granite", {
 | 
			
		||||
				description=S("Granite"),
 | 
			
		||||
				groups={cracky=1, not_in_creative_inventory=1},
 | 
			
		||||
				tiles={"technic_granite.png"},
 | 
			
		||||
		})
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
@@ -1,3 +1,5 @@
 | 
			
		||||
default
 | 
			
		||||
homedecor_i18n
 | 
			
		||||
moreblocks?
 | 
			
		||||
gloopblocks?
 | 
			
		||||
stairs?
 | 
			
		||||
 
 | 
			
		||||
@@ -1,633 +1,7 @@
 | 
			
		||||
 | 
			
		||||
local S = homedecor_i18n.gettext
 | 
			
		||||
local modpath = minetest.get_modpath("building_blocks")
 | 
			
		||||
 | 
			
		||||
minetest.register_node("building_blocks:Adobe", {
 | 
			
		||||
	tiles = {"building_blocks_Adobe.png"},
 | 
			
		||||
	description = S("Adobe"),
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
})
 | 
			
		||||
minetest.register_node("building_blocks:Roofing", {
 | 
			
		||||
	tiles = {"building_blocks_Roofing.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	description = S("Roof block"),
 | 
			
		||||
	groups = {snappy=3},
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:terrycloth_towel 2',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"farming:string", "farming:string", "farming:string"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:Tarmac_spread 4',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"group:tar_block", "group:tar_block"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:gravel_spread 4',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:gravel", "default:gravel", "default:gravel"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:brobble_spread 4',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:brick", "default:cobble", "default:brick"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:Fireplace 1',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:steel_ingot", "building_blocks:sticks", "default:steel_ingot"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:Adobe 3',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:sand"},
 | 
			
		||||
		{"default:clay"},
 | 
			
		||||
		{"group:stick"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:Roofing 10',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"building_blocks:Adobe", "building_blocks:Adobe"},
 | 
			
		||||
		{"building_blocks:Adobe", "building_blocks:Adobe"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:BWtile 10',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"group:marble", "group:tar_block"},
 | 
			
		||||
		{"group:tar_block", "group:marble"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:grate 1',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:steel_ingot", "default:steel_ingot"},
 | 
			
		||||
		{"default:glass", "default:glass"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:woodglass 1',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:wood"},
 | 
			
		||||
		{"default:glass"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:hardwood 2',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:wood", "default:junglewood"},
 | 
			
		||||
		{"default:junglewood", "default:wood"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:hardwood 2',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:junglewood", "default:wood"},
 | 
			
		||||
		{"default:wood", "default:junglewood"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
if minetest.get_modpath("moreblocks") then
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		output = 'building_blocks:sticks 2',
 | 
			
		||||
		recipe = {
 | 
			
		||||
			{'group:stick', ''           , 'group:stick'},
 | 
			
		||||
			{'group:stick', 'group:stick', 'group:stick'},
 | 
			
		||||
			{'group:stick', 'group:stick', 'group:stick'},
 | 
			
		||||
		}
 | 
			
		||||
	})
 | 
			
		||||
else
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		output = 'building_blocks:sticks',
 | 
			
		||||
		recipe = {
 | 
			
		||||
			{'group:stick', 'group:stick'},
 | 
			
		||||
			{'group:stick', 'group:stick'},
 | 
			
		||||
		}
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'default:stick 4',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'building_blocks:sticks'},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:fakegrass 2',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'default:leaves'},
 | 
			
		||||
		{"default:dirt"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:tar_base 4',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:coal_lump", "default:gravel"},
 | 
			
		||||
		{"default:gravel", "default:coal_lump"}
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:tar_base 4',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:gravel", "default:coal_lump"},
 | 
			
		||||
		{"default:coal_lump", "default:gravel"}
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "cooking",
 | 
			
		||||
	output = "building_blocks:smoothglass",
 | 
			
		||||
	recipe = "default:glass"
 | 
			
		||||
})
 | 
			
		||||
minetest.register_node("building_blocks:smoothglass", {
 | 
			
		||||
	drawtype = "glasslike",
 | 
			
		||||
	description = S("Streak Free Glass"),
 | 
			
		||||
	tiles = {"building_blocks_sglass.png"},
 | 
			
		||||
	inventory_image = minetest.inventorycube("building_blocks_sglass.png"),
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {snappy=3,cracky=3,oddly_breakable_by_hand=3},
 | 
			
		||||
	sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
})
 | 
			
		||||
minetest.register_node("building_blocks:grate", {
 | 
			
		||||
	drawtype = "glasslike",
 | 
			
		||||
	description = S("Grate"),
 | 
			
		||||
	tiles = {"building_blocks_grate.png"},
 | 
			
		||||
	inventory_image = minetest.inventorycube("building_blocks_grate.png"),
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {cracky=1},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("building_blocks:Fireplace", {
 | 
			
		||||
	description = S("Fireplace"),
 | 
			
		||||
	tiles = {
 | 
			
		||||
		"building_blocks_cast_iron.png",
 | 
			
		||||
		"building_blocks_cast_iron.png",
 | 
			
		||||
		"building_blocks_cast_iron.png",
 | 
			
		||||
		"building_blocks_cast_iron_fireplace.png"
 | 
			
		||||
	},
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "facedir",
 | 
			
		||||
	light_source = default.LIGHT_MAX,
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {cracky=2},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("building_blocks:woodglass", {
 | 
			
		||||
	drawtype = "glasslike",
 | 
			
		||||
	description = S("Wood Framed Glass"),
 | 
			
		||||
	tiles = {"building_blocks_wglass.png"},
 | 
			
		||||
	inventory_image = minetest.inventorycube("building_blocks_wglass.png"),
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {snappy=3,cracky=3,oddly_breakable_by_hand=3},
 | 
			
		||||
	sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
})
 | 
			
		||||
minetest.register_node("building_blocks:terrycloth_towel", {
 | 
			
		||||
	drawtype = "raillike",
 | 
			
		||||
	description = S("Terrycloth towel"),
 | 
			
		||||
	tiles = {"building_blocks_towel.png"},
 | 
			
		||||
	inventory_image = "building_blocks_towel_inv.png",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
                -- but how to specify the dimensions for curved and sideways rails?
 | 
			
		||||
                fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
 | 
			
		||||
	},
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
})
 | 
			
		||||
minetest.register_node("building_blocks:Tarmac_spread", {
 | 
			
		||||
	drawtype = "raillike",
 | 
			
		||||
	description = S("Tarmac Spread"),
 | 
			
		||||
	tiles = {"building_blocks_tar.png"},
 | 
			
		||||
	inventory_image = "building_blocks_tar_spread_inv.png",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
                -- but how to specify the dimensions for curved and sideways rails?
 | 
			
		||||
                fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
 | 
			
		||||
	},
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {cracky=3},
 | 
			
		||||
	sounds = default.node_sound_dirt_defaults(),
 | 
			
		||||
})
 | 
			
		||||
minetest.register_node("building_blocks:BWtile", {
 | 
			
		||||
	drawtype = "raillike",
 | 
			
		||||
	description = S("Chess board tiling"),
 | 
			
		||||
	tiles = {"building_blocks_BWtile.png"},
 | 
			
		||||
	inventory_image = "building_blocks_bwtile_inv.png",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
                -- but how to specify the dimensions for curved and sideways rails?
 | 
			
		||||
                fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
 | 
			
		||||
	},
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
})
 | 
			
		||||
minetest.register_node("building_blocks:brobble_spread", {
 | 
			
		||||
	drawtype = "raillike",
 | 
			
		||||
	-- Translators: "Brobble" is a portmanteau of "Brick" and "Cobble".
 | 
			
		||||
	-- Translate however you see fit.
 | 
			
		||||
	description = S("Brobble Spread"),
 | 
			
		||||
	tiles = {"building_blocks_brobble.png"},
 | 
			
		||||
	inventory_image = "building_blocks_brobble_spread_inv.png",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
                -- but how to specify the dimensions for curved and sideways rails?
 | 
			
		||||
                fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
 | 
			
		||||
	},
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
})
 | 
			
		||||
minetest.register_node("building_blocks:gravel_spread", {
 | 
			
		||||
	drawtype = "raillike",
 | 
			
		||||
	description = S("Gravel Spread"),
 | 
			
		||||
	tiles = {"default_gravel.png"},
 | 
			
		||||
	inventory_image = "building_blocks_gravel_spread_inv.png",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
                -- but how to specify the dimensions for curved and sideways rails?
 | 
			
		||||
                fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
 | 
			
		||||
	},
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=2},
 | 
			
		||||
	sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
		footstep = {name="default_gravel_footstep", gain=0.5},
 | 
			
		||||
		dug = {name="default_gravel_footstep", gain=1.0},
 | 
			
		||||
	}),
 | 
			
		||||
})
 | 
			
		||||
minetest.register_node("building_blocks:hardwood", {
 | 
			
		||||
	tiles = {"building_blocks_hardwood.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	description = S("Hardwood"),
 | 
			
		||||
	groups = {choppy=1,flammable=1},
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
if minetest.get_modpath("moreblocks") then
 | 
			
		||||
 | 
			
		||||
	stairsplus:register_all(
 | 
			
		||||
		"building_blocks",
 | 
			
		||||
		"marble",
 | 
			
		||||
		"building_blocks:Marble",
 | 
			
		||||
		{
 | 
			
		||||
			description = "Marble",
 | 
			
		||||
			tiles = {"building_blocks_marble.png"},
 | 
			
		||||
			groups = {cracky=3},
 | 
			
		||||
			sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
		}
 | 
			
		||||
	)
 | 
			
		||||
	stairsplus:register_all(
 | 
			
		||||
		"building_blocks",
 | 
			
		||||
		"hardwood",
 | 
			
		||||
		"building_blocks:hardwood",
 | 
			
		||||
		{
 | 
			
		||||
			description = "Hardwood",
 | 
			
		||||
			tiles = {"building_blocks_hardwood.png"},
 | 
			
		||||
			groups = {choppy=1,flammable=1},
 | 
			
		||||
			sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
		}
 | 
			
		||||
	)
 | 
			
		||||
	stairsplus:register_all(
 | 
			
		||||
		"building_blocks",
 | 
			
		||||
		"fakegrass",
 | 
			
		||||
		"building_blocks:fakegrass",
 | 
			
		||||
		{
 | 
			
		||||
			description = "Grass",
 | 
			
		||||
			tiles = {"default_grass.png"},
 | 
			
		||||
			groups = {crumbly=3},
 | 
			
		||||
			sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
				footstep = {name="default_grass_footstep", gain=0.4},
 | 
			
		||||
			}),
 | 
			
		||||
		}
 | 
			
		||||
	)
 | 
			
		||||
 | 
			
		||||
	for _, i in ipairs(stairsplus.shapes_list) do
 | 
			
		||||
		local class = i[1]
 | 
			
		||||
		local cut = i[2]
 | 
			
		||||
		minetest.unregister_item("moreblocks:"..class.."tar"..cut)
 | 
			
		||||
		minetest.register_alias("moreblocks:"..class.."tar"..cut, "building_blocks:"..class.."tar"..cut)
 | 
			
		||||
 | 
			
		||||
	end
 | 
			
		||||
	minetest.unregister_item("moreblocks:tar")
 | 
			
		||||
	minetest.register_alias("moreblocks:tar", "building_blocks:Tar")
 | 
			
		||||
 | 
			
		||||
	stairsplus:register_all(
 | 
			
		||||
		"building_blocks",
 | 
			
		||||
		"tar",
 | 
			
		||||
		"building_blocks:Tar",
 | 
			
		||||
		{
 | 
			
		||||
			description = "Tar",
 | 
			
		||||
			tiles = {"building_blocks_tar.png"},
 | 
			
		||||
			groups = {crumbly=1},
 | 
			
		||||
			sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
		}
 | 
			
		||||
	)
 | 
			
		||||
 | 
			
		||||
	stairsplus:register_all(
 | 
			
		||||
		"building_blocks",
 | 
			
		||||
		"grate",
 | 
			
		||||
		"building_blocks:grate",
 | 
			
		||||
		{
 | 
			
		||||
			description = "Grate",
 | 
			
		||||
			tiles = {"building_blocks_grate.png"},
 | 
			
		||||
			groups = {cracky=1},
 | 
			
		||||
			sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
		}
 | 
			
		||||
	)
 | 
			
		||||
	stairsplus:register_all(
 | 
			
		||||
		"building_blocks",
 | 
			
		||||
		"Adobe",
 | 
			
		||||
		"building_blocks:Adobe",
 | 
			
		||||
		{
 | 
			
		||||
			description = "Adobe",
 | 
			
		||||
			tiles = {"building_blocks_Adobe.png"},
 | 
			
		||||
			groups = {crumbly=3},
 | 
			
		||||
			sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
		}
 | 
			
		||||
	)
 | 
			
		||||
	stairsplus:register_all(
 | 
			
		||||
		"building_blocks",
 | 
			
		||||
		"Roofing",
 | 
			
		||||
		"building_blocks:Roofing",
 | 
			
		||||
		{
 | 
			
		||||
			description = "Roofing",
 | 
			
		||||
			tiles = {"building_blocks_Roofing.png"},
 | 
			
		||||
			groups = {snappy=3},
 | 
			
		||||
			sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
		}
 | 
			
		||||
	)
 | 
			
		||||
else
 | 
			
		||||
	bb_stairs = {}
 | 
			
		||||
 | 
			
		||||
	-- Node will be called stairs:stair_<subname>
 | 
			
		||||
	function bb_stairs.register_stair(subname, recipeitem, groups, images, description)
 | 
			
		||||
		minetest.register_node("building_blocks:stair_" .. subname, {
 | 
			
		||||
			description = description,
 | 
			
		||||
			drawtype = "nodebox",
 | 
			
		||||
			tiles = images,
 | 
			
		||||
			paramtype = "light",
 | 
			
		||||
			paramtype2 = "facedir",
 | 
			
		||||
			is_ground_content = true,
 | 
			
		||||
			groups = groups,
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {
 | 
			
		||||
					{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
 | 
			
		||||
					{-0.5, 0, 0, 0.5, 0.5, 0.5},
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			output = 'building_blocks:stair_' .. subname .. ' 4',
 | 
			
		||||
			recipe = {
 | 
			
		||||
				{recipeitem, "", ""},
 | 
			
		||||
				{recipeitem, recipeitem, ""},
 | 
			
		||||
				{recipeitem, recipeitem, recipeitem},
 | 
			
		||||
			},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		-- Flipped recipe for the silly minecrafters
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			output = 'building_blocks:stair_' .. subname .. ' 4',
 | 
			
		||||
			recipe = {
 | 
			
		||||
				{"", "", recipeitem},
 | 
			
		||||
				{"", recipeitem, recipeitem},
 | 
			
		||||
				{recipeitem, recipeitem, recipeitem},
 | 
			
		||||
			},
 | 
			
		||||
		})
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	-- Node will be called stairs:slab_<subname>
 | 
			
		||||
	function bb_stairs.register_slab(subname, recipeitem, groups, images, description)
 | 
			
		||||
		minetest.register_node("building_blocks:slab_" .. subname, {
 | 
			
		||||
			description = description,
 | 
			
		||||
			drawtype = "nodebox",
 | 
			
		||||
			tiles = images,
 | 
			
		||||
			paramtype = "light",
 | 
			
		||||
			is_ground_content = true,
 | 
			
		||||
			groups = groups,
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
			selection_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			output = 'building_blocks:slab_' .. subname .. ' 3',
 | 
			
		||||
			recipe = {
 | 
			
		||||
				{recipeitem, recipeitem, recipeitem},
 | 
			
		||||
			},
 | 
			
		||||
		})
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	-- Nodes will be called stairs:{stair,slab}_<subname>
 | 
			
		||||
	function bb_stairs.register_stair_and_slab(subname, recipeitem, groups, images, desc_stair, desc_slab)
 | 
			
		||||
		bb_stairs.register_stair(subname, recipeitem, groups, images, desc_stair)
 | 
			
		||||
		bb_stairs.register_slab(subname, recipeitem, groups, images, desc_slab)
 | 
			
		||||
	end
 | 
			
		||||
	bb_stairs.register_stair_and_slab("marble","building_blocks:Marble",
 | 
			
		||||
		{cracky=3},
 | 
			
		||||
		{"building_blocks_marble.png"},
 | 
			
		||||
		S("Marble stair"),
 | 
			
		||||
		S("Marble slab")
 | 
			
		||||
	)
 | 
			
		||||
	bb_stairs.register_stair_and_slab("hardwood","building_blocks:hardwood",
 | 
			
		||||
		{choppy=1,flammable=1},
 | 
			
		||||
		{"building_blocks_hardwood.png"},
 | 
			
		||||
		S("Hardwood stair"),
 | 
			
		||||
		S("Hardwood slab")
 | 
			
		||||
	)
 | 
			
		||||
	bb_stairs.register_stair_and_slab("fakegrass","building_blocks:fakegrass",
 | 
			
		||||
		{crumbly=3},
 | 
			
		||||
		{"default_grass.png"},
 | 
			
		||||
		S("Grass stair"),
 | 
			
		||||
		S("Grass slab")
 | 
			
		||||
	)
 | 
			
		||||
	bb_stairs.register_stair_and_slab("tar","building_blocks:Tar",
 | 
			
		||||
		{crumbly=1},
 | 
			
		||||
		{"building_blocks_tar.png"},
 | 
			
		||||
		S("Tar stair"),
 | 
			
		||||
		S("Tar slab")
 | 
			
		||||
	)
 | 
			
		||||
	bb_stairs.register_stair_and_slab("grate","building_blocks:grate",
 | 
			
		||||
		{cracky=1},
 | 
			
		||||
		{"building_blocks_grate.png"},
 | 
			
		||||
		S("Grate Stair"),
 | 
			
		||||
		S("Grate Slab")
 | 
			
		||||
	)
 | 
			
		||||
	bb_stairs.register_stair_and_slab("Adobe", "building_blocks:Adobe",
 | 
			
		||||
		{crumbly=3},
 | 
			
		||||
		{"building_blocks_Adobe.png"},
 | 
			
		||||
		S("Adobe stair"),
 | 
			
		||||
		S("Adobe slab")
 | 
			
		||||
	)
 | 
			
		||||
	bb_stairs.register_stair_and_slab("Roofing", "building_blocks:Roofing",
 | 
			
		||||
		{snappy=3},
 | 
			
		||||
		{"building_blocks_Roofing.png"},
 | 
			
		||||
		S("Roofing stair"),
 | 
			
		||||
		S("Roofing slab")
 | 
			
		||||
	)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "fuel",
 | 
			
		||||
	recipe = "building_blocks:hardwood",
 | 
			
		||||
	burntime = 28,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("building_blocks:fakegrass", {
 | 
			
		||||
	tiles = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
 | 
			
		||||
	description = S("Fake Grass"),
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
		sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
		footstep = {name="default_grass_footstep", gain=0.4},
 | 
			
		||||
	}),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craftitem("building_blocks:sticks", {
 | 
			
		||||
	description = S("Small bundle of sticks"),
 | 
			
		||||
	image = "building_blocks_sticks.png",
 | 
			
		||||
	on_place_on_ground = minetest.craftitem_place_item,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craftitem("building_blocks:tar_base", {
 | 
			
		||||
	description = S("Tar base"),
 | 
			
		||||
	image = "building_blocks_tar_base.png",
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
--Tar
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:knife 1',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"group:tar_block"},
 | 
			
		||||
		{"group:stick"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("tar", "building_blocks:Tar")
 | 
			
		||||
minetest.register_alias("fakegrass", "building_blocks:fakegrass")
 | 
			
		||||
minetest.register_alias("tar_knife", "building_blocks:knife")
 | 
			
		||||
minetest.register_alias("adobe", "building_blocks:Adobe")
 | 
			
		||||
minetest.register_alias("building_blocks_roofing", "building_blocks:Roofing")
 | 
			
		||||
minetest.register_alias("hardwood", "building_blocks:hardwood")
 | 
			
		||||
minetest.register_alias("sticks", "building_blocks:sticks")
 | 
			
		||||
minetest.register_alias("building_blocks:faggot", "building_blocks:sticks")
 | 
			
		||||
minetest.register_alias("marble", "building_blocks:Marble")
 | 
			
		||||
 | 
			
		||||
minetest.register_node("building_blocks:Tar", {
 | 
			
		||||
	description = S("Tar"),
 | 
			
		||||
	tiles = {"building_blocks_tar.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=1, tar_block = 1},
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
})
 | 
			
		||||
minetest.register_node("building_blocks:Marble", {
 | 
			
		||||
	description = S("Marble"),
 | 
			
		||||
	tiles = {"building_blocks_marble.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {cracky=3, marble = 1},
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "fuel",
 | 
			
		||||
	recipe = "building_blocks:sticks",
 | 
			
		||||
	burntime = 5,
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "fuel",
 | 
			
		||||
	recipe = "building_blocks:Tar",
 | 
			
		||||
	burntime = 40,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "cooking",
 | 
			
		||||
	output = "building_blocks:Tar",
 | 
			
		||||
	recipe = "building_blocks:tar_base",
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_tool("building_blocks:knife", {
 | 
			
		||||
	description = S("Tar Knife"),
 | 
			
		||||
	inventory_image = "building_blocks_knife.png",
 | 
			
		||||
	tool_capabilities = {
 | 
			
		||||
		max_drop_level=0,
 | 
			
		||||
		groupcaps={
 | 
			
		||||
			choppy={times={[2]=7.50, [3]=2.80}, uses=100, maxlevel=1},
 | 
			
		||||
			fleshy={times={[2]=5.50, [3]=2.80}, uses=100, maxlevel=1}
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "building_blocks:Marble 9",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:clay", "group:tar_block", "default:clay"},
 | 
			
		||||
		{"group:tar_block","default:clay", "group:tar_block"},
 | 
			
		||||
		{"default:clay", "group:tar_block","default:clay"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
if not minetest.get_modpath("technic") then
 | 
			
		||||
	minetest.register_node( ":technic:granite", {
 | 
			
		||||
		    description = S("Granite"),
 | 
			
		||||
		    tiles = { "technic_granite.png" },
 | 
			
		||||
		    is_ground_content = true,
 | 
			
		||||
		    groups = {cracky=1},
 | 
			
		||||
		    sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		output = "technic:granite 9",
 | 
			
		||||
		recipe = {
 | 
			
		||||
			{ "group:tar_block", "group:marble", "group:tar_block" },
 | 
			
		||||
			{ "group:marble", "group:tar_block", "group:marble" },
 | 
			
		||||
			{ "group:tar_block", "group:marble", "group:tar_block" }
 | 
			
		||||
		},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	if minetest.get_modpath("moreblocks") then
 | 
			
		||||
		stairsplus:register_all("technic", "granite", "technic:granite", {
 | 
			
		||||
				description=S("Granite"),
 | 
			
		||||
				groups={cracky=1, not_in_creative_inventory=1},
 | 
			
		||||
				tiles={"technic_granite.png"},
 | 
			
		||||
		})
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
dofile(modpath.."/alias.lua")
 | 
			
		||||
dofile(modpath.."/node_stairs.lua")
 | 
			
		||||
dofile(modpath.."/others.lua")
 | 
			
		||||
dofile(modpath.."/recipes.lua")
 | 
			
		||||
							
								
								
									
										230
									
								
								building_blocks/node_stairs.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,230 @@
 | 
			
		||||
local S = homedecor_i18n.gettext
 | 
			
		||||
 | 
			
		||||
local stairs_groups_names = {"cracky","choppy","flammable","crumbly","snappy"}
 | 
			
		||||
 | 
			
		||||
local function building_blocks_stairs(nodename, def)
 | 
			
		||||
	minetest.register_node(nodename, def)
 | 
			
		||||
	if minetest.get_modpath("moreblocks") or minetest.get_modpath("stairs") then
 | 
			
		||||
		local mod, name = nodename:match("(.*):(.*)")
 | 
			
		||||
		minetest.register_alias(mod .. ":slab_" .. name, "stairs:slab_" .. name)
 | 
			
		||||
		minetest.register_alias(mod .. ":stair_" .. name, "stairs:stair_" .. name)
 | 
			
		||||
		local stairs_groups = {}
 | 
			
		||||
		for _, groupname in ipairs(stairs_groups_names) do
 | 
			
		||||
			stairs_groups[groupname] = def.groups[groupname]
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		if minetest.get_modpath("moreblocks") then
 | 
			
		||||
			stairsplus:register_all(
 | 
			
		||||
				mod,
 | 
			
		||||
				name,
 | 
			
		||||
				nodename,
 | 
			
		||||
				{
 | 
			
		||||
					description = def.description,
 | 
			
		||||
					tiles = def.tiles,
 | 
			
		||||
					groups = stairs_groups,
 | 
			
		||||
					sounds = def.sounds,
 | 
			
		||||
				}
 | 
			
		||||
			)
 | 
			
		||||
		else
 | 
			
		||||
			stairs.register_stair_and_slab(name,nodename,
 | 
			
		||||
				stairs_groups,
 | 
			
		||||
				def.tiles,
 | 
			
		||||
				("%s Stair"):format(def.description),
 | 
			
		||||
				("%s Slab"):format(def.description),
 | 
			
		||||
				def.sounds
 | 
			
		||||
			)
 | 
			
		||||
		end	
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
building_blocks_stairs("building_blocks:grate", {
 | 
			
		||||
	drawtype = "glasslike",
 | 
			
		||||
	description = S("Grate"),
 | 
			
		||||
	tiles = {"building_blocks_grate.png"},
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {cracky=1},
 | 
			
		||||
	sounds = default.node_sound_metal_defaults(),
 | 
			
		||||
})
 | 
			
		||||
building_blocks_stairs("building_blocks:smoothglass", {
 | 
			
		||||
	drawtype = "glasslike",
 | 
			
		||||
	description = S("Streak Free Glass"),
 | 
			
		||||
	tiles = {"building_blocks_sglass.png"},
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {snappy=3,cracky=3,oddly_breakable_by_hand=3},
 | 
			
		||||
	sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
})
 | 
			
		||||
building_blocks_stairs("building_blocks:woodglass", {
 | 
			
		||||
	drawtype = "glasslike",
 | 
			
		||||
	description = S("Wood Framed Glass"),
 | 
			
		||||
	tiles = {"building_blocks_wglass.png"},
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {snappy=3,cracky=3,oddly_breakable_by_hand=3},
 | 
			
		||||
	sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
building_blocks_stairs("building_blocks:Adobe", {
 | 
			
		||||
	tiles = {"building_blocks_Adobe.png"},
 | 
			
		||||
	description = S("Adobe"),
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
})
 | 
			
		||||
building_blocks_stairs("building_blocks:fakegrass", {
 | 
			
		||||
	tiles = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
 | 
			
		||||
	description = S("Fake Grass"),
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
		footstep = {name="default_grass_footstep", gain=0.4},
 | 
			
		||||
	}),
 | 
			
		||||
})
 | 
			
		||||
building_blocks_stairs("building_blocks:hardwood", {
 | 
			
		||||
	tiles = {"building_blocks_hardwood.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	description = S("Hardwood"),
 | 
			
		||||
	groups = {choppy=1,flammable=1},
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
})
 | 
			
		||||
building_blocks_stairs("building_blocks:Roofing", {
 | 
			
		||||
	tiles = {"building_blocks_Roofing.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	description = S("Roof block"),
 | 
			
		||||
	groups = {snappy=3},
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
})
 | 
			
		||||
building_blocks_stairs("building_blocks:Tar", {
 | 
			
		||||
	description = S("Tar"),
 | 
			
		||||
	tiles = {"building_blocks_tar.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=1, tar_block = 1},
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
})
 | 
			
		||||
building_blocks_stairs("building_blocks:Marble", {
 | 
			
		||||
	description = S("Marble"),
 | 
			
		||||
	tiles = {"building_blocks_marble.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {cracky=3, marble = 1},
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("building_blocks:brobble_spread", {
 | 
			
		||||
	drawtype = "raillike",
 | 
			
		||||
	-- Translators: "Brobble" is a portmanteau of "Brick" and "Cobble".
 | 
			
		||||
	-- Translate however you see fit.
 | 
			
		||||
	description = S("Brobble Spread"),
 | 
			
		||||
	tiles = {"building_blocks_brobble.png"},
 | 
			
		||||
	inventory_image = "building_blocks_brobble_spread_inv.png",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
                -- but how to specify the dimensions for curved and sideways rails?
 | 
			
		||||
                fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
 | 
			
		||||
	},
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
if not minetest.get_modpath("moreblocks") or not minetest.get_modpath("gloopblocks") then
 | 
			
		||||
	minetest.register_node("building_blocks:gravel_spread", {
 | 
			
		||||
		drawtype = "raillike",
 | 
			
		||||
		description = S("Gravel Spread"),
 | 
			
		||||
		tiles = {"default_gravel.png"},
 | 
			
		||||
		inventory_image = "building_blocks_gravel_spread_inv.png",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		selection_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
					-- but how to specify the dimensions for curved and sideways rails?
 | 
			
		||||
					fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
 | 
			
		||||
		},
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		is_ground_content = true,
 | 
			
		||||
		groups = {crumbly=2},
 | 
			
		||||
		sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
			footstep = {name="default_gravel_footstep", gain=0.5},
 | 
			
		||||
			dug = {name="default_gravel_footstep", gain=1.0},
 | 
			
		||||
		}),
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
minetest.register_node("building_blocks:Tarmac_spread", {
 | 
			
		||||
	drawtype = "raillike",
 | 
			
		||||
	description = S("Tarmac Spread"),
 | 
			
		||||
	tiles = {"building_blocks_tar.png"},
 | 
			
		||||
	inventory_image = "building_blocks_tar_spread_inv.png",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
                -- but how to specify the dimensions for curved and sideways rails?
 | 
			
		||||
                fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
 | 
			
		||||
	},
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {cracky=3},
 | 
			
		||||
	sounds = default.node_sound_dirt_defaults(),
 | 
			
		||||
})
 | 
			
		||||
minetest.register_node("building_blocks:terrycloth_towel", {
 | 
			
		||||
	drawtype = "raillike",
 | 
			
		||||
	description = S("Terrycloth towel"),
 | 
			
		||||
	tiles = {"building_blocks_towel.png"},
 | 
			
		||||
	inventory_image = "building_blocks_towel_inv.png",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
                -- but how to specify the dimensions for curved and sideways rails?
 | 
			
		||||
                fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
 | 
			
		||||
	},
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("building_blocks:BWtile", {
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	description = S("Chess board tiling"),
 | 
			
		||||
	tiles = {
 | 
			
		||||
		"building_blocks_BWtile.png",
 | 
			
		||||
		"building_blocks_BWtile.png^[transformR90",
 | 
			
		||||
		"building_blocks_BWtile.png^[transformR90",
 | 
			
		||||
		"building_blocks_BWtile.png^[transformR90",
 | 
			
		||||
		"building_blocks_BWtile.png",
 | 
			
		||||
		"building_blocks_BWtile.png"
 | 
			
		||||
	},
 | 
			
		||||
	inventory_image = "building_blocks_bwtile_inv.png",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	node_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
 | 
			
		||||
	},
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("building_blocks:Fireplace", {
 | 
			
		||||
	description = S("Fireplace"),
 | 
			
		||||
	tiles = {
 | 
			
		||||
		"building_blocks_cast_iron.png",
 | 
			
		||||
		"building_blocks_cast_iron.png",
 | 
			
		||||
		"building_blocks_cast_iron.png",
 | 
			
		||||
		"building_blocks_cast_iron_fireplace.png"
 | 
			
		||||
	},
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "facedir",
 | 
			
		||||
	light_source = default.LIGHT_MAX,
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {cracky=2},
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
})
 | 
			
		||||
							
								
								
									
										23
									
								
								building_blocks/others.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,23 @@
 | 
			
		||||
local S = homedecor_i18n.gettext
 | 
			
		||||
 | 
			
		||||
minetest.register_craftitem("building_blocks:sticks", {
 | 
			
		||||
	description = S("Small bundle of sticks"),
 | 
			
		||||
	image = "building_blocks_sticks.png",
 | 
			
		||||
	on_place_on_ground = minetest.craftitem_place_item,
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craftitem("building_blocks:tar_base", {
 | 
			
		||||
	description = S("Tar base"),
 | 
			
		||||
	image = "building_blocks_tar_base.png",
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_tool("building_blocks:knife", {
 | 
			
		||||
	description = S("Tar Knife"),
 | 
			
		||||
	inventory_image = "building_blocks_knife.png",
 | 
			
		||||
	tool_capabilities = {
 | 
			
		||||
		max_drop_level=0,
 | 
			
		||||
		groupcaps={
 | 
			
		||||
			choppy={times={[2]=7.50, [3]=2.80}, uses=100, maxlevel=1},
 | 
			
		||||
			fleshy={times={[2]=5.50, [3]=2.80}, uses=100, maxlevel=1}
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
							
								
								
									
										174
									
								
								building_blocks/recipes.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,174 @@
 | 
			
		||||
local S = homedecor_i18n.gettext
 | 
			
		||||
 | 
			
		||||
if minetest.get_modpath("moreblocks") then
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		output = 'building_blocks:sticks 2',
 | 
			
		||||
		recipe = {
 | 
			
		||||
			{'group:stick', ''           , 'group:stick'},
 | 
			
		||||
			{'group:stick', 'group:stick', 'group:stick'},
 | 
			
		||||
			{'group:stick', 'group:stick', 'group:stick'},
 | 
			
		||||
		}
 | 
			
		||||
	})
 | 
			
		||||
else
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		output = 'building_blocks:sticks',
 | 
			
		||||
		recipe = {
 | 
			
		||||
			{'group:stick', 'group:stick'},
 | 
			
		||||
			{'group:stick', 'group:stick'},
 | 
			
		||||
		}
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:Adobe 3',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:sand"},
 | 
			
		||||
		{"default:clay"},
 | 
			
		||||
		{"group:stick"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:brobble_spread 4',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:brick", "default:cobble", "default:brick"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:BWtile 10',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"group:marble", "group:tar_block"},
 | 
			
		||||
		{"group:tar_block", "group:marble"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:fakegrass 2',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'default:leaves'},
 | 
			
		||||
		{"default:dirt"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:Fireplace 1',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:steel_ingot", "building_blocks:sticks", "default:steel_ingot"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:grate 1',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:steel_ingot", "default:steel_ingot"},
 | 
			
		||||
		{"default:glass", "default:glass"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
if not minetest.get_modpath("moreblocks") or not minetest.get_modpath("gloopblocks") then
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		output = 'building_blocks:gravel_spread 4',
 | 
			
		||||
		recipe = {
 | 
			
		||||
			{"default:gravel", "default:gravel", "default:gravel"},
 | 
			
		||||
		}
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:hardwood 2',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:wood", "default:junglewood"},
 | 
			
		||||
		{"default:junglewood", "default:wood"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:hardwood 2',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:junglewood", "default:wood"},
 | 
			
		||||
		{"default:wood", "default:junglewood"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:knife 1',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"group:tar_block"},
 | 
			
		||||
		{"group:stick"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "building_blocks:Marble 9",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:clay", "group:tar_block", "default:clay"},
 | 
			
		||||
		{"group:tar_block","default:clay", "group:tar_block"},
 | 
			
		||||
		{"default:clay", "group:tar_block","default:clay"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:Roofing 10',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"building_blocks:Adobe", "building_blocks:Adobe"},
 | 
			
		||||
		{"building_blocks:Adobe", "building_blocks:Adobe"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'default:stick 4',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'building_blocks:sticks'},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:tar_base 4',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:coal_lump", "default:gravel"},
 | 
			
		||||
		{"default:gravel", "default:coal_lump"}
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:tar_base 4',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:gravel", "default:coal_lump"},
 | 
			
		||||
		{"default:coal_lump", "default:gravel"}
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:Tarmac_spread 4',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"group:tar_block", "group:tar_block"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:terrycloth_towel 2',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"farming:string", "farming:string", "farming:string"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'building_blocks:woodglass 1',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:wood"},
 | 
			
		||||
		{"default:glass"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "cooking",
 | 
			
		||||
	output = "building_blocks:smoothglass",
 | 
			
		||||
	recipe = "default:glass"
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "cooking",
 | 
			
		||||
	output = "building_blocks:Tar",
 | 
			
		||||
	recipe = "building_blocks:tar_base",
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "fuel",
 | 
			
		||||
	recipe = "building_blocks:hardwood",
 | 
			
		||||
	burntime = 28,
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "fuel",
 | 
			
		||||
	recipe = "building_blocks:sticks",
 | 
			
		||||
	burntime = 5,
 | 
			
		||||
})
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "fuel",
 | 
			
		||||
	recipe = "building_blocks:Tar",
 | 
			
		||||
	burntime = 40,
 | 
			
		||||
})
 | 
			
		||||
@@ -1,2 +0,0 @@
 | 
			
		||||
default
 | 
			
		||||
homedecor
 | 
			
		||||
							
								
								
									
										179
									
								
								chains/init.lua
									
									
									
									
									
								
							
							
						
						@@ -1,179 +0,0 @@
 | 
			
		||||
 | 
			
		||||
local S = homedecor_i18n.gettext
 | 
			
		||||
 | 
			
		||||
local chains_sbox = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = { -0.1, -0.625, -0.1, 0.1, 0.5, 0.1 }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local topchains_sbox = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{ -0.25, 0.35, -0.25, 0.25, 0.5, 0.25 },
 | 
			
		||||
		{ -0.1, -0.625, -0.1, 0.1, 0.4, 0.1 }
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
minetest.register_node("chains:chain", {
 | 
			
		||||
	description = S("Hanging chain (wrought iron)"),
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "chains.obj",
 | 
			
		||||
	tiles = {"chains_wrought_iron.png"},
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	climbable = true,
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	inventory_image = "chain_wrought_iron_inv.png",
 | 
			
		||||
	groups = {cracky=3},
 | 
			
		||||
	selection_box = chains_sbox,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("chains:chain_brass", {
 | 
			
		||||
	description = S("Hanging chain (brass)"),
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "chains.obj",
 | 
			
		||||
	tiles = {"chains_brass.png"},
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	climbable = true,
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	inventory_image = "chain_brass_inv.png",
 | 
			
		||||
	groups = {cracky=3},
 | 
			
		||||
	selection_box = chains_sbox,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("chains:chain_top", {
 | 
			
		||||
	description = S("Hanging chain (ceiling mount, wrought iron)"),
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "top_chains.obj",
 | 
			
		||||
	tiles = {"chains_wrought_iron.png"},
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	climbable = true,
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	inventory_image = "top_chain_wrought_iron_inv.png",
 | 
			
		||||
	groups = {cracky=3},
 | 
			
		||||
	selection_box = topchains_sbox,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("chains:chain_top_brass", {
 | 
			
		||||
	description = S("Hanging chain (ceiling mount, brass)"),
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "top_chains.obj",
 | 
			
		||||
	tiles = {"chains_brass.png"},
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	climbable = true,
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	inventory_image = "top_chain_brass_inv.png",
 | 
			
		||||
	groups = {cracky=3},
 | 
			
		||||
	selection_box = topchains_sbox,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("chains:chandelier", {
 | 
			
		||||
	description = S("Chandelier (wrought iron)"),
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	light_source = default.LIGHT_MAX-2,
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	climbable = true,
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	tiles = {
 | 
			
		||||
		"chains_wrought_iron.png",
 | 
			
		||||
		"chains_candle.png",
 | 
			
		||||
		{
 | 
			
		||||
			name="chains_candle_flame.png",
 | 
			
		||||
			animation={
 | 
			
		||||
				type="vertical_frames",
 | 
			
		||||
				aspect_w=16,
 | 
			
		||||
				aspect_h=16,
 | 
			
		||||
				length=3.0
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "chains_chandelier.obj",
 | 
			
		||||
	groups = {cracky=3},
 | 
			
		||||
	sounds =  default.node_sound_stone_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("chains:chandelier_brass", {
 | 
			
		||||
	description = S("Chandelier (brass)"),
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	light_source = default.LIGHT_MAX-2,
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	climbable = true,
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	tiles = {
 | 
			
		||||
		"chains_brass.png",
 | 
			
		||||
		"chains_candle.png",
 | 
			
		||||
		{
 | 
			
		||||
			name="chains_candle_flame.png",
 | 
			
		||||
			animation={
 | 
			
		||||
				type="vertical_frames",
 | 
			
		||||
				aspect_w=16,
 | 
			
		||||
				aspect_h=16,
 | 
			
		||||
				length=3.0
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "chains_chandelier.obj",
 | 
			
		||||
	groups = {cracky=3},
 | 
			
		||||
	sounds =  default.node_sound_stone_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- crafts
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'chains:chain 2',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'glooptest:chainlink'},
 | 
			
		||||
		{'glooptest:chainlink'},
 | 
			
		||||
		{'glooptest:chainlink'},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'chains:chain_top',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'default:steel_ingot'},
 | 
			
		||||
		{'glooptest:chainlink'},
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'chains:chandelier',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'', 'glooptest:chainlink', ''},
 | 
			
		||||
		{'default:torch', 'glooptest:chainlink', 'default:torch'},
 | 
			
		||||
		{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- brass versions
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'chains:chain_brass 2',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'homedecor:chainlink_brass'},
 | 
			
		||||
		{'homedecor:chainlink_brass'},
 | 
			
		||||
		{'homedecor:chainlink_brass'},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'chains:chain_top_brass',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'technic:brass_ingot'},
 | 
			
		||||
		{'homedecor:chainlink_brass'},
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'chains:chandelier_brass',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'', 'homedecor:chainlink_brass', ''},
 | 
			
		||||
		{'default:torch', 'homedecor:chainlink_brass', 'default:torch'},
 | 
			
		||||
		{'technic:brass_ingot', 'technic:brass_ingot', 'technic:brass_ingot'},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
@@ -1,881 +0,0 @@
 | 
			
		||||
# Blender v2.73 (sub 0) OBJ File: 'chains.blend'
 | 
			
		||||
# www.blender.org
 | 
			
		||||
o Torus.016_Torus
 | 
			
		||||
v 0.000000 -0.429978 0.000002
 | 
			
		||||
v 0.000000 -0.401109 0.055211
 | 
			
		||||
v -0.014044 -0.391975 0.048870
 | 
			
		||||
v -0.014044 -0.423304 0.000002
 | 
			
		||||
v -0.009826 -0.379748 0.040970
 | 
			
		||||
v -0.009826 -0.406012 0.000002
 | 
			
		||||
v 0.009826 -0.379748 0.040970
 | 
			
		||||
v 0.009826 -0.406012 0.000002
 | 
			
		||||
v 0.014044 -0.391975 0.048870
 | 
			
		||||
v 0.014044 -0.423304 0.000002
 | 
			
		||||
v 0.000000 -0.316336 0.080195
 | 
			
		||||
v -0.014044 -0.316336 0.069112
 | 
			
		||||
v -0.009826 -0.316336 0.057941
 | 
			
		||||
v 0.009826 -0.316336 0.057941
 | 
			
		||||
v 0.014044 -0.316336 0.069112
 | 
			
		||||
v 0.000000 -0.231564 0.055211
 | 
			
		||||
v -0.014044 -0.240700 0.048870
 | 
			
		||||
v -0.009826 -0.252925 0.040970
 | 
			
		||||
v 0.009826 -0.252925 0.040970
 | 
			
		||||
v 0.014044 -0.240700 0.048870
 | 
			
		||||
v 0.000000 -0.202695 0.000002
 | 
			
		||||
v -0.014044 -0.209368 0.000002
 | 
			
		||||
v -0.009826 -0.226661 0.000002
 | 
			
		||||
v 0.009826 -0.226661 0.000002
 | 
			
		||||
v 0.014044 -0.209368 0.000002
 | 
			
		||||
v 0.000000 -0.231564 -0.055206
 | 
			
		||||
v -0.014044 -0.240700 -0.048868
 | 
			
		||||
v -0.009826 -0.252925 -0.040967
 | 
			
		||||
v 0.009826 -0.252925 -0.040967
 | 
			
		||||
v 0.014044 -0.240700 -0.048865
 | 
			
		||||
v 0.000000 -0.316336 -0.080190
 | 
			
		||||
v -0.014044 -0.316336 -0.069108
 | 
			
		||||
v -0.009826 -0.316336 -0.057936
 | 
			
		||||
v 0.009826 -0.316336 -0.057936
 | 
			
		||||
v 0.014044 -0.316336 -0.069108
 | 
			
		||||
v 0.000000 -0.400361 -0.055206
 | 
			
		||||
v -0.014044 -0.391975 -0.048868
 | 
			
		||||
v -0.009826 -0.379748 -0.040967
 | 
			
		||||
v 0.009826 -0.379748 -0.040967
 | 
			
		||||
v 0.014044 -0.391975 -0.048868
 | 
			
		||||
v 0.000000 -0.262249 0.000002
 | 
			
		||||
v -0.061672 -0.233381 0.000002
 | 
			
		||||
v -0.054590 -0.224245 -0.012569
 | 
			
		||||
v 0.000000 -0.255577 -0.012569
 | 
			
		||||
v -0.045765 -0.212018 -0.008794
 | 
			
		||||
v 0.000000 -0.238285 -0.008794
 | 
			
		||||
v -0.045765 -0.212018 0.008798
 | 
			
		||||
v 0.000000 -0.238285 0.008798
 | 
			
		||||
v -0.054590 -0.224245 0.012574
 | 
			
		||||
v 0.000000 -0.255577 0.012574
 | 
			
		||||
v -0.089582 -0.148609 0.000002
 | 
			
		||||
v -0.077200 -0.148609 -0.012569
 | 
			
		||||
v -0.064722 -0.148609 -0.008794
 | 
			
		||||
v -0.064722 -0.148609 0.008799
 | 
			
		||||
v -0.077200 -0.148609 0.012574
 | 
			
		||||
v -0.061672 -0.063837 0.000002
 | 
			
		||||
v -0.054590 -0.072971 -0.012569
 | 
			
		||||
v -0.045765 -0.085198 -0.008794
 | 
			
		||||
v -0.045765 -0.085198 0.008799
 | 
			
		||||
v -0.054590 -0.072971 0.012574
 | 
			
		||||
v 0.000000 -0.034967 0.000002
 | 
			
		||||
v 0.000000 -0.041641 -0.012569
 | 
			
		||||
v 0.000000 -0.058933 -0.008794
 | 
			
		||||
v 0.000000 -0.058933 0.008799
 | 
			
		||||
v 0.000000 -0.041641 0.012574
 | 
			
		||||
v 0.061672 -0.063837 0.000002
 | 
			
		||||
v 0.054590 -0.072971 -0.012569
 | 
			
		||||
v 0.045765 -0.085198 -0.008794
 | 
			
		||||
v 0.045765 -0.085198 0.008799
 | 
			
		||||
v 0.054590 -0.072971 0.012574
 | 
			
		||||
v 0.089582 -0.148609 0.000002
 | 
			
		||||
v 0.077200 -0.148609 -0.012569
 | 
			
		||||
v 0.064722 -0.148609 -0.008794
 | 
			
		||||
v 0.064722 -0.148609 0.008799
 | 
			
		||||
v 0.077200 -0.148609 0.012574
 | 
			
		||||
v 0.061672 -0.232631 0.000002
 | 
			
		||||
v 0.054590 -0.224245 -0.012569
 | 
			
		||||
v 0.045765 -0.212018 -0.008794
 | 
			
		||||
v 0.045765 -0.212018 0.008798
 | 
			
		||||
v 0.054590 -0.224245 0.012574
 | 
			
		||||
v 0.000000 0.073316 0.000002
 | 
			
		||||
v 0.061672 0.102183 0.000002
 | 
			
		||||
v 0.054590 0.111319 0.012574
 | 
			
		||||
v 0.000000 0.079988 0.012574
 | 
			
		||||
v 0.045765 0.123546 0.008799
 | 
			
		||||
v 0.000000 0.097280 0.008799
 | 
			
		||||
v 0.045765 0.123546 -0.008794
 | 
			
		||||
v 0.000000 0.097280 -0.008794
 | 
			
		||||
v 0.054590 0.111319 -0.012569
 | 
			
		||||
v 0.000000 0.079988 -0.012569
 | 
			
		||||
v 0.089582 0.186956 0.000002
 | 
			
		||||
v 0.077200 0.186956 0.012574
 | 
			
		||||
v 0.064722 0.186956 0.008799
 | 
			
		||||
v 0.064722 0.186956 -0.008794
 | 
			
		||||
v 0.077200 0.186956 -0.012569
 | 
			
		||||
v 0.061672 0.271728 0.000002
 | 
			
		||||
v 0.054590 0.262594 0.012574
 | 
			
		||||
v 0.045765 0.250367 0.008799
 | 
			
		||||
v 0.045765 0.250367 -0.008794
 | 
			
		||||
v 0.054590 0.262594 -0.012569
 | 
			
		||||
v 0.000000 0.300597 0.000002
 | 
			
		||||
v 0.000000 0.293923 0.012574
 | 
			
		||||
v 0.000000 0.276631 0.008799
 | 
			
		||||
v 0.000000 0.276631 -0.008794
 | 
			
		||||
v 0.000000 0.293923 -0.012569
 | 
			
		||||
v -0.061672 0.271728 0.000002
 | 
			
		||||
v -0.054590 0.262594 0.012574
 | 
			
		||||
v -0.045765 0.250367 0.008799
 | 
			
		||||
v -0.045765 0.250367 -0.008794
 | 
			
		||||
v -0.054590 0.262594 -0.012569
 | 
			
		||||
v -0.089582 0.186956 0.000002
 | 
			
		||||
v -0.077200 0.186956 0.012574
 | 
			
		||||
v -0.064722 0.186956 0.008799
 | 
			
		||||
v -0.064722 0.186956 -0.008794
 | 
			
		||||
v -0.077200 0.186956 -0.012569
 | 
			
		||||
v -0.061672 0.102931 0.000002
 | 
			
		||||
v -0.054590 0.111319 0.012574
 | 
			
		||||
v -0.045765 0.123546 0.008799
 | 
			
		||||
v -0.045765 0.123546 -0.008794
 | 
			
		||||
v -0.054590 0.111319 -0.012569
 | 
			
		||||
v 0.000000 -0.095037 0.000002
 | 
			
		||||
v 0.000000 -0.066168 -0.055206
 | 
			
		||||
v 0.014044 -0.057034 -0.048868
 | 
			
		||||
v 0.014044 -0.088363 0.000002
 | 
			
		||||
v 0.009826 -0.044807 -0.040967
 | 
			
		||||
v 0.009826 -0.071071 0.000002
 | 
			
		||||
v -0.009826 -0.044807 -0.040967
 | 
			
		||||
v -0.009826 -0.071071 0.000002
 | 
			
		||||
v -0.014044 -0.057034 -0.048868
 | 
			
		||||
v -0.014044 -0.088363 0.000002
 | 
			
		||||
v 0.000000 0.018605 -0.080190
 | 
			
		||||
v 0.014044 0.018605 -0.069108
 | 
			
		||||
v 0.009826 0.018605 -0.057936
 | 
			
		||||
v -0.009826 0.018605 -0.057936
 | 
			
		||||
v -0.014044 0.018605 -0.069108
 | 
			
		||||
v 0.000000 0.103377 -0.055206
 | 
			
		||||
v 0.014044 0.094243 -0.048868
 | 
			
		||||
v 0.009826 0.082016 -0.040967
 | 
			
		||||
v -0.009826 0.082016 -0.040967
 | 
			
		||||
v -0.014044 0.094243 -0.048868
 | 
			
		||||
v 0.000000 0.132246 0.000002
 | 
			
		||||
v 0.014044 0.125572 0.000002
 | 
			
		||||
v 0.009826 0.108280 0.000002
 | 
			
		||||
v -0.009826 0.108280 0.000002
 | 
			
		||||
v -0.014044 0.125572 0.000002
 | 
			
		||||
v 0.000000 0.103377 0.055211
 | 
			
		||||
v 0.014044 0.094243 0.048870
 | 
			
		||||
v 0.009826 0.082016 0.040970
 | 
			
		||||
v -0.009826 0.082016 0.040970
 | 
			
		||||
v -0.014044 0.094243 0.048870
 | 
			
		||||
v 0.000000 0.018605 0.080195
 | 
			
		||||
v 0.014044 0.018605 0.069112
 | 
			
		||||
v 0.009826 0.018605 0.057941
 | 
			
		||||
v -0.009826 0.018605 0.057941
 | 
			
		||||
v -0.014044 0.018605 0.069112
 | 
			
		||||
v 0.000000 -0.065420 0.055211
 | 
			
		||||
v 0.014044 -0.057032 0.048870
 | 
			
		||||
v 0.009826 -0.044807 0.040970
 | 
			
		||||
v -0.009826 -0.044807 0.040970
 | 
			
		||||
v -0.014044 -0.057032 0.048870
 | 
			
		||||
v 0.000000 -0.598329 0.000002
 | 
			
		||||
v 0.061672 -0.569460 0.000002
 | 
			
		||||
v 0.054590 -0.560326 0.012574
 | 
			
		||||
v 0.000000 -0.591655 0.012574
 | 
			
		||||
v 0.045765 -0.548099 0.008798
 | 
			
		||||
v 0.000000 -0.574363 0.008798
 | 
			
		||||
v 0.045765 -0.548099 -0.008794
 | 
			
		||||
v 0.000000 -0.574363 -0.008794
 | 
			
		||||
v 0.054590 -0.560326 -0.012569
 | 
			
		||||
v 0.000000 -0.591655 -0.012569
 | 
			
		||||
v 0.089582 -0.484687 0.000002
 | 
			
		||||
v 0.077200 -0.484687 0.012574
 | 
			
		||||
v 0.064722 -0.484687 0.008798
 | 
			
		||||
v 0.064722 -0.484687 -0.008794
 | 
			
		||||
v 0.077200 -0.484687 -0.012569
 | 
			
		||||
v 0.061672 -0.399915 0.000002
 | 
			
		||||
v 0.054590 -0.409051 0.012574
 | 
			
		||||
v 0.045765 -0.421278 0.008798
 | 
			
		||||
v 0.045765 -0.421278 -0.008794
 | 
			
		||||
v 0.054590 -0.409051 -0.012569
 | 
			
		||||
v 0.000000 -0.371048 0.000002
 | 
			
		||||
v 0.000000 -0.377719 0.012574
 | 
			
		||||
v 0.000000 -0.395012 0.008798
 | 
			
		||||
v 0.000000 -0.395012 -0.008794
 | 
			
		||||
v 0.000000 -0.377719 -0.012569
 | 
			
		||||
v -0.061672 -0.399915 0.000002
 | 
			
		||||
v -0.054590 -0.409051 0.012574
 | 
			
		||||
v -0.045765 -0.421278 0.008798
 | 
			
		||||
v -0.045765 -0.421278 -0.008794
 | 
			
		||||
v -0.054590 -0.409051 -0.012569
 | 
			
		||||
v -0.089582 -0.484687 0.000002
 | 
			
		||||
v -0.077200 -0.484687 0.012574
 | 
			
		||||
v -0.064722 -0.484687 0.008798
 | 
			
		||||
v -0.064722 -0.484687 -0.008794
 | 
			
		||||
v -0.077200 -0.484687 -0.012569
 | 
			
		||||
v -0.061672 -0.568712 0.000002
 | 
			
		||||
v -0.054590 -0.560326 0.012574
 | 
			
		||||
v -0.045765 -0.548099 0.008798
 | 
			
		||||
v -0.045765 -0.548099 -0.008794
 | 
			
		||||
v -0.054590 -0.560326 -0.012569
 | 
			
		||||
v 0.000000 0.241043 0.000002
 | 
			
		||||
v 0.000000 0.269910 0.055211
 | 
			
		||||
v -0.014044 0.279047 0.048870
 | 
			
		||||
v -0.014044 0.247717 0.000002
 | 
			
		||||
v -0.009826 0.291274 0.040970
 | 
			
		||||
v -0.009826 0.265007 0.000002
 | 
			
		||||
v 0.009826 0.291274 0.040970
 | 
			
		||||
v 0.009826 0.265007 0.000002
 | 
			
		||||
v 0.014044 0.279047 0.048870
 | 
			
		||||
v 0.014044 0.247717 0.000002
 | 
			
		||||
v 0.000000 0.354683 0.080195
 | 
			
		||||
v -0.014044 0.354683 0.069112
 | 
			
		||||
v -0.009826 0.354683 0.057941
 | 
			
		||||
v 0.009826 0.354683 0.057941
 | 
			
		||||
v 0.014044 0.354683 0.069112
 | 
			
		||||
v 0.000000 0.439455 0.055211
 | 
			
		||||
v -0.014044 0.430321 0.048870
 | 
			
		||||
v -0.009826 0.418094 0.040970
 | 
			
		||||
v 0.009826 0.418094 0.040970
 | 
			
		||||
v 0.014044 0.430321 0.048870
 | 
			
		||||
v 0.000000 0.468325 0.000002
 | 
			
		||||
v -0.014044 0.461651 0.000002
 | 
			
		||||
v -0.009826 0.444361 0.000002
 | 
			
		||||
v 0.009826 0.444361 0.000002
 | 
			
		||||
v 0.014044 0.461651 0.000002
 | 
			
		||||
v 0.000000 0.439455 -0.055206
 | 
			
		||||
v -0.014044 0.430321 -0.048868
 | 
			
		||||
v -0.009826 0.418094 -0.040967
 | 
			
		||||
v 0.009826 0.418094 -0.040967
 | 
			
		||||
v 0.014044 0.430321 -0.048868
 | 
			
		||||
v 0.000000 0.354683 -0.080190
 | 
			
		||||
v -0.014044 0.354683 -0.069108
 | 
			
		||||
v -0.009826 0.354683 -0.057936
 | 
			
		||||
v 0.009826 0.354683 -0.057936
 | 
			
		||||
v 0.014044 0.354683 -0.069108
 | 
			
		||||
v 0.000000 0.270661 -0.055206
 | 
			
		||||
v -0.014044 0.279047 -0.048868
 | 
			
		||||
v -0.009826 0.291274 -0.040967
 | 
			
		||||
v 0.009826 0.291274 -0.040967
 | 
			
		||||
v 0.014044 0.279047 -0.048868
 | 
			
		||||
vt 0.187500 0.125000
 | 
			
		||||
vt 0.250000 0.125000
 | 
			
		||||
vt 0.250000 0.187500
 | 
			
		||||
vt 0.187500 0.187500
 | 
			
		||||
vt 0.250000 0.250000
 | 
			
		||||
vt 0.187500 0.250000
 | 
			
		||||
vt 0.250000 0.312500
 | 
			
		||||
vt 0.187500 0.312500
 | 
			
		||||
vt 0.250000 0.375000
 | 
			
		||||
vt 0.187500 0.375000
 | 
			
		||||
vt 0.187500 0.062500
 | 
			
		||||
vt 0.250000 0.062500
 | 
			
		||||
vt 0.312500 0.125000
 | 
			
		||||
vt 0.312500 0.187500
 | 
			
		||||
vt 0.312500 0.250000
 | 
			
		||||
vt 0.312500 0.312500
 | 
			
		||||
vt 0.312500 0.375000
 | 
			
		||||
vt 0.312500 0.062500
 | 
			
		||||
vt 0.375000 0.125000
 | 
			
		||||
vt 0.375000 0.187500
 | 
			
		||||
vt 0.375000 0.250000
 | 
			
		||||
vt 0.375000 0.312500
 | 
			
		||||
vt 0.375000 0.375000
 | 
			
		||||
vt 0.375000 0.062500
 | 
			
		||||
vt 0.437500 0.125000
 | 
			
		||||
vt 0.437500 0.187500
 | 
			
		||||
vt 0.437500 0.250000
 | 
			
		||||
vt 0.437500 0.312500
 | 
			
		||||
vt 0.437500 0.375000
 | 
			
		||||
vt 0.437500 0.062500
 | 
			
		||||
vt 0.500000 0.125000
 | 
			
		||||
vt 0.500000 0.187500
 | 
			
		||||
vt 0.500000 0.250000
 | 
			
		||||
vt 0.500000 0.312500
 | 
			
		||||
vt 0.500000 0.375000
 | 
			
		||||
vt 0.500000 0.062500
 | 
			
		||||
vt -0.000000 0.125000
 | 
			
		||||
vt 0.062500 0.125000
 | 
			
		||||
vt 0.062500 0.187500
 | 
			
		||||
vt -0.000000 0.187500
 | 
			
		||||
vt 0.062500 0.250000
 | 
			
		||||
vt -0.000000 0.250000
 | 
			
		||||
vt 0.062500 0.312500
 | 
			
		||||
vt -0.000000 0.312500
 | 
			
		||||
vt 0.062500 0.375000
 | 
			
		||||
vt -0.000000 0.375000
 | 
			
		||||
vt -0.000000 0.062500
 | 
			
		||||
vt 0.062500 0.062500
 | 
			
		||||
vt 0.125000 0.125000
 | 
			
		||||
vt 0.125000 0.187500
 | 
			
		||||
vt 0.125000 0.250000
 | 
			
		||||
vt 0.125000 0.312500
 | 
			
		||||
vt 0.125000 0.375000
 | 
			
		||||
vt 0.125000 0.062500
 | 
			
		||||
vt 0.750000 0.625000
 | 
			
		||||
vt 0.812500 0.625000
 | 
			
		||||
vt 0.812500 0.687500
 | 
			
		||||
vt 0.750000 0.687500
 | 
			
		||||
vt 0.750000 0.375000
 | 
			
		||||
vt 0.812500 0.375000
 | 
			
		||||
vt 0.812500 0.437500
 | 
			
		||||
vt 0.750000 0.437500
 | 
			
		||||
vt 0.812500 0.500000
 | 
			
		||||
vt 0.750000 0.500000
 | 
			
		||||
vt 0.812500 0.562500
 | 
			
		||||
vt 0.750000 0.562500
 | 
			
		||||
vt 0.875000 0.625000
 | 
			
		||||
vt 0.875000 0.687500
 | 
			
		||||
vt 0.875000 0.375000
 | 
			
		||||
vt 0.875000 0.437500
 | 
			
		||||
vt 0.875000 0.500000
 | 
			
		||||
vt 0.875000 0.562500
 | 
			
		||||
vt 0.937500 0.625000
 | 
			
		||||
vt 0.937500 0.687500
 | 
			
		||||
vt 0.937500 0.375000
 | 
			
		||||
vt 0.937500 0.437500
 | 
			
		||||
vt 0.937500 0.500000
 | 
			
		||||
vt 0.937500 0.562500
 | 
			
		||||
vt 1.000000 0.625000
 | 
			
		||||
vt 1.000000 0.687500
 | 
			
		||||
vt 1.000000 0.375000
 | 
			
		||||
vt 1.000000 0.437500
 | 
			
		||||
vt 1.000000 0.500000
 | 
			
		||||
vt 1.000000 0.562500
 | 
			
		||||
vt 0.500000 0.625000
 | 
			
		||||
vt 0.562500 0.625000
 | 
			
		||||
vt 0.562500 0.687500
 | 
			
		||||
vt 0.500000 0.687500
 | 
			
		||||
vt 0.562500 0.375000
 | 
			
		||||
vt 0.562500 0.437500
 | 
			
		||||
vt 0.500000 0.437500
 | 
			
		||||
vt 0.562500 0.500000
 | 
			
		||||
vt 0.500000 0.500000
 | 
			
		||||
vt 0.562500 0.562500
 | 
			
		||||
vt 0.500000 0.562500
 | 
			
		||||
vt 0.625000 0.625000
 | 
			
		||||
vt 0.625000 0.687500
 | 
			
		||||
vt 0.625000 0.375000
 | 
			
		||||
vt 0.625000 0.437500
 | 
			
		||||
vt 0.625000 0.500000
 | 
			
		||||
vt 0.625000 0.562500
 | 
			
		||||
vt 0.687500 0.625000
 | 
			
		||||
vt 0.687500 0.687500
 | 
			
		||||
vt 0.687500 0.375000
 | 
			
		||||
vt 0.687500 0.437500
 | 
			
		||||
vt 0.687500 0.500000
 | 
			
		||||
vt 0.687500 0.562500
 | 
			
		||||
vt 0.250000 0.625000
 | 
			
		||||
vt 0.312500 0.625000
 | 
			
		||||
vt 0.312500 0.687500
 | 
			
		||||
vt 0.250000 0.687500
 | 
			
		||||
vt 0.312500 0.437500
 | 
			
		||||
vt 0.250000 0.437500
 | 
			
		||||
vt 0.312500 0.500000
 | 
			
		||||
vt 0.250000 0.500000
 | 
			
		||||
vt 0.312500 0.562500
 | 
			
		||||
vt 0.250000 0.562500
 | 
			
		||||
vt 0.375000 0.625000
 | 
			
		||||
vt 0.375000 0.687500
 | 
			
		||||
vt 0.375000 0.437500
 | 
			
		||||
vt 0.375000 0.500000
 | 
			
		||||
vt 0.375000 0.562500
 | 
			
		||||
vt 0.437500 0.625000
 | 
			
		||||
vt 0.437500 0.687500
 | 
			
		||||
vt 0.437500 0.437500
 | 
			
		||||
vt 0.437500 0.500000
 | 
			
		||||
vt 0.437500 0.562500
 | 
			
		||||
vt -0.000000 0.625000
 | 
			
		||||
vt 0.062500 0.625000
 | 
			
		||||
vt 0.062500 0.687500
 | 
			
		||||
vt -0.000000 0.687500
 | 
			
		||||
vt 0.062500 0.437500
 | 
			
		||||
vt -0.000000 0.437500
 | 
			
		||||
vt 0.062500 0.500000
 | 
			
		||||
vt -0.000000 0.500000
 | 
			
		||||
vt 0.062500 0.562500
 | 
			
		||||
vt -0.000000 0.562500
 | 
			
		||||
vt 0.125000 0.625000
 | 
			
		||||
vt 0.125000 0.687500
 | 
			
		||||
vt 0.125000 0.437500
 | 
			
		||||
vt 0.125000 0.500000
 | 
			
		||||
vt 0.125000 0.562500
 | 
			
		||||
vt 0.187500 0.625000
 | 
			
		||||
vt 0.187500 0.687500
 | 
			
		||||
vt 0.187500 0.437500
 | 
			
		||||
vt 0.187500 0.500000
 | 
			
		||||
vt 0.187500 0.562500
 | 
			
		||||
vt 0.687500 0.750000
 | 
			
		||||
vt 0.750000 0.750000
 | 
			
		||||
vt 0.750000 0.812500
 | 
			
		||||
vt 0.687500 0.812500
 | 
			
		||||
vt 0.750000 0.875000
 | 
			
		||||
vt 0.687500 0.875000
 | 
			
		||||
vt 0.750000 0.937500
 | 
			
		||||
vt 0.687500 0.937500
 | 
			
		||||
vt 0.750000 1.000000
 | 
			
		||||
vt 0.687500 1.000000
 | 
			
		||||
vt 0.812500 0.750000
 | 
			
		||||
vt 0.812500 0.812500
 | 
			
		||||
vt 0.812500 0.875000
 | 
			
		||||
vt 0.812500 0.937500
 | 
			
		||||
vt 0.812500 1.000000
 | 
			
		||||
vt 0.875000 0.750000
 | 
			
		||||
vt 0.875000 0.812500
 | 
			
		||||
vt 0.875000 0.875000
 | 
			
		||||
vt 0.875000 0.937500
 | 
			
		||||
vt 0.875000 1.000000
 | 
			
		||||
vt 0.937500 0.750000
 | 
			
		||||
vt 0.937500 0.812500
 | 
			
		||||
vt 0.937500 0.875000
 | 
			
		||||
vt 0.937500 0.937500
 | 
			
		||||
vt 0.937500 1.000000
 | 
			
		||||
vt 1.000000 0.750000
 | 
			
		||||
vt 1.000000 0.812500
 | 
			
		||||
vt 1.000000 0.875000
 | 
			
		||||
vt 1.000000 0.937500
 | 
			
		||||
vt 1.000000 1.000000
 | 
			
		||||
vt 0.500000 0.750000
 | 
			
		||||
vt 0.562500 0.750000
 | 
			
		||||
vt 0.562500 0.812500
 | 
			
		||||
vt 0.500000 0.812500
 | 
			
		||||
vt 0.562500 0.875000
 | 
			
		||||
vt 0.500000 0.875000
 | 
			
		||||
vt 0.562500 0.937500
 | 
			
		||||
vt 0.500000 0.937500
 | 
			
		||||
vt 0.562500 1.000000
 | 
			
		||||
vt 0.500000 1.000000
 | 
			
		||||
vt 0.625000 0.750000
 | 
			
		||||
vt 0.625000 0.812500
 | 
			
		||||
vt 0.625000 0.875000
 | 
			
		||||
vt 0.625000 0.937500
 | 
			
		||||
vt 0.625000 1.000000
 | 
			
		||||
vt 0.750000 0.312500
 | 
			
		||||
vt 0.812500 0.312500
 | 
			
		||||
vt 0.750000 0.062500
 | 
			
		||||
vt 0.812500 0.062500
 | 
			
		||||
vt 0.812500 0.125000
 | 
			
		||||
vt 0.750000 0.125000
 | 
			
		||||
vt 0.812500 0.187500
 | 
			
		||||
vt 0.750000 0.187500
 | 
			
		||||
vt 0.812500 0.250000
 | 
			
		||||
vt 0.750000 0.250000
 | 
			
		||||
vt 0.875000 0.312500
 | 
			
		||||
vt 0.875000 0.062500
 | 
			
		||||
vt 0.875000 0.125000
 | 
			
		||||
vt 0.875000 0.187500
 | 
			
		||||
vt 0.875000 0.250000
 | 
			
		||||
vt 0.937500 0.312500
 | 
			
		||||
vt 0.937500 0.062500
 | 
			
		||||
vt 0.937500 0.125000
 | 
			
		||||
vt 0.937500 0.187500
 | 
			
		||||
vt 0.937500 0.250000
 | 
			
		||||
vt 1.000000 0.312500
 | 
			
		||||
vt 1.000000 0.062500
 | 
			
		||||
vt 1.000000 0.125000
 | 
			
		||||
vt 1.000000 0.187500
 | 
			
		||||
vt 1.000000 0.250000
 | 
			
		||||
vt 0.562500 0.312500
 | 
			
		||||
vt 0.562500 0.062500
 | 
			
		||||
vt 0.562500 0.125000
 | 
			
		||||
vt 0.562500 0.187500
 | 
			
		||||
vt 0.562500 0.250000
 | 
			
		||||
vt 0.625000 0.312500
 | 
			
		||||
vt 0.625000 0.062500
 | 
			
		||||
vt 0.625000 0.125000
 | 
			
		||||
vt 0.625000 0.187500
 | 
			
		||||
vt 0.625000 0.250000
 | 
			
		||||
vt 0.687500 0.312500
 | 
			
		||||
vt 0.687500 0.062500
 | 
			
		||||
vt 0.687500 0.125000
 | 
			
		||||
vt 0.687500 0.187500
 | 
			
		||||
vt 0.687500 0.250000
 | 
			
		||||
vt 0.250000 0.937500
 | 
			
		||||
vt 0.312500 0.937500
 | 
			
		||||
vt 0.312500 1.000000
 | 
			
		||||
vt 0.250000 1.000000
 | 
			
		||||
vt 0.312500 0.750000
 | 
			
		||||
vt 0.250000 0.750000
 | 
			
		||||
vt 0.312500 0.812500
 | 
			
		||||
vt 0.250000 0.812500
 | 
			
		||||
vt 0.312500 0.875000
 | 
			
		||||
vt 0.250000 0.875000
 | 
			
		||||
vt 0.375000 0.937500
 | 
			
		||||
vt 0.375000 1.000000
 | 
			
		||||
vt 0.375000 0.750000
 | 
			
		||||
vt 0.375000 0.812500
 | 
			
		||||
vt 0.375000 0.875000
 | 
			
		||||
vt 0.437500 0.937500
 | 
			
		||||
vt 0.437500 1.000000
 | 
			
		||||
vt 0.437500 0.750000
 | 
			
		||||
vt 0.437500 0.812500
 | 
			
		||||
vt 0.437500 0.875000
 | 
			
		||||
vt 0.000000 0.937500
 | 
			
		||||
vt 0.062500 0.937500
 | 
			
		||||
vt 0.062500 1.000000
 | 
			
		||||
vt 0.000000 1.000000
 | 
			
		||||
vt 0.062500 0.750000
 | 
			
		||||
vt 0.000000 0.750000
 | 
			
		||||
vt 0.062500 0.812500
 | 
			
		||||
vt 0.000000 0.812500
 | 
			
		||||
vt 0.062500 0.875000
 | 
			
		||||
vt 0.000000 0.875000
 | 
			
		||||
vt 0.125000 0.937500
 | 
			
		||||
vt 0.125000 1.000000
 | 
			
		||||
vt 0.125000 0.750000
 | 
			
		||||
vt 0.125000 0.812500
 | 
			
		||||
vt 0.125000 0.875000
 | 
			
		||||
vt 0.187500 0.937500
 | 
			
		||||
vt 0.187500 1.000000
 | 
			
		||||
vt 0.187500 0.750000
 | 
			
		||||
vt 0.187500 0.812500
 | 
			
		||||
vt 0.187500 0.875000
 | 
			
		||||
vn 0.000000 -1.000000 -0.004800
 | 
			
		||||
vn 0.000000 -0.657400 0.753500
 | 
			
		||||
vn -0.898300 -0.248500 0.362300
 | 
			
		||||
vn -0.863600 -0.504100 -0.003400
 | 
			
		||||
vn -0.661500 0.421500 -0.620200
 | 
			
		||||
vn -0.746000 0.665900 0.000000
 | 
			
		||||
vn 0.661500 0.421500 -0.620200
 | 
			
		||||
vn 0.746000 0.665900 0.000000
 | 
			
		||||
vn 0.898300 -0.248500 0.362300
 | 
			
		||||
vn 0.863600 -0.504100 -0.003400
 | 
			
		||||
vn 0.000000 0.000000 1.000000
 | 
			
		||||
vn -0.925200 0.000000 0.379500
 | 
			
		||||
vn -0.617100 0.000000 -0.786900
 | 
			
		||||
vn 0.617100 0.000000 -0.786900
 | 
			
		||||
vn 0.925200 0.000000 0.379500
 | 
			
		||||
vn 0.000000 0.657400 0.753500
 | 
			
		||||
vn -0.898300 0.248400 0.362300
 | 
			
		||||
vn -0.661500 -0.421500 -0.620200
 | 
			
		||||
vn 0.661500 -0.421500 -0.620200
 | 
			
		||||
vn 0.898300 0.248400 0.362300
 | 
			
		||||
vn 0.000000 1.000000 0.000000
 | 
			
		||||
vn -0.866100 0.499800 0.000000
 | 
			
		||||
vn -0.746000 -0.665900 0.000000
 | 
			
		||||
vn 0.746000 -0.665900 0.000000
 | 
			
		||||
vn 0.866100 0.499800 0.000000
 | 
			
		||||
vn 0.000000 0.657400 -0.753500
 | 
			
		||||
vn -0.898300 0.248400 -0.362400
 | 
			
		||||
vn -0.661600 -0.421500 0.620200
 | 
			
		||||
vn 0.661500 -0.421500 0.620200
 | 
			
		||||
vn 0.898300 0.248400 -0.362300
 | 
			
		||||
vn 0.000000 -0.000900 -1.000000
 | 
			
		||||
vn -0.924600 -0.000600 -0.380700
 | 
			
		||||
vn -0.617100 0.000000 0.786900
 | 
			
		||||
vn 0.617100 0.000000 0.786900
 | 
			
		||||
vn 0.924700 -0.000600 -0.380700
 | 
			
		||||
vn 0.000000 -0.650300 -0.759600
 | 
			
		||||
vn -0.895600 -0.254600 -0.364800
 | 
			
		||||
vn -0.661600 0.421500 0.620200
 | 
			
		||||
vn 0.661600 0.421500 0.620200
 | 
			
		||||
vn 0.895600 -0.254600 -0.364800
 | 
			
		||||
vn 0.004900 -1.000000 0.000000
 | 
			
		||||
vn -0.729700 -0.683800 0.000000
 | 
			
		||||
vn -0.324500 -0.256300 -0.910500
 | 
			
		||||
vn 0.003300 -0.475500 -0.879700
 | 
			
		||||
vn 0.578700 0.436200 -0.689100
 | 
			
		||||
vn 0.000000 0.666600 -0.745400
 | 
			
		||||
vn 0.578700 0.436200 0.689100
 | 
			
		||||
vn 0.000000 0.666600 0.745400
 | 
			
		||||
vn -0.324500 -0.256300 0.910500
 | 
			
		||||
vn 0.003300 -0.475500 0.879700
 | 
			
		||||
vn -1.000000 0.000000 0.000000
 | 
			
		||||
vn -0.359600 0.000000 -0.933100
 | 
			
		||||
vn 0.756400 0.000000 -0.654100
 | 
			
		||||
vn 0.756400 0.000000 0.654100
 | 
			
		||||
vn -0.359600 0.000000 0.933100
 | 
			
		||||
vn -0.729700 0.683700 0.000000
 | 
			
		||||
vn -0.324500 0.256300 -0.910500
 | 
			
		||||
vn 0.578700 -0.436200 -0.689100
 | 
			
		||||
vn 0.578700 -0.436200 0.689100
 | 
			
		||||
vn -0.324500 0.256300 0.910500
 | 
			
		||||
vn 0.000000 0.470900 -0.882200
 | 
			
		||||
vn 0.000000 -0.666600 -0.745400
 | 
			
		||||
vn 0.000000 -0.666600 0.745400
 | 
			
		||||
vn 0.000000 0.470900 0.882200
 | 
			
		||||
vn 0.729700 0.683700 0.000000
 | 
			
		||||
vn 0.324500 0.256300 -0.910500
 | 
			
		||||
vn -0.578700 -0.436200 -0.689100
 | 
			
		||||
vn -0.578700 -0.436200 0.689100
 | 
			
		||||
vn 0.324500 0.256300 0.910500
 | 
			
		||||
vn 1.000000 -0.001100 0.000000
 | 
			
		||||
vn 0.361000 -0.000700 -0.932600
 | 
			
		||||
vn -0.756400 0.000000 -0.654100
 | 
			
		||||
vn -0.756400 0.000000 0.654100
 | 
			
		||||
vn 0.361000 -0.000700 0.932600
 | 
			
		||||
vn 0.736100 -0.676800 0.000000
 | 
			
		||||
vn 0.327100 -0.263100 -0.907600
 | 
			
		||||
vn -0.578700 0.436200 -0.689100
 | 
			
		||||
vn -0.578700 0.436200 0.689100
 | 
			
		||||
vn 0.327100 -0.263100 0.907600
 | 
			
		||||
vn -0.004900 -1.000000 0.000000
 | 
			
		||||
vn 0.729700 -0.683800 0.000000
 | 
			
		||||
vn 0.324500 -0.256300 0.910500
 | 
			
		||||
vn -0.003300 -0.475400 0.879700
 | 
			
		||||
vn 0.324500 -0.256300 -0.910500
 | 
			
		||||
vn -0.003300 -0.475400 -0.879700
 | 
			
		||||
vn 1.000000 0.000000 0.000000
 | 
			
		||||
vn 0.359600 0.000000 0.933100
 | 
			
		||||
vn 0.359600 0.000000 -0.933100
 | 
			
		||||
vn -1.000000 -0.001100 0.000000
 | 
			
		||||
vn -0.361000 -0.000700 0.932600
 | 
			
		||||
vn -0.361000 -0.000700 -0.932600
 | 
			
		||||
vn -0.736100 -0.676800 0.000000
 | 
			
		||||
vn -0.327100 -0.263100 0.907600
 | 
			
		||||
vn -0.327100 -0.263100 -0.907600
 | 
			
		||||
vn 0.000000 -1.000000 0.004800
 | 
			
		||||
vn 0.000000 -0.657400 -0.753500
 | 
			
		||||
vn 0.898300 -0.248500 -0.362400
 | 
			
		||||
vn 0.863600 -0.504100 0.003400
 | 
			
		||||
vn -0.898300 -0.248500 -0.362400
 | 
			
		||||
vn -0.863600 -0.504100 0.003400
 | 
			
		||||
vn 0.000000 0.000000 -1.000000
 | 
			
		||||
vn 0.925200 0.000000 -0.379500
 | 
			
		||||
vn -0.925200 0.000000 -0.379500
 | 
			
		||||
vn 0.898300 0.248500 -0.362400
 | 
			
		||||
vn 0.661600 -0.421500 0.620200
 | 
			
		||||
vn -0.898300 0.248500 -0.362400
 | 
			
		||||
vn 0.898300 0.248500 0.362300
 | 
			
		||||
vn -0.898300 0.248500 0.362300
 | 
			
		||||
vn 0.000000 -0.000900 1.000000
 | 
			
		||||
vn 0.924700 -0.000600 0.380700
 | 
			
		||||
vn -0.924700 -0.000600 0.380700
 | 
			
		||||
vn 0.000000 -0.650300 0.759600
 | 
			
		||||
vn 0.895600 -0.254600 0.364700
 | 
			
		||||
vn -0.895600 -0.254600 0.364700
 | 
			
		||||
vn 0.729700 -0.683700 0.000000
 | 
			
		||||
vn 0.729700 0.683800 0.000000
 | 
			
		||||
vn -0.729700 0.683800 0.000000
 | 
			
		||||
vn -0.898300 -0.248400 0.362300
 | 
			
		||||
vn -0.863600 -0.504100 -0.003500
 | 
			
		||||
vn 0.898300 -0.248400 0.362300
 | 
			
		||||
vn 0.863600 -0.504100 -0.003500
 | 
			
		||||
vn -0.661500 -0.421500 0.620200
 | 
			
		||||
vn 0.924600 -0.000600 -0.380700
 | 
			
		||||
vn -0.661500 0.421500 0.620200
 | 
			
		||||
vn 0.661500 0.421500 0.620200
 | 
			
		||||
s 1
 | 
			
		||||
f 1/1/1 2/2/2 3/3/3 4/4/4
 | 
			
		||||
f 4/4/4 3/3/3 5/5/5 6/6/6
 | 
			
		||||
f 6/6/6 5/5/5 7/7/7 8/8/8
 | 
			
		||||
f 8/8/8 7/7/7 9/9/9 10/10/10
 | 
			
		||||
f 1/1/1 10/11/10 9/12/9 2/2/2
 | 
			
		||||
f 2/2/2 11/13/11 12/14/12 3/3/3
 | 
			
		||||
f 3/3/3 12/14/12 13/15/13 5/5/5
 | 
			
		||||
f 5/5/5 13/15/13 14/16/14 7/7/7
 | 
			
		||||
f 7/7/7 14/16/14 15/17/15 9/9/9
 | 
			
		||||
f 9/12/9 15/18/15 11/13/11 2/2/2
 | 
			
		||||
f 11/13/11 16/19/16 17/20/17 12/14/12
 | 
			
		||||
f 12/14/12 17/20/17 18/21/18 13/15/13
 | 
			
		||||
f 13/15/13 18/21/18 19/22/19 14/16/14
 | 
			
		||||
f 14/16/14 19/22/19 20/23/20 15/17/15
 | 
			
		||||
f 15/18/15 20/24/20 16/19/16 11/13/11
 | 
			
		||||
f 16/19/16 21/25/21 22/26/22 17/20/17
 | 
			
		||||
f 17/20/17 22/26/22 23/27/23 18/21/18
 | 
			
		||||
f 18/21/18 23/27/23 24/28/24 19/22/19
 | 
			
		||||
f 19/22/19 24/28/24 25/29/25 20/23/20
 | 
			
		||||
f 20/24/20 25/30/25 21/25/21 16/19/16
 | 
			
		||||
f 21/25/21 26/31/26 27/32/27 22/26/22
 | 
			
		||||
f 22/26/22 27/32/27 28/33/28 23/27/23
 | 
			
		||||
f 23/27/23 28/33/28 29/34/29 24/28/24
 | 
			
		||||
f 24/28/24 29/34/29 30/35/30 25/29/25
 | 
			
		||||
f 25/30/25 30/36/30 26/31/26 21/25/21
 | 
			
		||||
f 26/37/26 31/38/31 32/39/32 27/40/27
 | 
			
		||||
f 27/40/27 32/39/32 33/41/33 28/42/28
 | 
			
		||||
f 28/42/28 33/41/33 34/43/34 29/44/29
 | 
			
		||||
f 29/44/29 34/43/34 35/45/35 30/46/30
 | 
			
		||||
f 30/47/30 35/48/35 31/38/31 26/37/26
 | 
			
		||||
f 31/38/31 36/49/36 37/50/37 32/39/32
 | 
			
		||||
f 32/39/32 37/50/37 38/51/38 33/41/33
 | 
			
		||||
f 33/41/33 38/51/38 39/52/39 34/43/34
 | 
			
		||||
f 34/43/34 39/52/39 40/53/40 35/45/35
 | 
			
		||||
f 35/48/35 40/54/40 36/49/36 31/38/31
 | 
			
		||||
f 36/49/36 1/1/1 4/4/4 37/50/37
 | 
			
		||||
f 37/50/37 4/4/4 6/6/6 38/51/38
 | 
			
		||||
f 38/51/38 6/6/6 8/8/8 39/52/39
 | 
			
		||||
f 39/52/39 8/8/8 10/10/10 40/53/40
 | 
			
		||||
f 1/1/1 36/49/36 40/54/40 10/11/10
 | 
			
		||||
f 41/55/41 42/56/42 43/57/43 44/58/44
 | 
			
		||||
f 44/59/44 43/60/43 45/61/45 46/62/46
 | 
			
		||||
f 46/62/46 45/61/45 47/63/47 48/64/48
 | 
			
		||||
f 48/64/48 47/63/47 49/65/49 50/66/50
 | 
			
		||||
f 41/55/41 50/66/50 49/65/49 42/56/42
 | 
			
		||||
f 42/56/42 51/67/51 52/68/52 43/57/43
 | 
			
		||||
f 43/60/43 52/69/52 53/70/53 45/61/45
 | 
			
		||||
f 45/61/45 53/70/53 54/71/54 47/63/47
 | 
			
		||||
f 47/63/47 54/71/54 55/72/55 49/65/49
 | 
			
		||||
f 49/65/49 55/72/55 51/67/51 42/56/42
 | 
			
		||||
f 51/67/51 56/73/56 57/74/57 52/68/52
 | 
			
		||||
f 52/69/52 57/75/57 58/76/58 53/70/53
 | 
			
		||||
f 53/70/53 58/76/58 59/77/59 54/71/54
 | 
			
		||||
f 54/71/54 59/77/59 60/78/60 55/72/55
 | 
			
		||||
f 55/72/55 60/78/60 56/73/56 51/67/51
 | 
			
		||||
f 56/73/56 61/79/21 62/80/61 57/74/57
 | 
			
		||||
f 57/75/57 62/81/61 63/82/62 58/76/58
 | 
			
		||||
f 58/76/58 63/82/62 64/83/63 59/77/59
 | 
			
		||||
f 59/77/59 64/83/63 65/84/64 60/78/60
 | 
			
		||||
f 60/78/60 65/84/64 61/79/21 56/73/56
 | 
			
		||||
f 61/85/21 66/86/65 67/87/66 62/88/61
 | 
			
		||||
f 62/35/61 67/89/66 68/90/67 63/91/62
 | 
			
		||||
f 63/91/62 68/90/67 69/92/68 64/93/63
 | 
			
		||||
f 64/93/63 69/92/68 70/94/69 65/95/64
 | 
			
		||||
f 65/95/64 70/94/69 66/86/65 61/85/21
 | 
			
		||||
f 66/86/65 71/96/70 72/97/71 67/87/66
 | 
			
		||||
f 67/89/66 72/98/71 73/99/72 68/90/67
 | 
			
		||||
f 68/90/67 73/99/72 74/100/73 69/92/68
 | 
			
		||||
f 69/92/68 74/100/73 75/101/74 70/94/69
 | 
			
		||||
f 70/94/69 75/101/74 71/96/70 66/86/65
 | 
			
		||||
f 71/96/70 76/102/75 77/103/76 72/97/71
 | 
			
		||||
f 72/98/71 77/104/76 78/105/77 73/99/72
 | 
			
		||||
f 73/99/72 78/105/77 79/106/78 74/100/73
 | 
			
		||||
f 74/100/73 79/106/78 80/107/79 75/101/74
 | 
			
		||||
f 75/101/74 80/107/79 76/102/75 71/96/70
 | 
			
		||||
f 76/102/75 41/55/41 44/58/44 77/103/76
 | 
			
		||||
f 77/104/76 44/59/44 46/62/46 78/105/77
 | 
			
		||||
f 78/105/77 46/62/46 48/64/48 79/106/78
 | 
			
		||||
f 79/106/78 48/64/48 50/66/50 80/107/79
 | 
			
		||||
f 41/55/41 76/102/75 80/107/79 50/66/50
 | 
			
		||||
f 81/108/80 82/109/81 83/110/82 84/111/83
 | 
			
		||||
f 84/9/83 83/17/82 85/112/78 86/113/48
 | 
			
		||||
f 86/113/48 85/112/78 87/114/77 88/115/46
 | 
			
		||||
f 88/115/46 87/114/77 89/116/84 90/117/85
 | 
			
		||||
f 81/108/80 90/117/85 89/116/84 82/109/81
 | 
			
		||||
f 82/109/81 91/118/86 92/119/87 83/110/82
 | 
			
		||||
f 83/17/82 92/23/87 93/120/73 85/112/78
 | 
			
		||||
f 85/112/78 93/120/73 94/121/72 87/114/77
 | 
			
		||||
f 87/114/77 94/121/72 95/122/88 89/116/84
 | 
			
		||||
f 89/116/84 95/122/88 91/118/86 82/109/81
 | 
			
		||||
f 91/118/86 96/123/65 97/124/69 92/119/87
 | 
			
		||||
f 92/23/87 97/29/69 98/125/68 93/120/73
 | 
			
		||||
f 93/120/73 98/125/68 99/126/67 94/121/72
 | 
			
		||||
f 94/121/72 99/126/67 100/127/66 95/122/88
 | 
			
		||||
f 95/122/88 100/127/66 96/123/65 91/118/86
 | 
			
		||||
f 96/123/65 101/85/21 102/88/64 97/124/69
 | 
			
		||||
f 97/29/69 102/35/64 103/91/63 98/125/68
 | 
			
		||||
f 98/125/68 103/91/63 104/93/62 99/126/67
 | 
			
		||||
f 99/126/67 104/93/62 105/95/61 100/127/66
 | 
			
		||||
f 100/127/66 105/95/61 101/85/21 96/123/65
 | 
			
		||||
f 101/128/21 106/129/56 107/130/60 102/131/64
 | 
			
		||||
f 102/46/64 107/45/60 108/132/59 103/133/63
 | 
			
		||||
f 103/133/63 108/132/59 109/134/58 104/135/62
 | 
			
		||||
f 104/135/62 109/134/58 110/136/57 105/137/61
 | 
			
		||||
f 105/137/61 110/136/57 106/129/56 101/128/21
 | 
			
		||||
f 106/129/56 111/138/89 112/139/90 107/130/60
 | 
			
		||||
f 107/45/60 112/53/90 113/140/54 108/132/59
 | 
			
		||||
f 108/132/59 113/140/54 114/141/53 109/134/58
 | 
			
		||||
f 109/134/58 114/141/53 115/142/91 110/136/57
 | 
			
		||||
f 110/136/57 115/142/91 111/138/89 106/129/56
 | 
			
		||||
f 111/138/89 116/143/92 117/144/93 112/139/90
 | 
			
		||||
f 112/53/90 117/10/93 118/145/47 113/140/54
 | 
			
		||||
f 113/140/54 118/145/47 119/146/45 114/141/53
 | 
			
		||||
f 114/141/53 119/146/45 120/147/94 115/142/91
 | 
			
		||||
f 115/142/91 120/147/94 116/143/92 111/138/89
 | 
			
		||||
f 116/143/92 81/108/80 84/111/83 117/144/93
 | 
			
		||||
f 117/10/93 84/9/83 86/113/48 118/145/47
 | 
			
		||||
f 118/145/47 86/113/48 88/115/46 119/146/45
 | 
			
		||||
f 119/146/45 88/115/46 90/117/85 120/147/94
 | 
			
		||||
f 81/108/80 116/143/92 120/147/94 90/117/85
 | 
			
		||||
f 121/148/95 122/149/96 123/150/97 124/151/98
 | 
			
		||||
f 124/151/98 123/150/97 125/152/39 126/153/8
 | 
			
		||||
f 126/153/8 125/152/39 127/154/38 128/155/6
 | 
			
		||||
f 128/155/6 127/154/38 129/156/99 130/157/100
 | 
			
		||||
f 121/148/95 130/103/100 129/58/99 122/149/96
 | 
			
		||||
f 122/149/96 131/158/101 132/159/102 123/150/97
 | 
			
		||||
f 123/150/97 132/159/102 133/160/34 125/152/39
 | 
			
		||||
f 125/152/39 133/160/34 134/161/33 127/154/38
 | 
			
		||||
f 127/154/38 134/161/33 135/162/103 129/156/99
 | 
			
		||||
f 129/58/99 135/57/103 131/158/101 122/149/96
 | 
			
		||||
f 131/158/101 136/163/26 137/164/104 132/159/102
 | 
			
		||||
f 132/159/102 137/164/104 138/165/105 133/160/34
 | 
			
		||||
f 133/160/34 138/165/105 139/166/28 134/161/33
 | 
			
		||||
f 134/161/33 139/166/28 140/167/106 135/162/103
 | 
			
		||||
f 135/57/103 140/68/106 136/163/26 131/158/101
 | 
			
		||||
f 136/163/26 141/168/21 142/169/25 137/164/104
 | 
			
		||||
f 137/164/104 142/169/25 143/170/24 138/165/105
 | 
			
		||||
f 138/165/105 143/170/24 144/171/23 139/166/28
 | 
			
		||||
f 139/166/28 144/171/23 145/172/22 140/167/106
 | 
			
		||||
f 140/68/106 145/74/22 141/168/21 136/163/26
 | 
			
		||||
f 141/168/21 146/173/16 147/174/107 142/169/25
 | 
			
		||||
f 142/169/25 147/174/107 148/175/19 143/170/24
 | 
			
		||||
f 143/170/24 148/175/19 149/176/18 144/171/23
 | 
			
		||||
f 144/171/23 149/176/18 150/177/108 145/172/22
 | 
			
		||||
f 145/74/22 150/80/108 146/173/16 141/168/21
 | 
			
		||||
f 146/178/16 151/179/109 152/180/110 147/181/107
 | 
			
		||||
f 147/181/107 152/180/110 153/182/14 148/183/19
 | 
			
		||||
f 148/183/19 153/182/14 154/184/13 149/185/18
 | 
			
		||||
f 149/185/18 154/184/13 155/186/111 150/187/108
 | 
			
		||||
f 150/88/108 155/87/111 151/179/109 146/178/16
 | 
			
		||||
f 151/179/109 156/188/112 157/189/113 152/180/110
 | 
			
		||||
f 152/180/110 157/189/113 158/190/7 153/182/14
 | 
			
		||||
f 153/182/14 158/190/7 159/191/5 154/184/13
 | 
			
		||||
f 154/184/13 159/191/5 160/192/114 155/186/111
 | 
			
		||||
f 155/87/111 160/97/114 156/188/112 151/179/109
 | 
			
		||||
f 156/188/112 121/148/95 124/151/98 157/189/113
 | 
			
		||||
f 157/189/113 124/151/98 126/153/8 158/190/7
 | 
			
		||||
f 158/190/7 126/153/8 128/155/6 159/191/5
 | 
			
		||||
f 159/191/5 128/155/6 130/157/100 160/192/114
 | 
			
		||||
f 121/148/95 156/188/112 160/97/114 130/103/100
 | 
			
		||||
f 161/193/80 162/194/115 163/60/82 164/59/83
 | 
			
		||||
f 164/195/83 163/196/82 165/197/78 166/198/48
 | 
			
		||||
f 166/198/48 165/197/78 167/199/77 168/200/46
 | 
			
		||||
f 168/200/46 167/199/77 169/201/84 170/202/85
 | 
			
		||||
f 161/193/80 170/202/85 169/201/84 162/194/115
 | 
			
		||||
f 162/194/115 171/203/86 172/69/87 163/60/82
 | 
			
		||||
f 163/196/82 172/204/87 173/205/73 165/197/78
 | 
			
		||||
f 165/197/78 173/205/73 174/206/72 167/199/77
 | 
			
		||||
f 167/199/77 174/206/72 175/207/88 169/201/84
 | 
			
		||||
f 169/201/84 175/207/88 171/203/86 162/194/115
 | 
			
		||||
f 171/203/86 176/208/116 177/75/69 172/69/87
 | 
			
		||||
f 172/204/87 177/209/69 178/210/68 173/205/73
 | 
			
		||||
f 173/205/73 178/210/68 179/211/67 174/206/72
 | 
			
		||||
f 174/206/72 179/211/67 180/212/66 175/207/88
 | 
			
		||||
f 175/207/88 180/212/66 176/208/116 171/203/86
 | 
			
		||||
f 176/208/116 181/213/21 182/81/64 177/75/69
 | 
			
		||||
f 177/209/69 182/214/64 183/215/63 178/210/68
 | 
			
		||||
f 178/210/68 183/215/63 184/216/62 179/211/67
 | 
			
		||||
f 179/211/67 184/216/62 185/217/61 180/212/66
 | 
			
		||||
f 180/212/66 185/217/61 181/213/21 176/208/116
 | 
			
		||||
f 181/34/21 186/218/117 187/89/60 182/35/64
 | 
			
		||||
f 182/36/64 187/219/60 188/220/59 183/31/63
 | 
			
		||||
f 183/31/63 188/220/59 189/221/58 184/32/62
 | 
			
		||||
f 184/32/62 189/221/58 190/222/57 185/33/61
 | 
			
		||||
f 185/33/61 190/222/57 186/218/117 181/34/21
 | 
			
		||||
f 186/218/117 191/223/89 192/98/90 187/89/60
 | 
			
		||||
f 187/219/60 192/224/90 193/225/54 188/220/59
 | 
			
		||||
f 188/220/59 193/225/54 194/226/53 189/221/58
 | 
			
		||||
f 189/221/58 194/226/53 195/227/91 190/222/57
 | 
			
		||||
f 190/222/57 195/227/91 191/223/89 186/218/117
 | 
			
		||||
f 191/223/89 196/228/92 197/104/93 192/98/90
 | 
			
		||||
f 192/224/90 197/229/93 198/230/47 193/225/54
 | 
			
		||||
f 193/225/54 198/230/47 199/231/45 194/226/53
 | 
			
		||||
f 194/226/53 199/231/45 200/232/94 195/227/91
 | 
			
		||||
f 195/227/91 200/232/94 196/228/92 191/223/89
 | 
			
		||||
f 196/228/92 161/193/80 164/59/83 197/104/93
 | 
			
		||||
f 197/229/93 164/195/83 166/198/48 198/230/47
 | 
			
		||||
f 198/230/47 166/198/48 168/200/46 199/231/45
 | 
			
		||||
f 199/231/45 168/200/46 170/202/85 200/232/94
 | 
			
		||||
f 161/193/80 196/228/92 200/232/94 170/202/85
 | 
			
		||||
f 201/233/1 202/234/2 203/235/118 204/236/119
 | 
			
		||||
f 204/111/119 203/110/118 205/237/5 206/238/6
 | 
			
		||||
f 206/238/6 205/237/5 207/239/7 208/240/8
 | 
			
		||||
f 208/240/8 207/239/7 209/241/120 210/242/121
 | 
			
		||||
f 201/233/1 210/242/121 209/241/120 202/234/2
 | 
			
		||||
f 202/234/2 211/243/11 212/244/12 203/235/118
 | 
			
		||||
f 203/110/118 212/119/12 213/245/13 205/237/5
 | 
			
		||||
f 205/237/5 213/245/13 214/246/14 207/239/7
 | 
			
		||||
f 207/239/7 214/246/14 215/247/15 209/241/120
 | 
			
		||||
f 209/241/120 215/247/15 211/243/11 202/234/2
 | 
			
		||||
f 211/243/11 216/248/16 217/249/108 212/244/12
 | 
			
		||||
f 212/119/12 217/124/108 218/250/18 213/245/13
 | 
			
		||||
f 213/245/13 218/250/18 219/251/19 214/246/14
 | 
			
		||||
f 214/246/14 219/251/19 220/252/107 215/247/15
 | 
			
		||||
f 215/247/15 220/252/107 216/248/16 211/243/11
 | 
			
		||||
f 216/248/16 221/185/21 222/187/22 217/249/108
 | 
			
		||||
f 217/124/108 222/88/22 223/178/23 218/250/18
 | 
			
		||||
f 218/250/18 223/178/23 224/181/24 219/251/19
 | 
			
		||||
f 219/251/19 224/181/24 225/183/25 220/252/107
 | 
			
		||||
f 220/252/107 225/183/25 221/185/21 216/248/16
 | 
			
		||||
f 221/253/21 226/254/26 227/255/106 222/256/22
 | 
			
		||||
f 222/131/22 227/130/106 228/257/122 223/258/23
 | 
			
		||||
f 223/258/23 228/257/122 229/259/29 224/260/24
 | 
			
		||||
f 224/260/24 229/259/29 230/261/104 225/262/25
 | 
			
		||||
f 225/262/25 230/261/104 226/254/26 221/253/21
 | 
			
		||||
f 226/254/26 231/263/31 232/264/32 227/255/106
 | 
			
		||||
f 227/130/106 232/139/32 233/265/33 228/257/122
 | 
			
		||||
f 228/257/122 233/265/33 234/266/34 229/259/29
 | 
			
		||||
f 229/259/29 234/266/34 235/267/123 230/261/104
 | 
			
		||||
f 230/261/104 235/267/123 231/263/31 226/254/26
 | 
			
		||||
f 231/263/31 236/268/36 237/269/37 232/264/32
 | 
			
		||||
f 232/139/32 237/144/37 238/270/124 233/265/33
 | 
			
		||||
f 233/265/33 238/270/124 239/271/125 234/266/34
 | 
			
		||||
f 234/266/34 239/271/125 240/272/40 235/267/123
 | 
			
		||||
f 235/267/123 240/272/40 236/268/36 231/263/31
 | 
			
		||||
f 236/268/36 201/233/1 204/236/119 237/269/37
 | 
			
		||||
f 237/144/37 204/111/119 206/238/6 238/270/124
 | 
			
		||||
f 238/270/124 206/238/6 208/240/8 239/271/125
 | 
			
		||||
f 239/271/125 208/240/8 210/242/121 240/272/40
 | 
			
		||||
f 201/233/1 236/268/36 240/272/40 210/242/121
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 1.8 KiB  | 
| 
		 Before Width: | Height: | Size: 1.7 KiB  | 
| 
		 Before Width: | Height: | Size: 344 B  | 
| 
		 Before Width: | Height: | Size: 1.5 KiB  | 
| 
		 Before Width: | Height: | Size: 386 B  | 
@@ -33,10 +33,6 @@ computer:admiral128
 | 
			
		||||
 | 
			
		||||
There's also a `computer:computer' alias to `computer:babytower'.
 | 
			
		||||
 | 
			
		||||
License:
 | 
			
		||||
Sourcecode: WTFPL (see below)
 | 
			
		||||
Graphics: WTFPL (see below)
 | 
			
		||||
 | 
			
		||||
Thanks to all the people in the forums and the #minetest IRC channel for
 | 
			
		||||
 their support and suggestions; in no particular order:
 | 
			
		||||
  OldCoder, Josh, tonyka, VanessaE, davidpace, Jordach, and all the other
 | 
			
		||||
@@ -45,17 +41,3 @@ Thanks to all the people in the forums and the #minetest IRC channel for
 | 
			
		||||
 | 
			
		||||
See also:
 | 
			
		||||
http://minetest.net/
 | 
			
		||||
 | 
			
		||||
         DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
 | 
			
		||||
                    Version 2, December 2004
 | 
			
		||||
 | 
			
		||||
 Copyright (C) 2012 Diego Martínez <lkaezadl3@gmail.com>
 | 
			
		||||
 | 
			
		||||
 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. 
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +0,0 @@
 | 
			
		||||
 | 
			
		||||
# Language: Español
 | 
			
		||||
# Author: Diego Martínez <lkaezadl3@gmail.com>
 | 
			
		||||
 | 
			
		||||
Plastic sheet = Placa de Plastico
 | 
			
		||||
Unprocessed Plastic base = Base de Plastico No Procesada
 | 
			
		||||
@@ -1,6 +1,4 @@
 | 
			
		||||
 | 
			
		||||
-- Copyright (C) 2012-2013 Diego Martínez <kaeza@users.sf.net>
 | 
			
		||||
-- License is WTFPL (see README.txt).
 | 
			
		||||
 | 
			
		||||
-- This file defines some items in order to not have to depend on other mods.
 | 
			
		||||
 | 
			
		||||
@@ -8,7 +6,7 @@ local S = homedecor_i18n.gettext
 | 
			
		||||
 | 
			
		||||
if (not minetest.get_modpath("homedecor")) then
 | 
			
		||||
 | 
			
		||||
	minetest.register_craftitem(":homedecor:plastic_sheeting", {
 | 
			
		||||
	minetest.register_craftitem(":basic_materials:plastic_sheet", {
 | 
			
		||||
		description = S("Plastic sheet"),
 | 
			
		||||
		inventory_image = "homedecor_plastic_sheeting.png",
 | 
			
		||||
	})
 | 
			
		||||
@@ -51,7 +49,7 @@ if (not minetest.get_modpath("homedecor")) then
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "cooking",
 | 
			
		||||
		output = "homedecor:plastic_sheeting",
 | 
			
		||||
		output = "basic_materials:plastic_sheet",
 | 
			
		||||
		recipe = "homedecor:plastic_base",
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
@@ -63,7 +61,7 @@ if (not minetest.get_modpath("homedecor")) then
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = 'fuel',
 | 
			
		||||
		recipe = 'homedecor:plastic_sheeting',
 | 
			
		||||
		recipe = 'basic_materials:plastic_sheet',
 | 
			
		||||
		burntime = 30,
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,54 +1,52 @@
 | 
			
		||||
 | 
			
		||||
-- Copyright (C) 2012-2013 Diego Martínez <kaeza@users.sf.net>
 | 
			
		||||
-- License is WTFPL (see README.txt).
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "computer:shefriendSOO",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "default:glass", "homedecor:plastic_sheeting" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "group:wood", "homedecor:plastic_sheeting" }
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "default:glass", "basic_materials:plastic_sheet" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "group:wood", "basic_materials:plastic_sheet" }
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "computer:slaystation",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "group:wood", "homedecor:plastic_sheeting" }
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "group:wood", "basic_materials:plastic_sheet" }
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "computer:vanio",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "", "" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "", "" },
 | 
			
		||||
		{ "default:glass", "", "" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "computer:specter",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "", "", "homedecor:plastic_sheeting" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
 | 
			
		||||
		{ "", "", "basic_materials:plastic_sheet" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "computer:slaystation2",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "default:steel_ingot", "homedecor:plastic_sheeting" }
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "default:steel_ingot", "basic_materials:plastic_sheet" }
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "computer:admiral64",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
 | 
			
		||||
		{ "group:wood", "group:wood", "group:wood" }
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
@@ -56,7 +54,7 @@ minetest.register_craft({
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "computer:admiral128",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
 | 
			
		||||
		{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
@@ -64,16 +62,16 @@ minetest.register_craft({
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "computer:wee",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "default:copper_ingot", "homedecor:plastic_sheeting" }
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "default:copper_ingot", "basic_materials:plastic_sheet" }
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "computer:piepad",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "default:glass", "homedecor:plastic_sheeting" }
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "default:glass", "basic_materials:plastic_sheet" }
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -82,9 +80,9 @@ minetest.register_craft({
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "computer:monitor",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "default:glass","" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "default:glass","" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "default:mese_crystal_fragment", "homedecor:plastic_sheeting" }
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "default:glass","" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "default:glass","" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "default:mese_crystal_fragment", "basic_materials:plastic_sheet" }
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -92,35 +90,35 @@ minetest.register_craft({
 | 
			
		||||
	output = "computer:router",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "default:steel_ingot","","" },
 | 
			
		||||
		{ "default:steel_ingot" ,"homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
 | 
			
		||||
		{ "default:mese_crystal_fragment","homedecor:plastic_sheeting", "homedecor:plastic_sheeting"  }
 | 
			
		||||
		{ "default:steel_ingot" ,"basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
 | 
			
		||||
		{ "default:mese_crystal_fragment","basic_materials:plastic_sheet", "basic_materials:plastic_sheet"  }
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "computer:tower",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "default:steel_ingot", "homedecor:plastic_sheeting" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "default:mese_crystal", "homedecor:plastic_sheeting" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "default:steel_ingot", "homedecor:plastic_sheeting" }
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "default:steel_ingot", "basic_materials:plastic_sheet" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "default:mese_crystal", "basic_materials:plastic_sheet" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "default:steel_ingot", "basic_materials:plastic_sheet" }
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "computer:printer",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "default:steel_ingot","" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "default:mese_crystal", "homedecor:plastic_sheeting" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "default:coal_lump", "homedecor:plastic_sheeting" }
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "default:steel_ingot","" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "default:mese_crystal", "basic_materials:plastic_sheet" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "default:coal_lump", "basic_materials:plastic_sheet" }
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "computer:printer",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "default:steel_ingot","" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "default:mese_crystal", "homedecor:plastic_sheeting" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "dye:black", "homedecor:plastic_sheeting", }
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "default:steel_ingot","" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "default:mese_crystal", "basic_materials:plastic_sheet" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "dye:black", "basic_materials:plastic_sheet", }
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -136,8 +134,8 @@ minetest.register_craft({
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "computer:tetris_arcade",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "homedecor:power_crystal", "homedecor:plastic_sheeting", },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "basic_materials:energy_crystal", "basic_materials:plastic_sheet", },
 | 
			
		||||
		{ "dye:black", "default:glass", "dye:black" },
 | 
			
		||||
		{ "homedecor:plastic_sheeting", "homedecor:power_crystal", "homedecor:plastic_sheeting" }
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "basic_materials:energy_crystal", "basic_materials:plastic_sheet" }
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
@@ -33,10 +33,10 @@ local colors = { "computer_cyan.png", "computer_magenta.png", "computer_red.png"
 | 
			
		||||
 | 
			
		||||
local background = "image[0,0;3.55,6.66;computer_black.png]"
 | 
			
		||||
local buttons = "button[3,4.5;0.6,0.6;left;<]"
 | 
			
		||||
	.."button[3.6,4.5;0.6,0.6;rotateleft;L]"
 | 
			
		||||
	.."button[3.6,4.5;0.6,0.6;rotateleft;"..minetest.formspec_escape(S("L")).."]"
 | 
			
		||||
	.."button[4.2,4.5;0.6,0.6;down;v]"
 | 
			
		||||
	.."button[4.2,5.3;0.6,0.6;drop;V]"
 | 
			
		||||
	.."button[4.8,4.5;0.6,0.6;rotateright;R]"
 | 
			
		||||
	.."button[4.8,4.5;0.6,0.6;rotateright;"..minetest.formspec_escape(S("R")).."]"
 | 
			
		||||
	.."button[5.4,4.5;0.6,0.6;right;>]"
 | 
			
		||||
	.."button[3.5,3;2,2;new;"..minetest.formspec_escape(S("New Game")).."]"
 | 
			
		||||
 | 
			
		||||
@@ -231,7 +231,7 @@ local function step(pos, fields)
 | 
			
		||||
	local scr = { formsize, background,
 | 
			
		||||
		t.boardstring, t.previewstring,
 | 
			
		||||
		draw_shape(t.cur, t.x, t.y, t.rot, boardx, boardy),
 | 
			
		||||
		"label[3.8,0.1;Next...]label[3.8,2.7;Score: ",
 | 
			
		||||
		"label[3.8,0.1;"..S("Next...").."]label[3.8,2.7;"..S("Score: "), 
 | 
			
		||||
		t.score, close, buttons }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -16,8 +16,8 @@ local function start_smoke(pos, node, clicker, chimney)
 | 
			
		||||
			end, s_handle)
 | 
			
		||||
		end
 | 
			
		||||
		minetest.delete_particlespawner(id)
 | 
			
		||||
		this_spawner_meta:set_int("smoky", nil)
 | 
			
		||||
		this_spawner_meta:set_int("sound", nil)
 | 
			
		||||
		this_spawner_meta:set_int("smoky", 0)
 | 
			
		||||
		this_spawner_meta:set_int("sound", 0)
 | 
			
		||||
		return
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
@@ -34,7 +34,7 @@ local function start_smoke(pos, node, clicker, chimney)
 | 
			
		||||
		})
 | 
			
		||||
		if chimney == 1 then
 | 
			
		||||
			this_spawner_meta:set_int("smoky", id)
 | 
			
		||||
			this_spawner_meta:set_int("sound", nil)
 | 
			
		||||
			this_spawner_meta:set_int("sound", 0)
 | 
			
		||||
		else
 | 
			
		||||
			s_handle = minetest.sound_play("fire_small", {
 | 
			
		||||
				pos = pos,
 | 
			
		||||
@@ -62,47 +62,40 @@ local function stop_smoke(pos)
 | 
			
		||||
		end, s_handle)
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	this_spawner_meta:set_int("smoky", nil)
 | 
			
		||||
	this_spawner_meta:set_int("sound", nil)
 | 
			
		||||
	this_spawner_meta:set_int("smoky", 0)
 | 
			
		||||
	this_spawner_meta:set_int("sound", 0)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- FLAME TYPES
 | 
			
		||||
local flame_types = {
 | 
			
		||||
	{ "fake",  S("Fake fire") },
 | 
			
		||||
	{ "ice",   S("Ice fire")  },
 | 
			
		||||
}
 | 
			
		||||
minetest.register_node("fake_fire:ice_fire", {
 | 
			
		||||
	inventory_image = "ice_fire_inv.png",
 | 
			
		||||
	description = S("Ice fire"),
 | 
			
		||||
	drawtype = "plantlike",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "facedir",
 | 
			
		||||
	groups = {dig_immediate=3, not_in_creative_inventory=1},
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	buildable_to = true,
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	light_source = 14,
 | 
			
		||||
	waving = 1,
 | 
			
		||||
	tiles = {
 | 
			
		||||
		{name="ice_fire_animated.png", animation={type="vertical_frames",
 | 
			
		||||
		aspect_w=16, aspect_h=16, length=1.5}},
 | 
			
		||||
	},
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		start_smoke(pos, node, clicker)
 | 
			
		||||
		return itemstack
 | 
			
		||||
	end,
 | 
			
		||||
	on_destruct = function (pos)
 | 
			
		||||
		stop_smoke(pos)
 | 
			
		||||
		minetest.sound_play("fire_extinguish", {
 | 
			
		||||
			pos = pos, max_hear_distance = 5
 | 
			
		||||
		})
 | 
			
		||||
	end,
 | 
			
		||||
	drop = ""
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
for _, f in ipairs(flame_types) do
 | 
			
		||||
	local name, desc = unpack(f)
 | 
			
		||||
	minetest.register_node("fake_fire:"..name.."_fire", {
 | 
			
		||||
		inventory_image = name.."_fire_inv.png",
 | 
			
		||||
		description = desc,
 | 
			
		||||
		drawtype = "plantlike",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		paramtype2 = "facedir",
 | 
			
		||||
		groups = {dig_immediate=3, not_in_creative_inventory=1},
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		buildable_to = true,
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		light_source = 14,
 | 
			
		||||
		waving = 1,
 | 
			
		||||
		tiles = {
 | 
			
		||||
			{name=name.."_fire_animated.png", animation={type="vertical_frames",
 | 
			
		||||
			aspect_w=16, aspect_h=16, length=1.5}},
 | 
			
		||||
		},
 | 
			
		||||
		on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
			start_smoke(pos, node, clicker)
 | 
			
		||||
			return itemstack
 | 
			
		||||
		end,
 | 
			
		||||
		on_destruct = function (pos)
 | 
			
		||||
			stop_smoke(pos)
 | 
			
		||||
			minetest.sound_play("fire_extinguish", {
 | 
			
		||||
				pos = pos, max_hear_distance = 5
 | 
			
		||||
			})
 | 
			
		||||
		end,
 | 
			
		||||
		drop = ""
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
minetest.register_alias("fake_fire:fake_fire", "fire:permanent_flame")
 | 
			
		||||
 | 
			
		||||
minetest.register_node("fake_fire:fancy_fire", {
 | 
			
		||||
		inventory_image = "fancy_fire_inv.png",
 | 
			
		||||
@@ -190,43 +183,18 @@ for _, mat in ipairs(materials) do
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- FLINT and STEEL
 | 
			
		||||
minetest.register_tool("fake_fire:flint_and_steel", {
 | 
			
		||||
	description = S("Flint and steel"),
 | 
			
		||||
	inventory_image = "flint_and_steel.png",
 | 
			
		||||
	liquids_pointable = false,
 | 
			
		||||
	stack_max = 1,
 | 
			
		||||
	tool_capabilities = {
 | 
			
		||||
		full_punch_interval = 1.0,
 | 
			
		||||
		max_drop_level=0,
 | 
			
		||||
		groupcaps={flamable = {uses=65, maxlevel=1}}
 | 
			
		||||
	},
 | 
			
		||||
	on_use = function(itemstack, user, pointed_thing)
 | 
			
		||||
		if pointed_thing.type == "node" and minetest.get_node(pointed_thing.above).name == "air" then
 | 
			
		||||
			if not minetest.is_protected(pointed_thing.above, user:get_player_name()) then
 | 
			
		||||
				if string.find(minetest.get_node(pointed_thing.under).name, "ice") then
 | 
			
		||||
					minetest.set_node(pointed_thing.above, {name="fake_fire:ice_fire"})
 | 
			
		||||
				else
 | 
			
		||||
					minetest.set_node(pointed_thing.above, {name="fake_fire:fake_fire"})
 | 
			
		||||
				end
 | 
			
		||||
			else
 | 
			
		||||
				minetest.chat_send_player(user:get_player_name(), S("This area is protected!"))
 | 
			
		||||
			end
 | 
			
		||||
		else
 | 
			
		||||
			return
 | 
			
		||||
		end
 | 
			
		||||
minetest.register_alias("fake_fire:flint_and_steel", "fire:flint_and_steel")
 | 
			
		||||
 | 
			
		||||
		itemstack:add_wear(65535/65)
 | 
			
		||||
		return itemstack
 | 
			
		||||
minetest.override_item("default:ice", {
 | 
			
		||||
	on_ignite = function(pos, igniter)
 | 
			
		||||
		local flame_pos = {x = pos.x, y = pos.y + 1, z = pos.z}
 | 
			
		||||
		if minetest.get_node(flame_pos).name == "air" then
 | 
			
		||||
			minetest.set_node(flame_pos, {name = "fake_fire:ice_fire"})
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- CRAFTS
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = 'fake_fire:flint_and_steel',
 | 
			
		||||
	recipe = {"default:obsidian_shard", "default:steel_ingot"}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
 
 | 
			
		||||
@@ -4,52 +4,49 @@ local S = homedecor_i18n.gettext
 | 
			
		||||
minetest.register_node("homedecor:bathroom_tiles_dark", {
 | 
			
		||||
	description = S("Bathroom/kitchen tiles (dark)"),
 | 
			
		||||
	tiles = {
 | 
			
		||||
		{ name = "homedecor_bathroom_tiles_bg.png", color = 0xff606060 },
 | 
			
		||||
		"homedecor_bathroom_tiles_fg.png"
 | 
			
		||||
		"homedecor_bathroom_tiles_bg.png"
 | 
			
		||||
	},
 | 
			
		||||
	overlay_tiles = {
 | 
			
		||||
		{ name = "homedecor_bathroom_tiles_fg.png", color = 0xff606060 },
 | 
			
		||||
	},
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "homedecor_block_with_overlay.obj",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "color",
 | 
			
		||||
	palette = "unifieddyes_palette_extended.png",
 | 
			
		||||
	place_param2 = 240,
 | 
			
		||||
	groups = {cracky=3, ud_param2_colorable = 1},
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
	after_dig_node = unifieddyes.after_dig_node
 | 
			
		||||
	on_construct = unifieddyes.on_construct,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("homedecor:bathroom_tiles_medium", {
 | 
			
		||||
	description = S("Bathroom/kitchen tiles (medium)"),
 | 
			
		||||
	tiles = {
 | 
			
		||||
		{ name = "homedecor_bathroom_tiles_bg.png", color = 0xffc0c0c0 },
 | 
			
		||||
		"homedecor_bathroom_tiles_fg.png"
 | 
			
		||||
		"homedecor_bathroom_tiles_bg.png"
 | 
			
		||||
	},
 | 
			
		||||
	overlay_tiles = {
 | 
			
		||||
		{ name = "homedecor_bathroom_tiles_fg.png", color = 0xffc0c0c0 },
 | 
			
		||||
	},
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "homedecor_block_with_overlay.obj",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "color",
 | 
			
		||||
	palette = "unifieddyes_palette_extended.png",
 | 
			
		||||
	place_param2 = 240,
 | 
			
		||||
	groups = {cracky=3, ud_param2_colorable = 1},
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
	after_dig_node = unifieddyes.after_dig_node
 | 
			
		||||
	on_construct = unifieddyes.on_construct,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("homedecor:bathroom_tiles_light", {
 | 
			
		||||
	description = S("Bathroom/kitchen tiles (light)"),
 | 
			
		||||
	tiles = {
 | 
			
		||||
		{ name = "homedecor_bathroom_tiles_bg.png", color = 0xffffffff },
 | 
			
		||||
		"homedecor_bathroom_tiles_fg.png"
 | 
			
		||||
		"homedecor_bathroom_tiles_bg.png"
 | 
			
		||||
	},
 | 
			
		||||
	overlay_tiles = {
 | 
			
		||||
			{ name = "homedecor_bathroom_tiles_fg.png", color = 0xffffffff },
 | 
			
		||||
	},
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "homedecor_block_with_overlay.obj",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "color",
 | 
			
		||||
	palette = "unifieddyes_palette_extended.png",
 | 
			
		||||
	place_param2 = 240,
 | 
			
		||||
	groups = {cracky=3, ud_param2_colorable = 1},
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
	after_dig_node = unifieddyes.after_dig_node
 | 
			
		||||
	on_construct = unifieddyes.on_construct,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
local tr_cbox = {
 | 
			
		||||
@@ -167,21 +164,3 @@ minetest.register_lbm({
 | 
			
		||||
		meta:set_string("palette", "ext")
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_lbm({
 | 
			
		||||
	name = "homedecor:recolor_bathroom_tiles",
 | 
			
		||||
	label = "Convert bathroom tiles to use UD extended palette",
 | 
			
		||||
	run_at_every_load = false,
 | 
			
		||||
	nodenames = {
 | 
			
		||||
		"homedecor:bathroom_tiles_light",
 | 
			
		||||
		"homedecor:bathroom_tiles_medium",
 | 
			
		||||
		"homedecor:bathroom_tiles_dark",
 | 
			
		||||
	},
 | 
			
		||||
	action = function(pos, node)
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
		if meta:get_string("palette") ~= "ext" then
 | 
			
		||||
			minetest.swap_node(pos, { name = node.name, param2 = unifieddyes.convert_classic_palette[node.param2] })
 | 
			
		||||
			meta:set_string("palette", "ext")
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
@@ -56,7 +56,7 @@ homedecor.register("bed_regular", {
 | 
			
		||||
			return homedecor.bed_expansion(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		end
 | 
			
		||||
	end,
 | 
			
		||||
	after_dig_node = function(pos)
 | 
			
		||||
	after_dig_node = function(pos, oldnode, oldmetadata, digger)
 | 
			
		||||
		homedecor.unextend_bed(pos)
 | 
			
		||||
	end,
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
@@ -64,11 +64,9 @@ homedecor.register("bed_regular", {
 | 
			
		||||
		if itemname == "homedecor:bed_regular" then
 | 
			
		||||
			homedecor.bed_expansion(pos, clicker, itemstack, pointed_thing, true)
 | 
			
		||||
			return itemstack
 | 
			
		||||
		else
 | 
			
		||||
--			if minetest.get_modpath("beds") then
 | 
			
		||||
--				beds.on_rightclick(pos, clicker)
 | 
			
		||||
--			end
 | 
			
		||||
			return itemstack
 | 
			
		||||
--		else
 | 
			
		||||
--			homedecor.beds_on_rightclick(pos, node, clicker)
 | 
			
		||||
--			return itemstack
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
@@ -91,14 +89,11 @@ homedecor.register("bed_extended", {
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
	expand = { forward = "air" },
 | 
			
		||||
	on_rotate = screwdriver.disallow,
 | 
			
		||||
	after_dig_node = function(pos)
 | 
			
		||||
	after_dig_node = function(pos, oldnode, oldmetadata, digger)
 | 
			
		||||
		homedecor.unextend_bed(pos)
 | 
			
		||||
	end,
 | 
			
		||||
--	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
--		local itemname = itemstack:get_name()
 | 
			
		||||
--		if minetest.get_modpath("beds") then
 | 
			
		||||
--			beds.on_rightclick(pos, clicker)
 | 
			
		||||
--		end
 | 
			
		||||
--		homedecor.beds_on_rightclick(pos, node, clicker)
 | 
			
		||||
--		return itemstack
 | 
			
		||||
--	end,
 | 
			
		||||
	drop = "homedecor:bed_regular"
 | 
			
		||||
@@ -123,21 +118,20 @@ homedecor.register("bed_kingsize", {
 | 
			
		||||
	node_box = kbed_cbox,
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
	on_rotate = screwdriver.disallow,
 | 
			
		||||
	after_place_node = unifieddyes.fix_rotation_nsew,
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
	after_dig_node = function(pos, oldnode, oldmetadata, digger)
 | 
			
		||||
		local inv = digger:get_inventory()
 | 
			
		||||
		if digger:get_player_control().sneak and inv:room_for_item("main", "bed_regular 1") then
 | 
			
		||||
		if digger:get_player_control().sneak and inv:room_for_item("main", "homedecor:bed_regular 2") then
 | 
			
		||||
			inv:remove_item("main", "homedecor:bed_kingsize 1")
 | 
			
		||||
			inv:add_item("main", "homedecor:bed_regular 2")
 | 
			
		||||
		end
 | 
			
		||||
	end,
 | 
			
		||||
--	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
--		local itemname = itemstack:get_name()
 | 
			
		||||
--		if minetest.get_modpath("beds") then
 | 
			
		||||
--			beds.on_rightclick(pos, clicker)
 | 
			
		||||
--		end
 | 
			
		||||
--		homedecor.beds_on_rightclick(pos, node, clicker)
 | 
			
		||||
--		return itemstack
 | 
			
		||||
--	end
 | 
			
		||||
--	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
for _, w in pairs({ N_("mahogany"), N_("oak") }) do
 | 
			
		||||
 
 | 
			
		||||
@@ -1,164 +1,175 @@
 | 
			
		||||
 | 
			
		||||
local S = homedecor_i18n.gettext
 | 
			
		||||
 | 
			
		||||
local function N_(x) return x end
 | 
			
		||||
 | 
			
		||||
local bookcolors = {
 | 
			
		||||
	{ N_("red"),    0xffd26466 },
 | 
			
		||||
	{ N_("green"),  0xff62aa66 },
 | 
			
		||||
	{ N_("blue"),   0xff8686d7 },
 | 
			
		||||
	{ N_("violet"), 0xff9c65a7 },
 | 
			
		||||
	{ N_("grey"),   0xff757579 },
 | 
			
		||||
	{ N_("brown"),  0xff896958 }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local BOOK_FORMNAME = "homedecor:book_form"
 | 
			
		||||
 | 
			
		||||
local player_current_book = { }
 | 
			
		||||
 | 
			
		||||
local function book_dig(pos, node, digger)
 | 
			
		||||
	if minetest.is_protected(pos, digger:get_player_name()) then return end
 | 
			
		||||
	local meta = minetest.get_meta(pos)
 | 
			
		||||
	local data = minetest.serialize({
 | 
			
		||||
		title = meta:get_string("title") or "",
 | 
			
		||||
		text = meta:get_string("text") or "",
 | 
			
		||||
		owner = meta:get_string("owner") or "",
 | 
			
		||||
		_recover = meta:get_string("_recover") or "",
 | 
			
		||||
	})
 | 
			
		||||
	local stack = ItemStack({
 | 
			
		||||
		name = "homedecor:book",
 | 
			
		||||
		metadata = data,
 | 
			
		||||
	})
 | 
			
		||||
	stack = digger:get_inventory():add_item("main", stack)
 | 
			
		||||
	if not stack:is_empty() then
 | 
			
		||||
		minetest.item_drop(stack, digger, pos)
 | 
			
		||||
for _, c in ipairs(bookcolors) do
 | 
			
		||||
	local color, hue = unpack(c)
 | 
			
		||||
 | 
			
		||||
	local function book_dig(pos, node, digger)
 | 
			
		||||
		if minetest.is_protected(pos, digger:get_player_name()) then return end
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
		local data = minetest.serialize({
 | 
			
		||||
			title = meta:get_string("title") or "",
 | 
			
		||||
			text = meta:get_string("text") or "",
 | 
			
		||||
			owner = meta:get_string("owner") or "",
 | 
			
		||||
			_recover = meta:get_string("_recover") or "",
 | 
			
		||||
		})
 | 
			
		||||
		local stack = ItemStack({
 | 
			
		||||
			name = "homedecor:book_"..color,
 | 
			
		||||
			metadata = data,
 | 
			
		||||
		})
 | 
			
		||||
		stack = digger:get_inventory():add_item("main", stack)
 | 
			
		||||
		if not stack:is_empty() then
 | 
			
		||||
			minetest.item_drop(stack, digger, pos)
 | 
			
		||||
		end
 | 
			
		||||
		minetest.remove_node(pos)
 | 
			
		||||
	end
 | 
			
		||||
	minetest.remove_node(pos)
 | 
			
		||||
 | 
			
		||||
	homedecor.register("book_"..color, {
 | 
			
		||||
		description = S("Writable Book (@1)", S(color)),
 | 
			
		||||
		mesh = "homedecor_book.obj",
 | 
			
		||||
		tiles = {
 | 
			
		||||
			{ name = "homedecor_book_cover.png", color = hue },
 | 
			
		||||
			{ name = "homedecor_book_edges.png", color = "white" }
 | 
			
		||||
		},
 | 
			
		||||
		overlay_tiles = {
 | 
			
		||||
			{ name = "homedecor_book_cover_trim.png", color = "white" },
 | 
			
		||||
			""
 | 
			
		||||
		},
 | 
			
		||||
		groups = { snappy=3, oddly_breakable_by_hand=3, book=1 },
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		stack_max = 1,
 | 
			
		||||
		on_punch = function(pos, node, puncher, pointed_thing)
 | 
			
		||||
			local fdir = node.param2
 | 
			
		||||
			minetest.swap_node(pos, { name = "homedecor:book_open_"..color, param2 = fdir })
 | 
			
		||||
		end,
 | 
			
		||||
		on_place = function(itemstack, placer, pointed_thing)
 | 
			
		||||
			local plname = placer:get_player_name()
 | 
			
		||||
			local pos = pointed_thing.under
 | 
			
		||||
			local node = minetest.get_node_or_nil(pos)
 | 
			
		||||
			local def = node and minetest.registered_nodes[node.name]
 | 
			
		||||
			if not def or not def.buildable_to then
 | 
			
		||||
				pos = pointed_thing.above
 | 
			
		||||
				node = minetest.get_node_or_nil(pos)
 | 
			
		||||
				def = node and minetest.registered_nodes[node.name]
 | 
			
		||||
				if not def or not def.buildable_to then return itemstack end
 | 
			
		||||
			end
 | 
			
		||||
			if minetest.is_protected(pos, plname) then return itemstack end
 | 
			
		||||
			local fdir = minetest.dir_to_facedir(placer:get_look_dir())
 | 
			
		||||
			minetest.set_node(pos, {
 | 
			
		||||
				name = "homedecor:book_"..color,
 | 
			
		||||
				param2 = fdir,
 | 
			
		||||
			})
 | 
			
		||||
			local text = itemstack:get_metadata() or ""
 | 
			
		||||
			local meta = minetest.get_meta(pos)
 | 
			
		||||
			local data = minetest.deserialize(text) or {}
 | 
			
		||||
			if type(data) ~= "table" then
 | 
			
		||||
				data = {}
 | 
			
		||||
				-- Store raw metadata in case some data is lost by the
 | 
			
		||||
				-- transition to the new meta format, so it is not lost
 | 
			
		||||
				-- and can be recovered if needed.
 | 
			
		||||
				meta:set_string("_recover", text)
 | 
			
		||||
			end
 | 
			
		||||
			meta:set_string("title", data.title or "")
 | 
			
		||||
			meta:set_string("text", data.text or "")
 | 
			
		||||
			meta:set_string("owner", data.owner or "")
 | 
			
		||||
			if data.title and data.title ~= "" then
 | 
			
		||||
				meta:set_string("infotext", data.title)
 | 
			
		||||
			end
 | 
			
		||||
			if not creative.is_enabled_for(plname) then
 | 
			
		||||
				itemstack:take_item()
 | 
			
		||||
			end
 | 
			
		||||
			return itemstack
 | 
			
		||||
		end,
 | 
			
		||||
		on_dig = book_dig,
 | 
			
		||||
		selection_box = {
 | 
			
		||||
		        type = "fixed",
 | 
			
		||||
				fixed = {-0.2, -0.5, -0.25, 0.2, -0.35, 0.25}
 | 
			
		||||
		}
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	homedecor.register("book_open_"..color, {
 | 
			
		||||
		mesh = "homedecor_book_open.obj",
 | 
			
		||||
		tiles = {
 | 
			
		||||
			{ name = "homedecor_book_cover.png", color = hue },
 | 
			
		||||
			{ name = "homedecor_book_edges.png", color = "white" },
 | 
			
		||||
			{ name = "homedecor_book_pages.png", color = "white" }
 | 
			
		||||
		},
 | 
			
		||||
		groups = { snappy=3, oddly_breakable_by_hand=3, not_in_creative_inventory=1 },
 | 
			
		||||
		drop = "homedecor:book_"..color,
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		on_dig = book_dig,
 | 
			
		||||
		on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
			local meta = minetest.get_meta(pos)
 | 
			
		||||
			local player_name = clicker:get_player_name()
 | 
			
		||||
			local title = meta:get_string("title") or ""
 | 
			
		||||
			local text = meta:get_string("text") or ""
 | 
			
		||||
			local owner = meta:get_string("owner") or ""
 | 
			
		||||
			local formspec
 | 
			
		||||
			if owner == "" or owner == player_name then
 | 
			
		||||
				formspec = "size[8,8]"..default.gui_bg..default.gui_bg_img..
 | 
			
		||||
					"field[0.5,1;7.5,0;title;Book title :;"..
 | 
			
		||||
						minetest.formspec_escape(title).."]"..
 | 
			
		||||
					"textarea[0.5,1.5;7.5,7;text;Book content :;"..
 | 
			
		||||
						minetest.formspec_escape(text).."]"..
 | 
			
		||||
					"button_exit[2.5,7.5;3,1;save;Save]"
 | 
			
		||||
			else
 | 
			
		||||
				formspec = "size[8,8]"..default.gui_bg..
 | 
			
		||||
				"button_exit[7,0.25;1,0.5;close;X]"..
 | 
			
		||||
				default.gui_bg_img..
 | 
			
		||||
					"label[0.5,0.5;by "..owner.."]"..
 | 
			
		||||
					"label[0.5,0;"..minetest.formspec_escape(title).."]"..
 | 
			
		||||
					"textarea[0.5,1.5;7.5,7;;"..minetest.formspec_escape(text)..";]"
 | 
			
		||||
			end
 | 
			
		||||
			player_current_book[player_name] = pos
 | 
			
		||||
			minetest.show_formspec(player_name, BOOK_FORMNAME, formspec)
 | 
			
		||||
			return itemstack
 | 
			
		||||
		end,
 | 
			
		||||
		on_punch = function(pos, node, puncher, pointed_thing)
 | 
			
		||||
			local fdir = node.param2
 | 
			
		||||
			minetest.swap_node(pos, { name = "homedecor:book_"..color, param2 = fdir })
 | 
			
		||||
			minetest.sound_play("homedecor_book_close", {
 | 
			
		||||
				pos=pos,
 | 
			
		||||
				max_hear_distance = 3,
 | 
			
		||||
				gain = 2,
 | 
			
		||||
				})
 | 
			
		||||
		end,
 | 
			
		||||
		selection_box = {
 | 
			
		||||
		        type = "fixed",
 | 
			
		||||
				fixed = {-0.35, -0.5, -0.25, 0.35, -0.4, 0.25}
 | 
			
		||||
		}
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local inv_img = "homedecor_book_inv.png^homedecor_book_trim_inv.png"
 | 
			
		||||
 | 
			
		||||
homedecor.register("book", {
 | 
			
		||||
	description = S("Writable Book"),
 | 
			
		||||
	mesh = "homedecor_book.obj",
 | 
			
		||||
	tiles = {
 | 
			
		||||
		"homedecor_book_cover.png",
 | 
			
		||||
		{ name = "homedecor_book_edges.png", color = 0xffffffff },
 | 
			
		||||
		{ name = "homedecor_book_cover_trim.png", color = 0xffffffff }
 | 
			
		||||
	},
 | 
			
		||||
	inventory_image = inv_img,
 | 
			
		||||
	wield_image = inv_img,
 | 
			
		||||
	groups = { snappy=3, oddly_breakable_by_hand=3, book=1, ud_param2_colorable = 1 },
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	paramtype2 = "colorwallmounted",
 | 
			
		||||
	palette = "unifieddyes_palette_colorwallmounted.png",
 | 
			
		||||
	after_dig_node = unifieddyes.after_dig_node,
 | 
			
		||||
	stack_max = 1,
 | 
			
		||||
	on_punch = function(pos, node, puncher, pointed_thing)
 | 
			
		||||
		local fdir = node.param2
 | 
			
		||||
		minetest.swap_node(pos, { name = "homedecor:book_open", param2 = fdir })
 | 
			
		||||
	end,
 | 
			
		||||
	on_place = function(itemstack, placer, pointed_thing)
 | 
			
		||||
		local plname = placer:get_player_name()
 | 
			
		||||
		local pos = pointed_thing.under
 | 
			
		||||
		local node = minetest.get_node_or_nil(pos)
 | 
			
		||||
		local def = node and minetest.registered_nodes[node.name]
 | 
			
		||||
		if not def or not def.buildable_to then
 | 
			
		||||
			pos = pointed_thing.above
 | 
			
		||||
			node = minetest.get_node_or_nil(pos)
 | 
			
		||||
			def = node and minetest.registered_nodes[node.name]
 | 
			
		||||
			if not def or not def.buildable_to then return itemstack end
 | 
			
		||||
		end
 | 
			
		||||
		if minetest.is_protected(pos, plname) then return itemstack end
 | 
			
		||||
		local fdir = minetest.dir_to_facedir(placer:get_look_dir())
 | 
			
		||||
		minetest.set_node(pos, {
 | 
			
		||||
			name = "homedecor:book",
 | 
			
		||||
			param2 = fdir,
 | 
			
		||||
		})
 | 
			
		||||
		local text = itemstack:get_metadata() or ""
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
		local data = minetest.deserialize(text) or {}
 | 
			
		||||
		if type(data) ~= "table" then
 | 
			
		||||
			data = {}
 | 
			
		||||
			-- Store raw metadata in case some data is lost by the
 | 
			
		||||
			-- transition to the new meta format, so it is not lost
 | 
			
		||||
			-- and can be recovered if needed.
 | 
			
		||||
			meta:set_string("_recover", text)
 | 
			
		||||
		end
 | 
			
		||||
		meta:set_string("title", data.title or "")
 | 
			
		||||
		meta:set_string("text", data.text or "")
 | 
			
		||||
		meta:set_string("owner", data.owner or "")
 | 
			
		||||
		if data.title and data.title ~= "" then
 | 
			
		||||
			meta:set_string("infotext", data.title)
 | 
			
		||||
		end
 | 
			
		||||
		if not homedecor.expect_infinite_stacks then
 | 
			
		||||
			itemstack:take_item()
 | 
			
		||||
		end
 | 
			
		||||
		unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		return itemstack
 | 
			
		||||
	end,
 | 
			
		||||
	on_rotate = unifieddyes.fix_after_screwdriver_nsew,
 | 
			
		||||
	on_dig = book_dig,
 | 
			
		||||
	selection_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.2, -0.5, -0.25, 0.2, -0.35, 0.25}
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
homedecor.register("book_open", {
 | 
			
		||||
	mesh = "homedecor_book_open.obj",
 | 
			
		||||
	tiles = {
 | 
			
		||||
		"homedecor_book_cover.png",
 | 
			
		||||
		{ name = "homedecor_book_edges.png", color = 0xffffffff },
 | 
			
		||||
		{ name = "homedecor_book_pages.png", color = 0xffffffff }
 | 
			
		||||
	},
 | 
			
		||||
	groups = { snappy=3, oddly_breakable_by_hand=3, not_in_creative_inventory=1, ud_param2_colorable = 1 },
 | 
			
		||||
	drop = "homedecor:book",
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	paramtype2 = "colorwallmounted",
 | 
			
		||||
	palette = "unifieddyes_palette_colorwallmounted.png",
 | 
			
		||||
	after_place_node = unifieddyes.fix_rotation_nsew,
 | 
			
		||||
	after_dig_node = unifieddyes.after_dig_node,
 | 
			
		||||
	on_rotate = unifieddyes.fix_after_screwdriver_nsew,
 | 
			
		||||
	on_dig = book_dig,
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
		local player_name = clicker:get_player_name()
 | 
			
		||||
		local title = meta:get_string("title") or ""
 | 
			
		||||
		local text = meta:get_string("text") or ""
 | 
			
		||||
		local owner = meta:get_string("owner") or ""
 | 
			
		||||
		local formspec
 | 
			
		||||
		if owner == "" or owner == player_name then
 | 
			
		||||
			formspec = "size[8,8]"..default.gui_bg..default.gui_bg_img..
 | 
			
		||||
				"field[0.5,1;7.5,0;title;Book title :;"..
 | 
			
		||||
					minetest.formspec_escape(title).."]"..
 | 
			
		||||
				"textarea[0.5,1.5;7.5,7;text;Book content :;"..
 | 
			
		||||
					minetest.formspec_escape(text).."]"..
 | 
			
		||||
				"button_exit[2.5,7.5;3,1;save;Save]"
 | 
			
		||||
		else
 | 
			
		||||
			formspec = "size[8,8]"..default.gui_bg..
 | 
			
		||||
			"button_exit[7,0.25;1,0.5;close;X]"..
 | 
			
		||||
			default.gui_bg_img..
 | 
			
		||||
				"label[0.5,0.5;by "..owner.."]"..
 | 
			
		||||
				"label[0.5,0;"..minetest.formspec_escape(title).."]"..
 | 
			
		||||
				"textarea[0.5,1.5;7.5,7;;"..minetest.formspec_escape(text)..";]"
 | 
			
		||||
		end
 | 
			
		||||
		player_current_book[player_name] = pos
 | 
			
		||||
		minetest.show_formspec(player_name, BOOK_FORMNAME, formspec)
 | 
			
		||||
		return itemstack
 | 
			
		||||
	end,
 | 
			
		||||
	on_punch = function(pos, node, puncher, pointed_thing)
 | 
			
		||||
		local fdir = node.param2
 | 
			
		||||
		minetest.swap_node(pos, { name = "homedecor:book", param2 = fdir })
 | 
			
		||||
		minetest.sound_play("homedecor_book_close", {
 | 
			
		||||
			pos=pos,
 | 
			
		||||
			max_hear_distance = 3,
 | 
			
		||||
			gain = 2,
 | 
			
		||||
			})
 | 
			
		||||
	end,
 | 
			
		||||
	selection_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.35, -0.5, -0.25, 0.35, -0.4, 0.25}
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_on_player_receive_fields(function(player, form_name, fields)
 | 
			
		||||
	if form_name ~= BOOK_FORMNAME or not fields.save then
 | 
			
		||||
		return
 | 
			
		||||
	if form_name ~= BOOK_FORMNAME then
 | 
			
		||||
		return false
 | 
			
		||||
	end
 | 
			
		||||
	local player_name = player:get_player_name()
 | 
			
		||||
	local pos = player_current_book[player_name]
 | 
			
		||||
	if not pos then return end
 | 
			
		||||
	if not pos then
 | 
			
		||||
		return true
 | 
			
		||||
	end
 | 
			
		||||
	local meta = minetest.get_meta(pos)
 | 
			
		||||
	local owner = meta:get_string("owner")
 | 
			
		||||
	if owner ~= "" and player_name ~= owner or not fields.save then
 | 
			
		||||
		player_current_book[player_name] = nil
 | 
			
		||||
		return true
 | 
			
		||||
	end
 | 
			
		||||
	meta:set_string("title", fields.title or "")
 | 
			
		||||
	meta:set_string("text", fields.text or "")
 | 
			
		||||
	meta:set_string("owner", player_name)
 | 
			
		||||
@@ -167,69 +178,10 @@ minetest.register_on_player_receive_fields(function(player, form_name, fields)
 | 
			
		||||
	end
 | 
			
		||||
	minetest.log("action", S("@1 has written in a book (title: \"@2\"): \"@3\" at location @4",
 | 
			
		||||
			player:get_player_name(), fields.title, fields.text, minetest.pos_to_string(player:getpos())))
 | 
			
		||||
 | 
			
		||||
	player_current_book[player_name] = nil
 | 
			
		||||
	return true
 | 
			
		||||
end)
 | 
			
		||||
 | 
			
		||||
-- convert old static nodes to param2
 | 
			
		||||
 | 
			
		||||
local bookcolors = {
 | 
			
		||||
	"red",
 | 
			
		||||
	"green",
 | 
			
		||||
	"blue",
 | 
			
		||||
	"violet",
 | 
			
		||||
	"grey",
 | 
			
		||||
	"brown"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
homedecor.old_static_books = {}
 | 
			
		||||
for _, color in ipairs(bookcolors) do
 | 
			
		||||
	table.insert(homedecor.old_static_books, "homedecor:book_"..color)
 | 
			
		||||
	table.insert(homedecor.old_static_books, "homedecor:book_open_"..color)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
minetest.register_lbm({
 | 
			
		||||
	name = "homedecor:convert_books",
 | 
			
		||||
	label = "Convert homedecor books to use param2 color",
 | 
			
		||||
	run_at_every_load = false,
 | 
			
		||||
	nodenames = homedecor.old_static_books,
 | 
			
		||||
	action = function(pos, node)
 | 
			
		||||
		local name = node.name
 | 
			
		||||
		local color = string.sub(name, string.find(name, "_", -7)+1)
 | 
			
		||||
		local newname = "homedecor:book"
 | 
			
		||||
		if string.find(name, "open") then
 | 
			
		||||
			newname = "homedecor:book_open"
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		local old_fdir = math.floor(node.param2 % 32)
 | 
			
		||||
		local new_fdir = 3
 | 
			
		||||
 | 
			
		||||
		if old_fdir == 0 then
 | 
			
		||||
			new_fdir = 3
 | 
			
		||||
		elseif old_fdir == 1 then
 | 
			
		||||
			new_fdir = 4
 | 
			
		||||
		elseif old_fdir == 2 then
 | 
			
		||||
			new_fdir = 2
 | 
			
		||||
		elseif old_fdir == 3 then
 | 
			
		||||
			new_fdir = 5
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		if color == "grey" then
 | 
			
		||||
			color = "dark_grey"
 | 
			
		||||
		elseif color == "violet" then
 | 
			
		||||
			color = "dark_magenta"
 | 
			
		||||
		elseif color == "brown" then
 | 
			
		||||
			color = "dark_orange"
 | 
			
		||||
		elseif color == "blue" then
 | 
			
		||||
			color = "light_blue"
 | 
			
		||||
		else
 | 
			
		||||
			color = "medium_"..color
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		local paletteidx = unifieddyes.getpaletteidx("unifieddyes:"..color, "wallmounted")
 | 
			
		||||
		local param2 = paletteidx + new_fdir
 | 
			
		||||
 | 
			
		||||
		minetest.swap_node(pos, { name = newname, param2 = param2 })
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
		meta:set_string("dye", "unifieddyes:"..color)
 | 
			
		||||
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
minetest.register_alias("homedecor:book", "homedecor:book_grey")
 | 
			
		||||
minetest.register_alias("homedecor:book_open", "homedecor:book_open_grey")
 | 
			
		||||
 
 | 
			
		||||
@@ -25,7 +25,6 @@ minetest.register_entity("homedecor:mesh_desk_fan", {
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
local add_mesh_desk_fan_entity = function(pos)
 | 
			
		||||
	print("in add_mesh_desk_fan_entity()")
 | 
			
		||||
	local param2 = minetest.get_node(pos).param2
 | 
			
		||||
	local entity = minetest.add_entity(pos, "homedecor:mesh_desk_fan")
 | 
			
		||||
	if param2 == 0 then
 | 
			
		||||
 
 | 
			
		||||
@@ -4,15 +4,13 @@ Some code copied and modified from the game's default mods (especially
 | 
			
		||||
doors) and ironzorg's flowers mod.
 | 
			
		||||
 | 
			
		||||
Licenses: 
 | 
			
		||||
* For the lua code, LGPL. 
 | 
			
		||||
* For the door open/close sound, CC-By-SA 3.0 by Slanesh on freesound.org
 | 
			
		||||
* Door open/close sound by Slanesh on freesound.org
 | 
			
		||||
	http://freesound.org/people/Slanesh/sounds/31768/
 | 
			
		||||
* For the gate open/close sound, CC0, by j1987 on freesound.org
 | 
			
		||||
* Gate open/close by j1987 on freesound.org
 | 
			
		||||
	http://freesound.org/people/j1987/sounds/106116/
 | 
			
		||||
* For the doorbell sound, CC0 by guitarguy1985 on freesound.org
 | 
			
		||||
* Doorbell sound by guitarguy1985 on freesound.org
 | 
			
		||||
	http://freesound.org/people/guitarguy1985/sounds/69384/
 | 
			
		||||
* For the book sound, Public Domain by mckinneysound's on http://www.freesfx.co.uk/
 | 
			
		||||
* Book soundn by mckinneysound's on http://www.freesfx.co.uk/
 | 
			
		||||
	http://www.freesfx.co.uk/sfx/book?p=3
 | 
			
		||||
* For the phone ring, Public Domain by andyt's on http://www.freesfx.co.uk/
 | 
			
		||||
* Phone ringing sound by andyt's on http://www.freesfx.co.uk/
 | 
			
		||||
	http://www.freesfx.co.uk/sfx/phone?p=5
 | 
			
		||||
* For all images and everything else, WTFPL.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,9 @@
 | 
			
		||||
default
 | 
			
		||||
basic_materials
 | 
			
		||||
unifieddyes
 | 
			
		||||
homedecor_i18n
 | 
			
		||||
creative
 | 
			
		||||
currency?
 | 
			
		||||
building_blocks?
 | 
			
		||||
signs_lib?
 | 
			
		||||
moreblocks?
 | 
			
		||||
@@ -11,3 +14,6 @@ bucket?
 | 
			
		||||
beds?
 | 
			
		||||
flowers?
 | 
			
		||||
3d_armor?
 | 
			
		||||
skinsdb?
 | 
			
		||||
mesecons?
 | 
			
		||||
darkage?
 | 
			
		||||
 
 | 
			
		||||
@@ -4,6 +4,8 @@ local S = homedecor_i18n.gettext
 | 
			
		||||
 | 
			
		||||
local function N_(x) return x end
 | 
			
		||||
 | 
			
		||||
local m_rules = mesecon and mesecon.rules and mesecon.rules.pplate
 | 
			
		||||
 | 
			
		||||
-- doors
 | 
			
		||||
 | 
			
		||||
local function isSolid(pos, adjust)
 | 
			
		||||
@@ -140,11 +142,6 @@ local door_model_list = {
 | 
			
		||||
		usealpha = true
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{	name = "glass",
 | 
			
		||||
		description = N_("Glass Office Door (@1 opening)"),
 | 
			
		||||
		mesh = "homedecor_door_plain.obj"
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{	name = "wood_glass_oak",
 | 
			
		||||
		description = N_("Glass and Wood, Oak-colored (@1 opening)"),
 | 
			
		||||
		mesh = "homedecor_door_wood_glass.obj",
 | 
			
		||||
@@ -264,6 +261,7 @@ for i, side in ipairs(sides) do
 | 
			
		||||
			drop = "homedecor:door_"..doorname.."_left",
 | 
			
		||||
		    mesecons = {
 | 
			
		||||
		        effector = {
 | 
			
		||||
					rules = m_rules,
 | 
			
		||||
		            action_on = function(pos,node)
 | 
			
		||||
		                local isClosed = getClosed(pos)
 | 
			
		||||
		                if isClosed then
 | 
			
		||||
@@ -405,6 +403,7 @@ for i, g in ipairs(gate_list) do
 | 
			
		||||
		end,
 | 
			
		||||
        mesecons = {
 | 
			
		||||
            effector = {
 | 
			
		||||
				rules = m_rules,
 | 
			
		||||
                action_on = function(pos,node) homedecor.flip_gate(pos,node,nil,gate, "closed") end
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
@@ -433,6 +432,7 @@ for i, g in ipairs(gate_list) do
 | 
			
		||||
        return itemstack
 | 
			
		||||
	end
 | 
			
		||||
    def.mesecons.effector = {
 | 
			
		||||
		rules = m_rules,
 | 
			
		||||
        action_off = function(pos,node) homedecor.flip_gate(pos,node,nil,gate, "open") end
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -657,3 +657,6 @@ minetest.register_alias("homedecor:jpn_door_bottom", "homedecor:door_japanese_cl
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("homedecor:jpn_door_top_open", "air")
 | 
			
		||||
minetest.register_alias("homedecor:jpn_door_bottom_open", "homedecor:door_japanese_open")
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("homedecor:door_glass_right", "doors:door_glass_b")
 | 
			
		||||
minetest.register_alias("homedecor:door_glass_left", "doors:door_glass_a")
 | 
			
		||||
 
 | 
			
		||||
@@ -141,17 +141,3 @@ homedecor.register("telephone", {
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_abm({
 | 
			
		||||
	nodenames = "homedecor:telephone",
 | 
			
		||||
	label = "sfx",
 | 
			
		||||
	interval = 30,
 | 
			
		||||
	chance = 15,
 | 
			
		||||
	action = function(pos, node)
 | 
			
		||||
		minetest.sound_play("homedecor_telephone_ringing", {
 | 
			
		||||
			pos = pos,
 | 
			
		||||
			gain = 1.0,
 | 
			
		||||
			max_hear_distance = 5
 | 
			
		||||
		})
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
@@ -118,7 +118,7 @@ minetest.register_alias("homedecor:deckchair_head", "air")
 | 
			
		||||
homedecor.register("deckchair_striped_blue", {
 | 
			
		||||
	mesh = "homedecor_deckchair.obj",
 | 
			
		||||
	tiles = {"homedecor_deckchair_striped_blue.png"},
 | 
			
		||||
	description = S("Deck Chair"),
 | 
			
		||||
	description = S("Deck Chair (blue striped)"),
 | 
			
		||||
	groups = { snappy = 3 },
 | 
			
		||||
	expand = { forward="placeholder" },
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
@@ -251,6 +251,7 @@ homedecor.register("swing", {
 | 
			
		||||
		place_on = "bottom"
 | 
			
		||||
	},
 | 
			
		||||
	on_place = function(itemstack, placer, pointed_thing)
 | 
			
		||||
		local placer_name = placer:get_player_name() or ""
 | 
			
		||||
		local isceiling, pos = homedecor.find_ceiling(itemstack, placer, pointed_thing)
 | 
			
		||||
		if isceiling then
 | 
			
		||||
			local height = 0
 | 
			
		||||
@@ -263,7 +264,7 @@ homedecor.register("swing", {
 | 
			
		||||
 | 
			
		||||
				if not testreg or not testreg.buildable_to then
 | 
			
		||||
					if i < 1 then
 | 
			
		||||
						minetest.chat_send_player(placer:get_player_name(), "No room under there to hang a swing.")
 | 
			
		||||
						minetest.chat_send_player(placer_name, "No room under there to hang a swing.")
 | 
			
		||||
						return itemstack
 | 
			
		||||
					else
 | 
			
		||||
						break
 | 
			
		||||
@@ -279,11 +280,11 @@ homedecor.register("swing", {
 | 
			
		||||
 | 
			
		||||
			minetest.set_node({ x=pos.x, y=pos.y-height, z=pos.z }, { name = "homedecor:swing", param2 = fdir })
 | 
			
		||||
 | 
			
		||||
			if not homedecor.expect_infinite_stacks then
 | 
			
		||||
			if not creative.is_enabled_for(placer_name) then
 | 
			
		||||
				itemstack:take_item()
 | 
			
		||||
			end
 | 
			
		||||
		else
 | 
			
		||||
			minetest.chat_send_player(placer:get_player_name(), "You have to point at the bottom side of an overhanging object to place a swing.")
 | 
			
		||||
			minetest.chat_send_player(placer_name, "You have to point at the bottom side of an overhanging object to place a swing.")
 | 
			
		||||
		end
 | 
			
		||||
		return itemstack
 | 
			
		||||
	end,
 | 
			
		||||
@@ -367,7 +368,7 @@ local shrub_cbox = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
 | 
			
		||||
 | 
			
		||||
for _, color in ipairs(homedecor.shrub_colors) do
 | 
			
		||||
	minetest.register_node("homedecor:shrubbery_large_"..color, {
 | 
			
		||||
		description = S("Shrubbery (@1)", S(color)),
 | 
			
		||||
		description = S("Shrubbery (large, @1)", S(color)),
 | 
			
		||||
		drawtype = "mesh",
 | 
			
		||||
		mesh = "homedecor_cube.obj",
 | 
			
		||||
		tiles = {"homedecor_shrubbery_"..color..".png"},
 | 
			
		||||
 
 | 
			
		||||
@@ -81,8 +81,9 @@ homedecor.register("kitchen_chair_padded", {
 | 
			
		||||
	collision_box = kc_cbox,
 | 
			
		||||
	groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, ud_param2_colorable = 1},
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
	after_place_node = unifieddyes.fix_rotation_nsew,
 | 
			
		||||
	after_dig_node = unifieddyes.after_dig_node,
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
	on_rotate = unifieddyes.fix_after_screwdriver_nsew,
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		pos.y = pos.y+0 -- where do I put my ass ?
 | 
			
		||||
@@ -105,8 +106,9 @@ homedecor.register("armchair", {
 | 
			
		||||
	groups = {snappy=3, ud_param2_colorable = 1},
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
	node_box = ac_cbox,
 | 
			
		||||
	after_place_node = unifieddyes.fix_rotation_nsew,
 | 
			
		||||
	after_dig_node = unifieddyes.after_dig_node,
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
	on_rotate = unifieddyes.fix_after_screwdriver_nsew,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -162,7 +164,25 @@ minetest.register_alias('armchair', 'homedecor:armchair')
 | 
			
		||||
 | 
			
		||||
homedecor.old_static_chairs = {}
 | 
			
		||||
 | 
			
		||||
for _, color in ipairs(lrfurn.colors) do
 | 
			
		||||
local chair_colors = {
 | 
			
		||||
	"black",
 | 
			
		||||
	"brown",
 | 
			
		||||
	"blue",
 | 
			
		||||
	"cyan",
 | 
			
		||||
	"dark_grey",
 | 
			
		||||
	"dark_green",
 | 
			
		||||
	"green",
 | 
			
		||||
	"grey",
 | 
			
		||||
	"magenta",
 | 
			
		||||
	"orange",
 | 
			
		||||
	"pink",
 | 
			
		||||
	"red",
 | 
			
		||||
	"violet",
 | 
			
		||||
	"white",
 | 
			
		||||
	"yellow",
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
for _, color in ipairs(chair_colors) do
 | 
			
		||||
	table.insert(homedecor.old_static_chairs, "homedecor:chair_"..color)
 | 
			
		||||
	table.insert(homedecor.old_static_chairs, "homedecor:armchair_"..color)
 | 
			
		||||
end
 | 
			
		||||
@@ -211,8 +231,6 @@ minetest.register_lbm({
 | 
			
		||||
		local param2 = paletteidx + new_fdir
 | 
			
		||||
		local newname = "homedecor:armchair"
 | 
			
		||||
 | 
			
		||||
		print(name, dump(a), dump(b), dump(color).."("..dump(paletteidx)..")", dump(param2))
 | 
			
		||||
 | 
			
		||||
		if node.name == "homedecor:chair" then
 | 
			
		||||
			newname = "homedecor:kitchen_chair_wood"
 | 
			
		||||
		elseif string.find(node.name, "homedecor:chair_") then
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "homedecor:table",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "group:wood","group:wood", "group:wood" },
 | 
			
		||||
		{ "default:wood","default:wood", "default:wood" },
 | 
			
		||||
		{ "group:stick", "", "group:stick" },
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
@@ -70,6 +70,17 @@ minetest.register_craft({
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
unifieddyes.register_color_craft({
 | 
			
		||||
	output = "homedecor:armchair",
 | 
			
		||||
	palette = "wallmounted",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	neutral_node = "homedecor:armchair",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		"NEUTRAL_NODE",
 | 
			
		||||
		"MAIN_DYE"
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = "homedecor:kitchen_chair_padded",
 | 
			
		||||
@@ -79,6 +90,17 @@ minetest.register_craft({
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
unifieddyes.register_color_craft({
 | 
			
		||||
	output = "homedecor:kitchen_chair_padded",
 | 
			
		||||
	palette = "wallmounted",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	neutral_node = "homedecor:kitchen_chair_padded",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		"NEUTRAL_NODE",
 | 
			
		||||
		"MAIN_DYE"
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "fuel",
 | 
			
		||||
	recipe = "homedecor:kitchen_chair_wood",
 | 
			
		||||
@@ -106,6 +128,17 @@ minetest.register_craft({
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
unifieddyes.register_color_craft({
 | 
			
		||||
	output = "homedecor:standing_lamp_off",
 | 
			
		||||
	palette = "extended",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	neutral_node = "homedecor:standing_lamp_off",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		"NEUTRAL_NODE",
 | 
			
		||||
		"MAIN_DYE"
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "fuel",
 | 
			
		||||
	recipe = "homedecor:table_lamp_off",
 | 
			
		||||
@@ -131,14 +164,34 @@ minetest.register_craft({
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "homedecor:standing_lamp_off",
 | 
			
		||||
	output = "homedecor:table_lamp_off",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "homedecor:table_lamp_off"},
 | 
			
		||||
		{ "group:stick"},
 | 
			
		||||
		{ "group:stick"},
 | 
			
		||||
		{ "wool:white", "default:torch", "wool:white"},
 | 
			
		||||
		{ "", "group:stick", ""},
 | 
			
		||||
		{ "", "moreblocks:slab_wood", "" },
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "homedecor:table_lamp_off",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "cottages:wool", "default:torch", "cottages:wool"},
 | 
			
		||||
		{ "", "group:stick", ""},
 | 
			
		||||
		{ "", "moreblocks:slab_wood", "" },
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
unifieddyes.register_color_craft({
 | 
			
		||||
	output = "homedecor:table_lamp_off",
 | 
			
		||||
	palette = "extended",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	neutral_node = "homedecor:table_lamp_off",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		"NEUTRAL_NODE",
 | 
			
		||||
		"MAIN_DYE"
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "homedecor:toilet",
 | 
			
		||||
	recipe = {
 | 
			
		||||
@@ -152,6 +205,7 @@ minetest.register_craft({
 | 
			
		||||
	output = "homedecor:sink",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "group:marble","bucket:bucket_empty", "group:marble" },
 | 
			
		||||
		{ "", "group:marble", "" }
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -172,7 +226,7 @@ minetest.register_craft({
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "homedecor:shower_tray",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "group:marble","bucket:bucket_water", "group:marble" },
 | 
			
		||||
		{ "group:marble","bucket:bucket_empty", "group:marble" },
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -213,20 +213,26 @@ homedecor.register("soda_machine", {
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
	on_rotate = screwdriver.rotate_simple,
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		local playername = clicker:get_player_name()
 | 
			
		||||
		local wielditem = clicker:get_wielded_item()
 | 
			
		||||
		local wieldname = wielditem:get_name()
 | 
			
		||||
		local fdir_to_fwd = { {0, -1}, {-1, 0}, {0, 1}, {1, 0} }
 | 
			
		||||
		local fdir = node.param2
 | 
			
		||||
		local pos_drop = { x=pos.x+fdir_to_fwd[fdir+1][1], y=pos.y, z=pos.z+fdir_to_fwd[fdir+1][2] }
 | 
			
		||||
		if wieldname == "homedecor:coin" then
 | 
			
		||||
			wielditem:take_item()
 | 
			
		||||
			clicker:set_wielded_item(wielditem)
 | 
			
		||||
		if wieldname == "currency:minegeld_cent_25" then
 | 
			
		||||
			minetest.spawn_item(pos_drop, "homedecor:soda_can")
 | 
			
		||||
			minetest.sound_play("insert_coin", {
 | 
			
		||||
				pos=pos, max_hear_distance = 5
 | 
			
		||||
			})
 | 
			
		||||
			if not creative.is_enabled_for(playername) then
 | 
			
		||||
				wielditem:take_item()
 | 
			
		||||
				clicker:set_wielded_item(wielditem)
 | 
			
		||||
				return wielditem
 | 
			
		||||
			end
 | 
			
		||||
		else
 | 
			
		||||
			minetest.chat_send_player(clicker:get_player_name(), S("Please insert a coin in the machine."))
 | 
			
		||||
			minetest.chat_send_player(playername, S("Please insert a coin in the machine."))
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("homedecor:coin", "currency:minegeld_cent_25")
 | 
			
		||||
 
 | 
			
		||||
@@ -53,18 +53,8 @@ homedecor.wall_fdir_to_fwd = {
 | 
			
		||||
	{ -1,  0 },
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local placeholder_node = "homedecor:expansion_placeholder"
 | 
			
		||||
minetest.register_node(placeholder_node, {
 | 
			
		||||
	description = S("Expansion placeholder (you hacker you!)"),
 | 
			
		||||
	groups = { not_in_creative_inventory=1 },
 | 
			
		||||
	drawtype = "airlike",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	selection_box = { type = "fixed", fixed = { 0, 0, 0, 0, 0, 0 } },
 | 
			
		||||
	is_ground_content = false,
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	buildable_to = false,
 | 
			
		||||
})
 | 
			
		||||
local placeholder_node = "air"
 | 
			
		||||
minetest.register_alias("homedecor:expansion_placeholder", "air")
 | 
			
		||||
 | 
			
		||||
--- select which node was pointed at based on it being known, not ignored, buildable_to
 | 
			
		||||
-- returns nil if no node could be selected
 | 
			
		||||
@@ -94,7 +84,7 @@ local function is_buildable_to(placer_name, ...)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- place one or two nodes if and only if both can be placed
 | 
			
		||||
local function stack(itemstack, placer, fdir, pos, def, pos2, node1, node2)
 | 
			
		||||
local function stack(itemstack, placer, fdir, pos, def, pos2, node1, node2, pointed_thing)
 | 
			
		||||
	local placer_name = placer:get_player_name() or ""
 | 
			
		||||
	if is_buildable_to(placer_name, pos, pos2) then
 | 
			
		||||
		local lfdir = fdir or minetest.dir_to_facedir(placer:get_look_dir())
 | 
			
		||||
@@ -111,10 +101,10 @@ local function stack(itemstack, placer, fdir, pos, def, pos2, node1, node2)
 | 
			
		||||
		-- call after_place_node of the placed node if available
 | 
			
		||||
		local ctrl_node_def = minetest.registered_nodes[node1]
 | 
			
		||||
		if ctrl_node_def and ctrl_node_def.after_place_node then
 | 
			
		||||
			ctrl_node_def.after_place_node(pos, placer)
 | 
			
		||||
			ctrl_node_def.after_place_node(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		if not homedecor.expect_infinite_stacks then
 | 
			
		||||
		if not creative.is_enabled_for(placer_name) then
 | 
			
		||||
			itemstack:take_item()
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
@@ -140,7 +130,7 @@ function homedecor.stack_vertically(itemstack, placer, pointed_thing, node1, nod
 | 
			
		||||
 | 
			
		||||
	local top_pos = { x=pos.x, y=pos.y+1, z=pos.z }
 | 
			
		||||
 | 
			
		||||
	return stack(itemstack, placer, nil, pos, def, top_pos, node1, node2)
 | 
			
		||||
	return stack(itemstack, placer, nil, pos, def, top_pos, node1, node2, pointed_thing)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- Stack one door node above another
 | 
			
		||||
@@ -162,7 +152,7 @@ function homedecor.stack_wing(itemstack, placer, pointed_thing, node1, node2, no
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	local top_pos = { x=pos.x, y=pos.y+1, z=pos.z }
 | 
			
		||||
	return stack(itemstack, placer, fdir, pos, def, top_pos, node1, node2)
 | 
			
		||||
	return stack(itemstack, placer, fdir, pos, def, top_pos, node1, node2, pointed_thing)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function homedecor.stack_sideways(itemstack, placer, pointed_thing, node1, node2, dir)
 | 
			
		||||
@@ -177,13 +167,14 @@ function homedecor.stack_sideways(itemstack, placer, pointed_thing, node1, node2
 | 
			
		||||
 | 
			
		||||
	local pos2 = { x = pos.x + fdir_transform[fdir+1][1], y=pos.y, z = pos.z + fdir_transform[fdir+1][2] }
 | 
			
		||||
 | 
			
		||||
	return stack(itemstack, placer, fdir, pos, def, pos2, node1, node2)
 | 
			
		||||
	return stack(itemstack, placer, fdir, pos, def, pos2, node1, node2, pointed_thing)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function homedecor.bed_expansion(pos, placer, itemstack, pointed_thing, trybunks)
 | 
			
		||||
 | 
			
		||||
	local thisnode = minetest.get_node(pos)
 | 
			
		||||
	local fdir = thisnode.param2
 | 
			
		||||
	local param2 = thisnode.param2
 | 
			
		||||
	local fdir = param2 % 8
 | 
			
		||||
 | 
			
		||||
	local fxd = homedecor.wall_fdir_to_fwd[fdir+1][1]
 | 
			
		||||
	local fzd = homedecor.wall_fdir_to_fwd[fdir+1][2]
 | 
			
		||||
@@ -219,14 +210,22 @@ function homedecor.bed_expansion(pos, placer, itemstack, pointed_thing, trybunks
 | 
			
		||||
	local rightpos = {x=pos.x+rxd, y=pos.y, z=pos.z+rzd}
 | 
			
		||||
	local rightnode = minetest.get_node(rightpos)
 | 
			
		||||
 | 
			
		||||
	local inv = placer:get_inventory()
 | 
			
		||||
 | 
			
		||||
	if leftnode.name == "homedecor:bed_regular" then
 | 
			
		||||
		local newname = string.gsub(thisnode.name, "_regular", "_kingsize")
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
		local leftmeta = minetest.get_meta(leftpos)
 | 
			
		||||
 | 
			
		||||
		minetest.set_node(pos, {name = "air"})
 | 
			
		||||
		minetest.set_node(leftpos, { name = newname, param2 = fdir})
 | 
			
		||||
		minetest.swap_node(leftpos, { name = newname, param2 = param2})
 | 
			
		||||
	elseif rightnode.name == "homedecor:bed_regular" then
 | 
			
		||||
		local newname = string.gsub(thisnode.name, "_regular", "_kingsize")
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
		local rightmeta = minetest.get_meta(rightpos)
 | 
			
		||||
 | 
			
		||||
		minetest.set_node(rightpos, {name = "air"})
 | 
			
		||||
		minetest.set_node(pos, { name = newname, param2 = fdir})
 | 
			
		||||
		minetest.swap_node(pos, { name = newname, param2 = param2})
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	local toppos = {x=pos.x, y=pos.y+1.0, z=pos.z}
 | 
			
		||||
@@ -234,18 +233,19 @@ function homedecor.bed_expansion(pos, placer, itemstack, pointed_thing, trybunks
 | 
			
		||||
 | 
			
		||||
	if trybunks and is_buildable_to(placer_name, toppos, topposfwd) then
 | 
			
		||||
		local newname = string.gsub(thisnode.name, "_regular", "_extended")
 | 
			
		||||
		minetest.set_node(toppos, { name = thisnode.name, param2 = fdir})
 | 
			
		||||
		minetest.set_node(pos, { name = newname, param2 = fdir})
 | 
			
		||||
		local newparam2 = param2 % 8
 | 
			
		||||
		minetest.swap_node(toppos, { name = thisnode.name, param2 = param2})
 | 
			
		||||
		minetest.swap_node(pos, { name = newname, param2 = param2})
 | 
			
		||||
		itemstack:take_item()
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function homedecor.unextend_bed(pos)
 | 
			
		||||
	local bottomnode = minetest.get_node({x=pos.x, y=pos.y-1.0, z=pos.z})
 | 
			
		||||
	local fdir = bottomnode.param2
 | 
			
		||||
	local param2 = bottomnode.param2
 | 
			
		||||
	if bottomnode.name == "homedecor:bed_extended" then
 | 
			
		||||
		local newname = string.gsub(bottomnode.name, "_extended", "_regular")
 | 
			
		||||
		minetest.set_node({x=pos.x, y=pos.y-1.0, z=pos.z}, { name = newname, param2 = fdir})
 | 
			
		||||
		minetest.swap_node({x=pos.x, y=pos.y-1.0, z=pos.z}, { name = newname, param2 = param2})
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
@@ -257,6 +257,8 @@ function homedecor.place_banister(itemstack, placer, pointed_thing)
 | 
			
		||||
	if not pos then return itemstack end
 | 
			
		||||
 | 
			
		||||
	local fdir = minetest.dir_to_facedir(placer:get_look_dir())
 | 
			
		||||
	local meta = itemstack:get_meta()
 | 
			
		||||
	local pindex = meta:get_int("palette_index")
 | 
			
		||||
 | 
			
		||||
	local abovepos  = { x=pos.x, y=pos.y+1, z=pos.z }
 | 
			
		||||
	local abovenode = minetest.get_node(abovepos)
 | 
			
		||||
@@ -360,14 +362,6 @@ function homedecor.place_banister(itemstack, placer, pointed_thing)
 | 
			
		||||
		fdir = right_fwd_node.param2
 | 
			
		||||
		pos = fwd_pos
 | 
			
		||||
		new_place_name = string.gsub(right_fwd_node.name, "_diagonal_.-$", "_horizontal")
 | 
			
		||||
 | 
			
		||||
	-- try to follow a horizontal with another of the same
 | 
			
		||||
	elseif left_node and string.find(left_node.name, "homedecor:banister_.*_horizontal") then
 | 
			
		||||
		fdir = left_node.param2
 | 
			
		||||
		new_place_name = left_node.name
 | 
			
		||||
	elseif right_node and string.find(right_node.name, "homedecor:banister_.*_horizontal") then
 | 
			
		||||
		fdir = right_node.param2
 | 
			
		||||
		new_place_name = right_node.name
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	-- manually invert left-right orientation
 | 
			
		||||
@@ -379,7 +373,7 @@ function homedecor.place_banister(itemstack, placer, pointed_thing)
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	minetest.set_node(pos, {name = new_place_name, param2 = fdir})
 | 
			
		||||
	minetest.set_node(pos, {name = new_place_name, param2 = fdir+pindex})
 | 
			
		||||
	itemstack:take_item()
 | 
			
		||||
	return itemstack
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
@@ -19,4 +19,6 @@ dofile(handlerpath.."registration.lua")
 | 
			
		||||
-- some nodes have particle spawners
 | 
			
		||||
dofile(handlerpath.."water_particles.lua")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
dofile(handlerpath.."mt_game_beds_functions.lua")
 | 
			
		||||
dofile(handlerpath.."sit.lua")
 | 
			
		||||
 
 | 
			
		||||
@@ -182,7 +182,7 @@ function homedecor.handle_inventory(name, def, original_def)
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = "homedecor:" .. locked_name,
 | 
			
		||||
			recipe = { "homedecor:" .. name, "default:steel_ingot" }
 | 
			
		||||
			recipe = { "homedecor:" .. name, "basic_materials:padlock" }
 | 
			
		||||
		})
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										175
									
								
								homedecor/handlers/mt_game_beds_functions.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,175 @@
 | 
			
		||||
-- This file is a partial copy of functions.lua from minetest_game's beds mod
 | 
			
		||||
-- with changes needed for homedecor's beds.
 | 
			
		||||
 | 
			
		||||
local pi = math.pi
 | 
			
		||||
local is_sp = minetest.is_singleplayer()
 | 
			
		||||
local enable_respawn = minetest.settings:get_bool("enable_bed_respawn")
 | 
			
		||||
if enable_respawn == nil then
 | 
			
		||||
	enable_respawn = true
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- Helper functions
 | 
			
		||||
 | 
			
		||||
local function get_look_yaw(pos)
 | 
			
		||||
	local n = minetest.get_node(pos)
 | 
			
		||||
	local fdir = n.param2 % 4
 | 
			
		||||
	if fdir == 0 then
 | 
			
		||||
		return pi / 2, fdir
 | 
			
		||||
	elseif fdir == 1 then
 | 
			
		||||
		return -pi / 2, fdir
 | 
			
		||||
	elseif fdir == 3 then
 | 
			
		||||
		return pi, fdir
 | 
			
		||||
	else
 | 
			
		||||
		return 0, fdir
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function is_night_skip_enabled()
 | 
			
		||||
	local enable_night_skip = minetest.settings:get_bool("enable_bed_night_skip")
 | 
			
		||||
	if enable_night_skip == nil then
 | 
			
		||||
		enable_night_skip = true
 | 
			
		||||
	end
 | 
			
		||||
	return enable_night_skip
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function check_in_beds(players)
 | 
			
		||||
	local in_bed = beds.player
 | 
			
		||||
	if not players then
 | 
			
		||||
		players = minetest.get_connected_players()
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	for n, player in ipairs(players) do
 | 
			
		||||
		local name = player:get_player_name()
 | 
			
		||||
		if not in_bed[name] then
 | 
			
		||||
			return false
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	return #players > 0
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function get_player_in_bed()
 | 
			
		||||
	local player_in_bed = 0
 | 
			
		||||
	for k,v in pairs(beds.player) do
 | 
			
		||||
		player_in_bed = player_in_bed + 1
 | 
			
		||||
	end
 | 
			
		||||
	return player_in_bed
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function lay_down(player, pos, bed_pos, state, skip)
 | 
			
		||||
	local name = player:get_player_name()
 | 
			
		||||
	local hud_flags = player:hud_get_flags()
 | 
			
		||||
 | 
			
		||||
	if not player or not name then
 | 
			
		||||
		return
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	-- stand up
 | 
			
		||||
	if state ~= nil and not state then
 | 
			
		||||
		local p = beds.pos[name] or nil
 | 
			
		||||
		if beds.player[name] ~= nil then
 | 
			
		||||
			beds.player[name] = nil
 | 
			
		||||
		end
 | 
			
		||||
		-- skip here to prevent sending player specific changes (used for leaving players)
 | 
			
		||||
		if skip then
 | 
			
		||||
			return
 | 
			
		||||
		end
 | 
			
		||||
		if p then
 | 
			
		||||
			player:setpos(p)
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		-- physics, eye_offset, etc
 | 
			
		||||
		player:set_eye_offset({x = 0, y = 0, z = 0}, {x = 0, y = 0, z = 0})
 | 
			
		||||
		player:set_look_horizontal(math.random(1, 180) / 100)
 | 
			
		||||
		default.player_attached[name] = false
 | 
			
		||||
		player:set_physics_override(1, 1, 1)
 | 
			
		||||
		hud_flags.wielditem = true
 | 
			
		||||
		default.player_set_animation(player, "stand" , 30)
 | 
			
		||||
 | 
			
		||||
	-- lay down
 | 
			
		||||
	else
 | 
			
		||||
		beds.player[name] = 1
 | 
			
		||||
		beds.pos[name] = pos
 | 
			
		||||
		-- physics, eye_offset, etc
 | 
			
		||||
		player:set_eye_offset({x = 0, y = -13, z = 0}, {x = 0, y = 0, z = 0})
 | 
			
		||||
		local yaw, fdir = get_look_yaw(bed_pos)
 | 
			
		||||
		player:set_look_horizontal(yaw)
 | 
			
		||||
		local offsets = {
 | 
			
		||||
			[0] = {0.5,     0},
 | 
			
		||||
			[1] = {-0.5,    0},
 | 
			
		||||
			[2] = {0,    -0.5},
 | 
			
		||||
			[3] = {0,     0.5}
 | 
			
		||||
		}
 | 
			
		||||
		local p = {x = bed_pos.x + offsets[fdir][1], y = bed_pos.y, z = bed_pos.z + offsets[fdir][2]}
 | 
			
		||||
		player:set_physics_override(0, 0, 0)
 | 
			
		||||
		player:setpos(p)
 | 
			
		||||
		default.player_attached[name] = true
 | 
			
		||||
		hud_flags.wielditem = false
 | 
			
		||||
		default.player_set_animation(player, "lay" , 0)
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	player:hud_set_flags(hud_flags)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function update_formspecs(finished)
 | 
			
		||||
	local ges = #minetest.get_connected_players()
 | 
			
		||||
	local player_in_bed = get_player_in_bed()
 | 
			
		||||
	local form_n
 | 
			
		||||
	local is_majority = (ges / 2) < player_in_bed
 | 
			
		||||
 | 
			
		||||
	if finished then
 | 
			
		||||
		form_n = beds.formspec .. "label[2.7,11; Good morning.]"
 | 
			
		||||
	else
 | 
			
		||||
		form_n = beds.formspec .. "label[2.2,11;" .. tostring(player_in_bed) ..
 | 
			
		||||
			" of " .. tostring(ges) .. " players are in bed]"
 | 
			
		||||
		if is_majority and is_night_skip_enabled() then
 | 
			
		||||
			form_n = form_n .. "button_exit[2,8;4,0.75;force;Force night skip]"
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	for name,_ in pairs(beds.player) do
 | 
			
		||||
		minetest.show_formspec(name, "beds_form", form_n)
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-- Public functions
 | 
			
		||||
 | 
			
		||||
function homedecor.beds_on_rightclick(pos, node, player)
 | 
			
		||||
	local name = player:get_player_name()
 | 
			
		||||
	local ppos = player:getpos()
 | 
			
		||||
	local tod = minetest.get_timeofday()
 | 
			
		||||
 | 
			
		||||
	if tod > 0.2 and tod < 0.805 then
 | 
			
		||||
		if beds.player[name] then
 | 
			
		||||
			lay_down(player, nil, nil, false)
 | 
			
		||||
		end
 | 
			
		||||
		minetest.chat_send_player(name, "You can only sleep at night.")
 | 
			
		||||
		return
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	-- move to bed
 | 
			
		||||
	if not beds.player[name] then
 | 
			
		||||
		lay_down(player, ppos, pos)
 | 
			
		||||
		beds.set_spawns() -- save respawn positions when entering bed
 | 
			
		||||
	else
 | 
			
		||||
		lay_down(player, nil, nil, false)
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	if not is_sp then
 | 
			
		||||
		update_formspecs(false)
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	-- skip the night and let all players stand up
 | 
			
		||||
	if check_in_beds() then
 | 
			
		||||
		minetest.after(2, function()
 | 
			
		||||
			if not is_sp then
 | 
			
		||||
				update_formspecs(is_night_skip_enabled())
 | 
			
		||||
			end
 | 
			
		||||
			if is_night_skip_enabled() then
 | 
			
		||||
				beds.skip_night()
 | 
			
		||||
				beds.kick_players()
 | 
			
		||||
			end
 | 
			
		||||
		end)
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
@@ -30,8 +30,8 @@ function homedecor.start_particle_spawner(pos, node, particledef, soundname)
 | 
			
		||||
			end, s_handle)
 | 
			
		||||
		end
 | 
			
		||||
		minetest.delete_particlespawner(id)
 | 
			
		||||
		this_spawner_meta:set_int("active", nil)
 | 
			
		||||
		this_spawner_meta:set_int("sound", nil)
 | 
			
		||||
		this_spawner_meta:set_int("active", 0)
 | 
			
		||||
		this_spawner_meta:set_int("sound", 0)
 | 
			
		||||
		return
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
@@ -109,6 +109,6 @@ function homedecor.stop_particle_spawner(pos)
 | 
			
		||||
		end, s_handle)
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	this_spawner_meta:set_int("active", nil)
 | 
			
		||||
	this_spawner_meta:set_int("sound", nil)
 | 
			
		||||
	this_spawner_meta:set_int("active", 0)
 | 
			
		||||
	this_spawner_meta:set_int("sound", 0)
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
@@ -11,12 +11,8 @@ local modpath = minetest.get_modpath("homedecor")
 | 
			
		||||
 | 
			
		||||
local S = homedecor_i18n.gettext
 | 
			
		||||
 | 
			
		||||
homedecor = {
 | 
			
		||||
	modpath = modpath,
 | 
			
		||||
 | 
			
		||||
	-- infinite stacks
 | 
			
		||||
	expect_infinite_stacks = minetest.setting_getbool("creative_mode") and not minetest.get_modpath("unified_inventory")
 | 
			
		||||
}
 | 
			
		||||
homedecor = {}
 | 
			
		||||
homedecor.modpath = modpath
 | 
			
		||||
 | 
			
		||||
-- Determine if the item being pointed at is the underside of a node (e.g a ceiling)
 | 
			
		||||
function homedecor.find_ceiling(itemstack, placer, pointed_thing)
 | 
			
		||||
@@ -123,4 +119,6 @@ dofile(modpath.."/wardrobe.lua")
 | 
			
		||||
 | 
			
		||||
dofile(modpath.."/crafts.lua")
 | 
			
		||||
 | 
			
		||||
print("[HomeDecor] " .. S("Loaded!"))
 | 
			
		||||
if minetest.settings:get_bool("log_mod") then
 | 
			
		||||
	minetest.log("action", "[HomeDecor] " .. S("Loaded!"))
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
@@ -21,6 +21,15 @@ minetest.register_node("homedecor:glowlight_half", {
 | 
			
		||||
		"homedecor_glowlight_thick_sides.png",
 | 
			
		||||
		"homedecor_glowlight_thick_sides.png"
 | 
			
		||||
	},
 | 
			
		||||
	overlay_tiles = {
 | 
			
		||||
		{ name = "homedecor_glowlight_top_overlay.png", color = "white"},
 | 
			
		||||
		"",
 | 
			
		||||
		{ name = "homedecor_glowlight_thick_sides_overlay.png", color = "white"},
 | 
			
		||||
		{ name = "homedecor_glowlight_thick_sides_overlay.png", color = "white"},
 | 
			
		||||
		{ name = "homedecor_glowlight_thick_sides_overlay.png", color = "white"},
 | 
			
		||||
		{ name = "homedecor_glowlight_thick_sides_overlay.png", color = "white"},
 | 
			
		||||
	},
 | 
			
		||||
	use_texture_alpha = true,
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "colorwallmounted",
 | 
			
		||||
@@ -35,8 +44,9 @@ minetest.register_node("homedecor:glowlight_half", {
 | 
			
		||||
	groups = { snappy = 3, ud_param2_colorable = 1 },
 | 
			
		||||
	light_source = default.LIGHT_MAX,
 | 
			
		||||
	sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
	after_place_node = unifieddyes.fix_rotation,
 | 
			
		||||
	after_dig_node = unifieddyes.after_dig_node
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("homedecor:glowlight_quarter", {
 | 
			
		||||
@@ -49,6 +59,15 @@ minetest.register_node("homedecor:glowlight_quarter", {
 | 
			
		||||
		"homedecor_glowlight_thin_sides.png",
 | 
			
		||||
		"homedecor_glowlight_thin_sides.png"
 | 
			
		||||
	},
 | 
			
		||||
	overlay_tiles = {
 | 
			
		||||
		{ name = "homedecor_glowlight_top_overlay.png", color = "white"},
 | 
			
		||||
		"",
 | 
			
		||||
		{ name = "homedecor_glowlight_thin_sides_overlay.png", color = "white"},
 | 
			
		||||
		{ name = "homedecor_glowlight_thin_sides_overlay.png", color = "white"},
 | 
			
		||||
		{ name = "homedecor_glowlight_thin_sides_overlay.png", color = "white"},
 | 
			
		||||
		{ name = "homedecor_glowlight_thin_sides_overlay.png", color = "white"},
 | 
			
		||||
	},
 | 
			
		||||
	use_texture_alpha = true,
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "colorwallmounted",
 | 
			
		||||
@@ -63,8 +82,9 @@ minetest.register_node("homedecor:glowlight_quarter", {
 | 
			
		||||
	groups = { snappy = 3, ud_param2_colorable = 1 },
 | 
			
		||||
	light_source = default.LIGHT_MAX-1,
 | 
			
		||||
	sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
	after_place_node = unifieddyes.fix_rotation,
 | 
			
		||||
	after_dig_node = unifieddyes.after_dig_node
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("homedecor:glowlight_small_cube", {
 | 
			
		||||
@@ -77,6 +97,15 @@ minetest.register_node("homedecor:glowlight_small_cube", {
 | 
			
		||||
		"homedecor_glowlight_cube_sides.png",
 | 
			
		||||
		"homedecor_glowlight_cube_sides.png"
 | 
			
		||||
	},
 | 
			
		||||
	overlay_tiles = {
 | 
			
		||||
		{ name = "homedecor_glowlight_cube_tb_overlay.png", color = "white"},
 | 
			
		||||
		{ name = "homedecor_glowlight_cube_tb_overlay.png", color = "white"},
 | 
			
		||||
		{ name = "homedecor_glowlight_cube_sides_overlay.png", color = "white"},
 | 
			
		||||
		{ name = "homedecor_glowlight_cube_sides_overlay.png", color = "white"},
 | 
			
		||||
		{ name = "homedecor_glowlight_cube_sides_overlay.png", color = "white"},
 | 
			
		||||
		{ name = "homedecor_glowlight_cube_sides_overlay.png", color = "white"},
 | 
			
		||||
	},
 | 
			
		||||
	use_texture_alpha = true,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "colorwallmounted",
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
@@ -91,15 +120,17 @@ minetest.register_node("homedecor:glowlight_small_cube", {
 | 
			
		||||
	groups = { snappy = 3, ud_param2_colorable = 1 },
 | 
			
		||||
	light_source = default.LIGHT_MAX-1,
 | 
			
		||||
	sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
	after_place_node = unifieddyes.fix_rotation,
 | 
			
		||||
	after_dig_node = unifieddyes.after_dig_node
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
homedecor.register("plasma_lamp", {
 | 
			
		||||
	description = S("Plasma Lamp"),
 | 
			
		||||
	drawtype = "glasslike_framed",
 | 
			
		||||
	tiles = {"default_gold_block.png","homedecor_glass_face_clean.png"},
 | 
			
		||||
	special_tiles = {
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "plasma_lamp.obj",
 | 
			
		||||
	tiles = {
 | 
			
		||||
		"default_gold_block.png",
 | 
			
		||||
		{
 | 
			
		||||
			name="homedecor_plasma_storm.png",
 | 
			
		||||
			animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0},
 | 
			
		||||
@@ -110,16 +141,13 @@ homedecor.register("plasma_lamp", {
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	groups = {cracky=3,oddly_breakable_by_hand=3},
 | 
			
		||||
	sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		minetest.swap_node(pos, {name = "homedecor:plasma_lamp", param2 = 255})
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
homedecor.register("plasma_ball", {
 | 
			
		||||
	description = S("Plasma Ball"),
 | 
			
		||||
	mesh = "homedecor_plasma_ball.obj",
 | 
			
		||||
	tiles = {
 | 
			
		||||
		"homedecor_generic_plastic.png",
 | 
			
		||||
		{ name = "homedecor_generic_plastic.png", color = homedecor.color_black },
 | 
			
		||||
		{
 | 
			
		||||
			name = "homedecor_plasma_ball_streamers.png",
 | 
			
		||||
			animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0},
 | 
			
		||||
@@ -332,13 +360,20 @@ homedecor.register("ceiling_lantern", {
 | 
			
		||||
	walkable = false
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
homedecor.register("lattice_lantern_large", {
 | 
			
		||||
	description = S("Lattice lantern (large)"),
 | 
			
		||||
	tiles = { 'homedecor_lattice_lantern_large.png' },
 | 
			
		||||
	groups = { snappy = 3 },
 | 
			
		||||
	light_source = default.LIGHT_MAX,
 | 
			
		||||
	sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
})
 | 
			
		||||
local sm_light = default.LIGHT_MAX-2
 | 
			
		||||
 | 
			
		||||
if minetest.get_modpath("darkage") then
 | 
			
		||||
	minetest.register_alias("homedecor:lattice_lantern_large", "darkage:lamp")
 | 
			
		||||
	sm_light = default.LIGHT_MAX-5
 | 
			
		||||
else
 | 
			
		||||
	homedecor.register("lattice_lantern_large", {
 | 
			
		||||
		description = S("Lattice lantern (large)"),
 | 
			
		||||
		tiles = { 'homedecor_lattice_lantern_large.png' },
 | 
			
		||||
		groups = { snappy = 3 },
 | 
			
		||||
		light_source = default.LIGHT_MAX,
 | 
			
		||||
		sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
homedecor.register("lattice_lantern_small", {
 | 
			
		||||
	description = S("Lattice lantern (small)"),
 | 
			
		||||
@@ -356,7 +391,7 @@ homedecor.register("lattice_lantern_small", {
 | 
			
		||||
		fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
 | 
			
		||||
	},
 | 
			
		||||
	groups = { snappy = 3 },
 | 
			
		||||
	light_source = default.LIGHT_MAX-1,
 | 
			
		||||
	light_source = sm_light,
 | 
			
		||||
	sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
	on_place = minetest.rotate_node
 | 
			
		||||
})
 | 
			
		||||
@@ -415,7 +450,6 @@ local function reg_lamp(suffix, nxt, light, brightness)
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		paramtype2 = "color",
 | 
			
		||||
		palette = "unifieddyes_palette_extended.png",
 | 
			
		||||
		place_param2 = 240,
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		light_source = light,
 | 
			
		||||
		selection_box = tlamp_cbox,
 | 
			
		||||
@@ -423,12 +457,17 @@ local function reg_lamp(suffix, nxt, light, brightness)
 | 
			
		||||
		groups = {cracky=2,oddly_breakable_by_hand=1, ud_param2_colorable = 1,
 | 
			
		||||
			not_in_creative_inventory=((light ~= nil) and 1) or nil,
 | 
			
		||||
		},
 | 
			
		||||
		drop = "homedecor:table_lamp_off",
 | 
			
		||||
		on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
			node.name = "homedecor:table_lamp_"..repl[suffix]
 | 
			
		||||
			minetest.set_node(pos, node)
 | 
			
		||||
		end,
 | 
			
		||||
		after_dig_node = unifieddyes.after_dig_node
 | 
			
		||||
		on_construct = unifieddyes.on_construct,
 | 
			
		||||
		drop = {
 | 
			
		||||
			items = {
 | 
			
		||||
				{items = {"homedecor:table_lamp_off"}, inherit_color = true },
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	homedecor.register("standing_lamp_"..suffix, {
 | 
			
		||||
@@ -444,7 +483,6 @@ local function reg_lamp(suffix, nxt, light, brightness)
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		paramtype2 = "color",
 | 
			
		||||
		palette = "unifieddyes_palette_extended.png",
 | 
			
		||||
		place_param2 = 240,
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		light_source = light,
 | 
			
		||||
		groups = {cracky=2,oddly_breakable_by_hand=1, ud_param2_colorable = 1,
 | 
			
		||||
@@ -457,8 +495,13 @@ local function reg_lamp(suffix, nxt, light, brightness)
 | 
			
		||||
			node.name = "homedecor:standing_lamp_"..repl[suffix]
 | 
			
		||||
			minetest.set_node(pos, node)
 | 
			
		||||
		end,
 | 
			
		||||
		after_dig_node = unifieddyes.after_dig_node,
 | 
			
		||||
		expand = { top="placeholder" },
 | 
			
		||||
		on_construct = unifieddyes.on_construct,
 | 
			
		||||
		--expand = { top="air" },
 | 
			
		||||
		drop = {
 | 
			
		||||
			items = {
 | 
			
		||||
				{items = {"homedecor:standing_lamp_off"}, inherit_color = true },
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	-- for old maps that had the original 3dforniture mod
 | 
			
		||||
@@ -495,8 +538,9 @@ homedecor.register("desk_lamp", {
 | 
			
		||||
	node_box = dlamp_cbox,
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	groups = {snappy=3, ud_param2_colorable = 1},
 | 
			
		||||
	after_place_node = unifieddyes.fix_rotation_nsew,
 | 
			
		||||
	after_dig_node = unifieddyes.after_dig_node,
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
	on_rotate = unifieddyes.fix_after_screwdriver_nsew
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -699,27 +743,140 @@ minetest.register_lbm({
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_lbm({
 | 
			
		||||
	name = "homedecor:recolor_lighting",
 | 
			
		||||
	label = "Convert some kinds of lights to use UD extended palette",
 | 
			
		||||
	run_at_every_load = false,
 | 
			
		||||
	nodenames = {
 | 
			
		||||
		"homedecor:table_lamp_off",
 | 
			
		||||
		"homedecor:table_lamp_low",
 | 
			
		||||
		"homedecor:table_lamp_med",
 | 
			
		||||
		"homedecor:table_lamp_hi",
 | 
			
		||||
		"homedecor:table_lamp_max",
 | 
			
		||||
		"homedecor:standing_lamp_off",
 | 
			
		||||
		"homedecor:standing_lamp_low",
 | 
			
		||||
		"homedecor:standing_lamp_med",
 | 
			
		||||
		"homedecor:standing_lamp_hi",
 | 
			
		||||
		"homedecor:standing_lamp_max",
 | 
			
		||||
	},
 | 
			
		||||
	action = function(pos, node)
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
		if meta:get_string("palette") ~= "ext" then
 | 
			
		||||
			minetest.swap_node(pos, { name = node.name, param2 = unifieddyes.convert_classic_palette[node.param2] })
 | 
			
		||||
			meta:set_string("palette", "ext")
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
local chains_sbox = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = { -0.1, -0.5, -0.1, 0.1, 0.5, 0.1 }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local topchains_sbox = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{ -0.25, 0.35, -0.25, 0.25, 0.5, 0.25 },
 | 
			
		||||
		{ -0.1, -0.5, -0.1, 0.1, 0.4, 0.1 }
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
minetest.register_node("homedecor:chain_steel_top", {
 | 
			
		||||
	description = S("Hanging chain (ceiling mount, steel)"),
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "homedecor_chains_top.obj",
 | 
			
		||||
	tiles = {"basic_materials_chain_steel.png"},
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	climbable = true,
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	inventory_image = "basic_materials_chain_steel_inv.png",
 | 
			
		||||
	groups = {cracky=3},
 | 
			
		||||
	selection_box = topchains_sbox,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("homedecor:chain_brass_top", {
 | 
			
		||||
	description = S("Hanging chain (ceiling mount, brass)"),
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "homedecor_chains_top.obj",
 | 
			
		||||
	tiles = {"basic_materials_chain_brass.png"},
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	climbable = true,
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	inventory_image = "basic_materials_chain_brass_inv.png",
 | 
			
		||||
	groups = {cracky=3},
 | 
			
		||||
	selection_box = topchains_sbox,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("homedecor:chandelier_steel", {
 | 
			
		||||
	description = S("Chandelier (steel)"),
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	light_source = 12,
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	climbable = true,
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	tiles = {
 | 
			
		||||
		"basic_materials_chain_steel.png",
 | 
			
		||||
		"homedecor_candle_flat.png",
 | 
			
		||||
		{
 | 
			
		||||
			name="homedecor_candle_flame.png",
 | 
			
		||||
			animation={
 | 
			
		||||
				type="vertical_frames",
 | 
			
		||||
				aspect_w=16,
 | 
			
		||||
				aspect_h=16,
 | 
			
		||||
				length=3.0
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "homedecor_chandelier.obj",
 | 
			
		||||
	groups = {cracky=3},
 | 
			
		||||
	sounds =  default.node_sound_stone_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("homedecor:chandelier_brass", {
 | 
			
		||||
	description = S("Chandelier (brass)"),
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	light_source = 12,
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	climbable = true,
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	tiles = {
 | 
			
		||||
		"basic_materials_chain_brass.png",
 | 
			
		||||
		"homedecor_candle_flat.png",
 | 
			
		||||
		{
 | 
			
		||||
			name="homedecor_candle_flame.png",
 | 
			
		||||
			animation={
 | 
			
		||||
				type="vertical_frames",
 | 
			
		||||
				aspect_w=16,
 | 
			
		||||
				aspect_h=16,
 | 
			
		||||
				length=3.0
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "homedecor_chandelier.obj",
 | 
			
		||||
	groups = {cracky=3},
 | 
			
		||||
	sounds =  default.node_sound_stone_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- crafts
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'homedecor:chain_steel_top',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'default:steel_ingot'},
 | 
			
		||||
		{'basic_materials:chainlink_steel'},
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'homedecor:chandelier_steel',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'', 'basic_materials:chainlink_steel', ''},
 | 
			
		||||
		{'default:torch', 'basic_materials:chainlink_steel', 'default:torch'},
 | 
			
		||||
		{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- brass versions
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'homedecor:chain_brass_top',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'basic_materials:brass_ingot'},
 | 
			
		||||
		{'basic_materials:chainlink_brass'},
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'homedecor:chandelier_brass',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'', 'basic_materials:chainlink_brass', ''},
 | 
			
		||||
		{'default:torch', 'basic_materials:chainlink_brass', 'default:torch'},
 | 
			
		||||
		{'basic_materials:brass_ingot', 'basic_materials:brass_ingot', 'basic_materials:brass_ingot'},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("chains:chain_top",        "homedecor:chain_steel_top")
 | 
			
		||||
minetest.register_alias("chains:chain_top_brass",  "homedecor:chain_brass_top")
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("chains:chandelier_steel", "homedecor:chandelier_steel")
 | 
			
		||||
minetest.register_alias("chains:chandelier_brass", "homedecor:chandelier_brass")
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -396,7 +396,7 @@ local n = { 1, 2 }
 | 
			
		||||
 | 
			
		||||
for _, i in ipairs(n) do
 | 
			
		||||
	homedecor.register("picture_frame"..i, {
 | 
			
		||||
		description = S("Picture Frame"),
 | 
			
		||||
		description = S("Picture Frame "..i),
 | 
			
		||||
		mesh = "homedecor_picture_frame.obj",
 | 
			
		||||
		tiles = {
 | 
			
		||||
			"homedecor_picture_frame_image"..i..".png",
 | 
			
		||||
@@ -483,23 +483,19 @@ for _, side in ipairs({"diagonal_left", "diagonal_right", "horizontal"}) do
 | 
			
		||||
		local name, matdesc, tile1, tile2 = unpack(mat)
 | 
			
		||||
		local nodename = "banister_"..name.."_"..side
 | 
			
		||||
 | 
			
		||||
		local groups = { snappy = 3, not_in_creative_inventory = 1 }
 | 
			
		||||
		local cbox = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = { -9/16, -3/16, 5/16, 9/16, 24/16, 8/16 }
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if side == "horizontal" then
 | 
			
		||||
			groups = { snappy = 3 }
 | 
			
		||||
			cbox = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = { -8/16, -8/16, 5/16, 8/16, 8/16, 8/16 }
 | 
			
		||||
			}
 | 
			
		||||
		else
 | 
			
		||||
			minetest.register_alias(string.gsub("homedecor:"..nodename, "diagonal_", ""), "homedecor:"..nodename)
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		homedecor.register(nodename, {
 | 
			
		||||
		local def = {
 | 
			
		||||
			description = S("Banister for Stairs (@1, @2)", matdesc, sidedesc),
 | 
			
		||||
			mesh = "homedecor_banister_"..side..".obj",
 | 
			
		||||
			tiles = {
 | 
			
		||||
@@ -507,12 +503,37 @@ for _, side in ipairs({"diagonal_left", "diagonal_right", "horizontal"}) do
 | 
			
		||||
				tile2,
 | 
			
		||||
			},
 | 
			
		||||
			inventory_image = "homedecor_banister_"..name.."_inv.png",
 | 
			
		||||
			groups = groups,
 | 
			
		||||
			selection_box = cbox,
 | 
			
		||||
			collision_box = cbox,
 | 
			
		||||
			groups = { snappy = 3},
 | 
			
		||||
			on_place = homedecor.place_banister,
 | 
			
		||||
			drop = "homedecor:banister_"..name.."_horizontal",
 | 
			
		||||
		})
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if side ~= "horizontal" then
 | 
			
		||||
			def.groups.not_in_creative_inventory = 1 
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		if name == "wood" then
 | 
			
		||||
			def.palette = "unifieddyes_palette_greys.png"
 | 
			
		||||
			def.airbrush_replacement_node = "homedecor:banister_wood_"..side.."_grey"
 | 
			
		||||
			def.groups.ud_param2_colorable = 1
 | 
			
		||||
			def.paramtype2 = "colorfacedir"
 | 
			
		||||
		end
 | 
			
		||||
		homedecor.register(nodename, def)
 | 
			
		||||
 | 
			
		||||
		if name == "wood" then
 | 
			
		||||
			local nn = "homedecor:"..nodename
 | 
			
		||||
			local def2 = table.copy(minetest.registered_items[nn])
 | 
			
		||||
			def2.tiles = {
 | 
			
		||||
				homedecor.white_wood,
 | 
			
		||||
				homedecor.white_wood
 | 
			
		||||
			}
 | 
			
		||||
			def2.inventory_image = "homedecor_banister_wood_colored_inv.png"
 | 
			
		||||
			def2.groups.not_in_creative_inventory = 1 
 | 
			
		||||
 | 
			
		||||
			unifieddyes.generate_split_palette_nodes(nn, def2, "homedecor:banister_"..name.."_horizontal")
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,44 +0,0 @@
 | 
			
		||||
# Blender v2.72 (sub 0) OBJ File: 'unifiedbricks_brick_block.blend'
 | 
			
		||||
# www.blender.org
 | 
			
		||||
o Cube
 | 
			
		||||
v 0.496092 0.496092 0.496092
 | 
			
		||||
v 0.496092 0.496092 -0.496092
 | 
			
		||||
v -0.496092 0.496092 -0.496092
 | 
			
		||||
v -0.496092 0.496092 0.496092
 | 
			
		||||
v 0.496092 -0.496092 0.496092
 | 
			
		||||
v 0.496092 -0.496092 -0.496092
 | 
			
		||||
v -0.496092 -0.496092 -0.496092
 | 
			
		||||
v -0.496092 -0.496092 0.496092
 | 
			
		||||
v 0.499750 0.499750 0.499750
 | 
			
		||||
v 0.499750 0.499750 -0.499750
 | 
			
		||||
v -0.499750 0.499750 -0.499750
 | 
			
		||||
v -0.499750 0.499750 0.499750
 | 
			
		||||
v 0.499750 -0.499750 0.499750
 | 
			
		||||
v 0.499750 -0.499750 -0.499750
 | 
			
		||||
v -0.499750 -0.499750 -0.499750
 | 
			
		||||
v -0.499750 -0.499750 0.499750
 | 
			
		||||
vt 1.000000 0.000000
 | 
			
		||||
vt 1.000000 1.000000
 | 
			
		||||
vt 0.000000 1.000000
 | 
			
		||||
vt 0.000000 0.000000
 | 
			
		||||
vn 0.000000 -1.000000 0.000000
 | 
			
		||||
vn -1.000000 0.000000 0.000000
 | 
			
		||||
vn 0.000000 1.000000 0.000000
 | 
			
		||||
vn 1.000000 0.000000 0.000000
 | 
			
		||||
vn 0.000000 0.000000 -1.000000
 | 
			
		||||
vn 0.000000 0.000000 1.000000
 | 
			
		||||
g Cube_Cube_base
 | 
			
		||||
s off
 | 
			
		||||
f 8/1/1 7/2/1 6/3/1 5/4/1
 | 
			
		||||
f 4/2/2 3/3/2 7/4/2 8/1/2
 | 
			
		||||
f 1/3/3 2/4/3 3/1/3 4/2/3
 | 
			
		||||
f 2/2/4 1/3/4 5/4/4 6/1/4
 | 
			
		||||
f 3/2/5 2/3/5 6/4/5 7/1/5
 | 
			
		||||
f 1/2/6 4/3/6 8/4/6 5/1/6
 | 
			
		||||
g Cube_Cube_overlay
 | 
			
		||||
f 16/1/1 15/2/1 14/3/1 13/4/1
 | 
			
		||||
f 12/2/2 11/3/2 15/4/2 16/1/2
 | 
			
		||||
f 9/3/3 10/4/3 11/1/3 12/2/3
 | 
			
		||||
f 10/2/4 9/3/4 13/4/4 14/1/4
 | 
			
		||||
f 11/2/5 10/3/5 14/4/5 15/1/5
 | 
			
		||||
f 9/2/6 12/3/6 16/4/6 13/1/6
 | 
			
		||||
@@ -1,243 +1,206 @@
 | 
			
		||||
# Blender v2.72 (sub 0) OBJ File: 'book.blend'
 | 
			
		||||
# Blender v2.78 (sub 0) OBJ File: 'book.blend'
 | 
			
		||||
# www.blender.org
 | 
			
		||||
o Cube.002_Cube.001
 | 
			
		||||
v -0.216625 -0.161995 -0.448008
 | 
			
		||||
v -0.216625 -0.149566 -0.485966
 | 
			
		||||
v -0.216625 -0.113157 -0.485966
 | 
			
		||||
v -0.216625 -0.142021 -0.448008
 | 
			
		||||
v -0.208120 -0.115781 -0.485966
 | 
			
		||||
v -0.208120 -0.142021 -0.448008
 | 
			
		||||
v 0.220555 -0.113157 -0.485966
 | 
			
		||||
v 0.220555 0.159347 -0.485966
 | 
			
		||||
v 0.212050 -0.115781 -0.485966
 | 
			
		||||
v -0.208120 -0.161995 -0.448008
 | 
			
		||||
v -0.208120 0.148926 -0.485966
 | 
			
		||||
v -0.208120 0.155653 -0.448008
 | 
			
		||||
v 0.212051 0.155653 -0.448008
 | 
			
		||||
v 0.212051 0.148926 -0.485966
 | 
			
		||||
v -0.208120 -0.152482 -0.485966
 | 
			
		||||
v 0.212050 -0.152482 -0.485966
 | 
			
		||||
v 0.220555 -0.161995 -0.448008
 | 
			
		||||
v 0.212050 -0.161995 -0.448008
 | 
			
		||||
v 0.212050 -0.145193 -0.500002
 | 
			
		||||
v -0.208120 -0.145193 -0.500002
 | 
			
		||||
v -0.208120 -0.115781 -0.500002
 | 
			
		||||
v 0.212050 -0.115781 -0.500002
 | 
			
		||||
v 0.212050 -0.115781 -0.396013
 | 
			
		||||
v -0.208120 -0.115781 -0.396013
 | 
			
		||||
v -0.208120 -0.145193 -0.396013
 | 
			
		||||
v 0.212050 -0.145193 -0.396013
 | 
			
		||||
v 0.212050 -0.152482 -0.410049
 | 
			
		||||
v -0.208120 -0.152482 -0.410049
 | 
			
		||||
v 0.212051 0.148926 -0.410049
 | 
			
		||||
v -0.208120 0.148926 -0.410049
 | 
			
		||||
v 0.212050 -0.115781 -0.410049
 | 
			
		||||
v 0.220555 0.159347 -0.410049
 | 
			
		||||
v 0.220555 -0.113157 -0.410049
 | 
			
		||||
v -0.208120 -0.115781 -0.410049
 | 
			
		||||
v -0.216625 -0.113157 -0.410049
 | 
			
		||||
v -0.216625 -0.149566 -0.410049
 | 
			
		||||
v -0.216625 -0.115781 -0.396013
 | 
			
		||||
v -0.216625 -0.141549 -0.396013
 | 
			
		||||
v 0.220555 -0.149566 -0.410049
 | 
			
		||||
v 0.220555 -0.141549 -0.396013
 | 
			
		||||
v 0.220555 0.159346 -0.396013
 | 
			
		||||
v -0.216624 0.159347 -0.396013
 | 
			
		||||
v 0.220555 -0.115781 -0.396013
 | 
			
		||||
v -0.216624 0.159347 -0.410049
 | 
			
		||||
v -0.216625 -0.115781 -0.500002
 | 
			
		||||
v -0.216625 -0.141549 -0.500002
 | 
			
		||||
v 0.212050 -0.142021 -0.448008
 | 
			
		||||
v 0.220555 -0.149566 -0.485966
 | 
			
		||||
v 0.220555 -0.141549 -0.500002
 | 
			
		||||
v 0.220555 0.159346 -0.500002
 | 
			
		||||
v -0.216624 0.159347 -0.500002
 | 
			
		||||
v 0.220555 -0.142021 -0.448008
 | 
			
		||||
v 0.220555 -0.115781 -0.500002
 | 
			
		||||
v -0.216624 0.159347 -0.485966
 | 
			
		||||
v -0.216625 -0.162729 -0.448008
 | 
			
		||||
v -0.216625 -0.150269 -0.486432
 | 
			
		||||
v -0.208120 -0.162729 -0.448008
 | 
			
		||||
v -0.208120 -0.153192 -0.486432
 | 
			
		||||
v 0.212050 -0.153192 -0.486432
 | 
			
		||||
v 0.220555 -0.162729 -0.448008
 | 
			
		||||
v 0.212050 -0.162729 -0.448008
 | 
			
		||||
v 0.212050 -0.145885 -0.500640
 | 
			
		||||
v -0.208120 -0.145885 -0.500640
 | 
			
		||||
v -0.208120 -0.116399 -0.500640
 | 
			
		||||
v 0.212050 -0.116399 -0.500640
 | 
			
		||||
v 0.212050 -0.116399 -0.395375
 | 
			
		||||
v -0.208120 -0.116399 -0.395375
 | 
			
		||||
v -0.208120 -0.145885 -0.395375
 | 
			
		||||
v 0.212050 -0.145885 -0.395375
 | 
			
		||||
v 0.212050 -0.153192 -0.409583
 | 
			
		||||
v -0.208120 -0.153192 -0.409583
 | 
			
		||||
v -0.216625 -0.150269 -0.409583
 | 
			
		||||
v -0.216625 -0.116399 -0.395375
 | 
			
		||||
v -0.216625 -0.142232 -0.395375
 | 
			
		||||
v 0.220555 -0.150269 -0.409583
 | 
			
		||||
v 0.220555 -0.142232 -0.395375
 | 
			
		||||
v 0.220555 0.159416 -0.395375
 | 
			
		||||
v -0.216624 0.159417 -0.395375
 | 
			
		||||
v 0.220555 -0.116399 -0.395375
 | 
			
		||||
v -0.216625 -0.116399 -0.500640
 | 
			
		||||
v -0.216625 -0.142232 -0.500640
 | 
			
		||||
v 0.220555 -0.150269 -0.486432
 | 
			
		||||
v 0.220555 -0.142232 -0.500640
 | 
			
		||||
v 0.220555 0.159416 -0.500640
 | 
			
		||||
v -0.216624 0.159417 -0.500640
 | 
			
		||||
v 0.220555 -0.116399 -0.500640
 | 
			
		||||
vt 0.921987 0.383861
 | 
			
		||||
vt 0.921987 0.340448
 | 
			
		||||
vt 0.931829 0.340448
 | 
			
		||||
vt 0.931829 0.383861
 | 
			
		||||
vt 0.931829 0.427274
 | 
			
		||||
vt 0.921987 0.427274
 | 
			
		||||
vt 0.768089 0.490273
 | 
			
		||||
vt 0.722954 0.490273
 | 
			
		||||
vt 0.722954 0.009727
 | 
			
		||||
vt 0.768089 0.009727
 | 
			
		||||
vt 0.768089 0.500000
 | 
			
		||||
vt 0.722404 0.500000
 | 
			
		||||
vt 0.809636 0.490273
 | 
			
		||||
vt 0.809086 0.500000
 | 
			
		||||
vt 0.352434 0.000000
 | 
			
		||||
vt 0.670829 0.000000
 | 
			
		||||
vt 0.670829 0.009727
 | 
			
		||||
vt 0.670829 0.490273
 | 
			
		||||
vt 0.670829 0.500000
 | 
			
		||||
vt 0.352433 0.499999
 | 
			
		||||
vt 0.809636 0.009727
 | 
			
		||||
vt 0.809086 0.000000
 | 
			
		||||
vt 0.823601 0.000000
 | 
			
		||||
vt 0.824288 0.009727
 | 
			
		||||
vt 0.012060 0.509727
 | 
			
		||||
vt 0.000000 0.500001
 | 
			
		||||
vt 0.315359 0.500000
 | 
			
		||||
vt 0.318396 0.509727
 | 
			
		||||
vt 0.700649 0.000000
 | 
			
		||||
vt 0.704866 0.009727
 | 
			
		||||
vt 0.731001 0.867517
 | 
			
		||||
vt 0.731001 0.844673
 | 
			
		||||
vt 0.774928 0.811661
 | 
			
		||||
vt 0.774928 0.853302
 | 
			
		||||
vt 0.687072 0.853302
 | 
			
		||||
vt 0.687072 0.811661
 | 
			
		||||
vt 0.774928 0.500000
 | 
			
		||||
vt 0.791171 0.500000
 | 
			
		||||
vt 0.791171 0.814662
 | 
			
		||||
vt 0.791171 0.844133
 | 
			
		||||
vt 0.851343 0.522844
 | 
			
		||||
vt 0.851343 0.500000
 | 
			
		||||
vt 0.895271 0.514215
 | 
			
		||||
vt 0.895271 0.555856
 | 
			
		||||
vt 0.912144 0.383862
 | 
			
		||||
vt 0.912144 0.340448
 | 
			
		||||
vt 0.334639 0.500000
 | 
			
		||||
vt 0.334639 0.999999
 | 
			
		||||
vt 0.318396 0.999999
 | 
			
		||||
vt 0.318396 0.500000
 | 
			
		||||
vt 0.895271 0.867517
 | 
			
		||||
vt 0.911514 0.523384
 | 
			
		||||
vt 0.911514 0.552855
 | 
			
		||||
vt 0.911514 0.867516
 | 
			
		||||
vt 0.824288 0.490273
 | 
			
		||||
vt 0.823601 0.500000
 | 
			
		||||
vt 0.807415 0.555856
 | 
			
		||||
vt 0.807415 0.514215
 | 
			
		||||
vt 0.768089 0.000000
 | 
			
		||||
vt 0.722404 0.000000
 | 
			
		||||
vt 0.912144 0.427274
 | 
			
		||||
vt 0.318396 0.990273
 | 
			
		||||
vt 0.315359 1.000000
 | 
			
		||||
vt 0.000000 1.000000
 | 
			
		||||
vt 0.012060 0.990274
 | 
			
		||||
vt 0.704866 0.490273
 | 
			
		||||
vt 0.318396 0.490273
 | 
			
		||||
vt 0.318396 0.009727
 | 
			
		||||
vt 0.352433 0.009727
 | 
			
		||||
vt 0.352433 0.490273
 | 
			
		||||
vt 0.705553 0.490273
 | 
			
		||||
vt 0.705553 0.009727
 | 
			
		||||
vt 0.670829 0.509727
 | 
			
		||||
vt 0.364493 0.509726
 | 
			
		||||
vt 0.667792 0.500000
 | 
			
		||||
vt 0.318396 0.000000
 | 
			
		||||
vt 0.348216 0.000000
 | 
			
		||||
vt 0.704866 0.500000
 | 
			
		||||
vt 0.807415 0.867517
 | 
			
		||||
vt 0.791172 0.867516
 | 
			
		||||
vt 0.791171 0.552855
 | 
			
		||||
vt 0.791171 0.523384
 | 
			
		||||
vt 0.336190 0.500000
 | 
			
		||||
vt 0.352433 0.999999
 | 
			
		||||
vt 0.336190 0.999999
 | 
			
		||||
vt 0.670829 0.844133
 | 
			
		||||
vt 0.670829 0.814662
 | 
			
		||||
vt 0.687072 0.500000
 | 
			
		||||
vt 0.348216 0.500000
 | 
			
		||||
vt 0.364493 0.990273
 | 
			
		||||
vt 0.670829 0.990273
 | 
			
		||||
vt 0.667792 1.000000
 | 
			
		||||
vt 0.704866 0.000000
 | 
			
		||||
vt 0.000000 0.000001
 | 
			
		||||
vt 0.668539 0.639838
 | 
			
		||||
vt 0.640677 0.639838
 | 
			
		||||
vt 0.640677 0.630641
 | 
			
		||||
vt 0.672479 0.630641
 | 
			
		||||
vt 0.439305 1.000000
 | 
			
		||||
vt 0.439305 0.319104
 | 
			
		||||
vt 0.527160 0.379125
 | 
			
		||||
vt 0.527160 0.984613
 | 
			
		||||
vt 0.087857 1.000000
 | 
			
		||||
vt 0.087857 0.319104
 | 
			
		||||
vt 0.175712 0.334491
 | 
			
		||||
vt 0.175712 0.939979
 | 
			
		||||
vt 0.351448 0.984613
 | 
			
		||||
vt 0.351448 0.379125
 | 
			
		||||
vt 0.000000 0.939979
 | 
			
		||||
vt 0.000000 0.334491
 | 
			
		||||
vt 0.351448 0.000000
 | 
			
		||||
vt 0.351448 0.961094
 | 
			
		||||
vt 0.263593 0.961094
 | 
			
		||||
vt 0.263593 0.000000
 | 
			
		||||
vt 0.175736 0.000000
 | 
			
		||||
vt 0.175736 0.961094
 | 
			
		||||
vn -0.123900 0.803100 -0.582900
 | 
			
		||||
vn -0.123900 0.803000 0.582900
 | 
			
		||||
vn 0.000000 -0.970000 0.243100
 | 
			
		||||
vn 0.162500 -0.947900 0.274000
 | 
			
		||||
vn 0.162500 -0.947900 -0.274000
 | 
			
		||||
vn 0.000000 0.000000 -1.000000
 | 
			
		||||
vn -0.320700 -0.831600 -0.453400
 | 
			
		||||
vn 0.000000 -0.000000 1.000000
 | 
			
		||||
vn -1.000000 0.000000 0.000000
 | 
			
		||||
vn 1.000000 0.000000 0.000000
 | 
			
		||||
vn 0.123900 0.803100 -0.582900
 | 
			
		||||
vn 0.000000 1.000000 -0.000000
 | 
			
		||||
vn 0.320700 -0.831600 -0.453400
 | 
			
		||||
vn -0.162500 -0.947900 -0.274000
 | 
			
		||||
vn 0.000000 -0.970000 -0.243100
 | 
			
		||||
vn -0.162500 -0.947900 0.274000
 | 
			
		||||
vn 0.123900 0.803000 0.582900
 | 
			
		||||
vn 0.000000 -0.887500 -0.460900
 | 
			
		||||
vn 0.000000 -0.887500 0.460900
 | 
			
		||||
vn 0.320700 -0.831600 0.453400
 | 
			
		||||
vn -0.320700 -0.831600 0.453400
 | 
			
		||||
vn 0.000000 0.984700 -0.174500
 | 
			
		||||
vn -0.000000 0.984700 0.174500
 | 
			
		||||
vn 0.000000 -0.970600 0.240900
 | 
			
		||||
vn 0.163000 -0.948500 0.271500
 | 
			
		||||
vn 0.163000 -0.948500 -0.271500
 | 
			
		||||
vn -0.322100 -0.833000 -0.449800
 | 
			
		||||
vn 0.322100 -0.833000 -0.449800
 | 
			
		||||
vn -0.163000 -0.948500 -0.271500
 | 
			
		||||
vn 0.000000 -0.970600 -0.240900
 | 
			
		||||
vn -0.163000 -0.948500 0.271500
 | 
			
		||||
vn 0.000000 -0.889300 -0.457400
 | 
			
		||||
vn 0.000000 -0.889300 0.457400
 | 
			
		||||
vn 0.322100 -0.833000 0.449800
 | 
			
		||||
vn -0.322100 -0.833000 0.449800
 | 
			
		||||
v 0.161995 -0.448008 0.216625
 | 
			
		||||
v 0.149566 -0.485966 0.216625
 | 
			
		||||
v 0.113157 -0.485966 0.216625
 | 
			
		||||
v 0.142021 -0.448008 0.216625
 | 
			
		||||
v 0.115781 -0.485966 0.208120
 | 
			
		||||
v 0.142021 -0.448008 0.208120
 | 
			
		||||
v 0.113157 -0.485966 -0.220555
 | 
			
		||||
v -0.159347 -0.485966 -0.220555
 | 
			
		||||
v 0.115781 -0.485966 -0.212050
 | 
			
		||||
v 0.161995 -0.448008 0.208120
 | 
			
		||||
v -0.148926 -0.485966 0.208120
 | 
			
		||||
v -0.155653 -0.448008 0.208120
 | 
			
		||||
v -0.155653 -0.448008 -0.212051
 | 
			
		||||
v -0.148926 -0.485966 -0.212051
 | 
			
		||||
v 0.152482 -0.485966 0.208120
 | 
			
		||||
v 0.152482 -0.485966 -0.212050
 | 
			
		||||
v 0.161995 -0.448008 -0.220555
 | 
			
		||||
v 0.161995 -0.448008 -0.212050
 | 
			
		||||
v 0.145193 -0.500002 -0.212050
 | 
			
		||||
v 0.145193 -0.500002 0.208120
 | 
			
		||||
v 0.115781 -0.500002 0.208120
 | 
			
		||||
v 0.115781 -0.500002 -0.212050
 | 
			
		||||
v 0.115781 -0.396013 -0.212050
 | 
			
		||||
v 0.115781 -0.396013 0.208120
 | 
			
		||||
v 0.145193 -0.396013 0.208120
 | 
			
		||||
v 0.145193 -0.396013 -0.212050
 | 
			
		||||
v 0.152482 -0.410049 -0.212050
 | 
			
		||||
v 0.152482 -0.410049 0.208120
 | 
			
		||||
v -0.148926 -0.410049 -0.212051
 | 
			
		||||
v -0.148926 -0.410049 0.208120
 | 
			
		||||
v 0.115781 -0.410049 -0.212050
 | 
			
		||||
v -0.159347 -0.410049 -0.220555
 | 
			
		||||
v 0.113157 -0.410049 -0.220555
 | 
			
		||||
v 0.115781 -0.410049 0.208120
 | 
			
		||||
v 0.113157 -0.410049 0.216625
 | 
			
		||||
v 0.149566 -0.410049 0.216625
 | 
			
		||||
v 0.115781 -0.396013 0.216625
 | 
			
		||||
v 0.141549 -0.396013 0.216625
 | 
			
		||||
v 0.149566 -0.410049 -0.220555
 | 
			
		||||
v 0.141549 -0.396013 -0.220555
 | 
			
		||||
v -0.159346 -0.396013 -0.220555
 | 
			
		||||
v -0.159347 -0.396013 0.216624
 | 
			
		||||
v 0.115781 -0.396013 -0.220555
 | 
			
		||||
v -0.159347 -0.410049 0.216624
 | 
			
		||||
v 0.115781 -0.500002 0.216625
 | 
			
		||||
v 0.141549 -0.500002 0.216625
 | 
			
		||||
v 0.142021 -0.448008 -0.212050
 | 
			
		||||
v 0.149566 -0.485966 -0.220555
 | 
			
		||||
v 0.141549 -0.500002 -0.220555
 | 
			
		||||
v -0.159346 -0.500002 -0.220555
 | 
			
		||||
v -0.159347 -0.500002 0.216624
 | 
			
		||||
v 0.142021 -0.448008 -0.220555
 | 
			
		||||
v 0.115781 -0.500002 -0.220555
 | 
			
		||||
v -0.159347 -0.485966 0.216624
 | 
			
		||||
vt 0.9220 0.3839
 | 
			
		||||
vt 0.9220 0.3404
 | 
			
		||||
vt 0.9318 0.3404
 | 
			
		||||
vt 0.9318 0.3839
 | 
			
		||||
vt 0.9318 0.4273
 | 
			
		||||
vt 0.9220 0.4273
 | 
			
		||||
vt 0.7681 0.4903
 | 
			
		||||
vt 0.7230 0.4903
 | 
			
		||||
vt 0.7230 0.0097
 | 
			
		||||
vt 0.7681 0.0097
 | 
			
		||||
vt 0.7681 0.5000
 | 
			
		||||
vt 0.7224 0.5000
 | 
			
		||||
vt 0.8096 0.4903
 | 
			
		||||
vt 0.8091 0.5000
 | 
			
		||||
vt 0.3524 0.0000
 | 
			
		||||
vt 0.6708 0.0000
 | 
			
		||||
vt 0.6708 0.0097
 | 
			
		||||
vt 0.6708 0.4903
 | 
			
		||||
vt 0.6708 0.5000
 | 
			
		||||
vt 0.3524 0.5000
 | 
			
		||||
vt 0.8096 0.0097
 | 
			
		||||
vt 0.8091 0.0000
 | 
			
		||||
vt 0.8236 0.0000
 | 
			
		||||
vt 0.8243 0.0097
 | 
			
		||||
vt 0.0121 0.5097
 | 
			
		||||
vt 0.0000 0.5000
 | 
			
		||||
vt 0.3154 0.5000
 | 
			
		||||
vt 0.3184 0.5097
 | 
			
		||||
vt 0.7006 0.0000
 | 
			
		||||
vt 0.7049 0.0097
 | 
			
		||||
vt 0.7310 0.8675
 | 
			
		||||
vt 0.7310 0.8447
 | 
			
		||||
vt 0.7749 0.8117
 | 
			
		||||
vt 0.7749 0.8533
 | 
			
		||||
vt 0.6871 0.8533
 | 
			
		||||
vt 0.6871 0.8117
 | 
			
		||||
vt 0.7749 0.5000
 | 
			
		||||
vt 0.7912 0.5000
 | 
			
		||||
vt 0.7912 0.8147
 | 
			
		||||
vt 0.7912 0.8441
 | 
			
		||||
vt 0.8513 0.5228
 | 
			
		||||
vt 0.8513 0.5000
 | 
			
		||||
vt 0.8953 0.5142
 | 
			
		||||
vt 0.8953 0.5559
 | 
			
		||||
vt 0.9220 0.3404
 | 
			
		||||
vt 0.9220 0.3839
 | 
			
		||||
vt 0.9121 0.3839
 | 
			
		||||
vt 0.9121 0.3404
 | 
			
		||||
vt 0.3346 0.5000
 | 
			
		||||
vt 0.3346 1.0000
 | 
			
		||||
vt 0.3184 1.0000
 | 
			
		||||
vt 0.3184 0.5000
 | 
			
		||||
vt 0.8953 0.8675
 | 
			
		||||
vt 0.9115 0.5234
 | 
			
		||||
vt 0.9115 0.5529
 | 
			
		||||
vt 0.9115 0.8675
 | 
			
		||||
vt 0.8243 0.4903
 | 
			
		||||
vt 0.8236 0.5000
 | 
			
		||||
vt 0.8074 0.5559
 | 
			
		||||
vt 0.8074 0.5142
 | 
			
		||||
vt 0.7681 0.0000
 | 
			
		||||
vt 0.7224 0.0000
 | 
			
		||||
vt 0.9220 0.4273
 | 
			
		||||
vt 0.9121 0.4273
 | 
			
		||||
vt 0.3184 0.9903
 | 
			
		||||
vt 0.3154 1.0000
 | 
			
		||||
vt 0.0000 1.0000
 | 
			
		||||
vt 0.0121 0.9903
 | 
			
		||||
vt 0.7049 0.4903
 | 
			
		||||
vt 0.3184 0.4903
 | 
			
		||||
vt 0.3184 0.0097
 | 
			
		||||
vt 0.3524 0.0097
 | 
			
		||||
vt 0.3524 0.4903
 | 
			
		||||
vt 0.7056 0.4903
 | 
			
		||||
vt 0.7056 0.0097
 | 
			
		||||
vt 0.6708 0.5097
 | 
			
		||||
vt 0.3645 0.5097
 | 
			
		||||
vt 0.3524 0.5000
 | 
			
		||||
vt 0.6678 0.5000
 | 
			
		||||
vt 0.3184 0.0000
 | 
			
		||||
vt 0.3482 0.0000
 | 
			
		||||
vt 0.7049 0.5000
 | 
			
		||||
vt 0.8074 0.8675
 | 
			
		||||
vt 0.7912 0.8675
 | 
			
		||||
vt 0.7912 0.5529
 | 
			
		||||
vt 0.7912 0.5234
 | 
			
		||||
vt 0.3362 0.5000
 | 
			
		||||
vt 0.3524 1.0000
 | 
			
		||||
vt 0.3362 1.0000
 | 
			
		||||
vt 0.6708 0.8441
 | 
			
		||||
vt 0.6708 0.8147
 | 
			
		||||
vt 0.6708 0.5000
 | 
			
		||||
vt 0.6871 0.5000
 | 
			
		||||
vt 0.3482 0.5000
 | 
			
		||||
vt 0.3184 0.5000
 | 
			
		||||
vt 0.3645 0.9903
 | 
			
		||||
vt 0.6708 0.9903
 | 
			
		||||
vt 0.6678 1.0000
 | 
			
		||||
vt 0.7049 0.0000
 | 
			
		||||
vt 0.0000 0.5000
 | 
			
		||||
vt 0.0000 0.0000
 | 
			
		||||
vt 0.6685 0.6398
 | 
			
		||||
vt 0.6407 0.6398
 | 
			
		||||
vt 0.6407 0.6306
 | 
			
		||||
vt 0.6725 0.6306
 | 
			
		||||
vt 0.4393 1.0000
 | 
			
		||||
vt 0.4393 0.3191
 | 
			
		||||
vt 0.5272 0.3791
 | 
			
		||||
vt 0.5272 0.9846
 | 
			
		||||
vt 0.0879 1.0000
 | 
			
		||||
vt 0.0879 0.3191
 | 
			
		||||
vt 0.1757 0.3345
 | 
			
		||||
vt 0.1757 0.9400
 | 
			
		||||
vt 0.3514 0.9846
 | 
			
		||||
vt 0.3514 0.3791
 | 
			
		||||
vt 0.0000 0.9400
 | 
			
		||||
vt 0.0000 0.3345
 | 
			
		||||
vt 0.3514 0.0000
 | 
			
		||||
vt 0.3514 0.9611
 | 
			
		||||
vt 0.2636 0.9611
 | 
			
		||||
vt 0.2636 0.0000
 | 
			
		||||
vt 0.1757 0.0000
 | 
			
		||||
vt 0.1757 0.9611
 | 
			
		||||
vn -0.8031 -0.5829 0.1239
 | 
			
		||||
vn -0.8030 0.5829 0.1239
 | 
			
		||||
vn 0.9700 0.2431 -0.0000
 | 
			
		||||
vn 0.9479 0.2740 -0.1625
 | 
			
		||||
vn 0.9479 -0.2740 -0.1625
 | 
			
		||||
vn -0.0000 -1.0000 -0.0000
 | 
			
		||||
vn 0.8316 -0.4534 0.3207
 | 
			
		||||
vn 0.0000 1.0000 -0.0000
 | 
			
		||||
vn 0.0000 0.0000 1.0000
 | 
			
		||||
vn 0.0000 0.0000 -1.0000
 | 
			
		||||
vn -0.8031 -0.5829 -0.1239
 | 
			
		||||
vn -1.0000 -0.0000 -0.0000
 | 
			
		||||
vn 0.8316 -0.4534 -0.3207
 | 
			
		||||
vn 0.9479 -0.2740 0.1625
 | 
			
		||||
vn 0.9700 -0.2431 -0.0000
 | 
			
		||||
vn 0.9479 0.2740 0.1625
 | 
			
		||||
vn -0.8030 0.5829 -0.1239
 | 
			
		||||
vn 0.8875 -0.4609 -0.0000
 | 
			
		||||
vn 0.8875 0.4609 -0.0000
 | 
			
		||||
vn 0.8316 0.4534 -0.3207
 | 
			
		||||
vn 0.8316 0.4534 0.3207
 | 
			
		||||
vn -0.9847 -0.1745 0.0000
 | 
			
		||||
vn -0.9847 0.1745 0.0000
 | 
			
		||||
g Cube.002_Cube.001_Cube.002_Cube.001_cover
 | 
			
		||||
s off
 | 
			
		||||
f 47/1/1 31/2/1 33/3/1 52/4/1
 | 
			
		||||
@@ -253,58 +216,37 @@ f 1/31/9 4/32/9 3/33/9 2/34/9
 | 
			
		||||
f 1/31/9 36/35/9 35/36/9 4/32/9
 | 
			
		||||
f 2/34/9 3/33/9 54/37/9 51/38/9 45/39/9 46/40/9
 | 
			
		||||
f 52/41/10 17/42/10 48/43/10 7/44/10
 | 
			
		||||
f 34/2/11 6/1/11 4/45/11 35/46/11
 | 
			
		||||
f 50/47/12 51/48/12 54/49/12 8/50/12
 | 
			
		||||
f 8/51/10 7/44/10 48/43/10 49/52/10 53/53/10 50/54/10
 | 
			
		||||
f 19/55/13 49/56/13 48/14/13 16/13/13
 | 
			
		||||
f 52/41/10 33/57/10 39/58/10 17/42/10
 | 
			
		||||
f 10/10/14 1/59/14 2/22/14 15/21/14
 | 
			
		||||
f 34/45/11 6/46/11 4/47/11 35/48/11
 | 
			
		||||
f 50/49/12 51/50/12 54/51/12 8/52/12
 | 
			
		||||
f 8/53/10 7/44/10 48/43/10 49/54/10 53/55/10 50/56/10
 | 
			
		||||
f 19/57/13 49/58/13 48/14/13 16/13/13
 | 
			
		||||
f 52/41/10 33/59/10 39/60/10 17/42/10
 | 
			
		||||
f 10/10/14 1/61/14 2/22/14 15/21/14
 | 
			
		||||
f 18/7/15 10/10/15 15/21/15 16/13/15
 | 
			
		||||
f 10/10/16 28/9/16 36/60/16 1/59/16
 | 
			
		||||
f 5/6/17 3/61/17 4/45/17 6/1/17
 | 
			
		||||
f 9/62/8 7/63/8 8/64/8 14/65/8
 | 
			
		||||
f 16/13/18 15/21/18 20/24/18 19/55/18
 | 
			
		||||
f 22/17/6 19/30/6 20/66/6 21/18/6
 | 
			
		||||
f 23/67/8 24/68/8 25/69/8 26/70/8
 | 
			
		||||
f 27/8/19 26/71/19 25/72/19 28/9/19
 | 
			
		||||
f 31/73/6 29/74/6 32/20/6 33/75/6
 | 
			
		||||
f 25/69/8 24/68/8 37/76/8 38/77/8
 | 
			
		||||
f 26/71/20 27/8/20 39/12/20 40/78/20
 | 
			
		||||
f 32/79/10 41/80/10 43/81/10 40/82/10 39/58/10 33/57/10
 | 
			
		||||
f 41/83/12 32/20/12 44/84/12 42/85/12
 | 
			
		||||
f 36/35/9 38/86/9 37/87/9 42/19/9 44/88/9 35/36/9
 | 
			
		||||
f 23/67/8 26/70/8 40/89/8 43/50/8
 | 
			
		||||
f 30/90/6 34/91/6 35/92/6 44/84/6
 | 
			
		||||
f 28/9/21 25/72/21 38/93/21 36/60/21
 | 
			
		||||
f 29/74/6 30/90/6 44/84/6 32/20/6
 | 
			
		||||
f 41/26/8 42/94/8 37/76/8 24/68/8 23/67/8 43/50/8
 | 
			
		||||
f 54/26/8 11/25/8 14/65/8 8/64/8
 | 
			
		||||
f 46/95/6 45/96/6 21/97/6 20/98/6
 | 
			
		||||
f 10/10/16 28/9/16 36/62/16 1/61/16
 | 
			
		||||
f 5/63/17 3/64/17 4/47/17 6/46/17
 | 
			
		||||
f 9/65/8 7/66/8 8/67/8 14/68/8
 | 
			
		||||
f 16/13/18 15/21/18 20/24/18 19/57/18
 | 
			
		||||
f 22/17/6 19/30/6 20/69/6 21/18/6
 | 
			
		||||
f 23/70/8 24/71/8 25/72/8 26/73/8
 | 
			
		||||
f 27/8/19 26/74/19 25/75/19 28/9/19
 | 
			
		||||
f 31/76/6 29/77/6 32/78/6 33/79/6
 | 
			
		||||
f 25/72/8 24/71/8 37/80/8 38/81/8
 | 
			
		||||
f 26/74/20 27/8/20 39/12/20 40/82/20
 | 
			
		||||
f 32/83/10 41/84/10 43/85/10 40/86/10 39/60/10 33/59/10
 | 
			
		||||
f 41/87/12 32/78/12 44/88/12 42/89/12
 | 
			
		||||
f 36/35/9 38/90/9 37/91/9 42/92/9 44/93/9 35/36/9
 | 
			
		||||
f 23/70/8 26/73/8 40/94/8 43/95/8
 | 
			
		||||
f 30/96/6 34/97/6 35/98/6 44/88/6
 | 
			
		||||
f 28/9/21 25/75/21 38/99/21 36/62/21
 | 
			
		||||
f 29/77/6 30/96/6 44/88/6 32/78/6
 | 
			
		||||
f 41/100/8 42/101/8 37/80/8 24/71/8 23/70/8 43/95/8
 | 
			
		||||
f 54/26/8 11/25/8 14/68/8 8/67/8
 | 
			
		||||
f 46/102/6 45/103/6 21/104/6 20/105/6
 | 
			
		||||
g Cube.002_Cube.001_Cube.002_Cube.001_edges
 | 
			
		||||
f 13/99/10 47/100/10 9/101/10 14/102/10
 | 
			
		||||
f 6/103/9 12/104/9 11/105/9 5/106/9
 | 
			
		||||
f 13/99/10 29/107/10 31/108/10 47/100/10
 | 
			
		||||
f 6/103/9 34/109/9 30/110/9 12/104/9
 | 
			
		||||
f 14/111/22 11/112/22 12/113/22 13/114/22
 | 
			
		||||
f 29/115/23 13/114/23 12/113/23 30/116/23
 | 
			
		||||
g Cube.002_Cube.001_Cube.002_Cube.001_trim
 | 
			
		||||
f 61/7/24 70/8/24 71/9/24 57/10/24
 | 
			
		||||
f 70/8/25 61/7/25 60/11/25 75/12/25
 | 
			
		||||
f 59/13/26 82/14/26 60/11/26 61/7/26
 | 
			
		||||
f 84/15/6 86/16/6 65/17/6 64/18/6 80/19/6 85/20/6
 | 
			
		||||
f 58/21/27 56/22/27 81/23/27 63/24/27
 | 
			
		||||
f 65/17/6 86/16/6 83/29/6 62/30/6
 | 
			
		||||
f 62/55/28 83/56/28 82/14/28 59/13/28
 | 
			
		||||
f 57/10/29 55/59/29 56/22/29 58/21/29
 | 
			
		||||
f 61/7/30 57/10/30 58/21/30 59/13/30
 | 
			
		||||
f 57/10/31 71/9/31 72/60/31 55/59/31
 | 
			
		||||
f 59/13/32 58/21/32 63/24/32 62/55/32
 | 
			
		||||
f 65/17/6 62/30/6 63/66/6 64/18/6
 | 
			
		||||
f 66/67/8 67/68/8 68/69/8 69/70/8
 | 
			
		||||
f 70/8/33 69/71/33 68/72/33 71/9/33
 | 
			
		||||
f 68/69/8 67/68/8 73/76/8 74/77/8
 | 
			
		||||
f 69/71/34 70/8/34 75/12/34 76/78/34
 | 
			
		||||
f 66/67/8 69/70/8 76/89/8 79/50/8
 | 
			
		||||
f 71/9/35 68/72/35 74/93/35 72/60/35
 | 
			
		||||
f 77/26/8 78/94/8 73/76/8 67/68/8 66/67/8 79/50/8
 | 
			
		||||
f 81/95/6 80/96/6 64/97/6 63/98/6
 | 
			
		||||
f 13/106/10 47/107/10 9/108/10 14/109/10
 | 
			
		||||
f 6/110/9 12/111/9 11/112/9 5/113/9
 | 
			
		||||
f 13/106/10 29/114/10 31/115/10 47/107/10
 | 
			
		||||
f 6/110/9 34/116/9 30/117/9 12/111/9
 | 
			
		||||
f 14/118/22 11/119/22 12/120/22 13/121/22
 | 
			
		||||
f 29/122/23 13/121/23 12/120/23 30/123/23
 | 
			
		||||
 
 | 
			
		||||
@@ -1,327 +1,335 @@
 | 
			
		||||
# Blender v2.72 (sub 0) OBJ File: 'book-open.blend'
 | 
			
		||||
# Blender v2.78 (sub 0) OBJ File: 'book-open.blend'
 | 
			
		||||
# www.blender.org
 | 
			
		||||
o Cube.002_Cube.001
 | 
			
		||||
v -0.216625 0.012428 -0.485966
 | 
			
		||||
v 0.220555 -0.000000 -0.486750
 | 
			
		||||
v 0.220555 0.321341 -0.485966
 | 
			
		||||
v -0.208120 -0.000001 -0.462863
 | 
			
		||||
v -0.208120 0.310920 -0.485966
 | 
			
		||||
v -0.208120 0.306022 -0.464409
 | 
			
		||||
v 0.212051 0.306022 -0.464409
 | 
			
		||||
v 0.212051 0.310921 -0.485966
 | 
			
		||||
v 0.212050 -0.000000 -0.462862
 | 
			
		||||
v 0.212050 0.016802 -0.500002
 | 
			
		||||
v -0.208120 0.016801 -0.500002
 | 
			
		||||
v -0.208120 0.046213 -0.500002
 | 
			
		||||
v 0.212050 0.046214 -0.500002
 | 
			
		||||
v -0.216625 0.046213 -0.500002
 | 
			
		||||
v -0.216625 0.020445 -0.500002
 | 
			
		||||
v 0.220555 0.012429 -0.485966
 | 
			
		||||
v 0.220555 0.020446 -0.500002
 | 
			
		||||
v 0.220555 0.321340 -0.500002
 | 
			
		||||
v -0.216624 0.321341 -0.500002
 | 
			
		||||
v 0.220555 0.046214 -0.500002
 | 
			
		||||
v -0.216624 0.321341 -0.485966
 | 
			
		||||
v -0.208120 0.238235 -0.450057
 | 
			
		||||
v -0.216625 -0.000001 -0.486750
 | 
			
		||||
v 0.212051 0.238236 -0.450057
 | 
			
		||||
v -0.208120 -0.306023 -0.464409
 | 
			
		||||
v 0.212051 -0.306023 -0.464409
 | 
			
		||||
v -0.208120 -0.238237 -0.450057
 | 
			
		||||
v 0.212051 -0.238237 -0.450057
 | 
			
		||||
v 0.212050 -0.046214 -0.500003
 | 
			
		||||
v -0.208120 -0.046215 -0.500003
 | 
			
		||||
v -0.208120 -0.016803 -0.500003
 | 
			
		||||
v 0.212050 -0.016803 -0.500003
 | 
			
		||||
v -0.216625 -0.000001 -0.481442
 | 
			
		||||
v 0.220555 -0.000000 -0.481442
 | 
			
		||||
v 0.212051 -0.310922 -0.485967
 | 
			
		||||
v -0.208120 -0.310922 -0.485967
 | 
			
		||||
v 0.220555 -0.321342 -0.485967
 | 
			
		||||
v -0.216625 -0.012430 -0.485967
 | 
			
		||||
v -0.216625 -0.046215 -0.500003
 | 
			
		||||
v -0.216625 -0.020447 -0.500003
 | 
			
		||||
v 0.220555 -0.012429 -0.485967
 | 
			
		||||
v 0.220555 -0.020446 -0.500003
 | 
			
		||||
v 0.220555 -0.321341 -0.500003
 | 
			
		||||
v -0.216624 -0.321343 -0.500003
 | 
			
		||||
v 0.220555 -0.046214 -0.500003
 | 
			
		||||
v -0.216624 -0.321343 -0.485967
 | 
			
		||||
v -0.208120 -0.000001 -0.486750
 | 
			
		||||
v 0.212050 -0.000000 -0.486750
 | 
			
		||||
v 0.212051 -0.086920 -0.442244
 | 
			
		||||
v -0.208120 -0.086920 -0.442244
 | 
			
		||||
v 0.212051 0.086847 -0.442244
 | 
			
		||||
v -0.208120 0.086847 -0.442244
 | 
			
		||||
v 0.212050 0.043405 -0.447755
 | 
			
		||||
v -0.208120 0.043405 -0.447755
 | 
			
		||||
v 0.212050 -0.043478 -0.447755
 | 
			
		||||
v -0.208120 -0.043478 -0.447755
 | 
			
		||||
v -0.216625 -0.010224 -0.490836
 | 
			
		||||
v -0.216625 0.006214 -0.482857
 | 
			
		||||
v 0.220555 0.006214 -0.482857
 | 
			
		||||
v -0.208120 0.008400 -0.490836
 | 
			
		||||
v 0.212050 0.008401 -0.490836
 | 
			
		||||
v 0.220555 0.010223 -0.490836
 | 
			
		||||
v -0.216625 0.010222 -0.490836
 | 
			
		||||
v 0.220555 -0.010223 -0.490836
 | 
			
		||||
v 0.212050 -0.008401 -0.490836
 | 
			
		||||
v -0.208120 -0.008402 -0.490836
 | 
			
		||||
v 0.220555 -0.006215 -0.482858
 | 
			
		||||
v -0.216625 -0.006215 -0.482858
 | 
			
		||||
v 0.212050 0.012429 -0.485966
 | 
			
		||||
v 0.212050 -0.000000 -0.481442
 | 
			
		||||
v 0.212050 -0.012429 -0.485967
 | 
			
		||||
v 0.212050 0.006214 -0.482857
 | 
			
		||||
v 0.212050 -0.006215 -0.482858
 | 
			
		||||
v -0.208120 0.012428 -0.485966
 | 
			
		||||
v -0.208120 -0.000001 -0.481442
 | 
			
		||||
v -0.208120 -0.012430 -0.485967
 | 
			
		||||
v -0.208120 0.006214 -0.482857
 | 
			
		||||
v -0.208120 -0.006215 -0.482858
 | 
			
		||||
vt 0.965735 0.839196
 | 
			
		||||
vt 0.711783 0.839196
 | 
			
		||||
vt 0.711783 0.832541
 | 
			
		||||
vt 0.711783 0.503765
 | 
			
		||||
vt 0.711783 0.497110
 | 
			
		||||
vt 0.965736 0.497110
 | 
			
		||||
vt 0.395683 0.494736
 | 
			
		||||
vt 0.395683 0.261171
 | 
			
		||||
vt 0.403533 0.261171
 | 
			
		||||
vt 0.403532 0.502890
 | 
			
		||||
vt 0.687998 0.839196
 | 
			
		||||
vt 0.684635 0.832541
 | 
			
		||||
vt 0.987044 0.738829
 | 
			
		||||
vt 0.987044 0.497110
 | 
			
		||||
vt 1.000000 0.497110
 | 
			
		||||
vt 0.999999 0.712393
 | 
			
		||||
vt 0.999999 0.732556
 | 
			
		||||
vt 0.992051 0.000000
 | 
			
		||||
vt 0.992051 0.342086
 | 
			
		||||
vt 0.979145 0.342086
 | 
			
		||||
vt 0.979145 0.000000
 | 
			
		||||
vt 0.969912 1.000000
 | 
			
		||||
vt 0.969911 0.758280
 | 
			
		||||
vt 0.982867 0.764553
 | 
			
		||||
vt 0.982867 0.784716
 | 
			
		||||
vt 0.982868 0.999999
 | 
			
		||||
vt 0.403533 0.241720
 | 
			
		||||
vt 0.395683 0.241720
 | 
			
		||||
vt 0.395683 0.008154
 | 
			
		||||
vt 0.403532 0.000000
 | 
			
		||||
vt 0.684634 0.503765
 | 
			
		||||
vt 0.007850 0.008154
 | 
			
		||||
vt 0.000000 0.000000
 | 
			
		||||
vt 0.657486 0.832541
 | 
			
		||||
vt 0.657486 0.503765
 | 
			
		||||
vt 0.657486 0.497110
 | 
			
		||||
vt 0.681271 0.497110
 | 
			
		||||
vt 0.969911 0.497110
 | 
			
		||||
vt 0.982867 0.497110
 | 
			
		||||
vt 0.982868 0.712393
 | 
			
		||||
vt 0.982868 0.732556
 | 
			
		||||
vt 0.969912 0.738829
 | 
			
		||||
vt 0.966239 0.000000
 | 
			
		||||
vt 0.966239 0.342086
 | 
			
		||||
vt 0.987044 0.758280
 | 
			
		||||
vt 1.000000 0.764553
 | 
			
		||||
vt 1.000000 0.784716
 | 
			
		||||
vt 0.999999 1.000000
 | 
			
		||||
vt 0.987043 1.000000
 | 
			
		||||
vt 0.681271 0.839196
 | 
			
		||||
vt 0.657486 0.839196
 | 
			
		||||
vt 0.000000 0.261171
 | 
			
		||||
vt 0.007850 0.261171
 | 
			
		||||
vt 0.007850 0.494736
 | 
			
		||||
vt 0.000000 0.502891
 | 
			
		||||
vt 0.403534 0.839196
 | 
			
		||||
vt 0.403533 0.497110
 | 
			
		||||
vt 0.687998 0.497110
 | 
			
		||||
vt 0.974407 0.740555
 | 
			
		||||
vt 0.970635 0.748555
 | 
			
		||||
vt 0.967042 0.743692
 | 
			
		||||
vt 0.965736 0.748555
 | 
			
		||||
vt 0.967042 0.753417
 | 
			
		||||
vt 0.974406 0.756554
 | 
			
		||||
vt 0.991539 0.740555
 | 
			
		||||
vt 0.987768 0.748555
 | 
			
		||||
vt 0.984174 0.743692
 | 
			
		||||
vt 0.982868 0.748555
 | 
			
		||||
vt 0.984174 0.753417
 | 
			
		||||
vt 0.991539 0.756554
 | 
			
		||||
vt 0.044849 0.844977
 | 
			
		||||
vt 0.035593 0.844977
 | 
			
		||||
vt 0.035446 0.838322
 | 
			
		||||
vt 0.044554 0.838322
 | 
			
		||||
vt 0.956803 0.342087
 | 
			
		||||
vt 0.956803 0.335432
 | 
			
		||||
vt 0.964557 0.335432
 | 
			
		||||
vt 0.947366 0.342087
 | 
			
		||||
vt 0.949048 0.335432
 | 
			
		||||
vt 0.045143 0.838322
 | 
			
		||||
vt 0.054251 0.838322
 | 
			
		||||
vt 0.054104 0.844977
 | 
			
		||||
vt 0.044554 0.509546
 | 
			
		||||
vt 0.035446 0.509546
 | 
			
		||||
vt 0.035593 0.502890
 | 
			
		||||
vt 0.044849 0.502891
 | 
			
		||||
vt 0.964557 0.006655
 | 
			
		||||
vt 0.956803 0.006655
 | 
			
		||||
vt 0.956803 0.000000
 | 
			
		||||
vt 0.949048 0.006655
 | 
			
		||||
vt 0.947366 0.000000
 | 
			
		||||
vt 0.054104 0.502891
 | 
			
		||||
vt 0.054251 0.509546
 | 
			
		||||
vt 0.045143 0.509546
 | 
			
		||||
vt 0.000000 0.256308
 | 
			
		||||
vt 0.000000 0.251445
 | 
			
		||||
vt 0.007850 0.251445
 | 
			
		||||
vt 0.007850 0.256308
 | 
			
		||||
vt 0.000000 0.246582
 | 
			
		||||
vt 0.000000 0.241720
 | 
			
		||||
vt 0.007850 0.241720
 | 
			
		||||
vt 0.007850 0.246582
 | 
			
		||||
vt 0.403533 0.251445
 | 
			
		||||
vt 0.403533 0.256308
 | 
			
		||||
vt 0.395683 0.256308
 | 
			
		||||
vt 0.395683 0.251445
 | 
			
		||||
vt 0.403533 0.246582
 | 
			
		||||
vt 0.395683 0.246582
 | 
			
		||||
vt 0.779948 0.000000
 | 
			
		||||
vt 0.779948 1.000000
 | 
			
		||||
vt 0.724984 1.000000
 | 
			
		||||
vt 0.724983 0.000000
 | 
			
		||||
vt 0.717416 1.000000
 | 
			
		||||
vt 0.662450 1.000000
 | 
			
		||||
vt 0.662449 0.000000
 | 
			
		||||
vt 0.717416 0.000000
 | 
			
		||||
vt 0.184400 1.000000
 | 
			
		||||
vt 0.126957 0.970419
 | 
			
		||||
vt 0.221962 0.896695
 | 
			
		||||
vt 0.485666 0.793134
 | 
			
		||||
vt 0.471964 0.896524
 | 
			
		||||
vt 0.376957 0.970419
 | 
			
		||||
vt 0.216239 0.433002
 | 
			
		||||
vt 0.126957 0.260013
 | 
			
		||||
vt 0.059402 0.000000
 | 
			
		||||
vt 0.001957 0.029581
 | 
			
		||||
vt 0.009688 0.014790
 | 
			
		||||
vt 0.235664 0.793305
 | 
			
		||||
vt 0.013207 0.000000
 | 
			
		||||
vt 0.091241 0.566998
 | 
			
		||||
vt 0.055557 0.728328
 | 
			
		||||
vt 0.001957 0.739987
 | 
			
		||||
vt 0.110666 0.206866
 | 
			
		||||
vt 0.134686 0.985210
 | 
			
		||||
vt 0.096964 0.103476
 | 
			
		||||
vt 0.180555 0.271672
 | 
			
		||||
vt 0.138205 1.000000
 | 
			
		||||
vt 0.341239 0.566998
 | 
			
		||||
vt 0.305555 0.728328
 | 
			
		||||
vt 0.251957 0.739987
 | 
			
		||||
vt 0.251957 0.029581
 | 
			
		||||
vt 0.360664 0.206695
 | 
			
		||||
vt 0.388207 1.000000
 | 
			
		||||
vt 0.384688 0.985210
 | 
			
		||||
vt 0.434402 1.000000
 | 
			
		||||
vt 0.346962 0.103305
 | 
			
		||||
vt 0.466241 0.433002
 | 
			
		||||
vt 0.376957 0.260013
 | 
			
		||||
vt 0.309400 0.000000
 | 
			
		||||
vt 0.259687 0.014790
 | 
			
		||||
vt 0.263205 0.000000
 | 
			
		||||
vt 0.430558 0.271672
 | 
			
		||||
vt 0.636817 0.156314
 | 
			
		||||
vt 0.875000 0.156314
 | 
			
		||||
vt 0.875000 0.984312
 | 
			
		||||
vt 0.636817 0.984312
 | 
			
		||||
vt 0.000000 0.156314
 | 
			
		||||
vt 0.125000 0.156314
 | 
			
		||||
vt 0.125000 0.984312
 | 
			
		||||
vt 0.000000 0.984313
 | 
			
		||||
vt 1.000000 0.156314
 | 
			
		||||
vt 1.000000 0.984313
 | 
			
		||||
vt 0.363296 0.156314
 | 
			
		||||
vt 0.431676 0.156314
 | 
			
		||||
vt 0.431676 0.984311
 | 
			
		||||
vt 0.363296 0.984312
 | 
			
		||||
vt 0.500000 0.156314
 | 
			
		||||
vt 0.568437 0.156314
 | 
			
		||||
vt 0.568437 0.984311
 | 
			
		||||
vt 0.500000 0.984311
 | 
			
		||||
vn 0.577300 0.577300 -0.577300
 | 
			
		||||
vn 0.707100 0.000000 -0.707100
 | 
			
		||||
vn 0.000000 0.000000 -1.000000
 | 
			
		||||
vn -0.707100 0.000000 -0.707100
 | 
			
		||||
vn -0.577300 0.577300 -0.577300
 | 
			
		||||
vn -0.246900 -0.280700 0.927500
 | 
			
		||||
vn -0.658800 -0.172900 0.732100
 | 
			
		||||
vn -0.762700 -0.148700 0.629400
 | 
			
		||||
vn -0.577300 -0.577300 0.577300
 | 
			
		||||
vn 0.668800 -0.216600 -0.711100
 | 
			
		||||
vn 0.071700 -0.428700 -0.900500
 | 
			
		||||
vn -0.762700 0.148700 0.629400
 | 
			
		||||
vn -0.577300 0.577300 0.577300
 | 
			
		||||
vn -0.668800 -0.216600 -0.711100
 | 
			
		||||
vn 0.577300 0.577300 0.577300
 | 
			
		||||
vn 0.762700 0.148700 0.629400
 | 
			
		||||
vn -0.658800 0.172900 0.732100
 | 
			
		||||
vn -0.246900 0.280700 0.927500
 | 
			
		||||
vn -0.071700 -0.428700 -0.900500
 | 
			
		||||
vn 0.246900 0.280700 0.927500
 | 
			
		||||
vn -0.071700 0.428800 -0.900500
 | 
			
		||||
vn 0.071700 0.428800 -0.900500
 | 
			
		||||
vn -0.668800 0.216600 -0.711100
 | 
			
		||||
vn 0.577300 -0.577300 0.577300
 | 
			
		||||
vn 0.577300 -0.577300 -0.577300
 | 
			
		||||
vn 0.668800 0.216600 -0.711100
 | 
			
		||||
vn 0.762700 -0.148700 0.629400
 | 
			
		||||
vn -0.577300 -0.577300 -0.577300
 | 
			
		||||
vn 0.658800 -0.172900 0.732100
 | 
			
		||||
vn 0.246900 -0.280700 0.927500
 | 
			
		||||
vn 0.794100 0.350300 -0.496700
 | 
			
		||||
vn 0.814600 0.000000 -0.580000
 | 
			
		||||
vn 0.681100 -0.246900 0.689300
 | 
			
		||||
vn 0.660400 0.000000 0.750900
 | 
			
		||||
vn 0.681100 0.246800 0.689300
 | 
			
		||||
vn 0.794100 -0.350300 -0.496700
 | 
			
		||||
vn -0.794100 -0.350300 -0.496700
 | 
			
		||||
vn -0.814600 0.000000 -0.580000
 | 
			
		||||
vn -0.681100 0.246800 0.689300
 | 
			
		||||
vn -0.660400 0.000000 0.750900
 | 
			
		||||
vn -0.681100 -0.246900 0.689300
 | 
			
		||||
vn -0.794100 0.350300 -0.496700
 | 
			
		||||
vn -0.062900 0.569600 -0.819500
 | 
			
		||||
vn -0.023700 0.000000 -0.999700
 | 
			
		||||
vn -0.062900 -0.569600 -0.819500
 | 
			
		||||
vn 0.062900 0.569600 -0.819500
 | 
			
		||||
vn 0.023700 0.000000 -0.999700
 | 
			
		||||
vn 0.062900 -0.569600 -0.819500
 | 
			
		||||
vn 0.760600 0.000000 0.649100
 | 
			
		||||
vn 0.735000 -0.228600 0.638300
 | 
			
		||||
vn 0.658800 0.172900 0.732100
 | 
			
		||||
vn 0.735000 0.228600 0.638300
 | 
			
		||||
vn -0.735000 -0.228600 0.638300
 | 
			
		||||
vn -0.760600 0.000000 0.649100
 | 
			
		||||
vn -0.735000 0.228600 0.638300
 | 
			
		||||
vn -0.603500 0.559600 0.567900
 | 
			
		||||
vn 0.603500 0.559600 0.567900
 | 
			
		||||
vn 0.603500 -0.559600 0.567900
 | 
			
		||||
vn -0.603500 -0.559600 0.567900
 | 
			
		||||
vn 0.789000 -0.000200 0.614300
 | 
			
		||||
vn 0.684400 -0.166600 0.709800
 | 
			
		||||
vn -0.687600 0.027100 0.725500
 | 
			
		||||
vn -0.684400 0.166400 0.709800
 | 
			
		||||
vn 0.689800 0.093900 0.717800
 | 
			
		||||
vn 0.687600 -0.027100 0.725500
 | 
			
		||||
vn 0.689800 -0.093900 0.717800
 | 
			
		||||
vn 0.687600 0.027100 0.725500
 | 
			
		||||
vn 0.684400 0.166400 0.709800
 | 
			
		||||
vn -0.689800 0.093900 0.717800
 | 
			
		||||
vn -0.687600 -0.027100 0.725500
 | 
			
		||||
vn -0.789000 -0.000200 0.614300
 | 
			
		||||
vn -0.684400 -0.166600 0.709800
 | 
			
		||||
vn -0.689800 -0.093900 0.717800
 | 
			
		||||
v -0.012428 -0.485966 0.216625
 | 
			
		||||
v 0.000000 -0.486750 -0.220555
 | 
			
		||||
v -0.321341 -0.485966 -0.220555
 | 
			
		||||
v 0.000001 -0.462863 0.208120
 | 
			
		||||
v -0.310920 -0.485966 0.208120
 | 
			
		||||
v -0.306022 -0.464409 0.208120
 | 
			
		||||
v -0.306022 -0.464409 -0.212051
 | 
			
		||||
v -0.310921 -0.485966 -0.212051
 | 
			
		||||
v 0.000000 -0.462862 -0.212050
 | 
			
		||||
v -0.016802 -0.500002 -0.212050
 | 
			
		||||
v -0.016801 -0.500002 0.208120
 | 
			
		||||
v -0.046213 -0.500002 0.208120
 | 
			
		||||
v -0.046214 -0.500002 -0.212050
 | 
			
		||||
v -0.046213 -0.500002 0.216625
 | 
			
		||||
v -0.020445 -0.500002 0.216625
 | 
			
		||||
v -0.012429 -0.485966 -0.220555
 | 
			
		||||
v -0.020446 -0.500002 -0.220555
 | 
			
		||||
v -0.321340 -0.500002 -0.220555
 | 
			
		||||
v -0.321341 -0.500002 0.216624
 | 
			
		||||
v -0.046214 -0.500002 -0.220555
 | 
			
		||||
v -0.321341 -0.485966 0.216624
 | 
			
		||||
v -0.238235 -0.450057 0.208120
 | 
			
		||||
v 0.000001 -0.486750 0.216625
 | 
			
		||||
v -0.238236 -0.450057 -0.212051
 | 
			
		||||
v 0.306023 -0.464409 0.208120
 | 
			
		||||
v 0.306023 -0.464409 -0.212051
 | 
			
		||||
v 0.238237 -0.450057 0.208120
 | 
			
		||||
v 0.238236 -0.450057 -0.212051
 | 
			
		||||
v 0.046214 -0.500003 -0.212050
 | 
			
		||||
v 0.046215 -0.500003 0.208120
 | 
			
		||||
v 0.016803 -0.500003 0.208120
 | 
			
		||||
v 0.016802 -0.500003 -0.212050
 | 
			
		||||
v 0.000001 -0.481442 0.216625
 | 
			
		||||
v 0.000000 -0.481442 -0.220555
 | 
			
		||||
v 0.310922 -0.485967 -0.212051
 | 
			
		||||
v 0.310922 -0.485967 0.208120
 | 
			
		||||
v 0.321342 -0.485967 -0.220555
 | 
			
		||||
v 0.012430 -0.485967 0.216625
 | 
			
		||||
v 0.046215 -0.500003 0.216625
 | 
			
		||||
v 0.020447 -0.500003 0.216625
 | 
			
		||||
v 0.012429 -0.485967 -0.220555
 | 
			
		||||
v 0.020446 -0.500003 -0.220555
 | 
			
		||||
v 0.321341 -0.500003 -0.220555
 | 
			
		||||
v 0.321343 -0.500003 0.216624
 | 
			
		||||
v 0.046214 -0.500003 -0.220555
 | 
			
		||||
v 0.321343 -0.485967 0.216624
 | 
			
		||||
v 0.000001 -0.486750 0.208120
 | 
			
		||||
v 0.000000 -0.486750 -0.212050
 | 
			
		||||
v 0.086920 -0.442244 -0.212051
 | 
			
		||||
v 0.086920 -0.442244 0.208120
 | 
			
		||||
v -0.086847 -0.442244 -0.212050
 | 
			
		||||
v -0.086847 -0.442244 0.208120
 | 
			
		||||
v -0.043405 -0.447755 -0.212050
 | 
			
		||||
v -0.043405 -0.447755 0.208120
 | 
			
		||||
v 0.043478 -0.447755 -0.212050
 | 
			
		||||
v 0.043478 -0.447755 0.208120
 | 
			
		||||
v 0.010224 -0.490836 0.216625
 | 
			
		||||
v -0.006214 -0.482857 0.216625
 | 
			
		||||
v -0.006214 -0.482857 -0.220555
 | 
			
		||||
v -0.008400 -0.490836 0.208120
 | 
			
		||||
v -0.008401 -0.490836 -0.212050
 | 
			
		||||
v -0.010223 -0.490836 -0.220555
 | 
			
		||||
v -0.010222 -0.490836 0.216625
 | 
			
		||||
v 0.010223 -0.490836 -0.220555
 | 
			
		||||
v 0.008401 -0.490836 -0.212050
 | 
			
		||||
v 0.008402 -0.490836 0.208120
 | 
			
		||||
v 0.006215 -0.482858 -0.220555
 | 
			
		||||
v 0.006215 -0.482858 0.216625
 | 
			
		||||
v -0.012429 -0.485966 -0.212050
 | 
			
		||||
v 0.000000 -0.481442 -0.212050
 | 
			
		||||
v 0.012429 -0.485967 -0.212050
 | 
			
		||||
v -0.006214 -0.482857 -0.212050
 | 
			
		||||
v 0.006215 -0.482858 -0.212050
 | 
			
		||||
v -0.012428 -0.485966 0.208120
 | 
			
		||||
v 0.000001 -0.481442 0.208120
 | 
			
		||||
v 0.012430 -0.485967 0.208120
 | 
			
		||||
v -0.006214 -0.482857 0.208120
 | 
			
		||||
v 0.006215 -0.482858 0.208120
 | 
			
		||||
vt 0.9657 0.8392
 | 
			
		||||
vt 0.7118 0.8392
 | 
			
		||||
vt 0.7118 0.8325
 | 
			
		||||
vt 0.7118 0.5038
 | 
			
		||||
vt 0.7118 0.4971
 | 
			
		||||
vt 0.9657 0.4971
 | 
			
		||||
vt 0.3957 0.4947
 | 
			
		||||
vt 0.3957 0.2612
 | 
			
		||||
vt 0.4035 0.2612
 | 
			
		||||
vt 0.4035 0.5029
 | 
			
		||||
vt 0.6880 0.8392
 | 
			
		||||
vt 0.6846 0.8325
 | 
			
		||||
vt 0.9870 0.7388
 | 
			
		||||
vt 0.9870 0.4971
 | 
			
		||||
vt 1.0000 0.4971
 | 
			
		||||
vt 1.0000 0.7124
 | 
			
		||||
vt 1.0000 0.7326
 | 
			
		||||
vt 0.9921 0.0000
 | 
			
		||||
vt 0.9921 0.3421
 | 
			
		||||
vt 0.9791 0.3421
 | 
			
		||||
vt 0.9791 0.0000
 | 
			
		||||
vt 0.9699 1.0000
 | 
			
		||||
vt 0.9699 0.7583
 | 
			
		||||
vt 0.9829 0.7646
 | 
			
		||||
vt 0.9829 0.7847
 | 
			
		||||
vt 0.9829 1.0000
 | 
			
		||||
vt 0.4035 0.2417
 | 
			
		||||
vt 0.3957 0.2417
 | 
			
		||||
vt 0.3957 0.0082
 | 
			
		||||
vt 0.4035 0.0000
 | 
			
		||||
vt 0.6846 0.5038
 | 
			
		||||
vt 0.0078 0.0082
 | 
			
		||||
vt 0.0000 0.0000
 | 
			
		||||
vt 0.6575 0.8325
 | 
			
		||||
vt 0.6575 0.5038
 | 
			
		||||
vt 0.6846 0.5038
 | 
			
		||||
vt 0.6846 0.8325
 | 
			
		||||
vt 0.6575 0.4971
 | 
			
		||||
vt 0.6813 0.4971
 | 
			
		||||
vt 0.9699 0.4971
 | 
			
		||||
vt 0.9829 0.4971
 | 
			
		||||
vt 0.9829 0.7124
 | 
			
		||||
vt 0.9829 0.7326
 | 
			
		||||
vt 0.9699 0.7388
 | 
			
		||||
vt 0.9662 0.0000
 | 
			
		||||
vt 0.9791 0.0000
 | 
			
		||||
vt 0.9791 0.3421
 | 
			
		||||
vt 0.9662 0.3421
 | 
			
		||||
vt 0.9870 0.7583
 | 
			
		||||
vt 1.0000 0.7646
 | 
			
		||||
vt 1.0000 0.7847
 | 
			
		||||
vt 1.0000 1.0000
 | 
			
		||||
vt 0.9870 1.0000
 | 
			
		||||
vt 0.6813 0.8392
 | 
			
		||||
vt 0.6575 0.8392
 | 
			
		||||
vt 0.0000 0.2612
 | 
			
		||||
vt 0.0079 0.2612
 | 
			
		||||
vt 0.0078 0.4947
 | 
			
		||||
vt 0.0000 0.5029
 | 
			
		||||
vt 0.4035 0.8392
 | 
			
		||||
vt 0.4035 0.4971
 | 
			
		||||
vt 0.6880 0.4971
 | 
			
		||||
vt 0.9744 0.7406
 | 
			
		||||
vt 0.9706 0.7486
 | 
			
		||||
vt 0.9670 0.7437
 | 
			
		||||
vt 0.9657 0.7486
 | 
			
		||||
vt 0.9670 0.7534
 | 
			
		||||
vt 0.9744 0.7566
 | 
			
		||||
vt 0.9915 0.7406
 | 
			
		||||
vt 0.9878 0.7486
 | 
			
		||||
vt 0.9842 0.7437
 | 
			
		||||
vt 0.9829 0.7486
 | 
			
		||||
vt 0.9842 0.7534
 | 
			
		||||
vt 0.9915 0.7566
 | 
			
		||||
vt 0.0448 0.8450
 | 
			
		||||
vt 0.0356 0.8450
 | 
			
		||||
vt 0.0354 0.8383
 | 
			
		||||
vt 0.0446 0.8383
 | 
			
		||||
vt 0.9662 0.3421
 | 
			
		||||
vt 0.9568 0.3421
 | 
			
		||||
vt 0.9568 0.3354
 | 
			
		||||
vt 0.9646 0.3354
 | 
			
		||||
vt 0.9474 0.3421
 | 
			
		||||
vt 0.9490 0.3354
 | 
			
		||||
vt 0.0448 0.8450
 | 
			
		||||
vt 0.0451 0.8383
 | 
			
		||||
vt 0.0543 0.8383
 | 
			
		||||
vt 0.0541 0.8450
 | 
			
		||||
vt 0.0446 0.5095
 | 
			
		||||
vt 0.0354 0.5095
 | 
			
		||||
vt 0.0356 0.5029
 | 
			
		||||
vt 0.0448 0.5029
 | 
			
		||||
vt 0.9662 0.0000
 | 
			
		||||
vt 0.9646 0.0067
 | 
			
		||||
vt 0.9568 0.0067
 | 
			
		||||
vt 0.9568 0.0000
 | 
			
		||||
vt 0.9490 0.0067
 | 
			
		||||
vt 0.9474 0.0000
 | 
			
		||||
vt 0.0448 0.5029
 | 
			
		||||
vt 0.0541 0.5029
 | 
			
		||||
vt 0.0543 0.5095
 | 
			
		||||
vt 0.0451 0.5095
 | 
			
		||||
vt 0.0000 0.2563
 | 
			
		||||
vt 0.0000 0.2514
 | 
			
		||||
vt 0.0079 0.2514
 | 
			
		||||
vt 0.0079 0.2563
 | 
			
		||||
vt 0.0000 0.2466
 | 
			
		||||
vt 0.0000 0.2417
 | 
			
		||||
vt 0.0079 0.2417
 | 
			
		||||
vt 0.0079 0.2466
 | 
			
		||||
vt 0.4035 0.2514
 | 
			
		||||
vt 0.4035 0.2563
 | 
			
		||||
vt 0.3957 0.2563
 | 
			
		||||
vt 0.3957 0.2514
 | 
			
		||||
vt 0.4035 0.2466
 | 
			
		||||
vt 0.3957 0.2466
 | 
			
		||||
vt 0.7799 0.0000
 | 
			
		||||
vt 0.7799 1.0000
 | 
			
		||||
vt 0.7250 1.0000
 | 
			
		||||
vt 0.7250 0.0000
 | 
			
		||||
vt 0.7174 1.0000
 | 
			
		||||
vt 0.6624 1.0000
 | 
			
		||||
vt 0.6624 0.0000
 | 
			
		||||
vt 0.7174 0.0000
 | 
			
		||||
vt 0.1844 1.0000
 | 
			
		||||
vt 0.1270 0.9704
 | 
			
		||||
vt 0.2220 0.8967
 | 
			
		||||
vt 0.4857 0.7931
 | 
			
		||||
vt 0.4720 0.8965
 | 
			
		||||
vt 0.3770 0.9704
 | 
			
		||||
vt 0.2162 0.4330
 | 
			
		||||
vt 0.1270 0.2600
 | 
			
		||||
vt 0.0594 0.0000
 | 
			
		||||
vt 0.0020 0.0296
 | 
			
		||||
vt 0.0097 0.0148
 | 
			
		||||
vt 0.2357 0.7933
 | 
			
		||||
vt 0.0132 0.0000
 | 
			
		||||
vt 0.0912 0.5670
 | 
			
		||||
vt 0.0556 0.7283
 | 
			
		||||
vt 0.0020 0.7400
 | 
			
		||||
vt 0.1107 0.2069
 | 
			
		||||
vt 0.1347 0.9852
 | 
			
		||||
vt 0.0970 0.1035
 | 
			
		||||
vt 0.1806 0.2717
 | 
			
		||||
vt 0.1382 1.0000
 | 
			
		||||
vt 0.3412 0.5670
 | 
			
		||||
vt 0.3056 0.7283
 | 
			
		||||
vt 0.2520 0.7400
 | 
			
		||||
vt 0.2520 0.0296
 | 
			
		||||
vt 0.3607 0.2067
 | 
			
		||||
vt 0.3882 1.0000
 | 
			
		||||
vt 0.3847 0.9852
 | 
			
		||||
vt 0.4344 1.0000
 | 
			
		||||
vt 0.3470 0.1033
 | 
			
		||||
vt 0.4662 0.4330
 | 
			
		||||
vt 0.3770 0.2600
 | 
			
		||||
vt 0.3094 0.0000
 | 
			
		||||
vt 0.2597 0.0148
 | 
			
		||||
vt 0.2632 0.0000
 | 
			
		||||
vt 0.4306 0.2717
 | 
			
		||||
vt 0.6368 0.1563
 | 
			
		||||
vt 0.8750 0.1563
 | 
			
		||||
vt 0.8750 0.9843
 | 
			
		||||
vt 0.6368 0.9843
 | 
			
		||||
vt 0.0000 0.1563
 | 
			
		||||
vt 0.1250 0.1563
 | 
			
		||||
vt 0.1250 0.9843
 | 
			
		||||
vt 0.0000 0.9843
 | 
			
		||||
vt 1.0000 0.1563
 | 
			
		||||
vt 1.0000 0.9843
 | 
			
		||||
vt 0.3633 0.1563
 | 
			
		||||
vt 0.4317 0.1563
 | 
			
		||||
vt 0.4317 0.9843
 | 
			
		||||
vt 0.3633 0.9843
 | 
			
		||||
vt 0.5000 0.1563
 | 
			
		||||
vt 0.5684 0.1563
 | 
			
		||||
vt 0.5684 0.9843
 | 
			
		||||
vt 0.5000 0.9843
 | 
			
		||||
vn -0.5773 -0.5773 -0.5773
 | 
			
		||||
vn 0.0000 -0.7071 -0.7071
 | 
			
		||||
vn 0.0000 -1.0000 0.0000
 | 
			
		||||
vn 0.0000 -0.7071 0.7071
 | 
			
		||||
vn -0.5773 -0.5773 0.5773
 | 
			
		||||
vn 0.2807 0.9275 0.2469
 | 
			
		||||
vn 0.1729 0.7321 0.6588
 | 
			
		||||
vn 0.1487 0.6294 0.7627
 | 
			
		||||
vn 0.5773 0.5773 0.5773
 | 
			
		||||
vn 0.2166 -0.7111 -0.6688
 | 
			
		||||
vn 0.4287 -0.9005 -0.0717
 | 
			
		||||
vn -0.1487 0.6294 0.7627
 | 
			
		||||
vn -0.5773 0.5773 0.5773
 | 
			
		||||
vn 0.2166 -0.7111 0.6688
 | 
			
		||||
vn -0.5773 0.5773 -0.5773
 | 
			
		||||
vn -0.1487 0.6294 -0.7627
 | 
			
		||||
vn -0.1729 0.7321 0.6588
 | 
			
		||||
vn -0.2807 0.9275 0.2469
 | 
			
		||||
vn 0.4287 -0.9005 0.0717
 | 
			
		||||
vn -0.2807 0.9275 -0.2469
 | 
			
		||||
vn -0.4288 -0.9005 0.0717
 | 
			
		||||
vn -0.4288 -0.9005 -0.0717
 | 
			
		||||
vn -0.2166 -0.7111 0.6688
 | 
			
		||||
vn 0.5773 0.5773 -0.5773
 | 
			
		||||
vn 0.5773 -0.5773 -0.5773
 | 
			
		||||
vn -0.2166 -0.7111 -0.6688
 | 
			
		||||
vn 0.1487 0.6294 -0.7627
 | 
			
		||||
vn 0.5773 -0.5773 0.5773
 | 
			
		||||
vn 0.1729 0.7321 -0.6588
 | 
			
		||||
vn 0.2807 0.9275 -0.2469
 | 
			
		||||
vn -0.3503 -0.4967 -0.7941
 | 
			
		||||
vn 0.0000 -0.5800 -0.8146
 | 
			
		||||
vn 0.2469 0.6893 -0.6811
 | 
			
		||||
vn 0.0000 0.7509 -0.6604
 | 
			
		||||
vn -0.2468 0.6893 -0.6811
 | 
			
		||||
vn 0.3503 -0.4967 -0.7941
 | 
			
		||||
vn 0.3503 -0.4967 0.7941
 | 
			
		||||
vn 0.0000 -0.5800 0.8146
 | 
			
		||||
vn -0.2468 0.6893 0.6811
 | 
			
		||||
vn 0.0000 0.7509 0.6604
 | 
			
		||||
vn 0.2469 0.6893 0.6811
 | 
			
		||||
vn -0.3503 -0.4967 0.7941
 | 
			
		||||
vn -0.5696 -0.8195 0.0629
 | 
			
		||||
vn 0.0000 -0.9997 0.0237
 | 
			
		||||
vn 0.5696 -0.8195 0.0629
 | 
			
		||||
vn -0.5696 -0.8195 -0.0629
 | 
			
		||||
vn 0.0000 -0.9997 -0.0237
 | 
			
		||||
vn 0.5696 -0.8195 -0.0629
 | 
			
		||||
vn 0.0000 0.6491 -0.7606
 | 
			
		||||
vn 0.2286 0.6383 -0.7350
 | 
			
		||||
vn -0.1729 0.7321 -0.6588
 | 
			
		||||
vn -0.2286 0.6383 -0.7350
 | 
			
		||||
vn 0.2286 0.6383 0.7350
 | 
			
		||||
vn 0.0000 0.6491 0.7606
 | 
			
		||||
vn -0.2286 0.6383 0.7350
 | 
			
		||||
vn -0.5596 0.5679 0.6035
 | 
			
		||||
vn -0.5596 0.5679 -0.6035
 | 
			
		||||
vn 0.5596 0.5679 -0.6035
 | 
			
		||||
vn 0.5596 0.5679 0.6035
 | 
			
		||||
vn 0.0002 0.6143 -0.7890
 | 
			
		||||
vn 0.1666 0.7098 -0.6844
 | 
			
		||||
vn -0.0271 0.7255 0.6876
 | 
			
		||||
vn -0.1664 0.7098 0.6844
 | 
			
		||||
vn -0.0939 0.7178 -0.6898
 | 
			
		||||
vn 0.0271 0.7255 -0.6876
 | 
			
		||||
vn 0.0939 0.7178 -0.6898
 | 
			
		||||
vn -0.0271 0.7255 -0.6876
 | 
			
		||||
vn -0.1664 0.7098 -0.6844
 | 
			
		||||
vn -0.0939 0.7178 0.6898
 | 
			
		||||
vn 0.0271 0.7255 0.6876
 | 
			
		||||
vn 0.0002 0.6143 0.7890
 | 
			
		||||
vn 0.1666 0.7098 0.6844
 | 
			
		||||
vn 0.0939 0.7178 0.6898
 | 
			
		||||
g Cube.002_Cube.001_Cube.002_Cube.001_cover
 | 
			
		||||
s 1
 | 
			
		||||
f 18/1/1 20/2/2 13/3/3 12/4/3 14/5/4 19/6/5
 | 
			
		||||
@@ -333,86 +341,86 @@ f 3/22/15 16/23/16 17/24/10 20/25/2 18/26/1
 | 
			
		||||
f 1/27/12 74/28/17 5/29/18 21/30/13
 | 
			
		||||
f 13/3/3 10/12/11 11/31/19 12/4/3
 | 
			
		||||
f 21/30/13 5/29/18 8/32/20 3/33/15
 | 
			
		||||
f 29/34/3 30/35/3 31/31/21 32/12/22
 | 
			
		||||
f 31/31/21 30/35/3 39/36/4 40/37/23
 | 
			
		||||
f 37/38/24 43/39/25 45/40/2 42/41/26 41/42/27
 | 
			
		||||
f 43/43/25 37/21/24 46/20/9 44/44/28
 | 
			
		||||
f 38/45/8 40/46/23 39/47/4 44/48/28 46/49/9
 | 
			
		||||
f 29/34/3 32/12/22 42/50/26 45/51/2
 | 
			
		||||
f 41/52/27 71/53/29 35/54/30 37/55/24
 | 
			
		||||
f 35/54/30 36/7/6 46/10/9 37/55/24
 | 
			
		||||
f 43/56/25 44/57/28 39/36/4 30/35/3 29/34/3 45/51/2
 | 
			
		||||
f 15/58/14 14/5/4 12/4/3 11/31/19
 | 
			
		||||
f 42/41/26 64/59/31 41/42/27
 | 
			
		||||
f 41/42/27 64/59/31 2/60/32 67/61/33
 | 
			
		||||
f 67/61/33 2/60/32 34/62/34
 | 
			
		||||
f 34/62/34 2/60/32 59/63/35
 | 
			
		||||
f 2/60/32 62/64/36 16/23/16 59/63/35
 | 
			
		||||
f 16/23/16 62/64/36 17/24/10
 | 
			
		||||
f 15/17/14 63/65/37 1/13/12
 | 
			
		||||
f 23/66/38 58/67/39 1/13/12 63/65/37
 | 
			
		||||
f 58/67/39 23/66/38 33/68/40
 | 
			
		||||
f 68/69/41 33/68/40 23/66/38
 | 
			
		||||
f 38/45/8 68/69/41 23/66/38 57/70/42
 | 
			
		||||
f 57/70/42 40/46/23 38/45/8
 | 
			
		||||
f 40/71/23 57/72/42 66/73/43 31/74/21
 | 
			
		||||
f 57/44/42 23/75/38 47/76/44 66/77/43
 | 
			
		||||
f 47/76/44 23/75/38 63/78/37 60/79/45
 | 
			
		||||
f 15/71/14 11/80/19 60/81/45 63/82/37
 | 
			
		||||
f 32/83/22 65/84/46 64/85/31 42/86/26
 | 
			
		||||
f 64/43/31 65/87/46 48/88/47 2/89/32
 | 
			
		||||
f 48/88/47 61/90/48 62/91/36 2/89/32
 | 
			
		||||
f 17/86/10 62/92/36 61/93/48 10/94/11
 | 
			
		||||
f 67/95/33 34/96/34 70/97/49 73/98/50
 | 
			
		||||
f 59/99/35 16/100/16 69/101/51 72/102/52
 | 
			
		||||
f 41/52/27 67/95/33 73/98/50 71/53/29
 | 
			
		||||
f 34/96/34 59/99/35 72/102/52 70/97/49
 | 
			
		||||
f 33/103/40 68/104/41 78/105/53 75/106/54
 | 
			
		||||
f 1/27/12 58/107/39 77/108/55 74/28/17
 | 
			
		||||
f 68/104/41 38/9/8 76/8/7 78/105/53
 | 
			
		||||
f 58/107/39 33/103/40 75/106/54 77/108/55
 | 
			
		||||
f 8/32/20 69/101/51 16/100/16 3/33/15
 | 
			
		||||
f 10/94/11 61/93/48 60/81/45 11/80/19
 | 
			
		||||
f 47/76/44 60/79/45 61/90/48 48/88/47
 | 
			
		||||
f 65/87/46 66/77/43 47/76/44 48/88/47
 | 
			
		||||
f 31/74/21 66/73/43 65/84/46 32/83/22
 | 
			
		||||
f 29/34/3 30/35/3 31/36/21 32/37/22
 | 
			
		||||
f 31/36/21 30/35/3 39/38/4 40/39/23
 | 
			
		||||
f 37/40/24 43/41/25 45/42/2 42/43/26 41/44/27
 | 
			
		||||
f 43/45/25 37/46/24 46/47/9 44/48/28
 | 
			
		||||
f 38/49/8 40/50/23 39/51/4 44/52/28 46/53/9
 | 
			
		||||
f 29/34/3 32/37/22 42/54/26 45/55/2
 | 
			
		||||
f 41/56/27 71/57/29 35/58/30 37/59/24
 | 
			
		||||
f 35/58/30 36/7/6 46/10/9 37/59/24
 | 
			
		||||
f 43/60/25 44/61/28 39/38/4 30/35/3 29/34/3 45/55/2
 | 
			
		||||
f 15/62/14 14/5/4 12/4/3 11/31/19
 | 
			
		||||
f 42/43/26 64/63/31 41/44/27
 | 
			
		||||
f 41/44/27 64/63/31 2/64/32 67/65/33
 | 
			
		||||
f 67/65/33 2/64/32 34/66/34
 | 
			
		||||
f 34/66/34 2/64/32 59/67/35
 | 
			
		||||
f 2/64/32 62/68/36 16/23/16 59/67/35
 | 
			
		||||
f 16/23/16 62/68/36 17/24/10
 | 
			
		||||
f 15/17/14 63/69/37 1/13/12
 | 
			
		||||
f 23/70/38 58/71/39 1/13/12 63/69/37
 | 
			
		||||
f 58/71/39 23/70/38 33/72/40
 | 
			
		||||
f 68/73/41 33/72/40 23/70/38
 | 
			
		||||
f 38/49/8 68/73/41 23/70/38 57/74/42
 | 
			
		||||
f 57/74/42 40/50/23 38/49/8
 | 
			
		||||
f 40/75/23 57/76/42 66/77/43 31/78/21
 | 
			
		||||
f 57/79/42 23/80/38 47/81/44 66/82/43
 | 
			
		||||
f 47/81/44 23/80/38 63/83/37 60/84/45
 | 
			
		||||
f 15/85/14 11/86/19 60/87/45 63/88/37
 | 
			
		||||
f 32/89/22 65/90/46 64/91/31 42/92/26
 | 
			
		||||
f 64/93/31 65/94/46 48/95/47 2/96/32
 | 
			
		||||
f 48/95/47 61/97/48 62/98/36 2/96/32
 | 
			
		||||
f 17/99/10 62/100/36 61/101/48 10/102/11
 | 
			
		||||
f 67/103/33 34/104/34 70/105/49 73/106/50
 | 
			
		||||
f 59/107/35 16/108/16 69/109/51 72/110/52
 | 
			
		||||
f 41/56/27 67/103/33 73/106/50 71/57/29
 | 
			
		||||
f 34/104/34 59/107/35 72/110/52 70/105/49
 | 
			
		||||
f 33/111/40 68/112/41 78/113/53 75/114/54
 | 
			
		||||
f 1/27/12 58/115/39 77/116/55 74/28/17
 | 
			
		||||
f 68/112/41 38/9/8 76/8/7 78/113/53
 | 
			
		||||
f 58/115/39 33/111/40 75/114/54 77/116/55
 | 
			
		||||
f 8/32/20 69/109/51 16/108/16 3/33/15
 | 
			
		||||
f 10/102/11 61/101/48 60/87/45 11/86/19
 | 
			
		||||
f 47/81/44 60/84/45 61/97/48 48/95/47
 | 
			
		||||
f 65/94/46 66/82/43 47/81/44 48/95/47
 | 
			
		||||
f 31/78/21 66/77/43 65/90/46 32/89/22
 | 
			
		||||
g Cube.002_Cube.001_Cube.002_Cube.001_edges
 | 
			
		||||
f 8/109/20 5/110/18 6/111/56 7/112/57
 | 
			
		||||
f 35/113/30 26/114/58 25/115/59 36/116/6
 | 
			
		||||
f 9/117/60 69/118/51 53/119/61
 | 
			
		||||
f 50/120/62 56/121/63 76/122/7
 | 
			
		||||
f 24/123/64 69/118/51 8/124/20
 | 
			
		||||
f 9/125/60 71/126/29 73/127/50
 | 
			
		||||
f 51/128/65 53/119/61 69/118/51
 | 
			
		||||
f 9/125/60 73/127/50 70/129/49
 | 
			
		||||
f 28/130/66 26/131/58 35/132/30
 | 
			
		||||
f 71/126/29 49/133/67 28/130/66
 | 
			
		||||
f 72/134/52 69/118/51 9/117/60
 | 
			
		||||
f 71/126/29 55/135/68 49/133/67
 | 
			
		||||
f 28/130/66 35/132/30 71/126/29
 | 
			
		||||
f 24/123/64 8/124/20 7/136/57
 | 
			
		||||
f 69/118/51 24/123/64 51/128/65
 | 
			
		||||
f 9/125/60 55/135/68 71/126/29
 | 
			
		||||
f 70/137/49 72/134/52 9/117/60
 | 
			
		||||
f 22/138/69 6/139/56 5/140/18
 | 
			
		||||
f 74/141/17 52/142/70 22/138/69
 | 
			
		||||
f 75/143/54 78/144/53 4/145/71
 | 
			
		||||
f 74/141/17 54/146/72 52/142/70
 | 
			
		||||
f 22/138/69 5/140/18 74/141/17
 | 
			
		||||
f 27/147/73 76/122/7 36/148/6
 | 
			
		||||
f 4/149/71 74/141/17 77/150/55
 | 
			
		||||
f 27/147/73 50/120/62 76/122/7
 | 
			
		||||
f 4/149/71 77/150/55 75/151/54
 | 
			
		||||
f 4/145/71 78/144/53 76/122/7
 | 
			
		||||
f 4/149/71 54/146/72 74/141/17
 | 
			
		||||
f 27/147/73 36/148/6 25/152/59
 | 
			
		||||
f 56/121/63 4/145/71 76/122/7
 | 
			
		||||
f 8/117/20 5/118/18 6/119/56 7/120/57
 | 
			
		||||
f 35/121/30 26/122/58 25/123/59 36/124/6
 | 
			
		||||
f 9/125/60 69/126/51 53/127/61
 | 
			
		||||
f 50/128/62 56/129/63 76/130/7
 | 
			
		||||
f 24/131/64 69/126/51 8/132/20
 | 
			
		||||
f 9/133/60 71/134/29 73/135/50
 | 
			
		||||
f 51/136/65 53/127/61 69/126/51
 | 
			
		||||
f 9/133/60 73/135/50 70/137/49
 | 
			
		||||
f 28/138/66 26/139/58 35/140/30
 | 
			
		||||
f 71/134/29 49/141/67 28/138/66
 | 
			
		||||
f 72/142/52 69/126/51 9/125/60
 | 
			
		||||
f 71/134/29 55/143/68 49/141/67
 | 
			
		||||
f 28/138/66 35/140/30 71/134/29
 | 
			
		||||
f 24/131/64 8/132/20 7/144/57
 | 
			
		||||
f 69/126/51 24/131/64 51/136/65
 | 
			
		||||
f 9/133/60 55/143/68 71/134/29
 | 
			
		||||
f 70/145/49 72/142/52 9/125/60
 | 
			
		||||
f 22/146/69 6/147/56 5/148/18
 | 
			
		||||
f 74/149/17 52/150/70 22/146/69
 | 
			
		||||
f 75/151/54 78/152/53 4/153/71
 | 
			
		||||
f 74/149/17 54/154/72 52/150/70
 | 
			
		||||
f 22/146/69 5/148/18 74/149/17
 | 
			
		||||
f 27/155/73 76/130/7 36/156/6
 | 
			
		||||
f 4/157/71 74/149/17 77/158/55
 | 
			
		||||
f 27/155/73 50/128/62 76/130/7
 | 
			
		||||
f 4/157/71 77/158/55 75/159/54
 | 
			
		||||
f 4/153/71 78/152/53 76/130/7
 | 
			
		||||
f 4/157/71 54/154/72 74/149/17
 | 
			
		||||
f 27/155/73 36/156/6 25/160/59
 | 
			
		||||
f 56/129/63 4/153/71 76/130/7
 | 
			
		||||
g Cube.002_Cube.001_Cube.002_Cube.001_pages
 | 
			
		||||
f 50/153/62 27/154/73 28/155/66 49/156/67
 | 
			
		||||
f 6/157/56 22/158/69 24/159/64 7/160/57
 | 
			
		||||
f 27/154/73 25/161/59 26/162/58 28/155/66
 | 
			
		||||
f 52/163/70 54/164/72 53/165/61 51/166/65
 | 
			
		||||
f 22/158/69 52/163/70 51/166/65 24/159/64
 | 
			
		||||
f 4/167/71 56/168/63 55/169/68 9/170/60
 | 
			
		||||
f 54/164/72 4/167/71 9/170/60 53/165/61
 | 
			
		||||
f 56/168/63 50/153/62 49/156/67 55/169/68
 | 
			
		||||
f 50/161/62 27/162/73 28/163/66 49/164/67
 | 
			
		||||
f 6/165/56 22/166/69 24/167/64 7/168/57
 | 
			
		||||
f 27/162/73 25/169/59 26/170/58 28/163/66
 | 
			
		||||
f 52/171/70 54/172/72 53/173/61 51/174/65
 | 
			
		||||
f 22/166/69 52/171/70 51/174/65 24/167/64
 | 
			
		||||
f 4/175/71 56/176/63 55/177/68 9/178/60
 | 
			
		||||
f 54/172/72 4/175/71 9/178/60 53/173/61
 | 
			
		||||
f 56/176/63 50/161/62 49/164/67 55/177/68
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										202
									
								
								homedecor/models/plasma_lamp.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,202 @@
 | 
			
		||||
# Blender v2.78 (sub 0) OBJ File: ''
 | 
			
		||||
# www.blender.org
 | 
			
		||||
o Cube_Cube.001
 | 
			
		||||
v 0.500000 -0.500000 -0.500000
 | 
			
		||||
v 0.500000 0.500000 -0.500000
 | 
			
		||||
v 0.500000 -0.500000 0.500000
 | 
			
		||||
v 0.500000 0.500000 0.500000
 | 
			
		||||
v -0.500000 -0.500000 -0.500000
 | 
			
		||||
v -0.500000 0.500000 -0.500000
 | 
			
		||||
v -0.500000 -0.500000 0.500000
 | 
			
		||||
v -0.500000 0.500000 0.500000
 | 
			
		||||
v 0.437500 -0.437500 -0.437500
 | 
			
		||||
v 0.437500 0.437500 -0.437500
 | 
			
		||||
v 0.437500 -0.437500 0.437500
 | 
			
		||||
v 0.437500 0.437500 0.437500
 | 
			
		||||
v -0.437500 -0.437500 -0.437500
 | 
			
		||||
v -0.437500 0.437500 -0.437500
 | 
			
		||||
v -0.437500 -0.437500 0.437500
 | 
			
		||||
v -0.437500 0.437500 0.437500
 | 
			
		||||
v -0.500000 -0.437500 -0.437500
 | 
			
		||||
v -0.500000 0.437500 -0.437500
 | 
			
		||||
v -0.500000 -0.437500 0.437500
 | 
			
		||||
v -0.500000 0.437500 0.437500
 | 
			
		||||
v 0.500000 -0.437500 -0.437500
 | 
			
		||||
v 0.500000 0.437500 -0.437500
 | 
			
		||||
v 0.500000 -0.437500 0.437500
 | 
			
		||||
v 0.500000 0.437500 0.437500
 | 
			
		||||
v 0.437500 -0.437500 -0.500000
 | 
			
		||||
v 0.437500 0.437500 -0.500000
 | 
			
		||||
v -0.437500 -0.437500 -0.500000
 | 
			
		||||
v -0.437500 0.437500 -0.500000
 | 
			
		||||
v 0.437500 -0.437500 0.500000
 | 
			
		||||
v 0.437500 0.437500 0.500000
 | 
			
		||||
v -0.437500 -0.437500 0.500000
 | 
			
		||||
v -0.437500 0.437500 0.500000
 | 
			
		||||
v 0.437500 0.500000 -0.437500
 | 
			
		||||
v 0.437500 0.500000 0.437500
 | 
			
		||||
v -0.437500 0.500000 -0.437500
 | 
			
		||||
v -0.437500 0.500000 0.437500
 | 
			
		||||
v 0.437500 -0.500000 -0.437500
 | 
			
		||||
v 0.437500 -0.500000 0.437500
 | 
			
		||||
v -0.437500 -0.500000 -0.437500
 | 
			
		||||
v -0.437500 -0.500000 0.437500
 | 
			
		||||
vt 0.0625 0.0000
 | 
			
		||||
vt 0.9375 0.0000
 | 
			
		||||
vt 0.9375 0.0625
 | 
			
		||||
vt 0.0625 0.0625
 | 
			
		||||
vt -0.0000 0.9375
 | 
			
		||||
vt -0.0000 0.0625
 | 
			
		||||
vt 0.0625 0.9375
 | 
			
		||||
vt -0.0000 0.0625
 | 
			
		||||
vt -0.0000 0.9375
 | 
			
		||||
vt -0.0000 0.9375
 | 
			
		||||
vt -0.0000 0.0625
 | 
			
		||||
vt 0.0625 0.0625
 | 
			
		||||
vt 0.0625 0.9375
 | 
			
		||||
vt -0.0000 0.9375
 | 
			
		||||
vt 0.0625 0.9375
 | 
			
		||||
vt 0.0625 0.0625
 | 
			
		||||
vt -0.0000 0.0625
 | 
			
		||||
vt 0.9375 0.0000
 | 
			
		||||
vt 0.0625 0.0000
 | 
			
		||||
vt 0.9375 0.0625
 | 
			
		||||
vt 0.0625 0.9375
 | 
			
		||||
vt 0.0625 0.0625
 | 
			
		||||
vt -0.0000 0.0625
 | 
			
		||||
vt -0.0000 0.9375
 | 
			
		||||
vt 1.0000 0.9375
 | 
			
		||||
vt 1.0000 0.0625
 | 
			
		||||
vt 0.9375 0.9375
 | 
			
		||||
vt 1.0000 0.9375
 | 
			
		||||
vt 0.9375 0.9375
 | 
			
		||||
vt 1.0000 0.9375
 | 
			
		||||
vt 0.9375 0.9375
 | 
			
		||||
vt 0.9375 0.0625
 | 
			
		||||
vt 1.0000 0.0625
 | 
			
		||||
vt 1.0000 0.0625
 | 
			
		||||
vt 1.0000 0.9375
 | 
			
		||||
vt 1.0000 0.0625
 | 
			
		||||
vt 0.9375 1.0000
 | 
			
		||||
vt 0.0625 1.0000
 | 
			
		||||
vt 0.9375 0.9375
 | 
			
		||||
vt 0.9375 0.0625
 | 
			
		||||
vt 1.0000 0.0625
 | 
			
		||||
vt 1.0000 0.9375
 | 
			
		||||
vt 0.0625 1.0000
 | 
			
		||||
vt 0.9375 1.0000
 | 
			
		||||
vt 0.0625 0.0000
 | 
			
		||||
vt 0.9375 0.0000
 | 
			
		||||
vt 0.0625 0.0000
 | 
			
		||||
vt 0.9375 0.0000
 | 
			
		||||
vt 0.0625 0.0000
 | 
			
		||||
vt 0.9375 0.0000
 | 
			
		||||
vt 0.0625 1.0000
 | 
			
		||||
vt 0.9375 1.0000
 | 
			
		||||
vt 0.0625 1.0000
 | 
			
		||||
vt 0.9375 1.0000
 | 
			
		||||
vt 0.0625 1.0000
 | 
			
		||||
vt 0.9375 1.0000
 | 
			
		||||
vt -0.0000 0.0000
 | 
			
		||||
vt 1.0000 0.0000
 | 
			
		||||
vt 0.9375 0.0625
 | 
			
		||||
vt 0.0625 0.0625
 | 
			
		||||
vt -0.0000 1.0000
 | 
			
		||||
vt 0.0625 0.9375
 | 
			
		||||
vt 1.0000 1.0000
 | 
			
		||||
vt 0.9375 0.9375
 | 
			
		||||
vt -0.0000 1.0000
 | 
			
		||||
vt 0.0625 0.9375
 | 
			
		||||
vt 0.9375 0.9375
 | 
			
		||||
vt 1.0000 0.0000
 | 
			
		||||
vt 0.9375 0.0625
 | 
			
		||||
vt 0.0625 0.0625
 | 
			
		||||
vt -0.0000 0.0000
 | 
			
		||||
vt 1.0000 1.0000
 | 
			
		||||
vt 1.0000 0.0000
 | 
			
		||||
vt 0.9375 0.0625
 | 
			
		||||
vt 0.9375 0.9375
 | 
			
		||||
vt -0.0000 0.0000
 | 
			
		||||
vt 0.0625 0.0625
 | 
			
		||||
vt -0.0000 1.0000
 | 
			
		||||
vt 0.0625 0.9375
 | 
			
		||||
vt -0.0000 0.0000
 | 
			
		||||
vt 0.0625 0.9375
 | 
			
		||||
vt 0.0625 0.0625
 | 
			
		||||
vt 0.9375 0.9375
 | 
			
		||||
vt 0.9375 0.0625
 | 
			
		||||
vt 1.0000 0.0000
 | 
			
		||||
vt 0.9375 0.0625
 | 
			
		||||
vt 0.9375 0.9375
 | 
			
		||||
vt 1.0000 1.0000
 | 
			
		||||
vt 0.0625 0.9375
 | 
			
		||||
vt -0.0000 1.0000
 | 
			
		||||
vt 0.0625 0.0625
 | 
			
		||||
vt 0.0625 0.0625
 | 
			
		||||
vt 0.0625 0.9375
 | 
			
		||||
vt 0.9375 0.9375
 | 
			
		||||
vt 1.0000 1.0000
 | 
			
		||||
vt 0.9375 0.0625
 | 
			
		||||
vn 0.0000 1.0000 0.0000
 | 
			
		||||
vn -1.0000 0.0000 0.0000
 | 
			
		||||
vn 0.0000 0.0000 1.0000
 | 
			
		||||
vn 0.0000 0.0000 -1.0000
 | 
			
		||||
vn 0.0000 -1.0000 0.0000
 | 
			
		||||
vn 1.0000 0.0000 0.0000
 | 
			
		||||
g Cube_Cube.001_frame
 | 
			
		||||
s off
 | 
			
		||||
f 25/1/1 27/2/1 13/3/1 9/4/1
 | 
			
		||||
f 26/5/2 25/6/2 9/4/2 10/7/2
 | 
			
		||||
f 21/8/3 22/9/3 10/7/3 9/4/3
 | 
			
		||||
f 24/10/4 23/11/4 11/12/4 12/13/4
 | 
			
		||||
f 23/14/1 21/8/1 9/4/1 11/15/1
 | 
			
		||||
f 12/13/5 10/16/5 22/17/5 24/10/5
 | 
			
		||||
f 28/18/5 26/19/5 10/16/5 14/20/5
 | 
			
		||||
f 14/21/6 13/22/6 27/23/6 28/24/6
 | 
			
		||||
f 18/25/3 17/26/3 13/3/3 14/27/3
 | 
			
		||||
f 17/26/1 19/28/1 15/29/1 13/3/1
 | 
			
		||||
f 20/30/4 16/31/4 15/32/4 19/33/4
 | 
			
		||||
f 20/30/5 18/34/5 14/20/5 16/31/5
 | 
			
		||||
f 16/31/6 32/35/6 31/36/6 15/32/6
 | 
			
		||||
f 31/37/1 29/38/1 11/15/1 15/29/1
 | 
			
		||||
f 12/39/2 11/40/2 29/41/2 30/42/2
 | 
			
		||||
f 30/43/5 32/44/5 16/31/5 12/13/5
 | 
			
		||||
f 15/32/4 11/12/4 38/45/4 40/46/4
 | 
			
		||||
f 13/22/6 15/32/6 40/46/6 39/47/6
 | 
			
		||||
f 9/4/3 13/3/3 39/48/3 37/49/3
 | 
			
		||||
f 11/40/2 9/4/2 37/49/2 38/50/2
 | 
			
		||||
f 16/31/6 14/21/6 35/51/6 36/52/6
 | 
			
		||||
f 12/13/4 16/31/4 36/52/4 34/53/4
 | 
			
		||||
f 10/7/2 12/39/2 34/54/2 33/55/2
 | 
			
		||||
f 14/27/3 10/7/3 33/55/3 35/56/3
 | 
			
		||||
f 2/57/1 6/58/1 35/59/1 33/60/1
 | 
			
		||||
f 4/61/1 2/57/1 33/60/1 34/62/1
 | 
			
		||||
f 8/63/1 4/61/1 34/62/1 36/64/1
 | 
			
		||||
f 6/58/1 8/63/1 36/64/1 35/59/1
 | 
			
		||||
f 6/65/2 18/66/2 20/67/2 8/63/2
 | 
			
		||||
f 7/68/2 8/63/2 20/67/2 19/69/2
 | 
			
		||||
f 7/68/2 19/69/2 17/70/2 5/71/2
 | 
			
		||||
f 5/71/2 17/70/2 18/66/2 6/65/2
 | 
			
		||||
f 7/72/5 5/73/5 39/74/5 40/75/5
 | 
			
		||||
f 5/73/5 1/76/5 37/77/5 39/74/5
 | 
			
		||||
f 1/76/5 3/78/5 38/79/5 37/77/5
 | 
			
		||||
f 3/78/5 7/72/5 40/75/5 38/79/5
 | 
			
		||||
f 3/80/3 4/61/3 30/81/3 29/82/3
 | 
			
		||||
f 8/63/3 32/83/3 30/81/3 4/61/3
 | 
			
		||||
f 7/68/3 31/84/3 32/83/3 8/63/3
 | 
			
		||||
f 3/80/3 29/82/3 31/84/3 7/68/3
 | 
			
		||||
f 3/85/6 23/86/6 24/87/6 4/88/6
 | 
			
		||||
f 4/88/6 24/87/6 22/89/6 2/90/6
 | 
			
		||||
f 2/90/6 22/89/6 21/91/6 1/76/6
 | 
			
		||||
f 1/76/6 21/91/6 23/86/6 3/85/6
 | 
			
		||||
f 2/90/4 1/76/4 25/92/4 26/93/4
 | 
			
		||||
f 2/90/4 26/93/4 28/94/4 6/95/4
 | 
			
		||||
f 5/73/4 6/95/4 28/94/4 27/96/4
 | 
			
		||||
f 5/73/4 27/96/4 25/92/4 1/76/4
 | 
			
		||||
g Cube_Cube.001_glass
 | 
			
		||||
f 9/4/6 10/7/6 12/39/6 11/40/6
 | 
			
		||||
f 11/12/3 12/13/3 16/31/3 15/32/3
 | 
			
		||||
f 15/32/2 16/31/2 14/21/2 13/22/2
 | 
			
		||||
f 13/3/4 14/27/4 10/7/4 9/4/4
 | 
			
		||||
f 11/15/5 15/29/5 13/3/5 9/4/5
 | 
			
		||||
f 16/31/1 12/13/1 10/16/1 14/20/1
 | 
			
		||||
@@ -32,14 +32,16 @@ homedecor.register("shutter", {
 | 
			
		||||
	description = S("Wooden Shutter"),
 | 
			
		||||
	inventory_image = inv,
 | 
			
		||||
	wield_image = inv,
 | 
			
		||||
	paramtype2 = "wallmounted",
 | 
			
		||||
	ud_replacement_node = "homedecor:shutter_colored",
 | 
			
		||||
	paramtype2 = "colorwallmounted",
 | 
			
		||||
	palette = "unifieddyes_palette_colorwallmounted.png",
 | 
			
		||||
	airbrush_replacement_node = "homedecor:shutter_colored",
 | 
			
		||||
	groups = { snappy = 3, ud_param2_colorable = 1 },
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
	selection_box = shutter_cbox,
 | 
			
		||||
	node_box = shutter_cbox,
 | 
			
		||||
	after_place_node = unifieddyes.fix_rotation,
 | 
			
		||||
	after_dig_node = unifieddyes.after_dig_node
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
homedecor.register("shutter_colored", {
 | 
			
		||||
@@ -54,9 +56,9 @@ homedecor.register("shutter_colored", {
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
	selection_box = shutter_cbox,
 | 
			
		||||
	node_box = shutter_cbox,
 | 
			
		||||
	after_place_node = unifieddyes.fix_rotation,
 | 
			
		||||
	after_dig_node = unifieddyes.after_dig_node,
 | 
			
		||||
	drop = "homedecor:shutter"
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("homedecor:shutter_purple", "homedecor:shutter_violet")
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_banister_wood_colored_inv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 2.4 KiB  | 
| 
		 Before Width: | Height: | Size: 202 B After Width: | Height: | Size: 219 B  | 
| 
		 Before Width: | Height: | Size: 259 B After Width: | Height: | Size: 248 B  | 
| 
		 Before Width: | Height: | Size: 309 B  | 
| 
		 Before Width: | Height: | Size: 390 B After Width: | Height: | Size: 390 B  | 
| 
		 Before Width: | Height: | Size: 178 B  | 
| 
		 Before Width: | Height: | Size: 175 B  | 
| 
		 Before Width: | Height: | Size: 326 B  | 
| 
		 Before Width: | Height: | Size: 354 B  | 
| 
		 Before Width: | Height: | Size: 137 B After Width: | Height: | Size: 93 B  | 
| 
		 Before Width: | Height: | Size: 139 B  | 
							
								
								
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_glowlight_cube_sides_overlay.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 203 B  | 
| 
		 Before Width: | Height: | Size: 142 B After Width: | Height: | Size: 94 B  | 
							
								
								
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_glowlight_cube_tb_overlay.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 204 B  | 
| 
		 Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 95 B  | 
							
								
								
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_glowlight_thick_sides_overlay.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 307 B  | 
| 
		 Before Width: | Height: | Size: 137 B After Width: | Height: | Size: 96 B  | 
							
								
								
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_glowlight_thin_sides_overlay.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 187 B  | 
| 
		 Before Width: | Height: | Size: 165 B After Width: | Height: | Size: 93 B  | 
							
								
								
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_glowlight_top_overlay.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 423 B  | 
| 
		 Before Width: | Height: | Size: 369 B  | 
| 
		 Before Width: | Height: | Size: 293 B  | 
| 
		 Before Width: | Height: | Size: 247 B  | 
| 
		 Before Width: | Height: | Size: 1.9 KiB  | 
| 
		 Before Width: | Height: | Size: 345 B  | 
| 
		 Before Width: | Height: | Size: 293 B  | 
| 
		 Before Width: | Height: | Size: 123 B  | 
| 
		 Before Width: | Height: | Size: 817 B  | 
| 
		 Before Width: | Height: | Size: 769 B  | 
| 
		 Before Width: | Height: | Size: 326 B  | 
| 
		 Before Width: | Height: | Size: 321 B  | 
| 
		 Before Width: | Height: | Size: 775 B  | 
| 
		 Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB  | 
| 
		 Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB  | 
@@ -6,6 +6,75 @@ local wd_cbox = {
 | 
			
		||||
	fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
-- cache set_textures function (fallback to old version)
 | 
			
		||||
-- default.player_set_textures is deprecated and will be removed in future
 | 
			
		||||
local set_player_textures =
 | 
			
		||||
	minetest.get_modpath("player_api") and player_api.set_textures
 | 
			
		||||
	or default.player_set_textures
 | 
			
		||||
 | 
			
		||||
local armor_mod_path = minetest.get_modpath("3d_armor")
 | 
			
		||||
 | 
			
		||||
local skinslist = {"male1", "male2", "male3", "male4", "male5"}
 | 
			
		||||
local default_skin = "character.png"
 | 
			
		||||
 | 
			
		||||
local skinsdb_mod_path = minetest.get_modpath("skinsdb")
 | 
			
		||||
if skinsdb_mod_path then
 | 
			
		||||
	for _, shrt in ipairs(skinslist) do
 | 
			
		||||
		for _, prefix in ipairs({"", "fe"}) do
 | 
			
		||||
			local skin_name = prefix..shrt
 | 
			
		||||
			local skin_obj = skins.new("homedecor_clothes_"..skin_name..".png") -- Texture PNG file as key to be compatible in set_player_skin
 | 
			
		||||
			skin_obj:set_preview("homedecor_clothes_"..skin_name.."_preview.png")
 | 
			
		||||
			skin_obj:set_texture("homedecor_clothes_"..skin_name..".png")
 | 
			
		||||
			skin_obj:set_meta("name", "Wardrobe "..skin_name)
 | 
			
		||||
			skin_obj:set_meta("author", 'Calinou and Jordach')
 | 
			
		||||
			skin_obj:set_meta("license", 'CC-by-SA-4.0')
 | 
			
		||||
			local file = io.open(homedecor.modpath.."/textures/homedecor_clothes_"..skin_name..".png", "r")
 | 
			
		||||
			skin_obj:set_meta("format", skins.get_skin_format(file))
 | 
			
		||||
			file:close()
 | 
			
		||||
			skin_obj:set_meta("in_inventory_list", false)
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function homedecor.get_player_skin(player)
 | 
			
		||||
	local skin = player:get_attribute("homedecor:player_skin")
 | 
			
		||||
	if not skin or skin == "" then
 | 
			
		||||
		return default_skin, true
 | 
			
		||||
	end
 | 
			
		||||
	return skin, false
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function homedecor.set_player_skin(player, skin, save)
 | 
			
		||||
	skin = skin or default_skin
 | 
			
		||||
	if skinsdb_mod_path then
 | 
			
		||||
		skins.set_player_skin(player, skin)
 | 
			
		||||
	elseif armor_mod_path then -- if 3D_armor's installed, let it set the skin
 | 
			
		||||
		armor.textures[player:get_player_name()].skin = skin
 | 
			
		||||
		armor:update_player_visuals(player)
 | 
			
		||||
	else
 | 
			
		||||
		set_player_textures(player, { skin })
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	if save then
 | 
			
		||||
		if skin == default_skin then
 | 
			
		||||
			skin = "default"
 | 
			
		||||
			player:set_attribute("homedecor:player_skin", "")
 | 
			
		||||
		else
 | 
			
		||||
			player:set_attribute("homedecor:player_skin", skin)
 | 
			
		||||
		end
 | 
			
		||||
		if save == "player" then -- if player action
 | 
			
		||||
			minetest.log("verbose",
 | 
			
		||||
				S("player @1 sets skin to @2", player:get_player_name(), skin) ..
 | 
			
		||||
				(armor_mod_path and ' [3d_armor]' or '')
 | 
			
		||||
			)
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function homedecor.unset_player_skin(player)
 | 
			
		||||
	homedecor.set_player_skin(player, nil, true)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
homedecor.register("wardrobe", {
 | 
			
		||||
	mesh = "homedecor_bedroom_wardrobe.obj",
 | 
			
		||||
	tiles = {
 | 
			
		||||
@@ -27,16 +96,16 @@ homedecor.register("wardrobe", {
 | 
			
		||||
	},
 | 
			
		||||
	on_construct = function(pos)
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
		local skins = {"male1", "male2", "male3", "male4", "male5"}
 | 
			
		||||
		-- textures made by the Minetest community (mostly Calinou and Jordach)
 | 
			
		||||
		local clothes_strings = ""
 | 
			
		||||
		for i = 1,5 do
 | 
			
		||||
			clothes_strings = clothes_strings..
 | 
			
		||||
			  "image_button_exit["..(i-1)..".5,0;1.1,2;homedecor_clothes_"..skins[i].."_preview.png;"..skins[i]..";]"..
 | 
			
		||||
			  "image_button_exit["..(i-1)..".5,2;1.1,2;homedecor_clothes_fe"..skins[i].."_preview.png;fe"..skins[i]..";]"
 | 
			
		||||
			  "image_button_exit["..(i-1)..".5,0;1.1,2;homedecor_clothes_"..skinslist[i].."_preview.png;"..skinslist[i]..";]"..
 | 
			
		||||
			  "image_button_exit["..(i-1)..".5,2;1.1,2;homedecor_clothes_fe"..skinslist[i].."_preview.png;fe"..skinslist[i]..";]"
 | 
			
		||||
		end
 | 
			
		||||
		meta:set_string("formspec", "size[5.5,8.5]"..default.gui_bg..default.gui_bg_img..default.gui_slots..
 | 
			
		||||
			"vertlabel[0,0.5;"..minetest.formspec_escape(S("Clothes")).."]"..
 | 
			
		||||
			"button_exit[0,3.29;0.6,0.6;default;x]"..
 | 
			
		||||
			clothes_strings..
 | 
			
		||||
			"vertlabel[0,5.2;"..minetest.formspec_escape(S("Storage")).."]"..
 | 
			
		||||
			"list[current_name;main;0.5,4.5;5,2;]"..
 | 
			
		||||
@@ -44,26 +113,17 @@ homedecor.register("wardrobe", {
 | 
			
		||||
			"listring[]")
 | 
			
		||||
	end,
 | 
			
		||||
	on_receive_fields = function(pos, formname, fields, sender)
 | 
			
		||||
		local skins = {"male1", "male2", "male3", "male4", "male5"}
 | 
			
		||||
		local playerName = sender:get_player_name()
 | 
			
		||||
		local armor_mod = minetest.get_modpath("3d_armor")
 | 
			
		||||
		if fields.default then
 | 
			
		||||
			homedecor.set_player_skin(sender, nil, "player")
 | 
			
		||||
			return
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		for i = 1,5 do
 | 
			
		||||
			if fields[skins[i]] then
 | 
			
		||||
				if armor_mod then -- if 3D_armor's installed, let it set the skin
 | 
			
		||||
					armor.textures[playerName].skin = "homedecor_clothes_"..skins[i]..".png"
 | 
			
		||||
					armor:update_player_visuals(sender)
 | 
			
		||||
					break
 | 
			
		||||
				end
 | 
			
		||||
				default.player_set_textures(sender, { "homedecor_clothes_"..skins[i]..".png" })
 | 
			
		||||
			if fields[skinslist[i]] then
 | 
			
		||||
				homedecor.set_player_skin(sender, "homedecor_clothes_"..skinslist[i]..".png", "player")
 | 
			
		||||
				break
 | 
			
		||||
			elseif fields["fe"..skins[i]] then
 | 
			
		||||
				if armor_mod then
 | 
			
		||||
					armor.textures[playerName].skin = "homedecor_clothes_fe"..skins[i]..".png"
 | 
			
		||||
					armor:update_player_visuals(sender)
 | 
			
		||||
					break
 | 
			
		||||
				end
 | 
			
		||||
				default.player_set_textures(sender, { skin = "homedecor_clothes_fe"..skins[i]..".png" })
 | 
			
		||||
			elseif fields["fe"..skinslist[i]] then
 | 
			
		||||
				homedecor.set_player_skin(sender, "homedecor_clothes_fe"..skinslist[i]..".png", "player")
 | 
			
		||||
				break
 | 
			
		||||
			end
 | 
			
		||||
		end
 | 
			
		||||
@@ -72,3 +132,14 @@ homedecor.register("wardrobe", {
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("homedecor:wardrobe_bottom", "homedecor:wardrobe")
 | 
			
		||||
minetest.register_alias("homedecor:wardrobe_top", "air")
 | 
			
		||||
 | 
			
		||||
minetest.register_on_joinplayer(function(player)
 | 
			
		||||
	local skin = player:get_attribute("homedecor:player_skin")
 | 
			
		||||
 | 
			
		||||
	if skin and skin ~= "" then
 | 
			
		||||
		-- setting player skin on connect has no effect, so delay skin change
 | 
			
		||||
		minetest.after(1, function(player, skin)
 | 
			
		||||
			homedecor.set_player_skin(player, skin)
 | 
			
		||||
		end, player, skin)
 | 
			
		||||
	end
 | 
			
		||||
end)
 | 
			
		||||
 
 | 
			
		||||
@@ -112,8 +112,9 @@ minetest.register_node("homedecor:curtain_closed", {
 | 
			
		||||
	paramtype2 = "colorwallmounted",
 | 
			
		||||
	palette = "unifieddyes_palette_colorwallmounted.png",
 | 
			
		||||
	selection_box = { type = "wallmounted" },
 | 
			
		||||
	after_dig_node = unifieddyes.after_dig_node,
 | 
			
		||||
	after_place_node = unifieddyes.fix_rotation,
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		local topnode = minetest.get_node({x=pos.x, y=pos.y+1.0, z=pos.z})
 | 
			
		||||
		if string.find(topnode.name, "homedecor:curtainrod") then
 | 
			
		||||
@@ -126,7 +127,7 @@ minetest.register_node("homedecor:curtain_closed", {
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("homedecor:curtain_open", {
 | 
			
		||||
	description = S("Curtains"),
 | 
			
		||||
	description = S("Curtains (open)"),
 | 
			
		||||
	tiles = { "homedecor_curtain_open.png" },
 | 
			
		||||
	inventory_image = "homedecor_curtain_open.png",
 | 
			
		||||
	drawtype = 'signlike',
 | 
			
		||||
@@ -138,8 +139,9 @@ minetest.register_node("homedecor:curtain_open", {
 | 
			
		||||
	paramtype2 = "colorwallmounted",
 | 
			
		||||
	palette = "unifieddyes_palette_colorwallmounted.png",
 | 
			
		||||
	selection_box = { type = "wallmounted" },
 | 
			
		||||
	after_dig_node = unifieddyes.after_dig_node,
 | 
			
		||||
	after_place_node = unifieddyes.fix_rotation,
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		local topnode = minetest.get_node({x=pos.x, y=pos.y+1.0, z=pos.z})
 | 
			
		||||
		if string.find(topnode.name, "homedecor:curtainrod") then
 | 
			
		||||
 
 | 
			
		||||
@@ -1,12 +0,0 @@
 | 
			
		||||
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, LGPL. 
 | 
			
		||||
* 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.
 | 
			
		||||
							
								
								
									
										1900
									
								
								homedecor_i18n/locale/pt_BR.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										1595
									
								
								homedecor_i18n/locale/ru.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -7,6 +7,8 @@ cd "$(dirname "${BASH_SOURCE[0]}")/..";
 | 
			
		||||
 | 
			
		||||
# Extract translatable strings.
 | 
			
		||||
xgettext --from-code=UTF-8 \
 | 
			
		||||
		--language=Lua \
 | 
			
		||||
		--sort-by-file \
 | 
			
		||||
		--keyword=S \
 | 
			
		||||
		--keyword=NS:1,2 \
 | 
			
		||||
		--keyword=N_ \
 | 
			
		||||
 
 | 
			
		||||
@@ -92,6 +92,19 @@ minetest.register_node("inbox:empty", {
 | 
			
		||||
			end
 | 
			
		||||
		end
 | 
			
		||||
	end,
 | 
			
		||||
	allow_metadata_inventory_take = function(pos, listname, index, stack, player)
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
		local owner = meta:get_string("owner")
 | 
			
		||||
		if player:get_player_name() == owner or
 | 
			
		||||
				minetest.check_player_privs(player, "protection_bypass") and
 | 
			
		||||
				clicker:get_player_control().aux1 then
 | 
			
		||||
			return stack:get_count()
 | 
			
		||||
		end
 | 
			
		||||
		return 0
 | 
			
		||||
	end,
 | 
			
		||||
	allow_metadata_inventory_move = function(pos)
 | 
			
		||||
		return 0
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
function inbox.get_inbox_formspec(pos)
 | 
			
		||||
 
 | 
			
		||||
@@ -32,6 +32,25 @@ minetest.register_entity("itemframes:item",{
 | 
			
		||||
		if self.nodename == "itemframes:pedestal" then
 | 
			
		||||
			self.object:set_properties({automatic_rotate = 1})
 | 
			
		||||
		end
 | 
			
		||||
		if self.texture ~= nil and self.nodename ~= nil then
 | 
			
		||||
			local entity_pos = vector.round(self.object:get_pos())
 | 
			
		||||
			local objs = minetest.get_objects_inside_radius(entity_pos, 0.5)
 | 
			
		||||
			for _, obj in ipairs(objs) do
 | 
			
		||||
				if obj ~= self.object and
 | 
			
		||||
				   obj:get_luaentity() and
 | 
			
		||||
				   obj:get_luaentity().name == "itemframes:item" and
 | 
			
		||||
				   obj:get_luaentity().nodename == self.nodename and
 | 
			
		||||
				   obj:get_properties() and
 | 
			
		||||
				   obj:get_properties().textures and
 | 
			
		||||
				   obj:get_properties().textures[1] == self.texture then
 | 
			
		||||
					minetest.log("action","[itemframes] Removing extra " ..
 | 
			
		||||
						self.texture .. " found in " .. self.nodename .. " at " ..
 | 
			
		||||
						minetest.pos_to_string(entity_pos))
 | 
			
		||||
					self.object:remove()
 | 
			
		||||
					break
 | 
			
		||||
				end
 | 
			
		||||
			end
 | 
			
		||||
		end
 | 
			
		||||
	end,
 | 
			
		||||
	get_staticdata = function(self)
 | 
			
		||||
		if self.nodename ~= nil and self.texture ~= nil then
 | 
			
		||||
@@ -119,7 +138,7 @@ minetest.register_node("itemframes:frame",{
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	groups = {choppy = 2, dig_immediate = 2},
 | 
			
		||||
	legacy_wallmounted = true,
 | 
			
		||||
	sounds = default.node_sound_defaults(),
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
	on_rotate = screwdriver.disallow,
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack)
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
@@ -182,7 +201,7 @@ minetest.register_node("itemframes:pedestal",{
 | 
			
		||||
	tiles = {"itemframes_pedestal.png"},
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	groups = {cracky = 3},
 | 
			
		||||
	sounds = default.node_sound_defaults(),
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
	on_rotate = screwdriver.disallow,
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack)
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
@@ -228,24 +247,31 @@ minetest.register_node("itemframes:pedestal",{
 | 
			
		||||
 | 
			
		||||
-- automatically restore entities lost from frames/pedestals
 | 
			
		||||
-- due to /clearobjects or similar
 | 
			
		||||
 | 
			
		||||
minetest.register_abm({
 | 
			
		||||
minetest.register_lbm({
 | 
			
		||||
	label = "Maintain itemframe and pedestal entities",
 | 
			
		||||
	name = "itemframes:maintain_entities",
 | 
			
		||||
	nodenames = {"itemframes:frame", "itemframes:pedestal"},
 | 
			
		||||
	interval = 15,
 | 
			
		||||
	chance = 1,
 | 
			
		||||
	action = function(pos, node, active_object_count, active_object_count_wider)
 | 
			
		||||
		local num
 | 
			
		||||
 | 
			
		||||
		if node.name == "itemframes:frame" then
 | 
			
		||||
			num = #minetest.get_objects_inside_radius(pos, 0.5)
 | 
			
		||||
		elseif node.name == "itemframes:pedestal" then
 | 
			
		||||
			pos.y = pos.y + 1
 | 
			
		||||
			num = #minetest.get_objects_inside_radius(pos, 0.5)
 | 
			
		||||
			pos.y = pos.y - 1
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		if num > 0 then return end
 | 
			
		||||
		update_item(pos, node)
 | 
			
		||||
	run_at_every_load = true,
 | 
			
		||||
	action = function(pos, node)
 | 
			
		||||
		minetest.after(0,
 | 
			
		||||
			function(pos, node)
 | 
			
		||||
				local meta = minetest.get_meta(pos)
 | 
			
		||||
				local itemstring = meta:get_string("item")
 | 
			
		||||
				if itemstring ~= "" then
 | 
			
		||||
					local entity_pos = pos
 | 
			
		||||
					if node.name == "itemframes:pedestal" then
 | 
			
		||||
						entity_pos = {x=pos.x,y=pos.y+1,z=pos.z}
 | 
			
		||||
					end
 | 
			
		||||
					local objs = minetest.get_objects_inside_radius(entity_pos, 0.5)
 | 
			
		||||
					if #objs == 0 then
 | 
			
		||||
						minetest.log("action","[itemframes] Replacing missing " ..
 | 
			
		||||
							itemstring .. " in " .. node.name .. " at " ..
 | 
			
		||||
							minetest.pos_to_string(pos))
 | 
			
		||||
						update_item(pos, node)
 | 
			
		||||
					end
 | 
			
		||||
				end
 | 
			
		||||
			end,
 | 
			
		||||
		pos, node)
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -273,4 +299,4 @@ minetest.register_craft({
 | 
			
		||||
if minetest.get_modpath("mesecons_mvps") then
 | 
			
		||||
	mesecon.register_mvps_stopper("itemframes:frame")
 | 
			
		||||
	mesecon.register_mvps_stopper("itemframes:pedestal")
 | 
			
		||||
end
 | 
			
		||||
end
 | 
			
		||||