From ce150d1ecc0e4efd74bc91066bab9ab5248081d8 Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Sat, 13 Aug 2016 18:36:11 -0700 Subject: [PATCH] Add "moremesecons" modpack. --- README.md | 2 + mods/moremesecons/LICENSE.txt | 674 ++++++++++++++++++ mods/moremesecons/README.md | 34 + mods/moremesecons/modpack.txt | 1 + .../depends.txt | 1 + .../init.lua | 60 ++ .../moremesecons_blinky_plant_off.png | Bin 0 -> 361 bytes .../textures/moremesecons_blinky_plant_on.png | Bin 0 -> 237 bytes .../depends.txt | 1 + .../init.lua | 131 ++++ .../moremesecons_player_detector_off.png | Bin 0 -> 624 bytes .../moremesecons_player_detector_on.png | Bin 0 -> 709 bytes .../moremesecons_commandblock/depends.txt | 1 + .../moremesecons_commandblock/init.lua | 172 +++++ .../moremesecons_commandblock_off.png | Bin 0 -> 150 bytes .../textures/moremesecons_commandblock_on.png | Bin 0 -> 150 bytes .../depends.txt | 1 + .../init.lua | 81 +++ ...remesecons_conductor_signalchanger_off.png | Bin 0 -> 109 bytes ...oremesecons_conductor_signalchanger_on.png | Bin 0 -> 109 bytes .../moremesecons_dual_delayer/depends.txt | 1 + .../moremesecons_dual_delayer/init.lua | 95 +++ .../moremesecons_dual_delayer_bottom.png | Bin 0 -> 99 bytes .../moremesecons_dual_delayer_ends.png | Bin 0 -> 91 bytes .../moremesecons_dual_delayer_overlay.png | Bin 0 -> 154 bytes .../moremesecons_dual_delayer_side_left.png | Bin 0 -> 78 bytes .../moremesecons_dual_delayer_side_right.png | Bin 0 -> 77 bytes .../moremesecons_entity_detector/depends.txt | 1 + .../moremesecons_entity_detector/init.lua | 134 ++++ .../moremesecons_entity_detector_off.png | Bin 0 -> 554 bytes .../moremesecons_entity_detector_on.png | Bin 0 -> 549 bytes .../moremesecons_igniter/depends.txt | 2 + .../moremesecons_igniter/init.lua | 48 ++ .../textures/moremesecons_igniter.png | Bin 0 -> 696 bytes .../depends.txt | 1 + .../moremesecons_injector_controller/init.lua | 84 +++ .../moremesecons_injector_controller_off.png | Bin 0 -> 127 bytes .../moremesecons_injector_controller_on.png | Bin 0 -> 127 bytes .../moremesecons_injector_controller_side.png | Bin 0 -> 114 bytes .../moremesecons_jammer/depends.txt | 2 + .../moremesecons/moremesecons_jammer/init.lua | 131 ++++ .../textures/moremesecons_jammer_off.png | Bin 0 -> 100 bytes .../textures/moremesecons_jammer_on.png | Bin 0 -> 112 bytes .../depends.txt | 2 + .../moremesecons_luacontroller_tool/init.lua | 303 ++++++++ .../moremesecons_luacontroller_tool.png | Bin 0 -> 290 bytes .../moremesecons_playerkiller/depends.txt | 2 + .../moremesecons_playerkiller/init.lua | 62 ++ .../moremesecons_playerkiller_side.png | Bin 0 -> 4013 bytes .../moremesecons_playerkiller_top.png | Bin 0 -> 3225 bytes .../moremesecons_sayer/depends.txt | 3 + mods/moremesecons/moremesecons_sayer/init.lua | 95 +++ .../moremesecons_signalchanger/depends.txt | 1 + .../moremesecons_signalchanger/init.lua | 81 +++ .../moremesecons_signalchanger_off.png | Bin 0 -> 109 bytes .../moremesecons_signalchanger_on.png | Bin 0 -> 109 bytes .../moremesecons_switchtorch/depends.txt | 1 + .../moremesecons_switchtorch/init.lua | 129 ++++ .../textures/moremesecons_switchtorch_off.png | Bin 0 -> 119 bytes .../moremesecons_switchtorch_off_ceiling.png | Bin 0 -> 111 bytes .../moremesecons_switchtorch_off_side.png | Bin 0 -> 110 bytes .../textures/moremesecons_switchtorch_on.png | Bin 0 -> 116 bytes .../moremesecons_switchtorch_on_ceiling.png | Bin 0 -> 118 bytes .../moremesecons_switchtorch_on_side.png | Bin 0 -> 114 bytes .../moremesecons_teleporter/depends.txt | 2 + .../moremesecons_teleporter/init.lua | 92 +++ .../textures/moremesecons_teleporter.png | Bin 0 -> 513 bytes .../moremesecons_temporarygate/depends.txt | 1 + .../moremesecons_temporarygate/init.lua | 124 ++++ .../moremesecons_temporarygate_bottom.png | Bin 0 -> 261 bytes .../moremesecons_temporarygate_ends_off.png | Bin 0 -> 170 bytes .../moremesecons_temporarygate_ends_on.png | Bin 0 -> 171 bytes .../moremesecons_temporarygate_off.png | Bin 0 -> 361 bytes .../moremesecons_temporarygate_on.png | Bin 0 -> 364 bytes .../moremesecons_temporarygate_sides_off.png | Bin 0 -> 164 bytes .../moremesecons_temporarygate_sides_on.png | Bin 0 -> 169 bytes .../moremesecons_wireless/depends.txt | 3 + .../moremesecons_wireless/init.lua | 227 ++++++ .../textures/moremesecons_jammer_bottom.png | Bin 0 -> 170 bytes .../textures/moremesecons_jammer_side_off.png | Bin 0 -> 138 bytes .../textures/moremesecons_jammer_side_on.png | Bin 0 -> 163 bytes .../textures/moremesecons_jammer_top.png | Bin 0 -> 160 bytes .../textures/moremesecons_wireless.png | Bin 0 -> 3453 bytes 83 files changed, 2786 insertions(+) create mode 100644 mods/moremesecons/LICENSE.txt create mode 100644 mods/moremesecons/README.md create mode 100644 mods/moremesecons/modpack.txt create mode 100644 mods/moremesecons/moremesecons_adjustable_blinkyplant/depends.txt create mode 100644 mods/moremesecons/moremesecons_adjustable_blinkyplant/init.lua create mode 100644 mods/moremesecons/moremesecons_adjustable_blinkyplant/textures/moremesecons_blinky_plant_off.png create mode 100644 mods/moremesecons/moremesecons_adjustable_blinkyplant/textures/moremesecons_blinky_plant_on.png create mode 100644 mods/moremesecons/moremesecons_adjustable_player_detector/depends.txt create mode 100644 mods/moremesecons/moremesecons_adjustable_player_detector/init.lua create mode 100644 mods/moremesecons/moremesecons_adjustable_player_detector/textures/moremesecons_player_detector_off.png create mode 100644 mods/moremesecons/moremesecons_adjustable_player_detector/textures/moremesecons_player_detector_on.png create mode 100644 mods/moremesecons/moremesecons_commandblock/depends.txt create mode 100644 mods/moremesecons/moremesecons_commandblock/init.lua create mode 100644 mods/moremesecons/moremesecons_commandblock/textures/moremesecons_commandblock_off.png create mode 100644 mods/moremesecons/moremesecons_commandblock/textures/moremesecons_commandblock_on.png create mode 100644 mods/moremesecons/moremesecons_conductor_signalchanger/depends.txt create mode 100644 mods/moremesecons/moremesecons_conductor_signalchanger/init.lua create mode 100644 mods/moremesecons/moremesecons_conductor_signalchanger/textures/moremesecons_conductor_signalchanger_off.png create mode 100644 mods/moremesecons/moremesecons_conductor_signalchanger/textures/moremesecons_conductor_signalchanger_on.png create mode 100644 mods/moremesecons/moremesecons_dual_delayer/depends.txt create mode 100644 mods/moremesecons/moremesecons_dual_delayer/init.lua create mode 100644 mods/moremesecons/moremesecons_dual_delayer/textures/moremesecons_dual_delayer_bottom.png create mode 100644 mods/moremesecons/moremesecons_dual_delayer/textures/moremesecons_dual_delayer_ends.png create mode 100644 mods/moremesecons/moremesecons_dual_delayer/textures/moremesecons_dual_delayer_overlay.png create mode 100644 mods/moremesecons/moremesecons_dual_delayer/textures/moremesecons_dual_delayer_side_left.png create mode 100644 mods/moremesecons/moremesecons_dual_delayer/textures/moremesecons_dual_delayer_side_right.png create mode 100644 mods/moremesecons/moremesecons_entity_detector/depends.txt create mode 100644 mods/moremesecons/moremesecons_entity_detector/init.lua create mode 100644 mods/moremesecons/moremesecons_entity_detector/textures/moremesecons_entity_detector_off.png create mode 100644 mods/moremesecons/moremesecons_entity_detector/textures/moremesecons_entity_detector_on.png create mode 100644 mods/moremesecons/moremesecons_igniter/depends.txt create mode 100644 mods/moremesecons/moremesecons_igniter/init.lua create mode 100644 mods/moremesecons/moremesecons_igniter/textures/moremesecons_igniter.png create mode 100644 mods/moremesecons/moremesecons_injector_controller/depends.txt create mode 100644 mods/moremesecons/moremesecons_injector_controller/init.lua create mode 100644 mods/moremesecons/moremesecons_injector_controller/textures/moremesecons_injector_controller_off.png create mode 100644 mods/moremesecons/moremesecons_injector_controller/textures/moremesecons_injector_controller_on.png create mode 100644 mods/moremesecons/moremesecons_injector_controller/textures/moremesecons_injector_controller_side.png create mode 100644 mods/moremesecons/moremesecons_jammer/depends.txt create mode 100644 mods/moremesecons/moremesecons_jammer/init.lua create mode 100644 mods/moremesecons/moremesecons_jammer/textures/moremesecons_jammer_off.png create mode 100644 mods/moremesecons/moremesecons_jammer/textures/moremesecons_jammer_on.png create mode 100644 mods/moremesecons/moremesecons_luacontroller_tool/depends.txt create mode 100644 mods/moremesecons/moremesecons_luacontroller_tool/init.lua create mode 100644 mods/moremesecons/moremesecons_luacontroller_tool/textures/moremesecons_luacontroller_tool.png create mode 100644 mods/moremesecons/moremesecons_playerkiller/depends.txt create mode 100644 mods/moremesecons/moremesecons_playerkiller/init.lua create mode 100644 mods/moremesecons/moremesecons_playerkiller/textures/moremesecons_playerkiller_side.png create mode 100644 mods/moremesecons/moremesecons_playerkiller/textures/moremesecons_playerkiller_top.png create mode 100644 mods/moremesecons/moremesecons_sayer/depends.txt create mode 100644 mods/moremesecons/moremesecons_sayer/init.lua create mode 100644 mods/moremesecons/moremesecons_signalchanger/depends.txt create mode 100644 mods/moremesecons/moremesecons_signalchanger/init.lua create mode 100644 mods/moremesecons/moremesecons_signalchanger/textures/moremesecons_signalchanger_off.png create mode 100644 mods/moremesecons/moremesecons_signalchanger/textures/moremesecons_signalchanger_on.png create mode 100644 mods/moremesecons/moremesecons_switchtorch/depends.txt create mode 100644 mods/moremesecons/moremesecons_switchtorch/init.lua create mode 100644 mods/moremesecons/moremesecons_switchtorch/textures/moremesecons_switchtorch_off.png create mode 100644 mods/moremesecons/moremesecons_switchtorch/textures/moremesecons_switchtorch_off_ceiling.png create mode 100644 mods/moremesecons/moremesecons_switchtorch/textures/moremesecons_switchtorch_off_side.png create mode 100644 mods/moremesecons/moremesecons_switchtorch/textures/moremesecons_switchtorch_on.png create mode 100644 mods/moremesecons/moremesecons_switchtorch/textures/moremesecons_switchtorch_on_ceiling.png create mode 100644 mods/moremesecons/moremesecons_switchtorch/textures/moremesecons_switchtorch_on_side.png create mode 100644 mods/moremesecons/moremesecons_teleporter/depends.txt create mode 100644 mods/moremesecons/moremesecons_teleporter/init.lua create mode 100644 mods/moremesecons/moremesecons_teleporter/textures/moremesecons_teleporter.png create mode 100644 mods/moremesecons/moremesecons_temporarygate/depends.txt create mode 100644 mods/moremesecons/moremesecons_temporarygate/init.lua create mode 100644 mods/moremesecons/moremesecons_temporarygate/textures/moremesecons_temporarygate_bottom.png create mode 100644 mods/moremesecons/moremesecons_temporarygate/textures/moremesecons_temporarygate_ends_off.png create mode 100644 mods/moremesecons/moremesecons_temporarygate/textures/moremesecons_temporarygate_ends_on.png create mode 100644 mods/moremesecons/moremesecons_temporarygate/textures/moremesecons_temporarygate_off.png create mode 100644 mods/moremesecons/moremesecons_temporarygate/textures/moremesecons_temporarygate_on.png create mode 100644 mods/moremesecons/moremesecons_temporarygate/textures/moremesecons_temporarygate_sides_off.png create mode 100644 mods/moremesecons/moremesecons_temporarygate/textures/moremesecons_temporarygate_sides_on.png create mode 100644 mods/moremesecons/moremesecons_wireless/depends.txt create mode 100644 mods/moremesecons/moremesecons_wireless/init.lua create mode 100644 mods/moremesecons/moremesecons_wireless/textures/moremesecons_jammer_bottom.png create mode 100644 mods/moremesecons/moremesecons_wireless/textures/moremesecons_jammer_side_off.png create mode 100644 mods/moremesecons/moremesecons_wireless/textures/moremesecons_jammer_side_on.png create mode 100644 mods/moremesecons/moremesecons_wireless/textures/moremesecons_jammer_top.png create mode 100644 mods/moremesecons/moremesecons_wireless/textures/moremesecons_wireless.png diff --git a/README.md b/README.md index 2a98338e..5c6b2ea3 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ The following mods are also included: * animal_rat ([animals_modpack][]) ([CC-BY-SA / CC0](mods/mobs_passive/animal_rat/License.txt)) * chicken ([Creatures MOB-Engine][cme]) * sheep ([Creatures MOB-Engine][cme]) +* [moremesecons][] ([GPL](mods/moremesecons/LICENSE.txt)) * [pipeworks][] ([WTFPL](mods/pipeworks/LICENSE)) * plantlife/ * player/ @@ -158,6 +159,7 @@ The following mods are also included: [mobf]: https://github.com/sapier/mobf_core [mobs_goblins]: https://forum.minetest.net/viewtopic.php?t=13004 [moreblocks]: https://forum.minetest.net/viewtopic.php?t=509 +[moremesecons]: https://forum.minetest.net/viewtopic.php?t=13150 [moreores]: https://forum.minetest.net/viewtopic.php?t=549 [moretrees]: https://forum.minetest.net/viewtopic.php?t=4394 [mydoors]: https://forum.minetest.net/viewtopic.php?t=10626 diff --git a/mods/moremesecons/LICENSE.txt b/mods/moremesecons/LICENSE.txt new file mode 100644 index 00000000..94a9ed02 --- /dev/null +++ b/mods/moremesecons/LICENSE.txt @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/mods/moremesecons/README.md b/mods/moremesecons/README.md new file mode 100644 index 00000000..79338d42 --- /dev/null +++ b/mods/moremesecons/README.md @@ -0,0 +1,34 @@ +# MoreMesecons + +Based on Mesecons by Jeija +By @paly2 and @HybridDog +With the participation of @LeMagnesium (bugfix), @Ataron (textures), @JAPP (texture). + +Dependencies: [Mesecons](https://github.com/Jeija/minetest-mod-mesecons/), [vector_extras](https://github.com/HybridDog/vector_extras/), [digilines](https://github.com/minetest-mods/digilines) (optionnal). + +This mod is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v3.0 as published by the Free Software Foundation. You should have received a copy of the GNU General Public License along with this mod. + +MoreMesecons is a mod for minetest wich adds some mesecons items. + +[Here](http://github.com/minetest-mods/MoreMesecons/wiki)'s the wiki ! + +### New items + +* `Adjustable Blinky plant` : Like a mesecons blinky plant, but... adjustable. Right-click to change the interval. +* `Adjustable Player Detector` : Like a mesecons player detector, but you can change its detection radius by right-click. +* `Craftable Command Block` : A command block with just some commands accepted. The admin can change the accepted command (first line of the init.lua), default "tell". Only "@nearest" can be used in the commands, and the admin can change the maximum distance of "@nearest" (default 8 blocks). +* `Conductor Signal Changer` : Like a diode which can be activated by sending a signal on its pin "F", and deactivated by sending a signal on its pin "O". +* `Dual Delayer` : If it receives a mesecons signal, port 1 turns on immediatly and port 2 turns on 0.4 seconds later. At the end of the signal, port 2 turns off immediatly and port 1 turns off 0.4 secondes later. For example, this is useful for double extenders. +* `Entity Detector` : You can use it to detect an entity. You can choose the entity to detect by right-click (use itemstring, for example "mobs:rat". To detect a dropped item, write "__builtin:item". To detect a specific dropped item, write its itemstring (for example "default:cobble")). +* `Igniter` : This node is a lighter that ignites ajacent flammable nodes (including TNT). +* `Injector Controller` : This node is useful to activate/deactivate a pipeworks filter injector : it sends a blinky signal. +* `Jammer` : If turned on, this node stops mesecons in a radius of 10 nodes. +* `Luacontroller Template Tool` : This tool is very useful to manipulate templates with luacontrollers. Just click with it on a luacontroller, then you'll see a formspec. +* `Player Killer` : This block kills the nearest player (with a maximal distance of 8 blocks by default) (if this player isn't its owner) when it receives a mesecons signal. +* `Sayer` : This node sends a message to every players inside a radius of 8 nodes. +* `Signal Changer` : If it receives a signal on its pin "F", it turns on. If it receives a signal on its pin "O", it turns off. Note : an inverted signal is sended at the other end of the arrow. +* `Switch Torch` : It connects just like Mesecons Torch. If it receives a signal, it turns on, and if it receives a second signal, it turns off. +* `Teleporter` : If you place one teleporter, if it receives a mesecons, it teleports the nearest player on itself. If you place two teleporters on the same axis, if one receives a mesecons signal, it teleports the nearest player on the second (with a maximal distance of 50 nodes by default). The player teleporter must be inside a radius of 25 nodes. +* `Temporary Gate` : If it receives a mesecons signal, whatever its duration, a mesecons signal is send with a fixed duration. You can change it by right-click (in seconds) (you can write for example 0.2 to send a pulse, or 20 to send long signals). +* `Wireless` : Place 2 (or more) wireless somewhere. Change their channel by right-click. If you send a signal to a wireless, every wireless wich have the same channel will send the signal. Compatible with digiline mod. +* `Wireless Jammer` : If it receives a mesecons signal, it deactivates all wireless (receptors) in a radius of 15 nodes. diff --git a/mods/moremesecons/modpack.txt b/mods/moremesecons/modpack.txt new file mode 100644 index 00000000..33d91f57 --- /dev/null +++ b/mods/moremesecons/modpack.txt @@ -0,0 +1 @@ +The presence of this file indicates that the current folder is a modpack. \ No newline at end of file diff --git a/mods/moremesecons/moremesecons_adjustable_blinkyplant/depends.txt b/mods/moremesecons/moremesecons_adjustable_blinkyplant/depends.txt new file mode 100644 index 00000000..acaa9241 --- /dev/null +++ b/mods/moremesecons/moremesecons_adjustable_blinkyplant/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/moremesecons/moremesecons_adjustable_blinkyplant/init.lua b/mods/moremesecons/moremesecons_adjustable_blinkyplant/init.lua new file mode 100644 index 00000000..0afaaf11 --- /dev/null +++ b/mods/moremesecons/moremesecons_adjustable_blinkyplant/init.lua @@ -0,0 +1,60 @@ +local toggle_timer = function (pos, restart) + local timer = minetest.get_node_timer(pos) + if timer:is_started() + and not restart then + timer:stop() + else + timer:start(tonumber(minetest.get_meta(pos):get_string("interval")) or 0) + end +end + +local on_timer = function(pos) + if mesecon.flipstate(pos, minetest.get_node(pos)) == "on" then + mesecon.receptor_on(pos) + else + mesecon.receptor_off(pos) + end + toggle_timer(pos, false) +end + +mesecon.register_node("moremesecons_adjustable_blinkyplant:adjustable_blinky_plant", { + description="Adjustable Blinky Plant", + drawtype = "plantlike", + inventory_image = "moremesecons_blinky_plant_off.png", + paramtype = "light", + walkable = false, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, -0.5+0.7, 0.3}, + }, + on_timer = on_timer, + on_construct = function(pos) + minetest.get_meta(pos):set_string("formspec", "field[interval;interval;${interval}]") + toggle_timer(pos, true) + end, + on_receive_fields = function(pos, _, fields, player) + local interval = tonumber(fields.interval) + if interval + and not minetest.is_protected(pos, player:get_player_name()) then + minetest.get_meta(pos):set_string("interval", interval) + toggle_timer(pos, true) + end + end, +},{ + tiles = {"moremesecons_blinky_plant_off.png"}, + groups = {dig_immediate=3}, + mesecons = {receptor = { state = mesecon.state.off }} +},{ + tiles = {"moremesecons_blinky_plant_off.png^moremesecons_blinky_plant_on.png"}, + groups = {dig_immediate=3, not_in_creative_inventory=1}, + sunlight_propagates = true, + mesecons = {receptor = { state = mesecon.state.on }}, +}) + + +minetest.register_craft({ + output = "moremesecons_adjustable_blinkyplant:adjustable_blinky_plant_off 1", + recipe = { {"mesecons_blinkyplant:blinky_plant_off"}, + {"default:mese_crystal_fragment"},} +}) diff --git a/mods/moremesecons/moremesecons_adjustable_blinkyplant/textures/moremesecons_blinky_plant_off.png b/mods/moremesecons/moremesecons_adjustable_blinkyplant/textures/moremesecons_blinky_plant_off.png new file mode 100644 index 0000000000000000000000000000000000000000..7364fa041132d12acef93e669098f720bd962526 GIT binary patch literal 361 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbMfmH?j+S0JtHD5LKvXW%Mt=q7LE zDsSqfVCJJ}?yqbasA3hMV(p<~9i-|Uqv@8Y>z1VJnX2!Vq3@G!5SVWg9IhW0X&9Mn z9?#GnpKq0tYn@VRo0?*kUF?`s>6lyRlvm-LU+P#|=vrFtT3YK~UgcU_>s8<2-O%jQ zSnAbS=hIZ>)7IeE-4NJY7c`|gYsZBgG z0)mWTd774mdKI;Vst08vtT AK>z>% literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_adjustable_blinkyplant/textures/moremesecons_blinky_plant_on.png b/mods/moremesecons/moremesecons_adjustable_blinkyplant/textures/moremesecons_blinky_plant_on.png new file mode 100644 index 0000000000000000000000000000000000000000..82614397f2e6395fdaecfecfa2206a676a1d737a GIT binary patch literal 237 zcmV|hjp$Xodzgvr+Y@6(6>|G$0)8$!126uIL6`Mp#ApWibD&i{Vi^85Rva(Fd;eR@Fl z-ykhQ>{VbU!ES& z0MU;gZ{Z|p$kTgUdEY+VE&k&1cG*1#Cd+?%x?lRqt){5*!I{_qSP*Uxf$0sl00000NkvXXu0mjf5a@E8 literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_adjustable_player_detector/depends.txt b/mods/moremesecons/moremesecons_adjustable_player_detector/depends.txt new file mode 100644 index 00000000..acaa9241 --- /dev/null +++ b/mods/moremesecons/moremesecons_adjustable_player_detector/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/moremesecons/moremesecons_adjustable_player_detector/init.lua b/mods/moremesecons/moremesecons_adjustable_player_detector/init.lua new file mode 100644 index 00000000..7f7bd044 --- /dev/null +++ b/mods/moremesecons/moremesecons_adjustable_player_detector/init.lua @@ -0,0 +1,131 @@ +-- Adjustable Player Detector +-- Detects players in a certain radius +-- The radius can be changes by right-click (by default 6) + +local function make_formspec(meta) + meta:set_string("formspec", "size[9,5]" .. + "field[0.3, 0;9,2;scanname;Name of player to scan for (empty for any):;${scanname}]".. + "field[0.3,1.5;4,2;digiline_channel;Digiline Channel (optional):;${digiline_channel}]".. + "field[0.3,3;2,2;radius;Detection radius:;${radius}]".. + "button_exit[3.5,3.5;2,3;;Save]") +end + +local function object_detector_make_formspec(pos) + make_formspec(minetest.get_meta(pos)) +end + +local function object_detector_on_receive_fields(pos, _, fields, player) + if not fields.scanname + or not fields.digiline_channel + or minetest.is_protected(pos, player:get_player_name()) then + return + end + + local meta = minetest.get_meta(pos) + meta:set_string("scanname", fields.scanname) + meta:set_string("digiline_channel", fields.digiline_channel) + local r = tonumber(fields.radius) + if r then + meta:set_int("radius", r) + end +end + +-- returns true if player was found, false if not +local object_detector_scan = function (pos) + local meta = minetest.get_meta(pos) + local scanname = meta:get_string("scanname") + local scan_all = scanname == "" + local radius = meta:get_int("radius") + if radius == 0 then + radius = 6 + end + for _,obj in pairs(minetest.get_objects_inside_radius(pos, radius)) do + local isname = obj:get_player_name() -- "" is returned if it is not a player; "" ~= nil! + if isname ~= "" + and (scan_all or isname == scanname) then -- player with scanname found or not scanname specified + return true + end + end + return false +end + +-- set player name when receiving a digiline signal on a specific channel +local object_detector_digiline = { + effector = { + action = function (pos, node, channel, msg) + local meta = minetest.get_meta(pos) + local active_channel = meta:get_string("digiline_channel") + if channel ~= active_channel then + return + end + meta:set_string("scanname", msg) + if meta:get_string("formspec") ~= "" then + make_formspec(meta) + end + end, + } +} + +minetest.register_node("moremesecons_adjustable_player_detector:player_detector_off", { + tiles = {"default_steel_block.png", "default_steel_block.png", "moremesecons_player_detector_off.png"}, + paramtype = "light", + walkable = true, + groups = {cracky=3}, + description="Adjustable Player Detector", + mesecons = {receptor = { + state = mesecon.state.off, + rules = mesecon.rules.pplate + }}, + on_construct = object_detector_make_formspec, + on_receive_fields = object_detector_on_receive_fields, + sounds = default.node_sound_stone_defaults(), + digiline = object_detector_digiline +}) + +minetest.register_node("moremesecons_adjustable_player_detector:player_detector_on", { + tiles = {"default_steel_block.png", "default_steel_block.png", "moremesecons_player_detector_on.png"}, + paramtype = "light", + walkable = true, + groups = {cracky=3,not_in_creative_inventory=1}, + drop = 'moremesecons_adjustable_player_detector:player_detector_off', + mesecons = {receptor = { + state = mesecon.state.on, + rules = mesecon.rules.pplate + }}, + on_construct = object_detector_make_formspec, + on_receive_fields = object_detector_on_receive_fields, + sounds = default.node_sound_stone_defaults(), + digiline = object_detector_digiline +}) + +minetest.register_craft({ + output = 'moremesecons_adjustable_player_detector:player_detector_off', + recipe = { + {"mesecons_detector:object_detector_off"}, + {"default:mese_crystal_fragment"} + } +}) + +minetest.register_abm({ + nodenames = {"moremesecons_adjustable_player_detector:player_detector_off"}, + interval = 1.0, + chance = 1, + action = function(pos) + if object_detector_scan(pos) then + minetest.swap_node(pos, {name = "moremesecons_adjustable_player_detector:player_detector_on"}) + mesecon.receptor_on(pos, mesecon.rules.pplate) + end + end, +}) + +minetest.register_abm({ + nodenames = {"moremesecons_adjustable_player_detector:player_detector_on"}, + interval = 1.0, + chance = 1, + action = function(pos) + if not object_detector_scan(pos) then + minetest.swap_node(pos, {name = "moremesecons_adjustable_player_detector:player_detector_off"}) + mesecon.receptor_off(pos, mesecon.rules.pplate) + end + end, +}) diff --git a/mods/moremesecons/moremesecons_adjustable_player_detector/textures/moremesecons_player_detector_off.png b/mods/moremesecons/moremesecons_adjustable_player_detector/textures/moremesecons_player_detector_off.png new file mode 100644 index 0000000000000000000000000000000000000000..cded07db0582f4a857e5b6c8f1ae3f75ab58940a GIT binary patch literal 624 zcmV-$0+0QPP)Od3$?%eSLj?etv&{e}RF4g@uKNY;1;xhKGlTh=_=ZiHVAe zii?Yjjg5_tj*gFCUyqNEkdTm(k&%>?l$CjTmzS5An3$QFnVOlInwpxMo12`RoSvSZ zpP!$gprE0lp`xOqqobpwq@<;#rKYB)r>Cc=sHm!pjH;@ttE;Q5tgNrEuduMNv9YnT zva++Yv$V9dwY9akx3{>sxVgExy1Kf%ySu!+yuH1>zP`S{zrVo1z`?=6!otGC!^6bH z#KpzM$H&LW$jHjX#LCLb%gf8m%*@Wt&d<-!(9qD*($dq@)6~?|)z#J3*4Ee8*Vx$D z+Q`V-+S=RG)7#b6+uPgR+}z#W-QM2b-{0Th;Naom;o{=rlt)=IH3?>FMd} z>gvK=15*G10PRUcK~xwS1;M*Y13?sk;eXDYnb|cG#fTTg*jQ*|Y<&em8=uoBu(Glc zY%Bze2w4=85Y2@RyJ2U??=ypJb~H{0!=3bd{3C~7=6pd`I$8K8hPC+8^jBw_l%k2G zMDm~Zy3SR^8fye2S*^1=tVXaO|GI6%8P8WL?e`f$| zBZa2iMRVK4h)8R;Rr?c_6dI%!v+9&r*4g*)QRL6d`73Wj_wo-Rm|X~Ba}~G%0000< KMNUMnLSTY1YFfGg literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_adjustable_player_detector/textures/moremesecons_player_detector_on.png b/mods/moremesecons/moremesecons_adjustable_player_detector/textures/moremesecons_player_detector_on.png new file mode 100644 index 0000000000000000000000000000000000000000..a73a43dcf1ac682636cf66c924b65d84a1c7c071 GIT binary patch literal 709 zcmV;$0y_PPP)IHPsOUS}2(7F;4A*E?c zZAvu3s4rc z_PJtJnkdyz>U#JvYu_7k6 zY%_}ypy3E-d1YC5!){8c=X+5W?I-&%fX14$Moh={csw`0J->a?xfnzPShV^r?dSbe zrP|T^_xm3=KjEM4pFIdvmUr;ihu8VW(T}6N%DbMc=V#~Xnv5|}cv4x}!E*v$&VxmH z>78tKT1l38Ij@XzD{9n+RXkIBsJ8AK0JPD@n6J&6o_amyq>j;MeQ~|nYgTpjeI8H7 zFxDA#;y8A+;~8&udR7;_!hLq{8IKjat{dD2c!`Ky<&M;dMpS%N)cvq;*$N0|)f)*n`au|n#j&D*0HYk2 zPX~1ch5r~D8UiCR0^#iZOtWQAdqx@yD}>lu*`k;-WR@%d2`O0;k!0yRz9J>MLAQI; zot&7oY#D5f$!rEdN||JdgcK0Nc<3rOj^n%VPHk*%D5a|3tG@5oe%G3vX2CD)R(GRe r6b{0JZwCtM@XKMnQFo-X_j&IRI&ed6_q3yC00000NkvXXu0mjf7a~A0 literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_commandblock/depends.txt b/mods/moremesecons/moremesecons_commandblock/depends.txt new file mode 100644 index 00000000..acaa9241 --- /dev/null +++ b/mods/moremesecons/moremesecons_commandblock/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/moremesecons/moremesecons_commandblock/init.lua b/mods/moremesecons/moremesecons_commandblock/init.lua new file mode 100644 index 00000000..3710567a --- /dev/null +++ b/mods/moremesecons/moremesecons_commandblock/init.lua @@ -0,0 +1,172 @@ +local accepted_commands = {"tell"} -- Authorized commands. Any to accept all. +local NEAREST_MAX_DISTANCE = 8 + +local function initialize_data(meta) + local commands = meta:get_string("commands") + meta:set_string("formspec", + "invsize[9,5;]" .. + "textarea[0.5,0.5;8.5,4;commands;Commands;"..commands.."]" .. + "label[1,3.8;@nearest is replaced by the nearest player name ("..tostring(NEAREST_MAX_DISTANCE).." nodes max for the nearest distance)".."]" .. + "button_exit[3.3,4.5;2,1;submit;Submit]") + local owner = meta:get_string("owner") + if owner == "" then + owner = "not owned" + else + owner = "owned by " .. owner + end + meta:set_string("infotext", "Command Block\n" .. + "(" .. owner .. ")\n" .. + "Commands: "..commands) +end + +local function construct(pos) + local meta = minetest.get_meta(pos) + + meta:set_string("commands", "tell @nearest Commandblock unconfigured") + + meta:set_string("owner", "") + + initialize_data(meta) +end + +local function after_place(pos, placer) + if placer then + local meta = minetest.get_meta(pos) + meta:set_string("owner", placer:get_player_name()) + initialize_data(meta) + end +end + +local function receive_fields(pos, _, fields, player) + if not fields.submit then + return + end + local meta = minetest.get_meta(pos) + local owner = meta:get_string("owner") + if owner ~= "" + and player:get_player_name() ~= owner then + return + end + meta:set_string("commands", fields.commands) + + initialize_data(meta) +end + +local function resolve_commands(commands, pos) + local nearest = nil + local min_distance = math.huge + local players = minetest.get_connected_players() + for index, player in pairs(players) do + local distance = vector.distance(pos, player:getpos()) + if distance < min_distance then + min_distance = distance + nearest = player:get_player_name() + end + end + new_commands = commands:gsub("@nearest", nearest) + return new_commands, min_distance, new_commands ~= commands +end + +local function commandblock_action_on(pos, node) + if node.name ~= "moremesecons_commandblock:commandblock_off" then + return + end + + minetest.swap_node(pos, {name = "moremesecons_commandblock:commandblock_on"}) + + local meta = minetest.get_meta(pos) + local owner = meta:get_string("owner") + if owner == "" then + return + end + + local commands, distance, nearest_in_commands = resolve_commands(meta:get_string("commands"), pos) + if distance > NEAREST_MAX_DISTANCE and nearest_in_commands then + minetest.chat_send_player(owner, "The nearest player is too far to use his name in the commands of a craftable command block.") + return + end + for _, command in pairs(commands:split("\n")) do + local pos = command:find(" ") + local cmd, param = command, "" + if pos then + cmd = command:sub(1, pos - 1) + param = command:sub(pos + 1) + end + local cmddef = minetest.chatcommands[cmd] + local is_an_authorized_command = false + for i = 1, #accepted_commands do + if cmd == accepted_commands[i] then + is_an_authorized_command = true + break + end + end + if not is_an_authorized_command and #accepted_commands ~= 0 then + minetest.chat_send_player(owner, "You can not execute the command "..cmd.." with a craftable command block ! This event will be reported.") + minetest.log("action", "Player "..owner.." tryed to execute an unauthorized command with a craftable command block.") + return + end + if not cmddef then + minetest.chat_send_player(owner, "The command "..cmd.." does not exist") + return + end + local has_privs, missing_privs = minetest.check_player_privs(owner, cmddef.privs) + if not has_privs then + minetest.chat_send_player(owner, "You don't have permission " + .."to run "..cmd + .." (missing privileges: " + ..table.concat(missing_privs, ", ")..")") + return + end + cmddef.func(owner, param) + end +end + +local function commandblock_action_off(pos, node) + if node.name == "moremesecons_commandblock:commandblock_on" then + minetest.swap_node(pos, {name = "moremesecons_commandblock:commandblock_off"}) + end +end + +local function can_dig(pos, player) + local meta = minetest.get_meta(pos) + local owner = meta:get_string("owner") + return owner == "" or owner == player:get_player_name() +end + +minetest.register_node("moremesecons_commandblock:commandblock_off", { + description = "Craftable Command Block", + tiles = {"moremesecons_commandblock_off.png"}, + groups = {cracky=2, mesecon_effector_off=1}, + on_construct = construct, + after_place_node = after_place, + on_receive_fields = receive_fields, + can_dig = can_dig, + sounds = default.node_sound_stone_defaults(), + mesecons = {effector = { + action_on = commandblock_action_on + }} +}) + +minetest.register_node("moremesecons_commandblock:commandblock_on", { + tiles = {"moremesecons_commandblock_on.png"}, + groups = {cracky=2, mesecon_effector_on=1, not_in_creative_inventory=1}, + light_source = 10, + drop = "moremesecons_commandblock:commandblock_off", + on_construct = construct, + after_place_node = after_place, + on_receive_fields = receive_fields, + can_dig = can_dig, + sounds = default.node_sound_stone_defaults(), + mesecons = {effector = { + action_off = commandblock_action_off + }} +}) + +minetest.register_craft({ + output = "moremesecons_commandblock:commandblock_off", + recipe = { + {"group:mesecon_conductor_craftable","default:mese_crystal","group:mesecon_conductor_craftable"}, + {"default:mese_crystal","group:mesecon_conductor_craftable","default:mese_crystal"}, + {"group:mesecon_conductor_craftable","default:mese_crystal","group:mesecon_conductor_craftable"} + } +}) diff --git a/mods/moremesecons/moremesecons_commandblock/textures/moremesecons_commandblock_off.png b/mods/moremesecons/moremesecons_commandblock/textures/moremesecons_commandblock_off.png new file mode 100644 index 0000000000000000000000000000000000000000..dd8ed9dd85ed9a8ca48550e2256afbf1a604a9bb GIT binary patch literal 150 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPGa4)6(aWyoO2FDhQQY0LVxCVLJX zI&|~-u~TQyZ?e6)+u@p#+!3HMGfx-C5RT|%gEj_kHfA=11otEZO~yv%4n+zopr E05K*UsQ>@~ literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_conductor_signalchanger/textures/moremesecons_conductor_signalchanger_on.png b/mods/moremesecons/moremesecons_conductor_signalchanger/textures/moremesecons_conductor_signalchanger_on.png new file mode 100644 index 0000000000000000000000000000000000000000..1b86a64883b0e5de40895fdd9d3148d8ac3eee00 GIT binary patch literal 109 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!D3?x-;bCrM;TYyi9E5m<=FQ*vZ+@9496jAbY zaSY**O-{&3aByq&fRtuf`Myn%r{gQ0{3!%r`+lJa$(Pl2i#JYD@<);T3K F0RRg{91Q>f literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_dual_delayer/depends.txt b/mods/moremesecons/moremesecons_dual_delayer/depends.txt new file mode 100644 index 00000000..acaa9241 --- /dev/null +++ b/mods/moremesecons/moremesecons_dual_delayer/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/moremesecons/moremesecons_dual_delayer/init.lua b/mods/moremesecons/moremesecons_dual_delayer/init.lua new file mode 100644 index 00000000..bf89cfb4 --- /dev/null +++ b/mods/moremesecons/moremesecons_dual_delayer/init.lua @@ -0,0 +1,95 @@ +local function dual_delayer_get_input_rules(node) + local rules = {{x=-1, y=0, z=0}} + for i = 0, node.param2 do + rules = mesecon.rotate_rules_left(rules) + end + return rules +end + +local function dual_delayer_get_output_rules(node) + local rules = {{x=0, y=0, z=-1}, {x=0, y=0, z=1}} + for i = 0, node.param2 do + rules = mesecon.rotate_rules_left(rules) + end + return rules +end + +local dual_delayer_activate = function(pos, node) + mesecon.receptor_on(pos, {dual_delayer_get_output_rules(node)[1]}) -- Turn on the port 1 + minetest.swap_node(pos, {name = "moremesecons_dual_delayer:dual_delayer_10", param2 = node.param2}) + minetest.after(0.4, function(pos, node) + mesecon.receptor_on(pos, {dual_delayer_get_output_rules(node)[2]}) -- Turn on the port 2 + minetest.swap_node(pos, {name = "moremesecons_dual_delayer:dual_delayer_11", param2 = node.param2}) + end, pos, node) +end + +local dual_delayer_deactivate = function(pos, node, link) + mesecon.receptor_off(pos, {dual_delayer_get_output_rules(node)[2]}) -- Turn off the port 2 + minetest.swap_node(pos, {name = "moremesecons_dual_delayer:dual_delayer_10", param2 = node.param2}) + minetest.after(0.4, function(pos, node) + mesecon.receptor_off(pos, {dual_delayer_get_output_rules(node)[1]}) -- Turn off the port 1 + minetest.swap_node(pos, {name = "moremesecons_dual_delayer:dual_delayer_00", param2 = node.param2}) + end, pos, node) +end + + +for n,i in pairs({{0,0},{1,0},{1,1}}) do + local i1,i2 = unpack(i) + + local groups = {dig_immediate = 2} + if n ~= 1 then + groups.not_in_creative_inventory = 1 + end + + local top_texture = "^moremesecons_dual_delayer_overlay.png^[makealpha:255,126,126" + if i1 == i2 then + if i1 == 0 then + top_texture = "mesecons_wire_off.png"..top_texture + else + top_texture = "mesecons_wire_on.png"..top_texture + end + else + local pre = "mesecons_wire_off.png^[lowpart:50:mesecons_wire_on.png^[transformR" + if i1 == 0 then + pre = pre.. 90 + else + pre = pre.. 270 + end + top_texture = pre..top_texture + end + + minetest.register_node("moremesecons_dual_delayer:dual_delayer_"..i1 ..i2, { + description = "Dual Delayer", + drop = "moremesecons_dual_delayer:dual_delayer_00", + inventory_image = top_texture, + wield_image = top_texture, + paramtype = "light", + paramtype2 = "facedir", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = {{-6/16, -8/16, -1/16, 6/16, -7/16, 8/16 }, + {-8/16, -8/16, 1/16, -6/16, -7/16, -1/16}, + {8/16, -8/16, -1/16, 6/16, -7/16, 1/16}} + }, + groups = groups, + tiles = {top_texture, "moremesecons_dual_delayer_bottom.png", "moremesecons_dual_delayer_side_left.png", "moremesecons_dual_delayer_side_right.png", "moremesecons_dual_delayer_ends.png", "moremesecons_dual_delayer_ends.png"}, + mesecons = { + receptor = { + state = mesecon.state.off, + rules = dual_delayer_get_output_rules + }, + effector = { + rules = dual_delayer_get_input_rules, + action_on = dual_delayer_activate, + action_off = dual_delayer_deactivate + } + } + }) +end + +minetest.register_craft({ + type = "shapeless", + output = "moremesecons_dual_delayer:dual_delayer_00 2", + recipe = {"mesecons_delayer:delayer_off_1", "mesecons_delayer:delayer_off_1"} +}) diff --git a/mods/moremesecons/moremesecons_dual_delayer/textures/moremesecons_dual_delayer_bottom.png b/mods/moremesecons/moremesecons_dual_delayer/textures/moremesecons_dual_delayer_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..0ddc2644c28cb6a5dc6a6be4a71a5689ac7a4a78 GIT binary patch literal 99 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`TAnVBAr*|tKmPx>cdZDJFvxNU w=RaI8peB0YOJEMeAxjme8T$?<99Y4~;QcqTNxr6B7O0EC)78&qol`;+0KV!RivR!s literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_dual_delayer/textures/moremesecons_dual_delayer_ends.png b/mods/moremesecons/moremesecons_dual_delayer/textures/moremesecons_dual_delayer_ends.png new file mode 100644 index 0000000000000000000000000000000000000000..c1f47d3f69795bfe89bfa0610fe0e597672d837f GIT binary patch literal 91 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~j#0(@?i61)yq&Ne7LR`Cg82&Rb{Qv)d!ne98 opdhcOi(?3fZ1RJsnOhkcnCCF=V-i2<0hD0yboFyt=akR{0IxO|t^fc4 literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_dual_delayer/textures/moremesecons_dual_delayer_overlay.png b/mods/moremesecons/moremesecons_dual_delayer/textures/moremesecons_dual_delayer_overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..b81b215165fb07e97831f4188139815c80c00da9 GIT binary patch literal 154 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJe}GSjD<>0>#qb}9>gxXg|Gz`k z<~ESeSQ6wH%;50sMjDV~>FMGaQo*?Qv>{i6gUFE!^XK0Af5u2hBQG`e6#L90+otLM vWQ$<9w?O>?b4lUho(F7m%Jd^nT(mD>oWFqS_sS*)bC4CDu6{1-oD!Mc%)c^nh literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_dual_delayer/textures/moremesecons_dual_delayer_side_right.png b/mods/moremesecons/moremesecons_dual_delayer/textures/moremesecons_dual_delayer_side_right.png new file mode 100644 index 0000000000000000000000000000000000000000..5d810bd79bac3066d791e19771f77d955989ff4e GIT binary patch literal 77 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~j!3HF+SL($BDG^T>$B+ufj&@iykFmUc35$=rh0cZ1VJ_O zes~1**2;)CfRwh>jzUnCX!w{?rqk*4dcDD5FdB^}lgVs0TPzl<)oQcZ>~_1u;cz;g zE|<&W_j$cupU)Qv1cJd}C=?2Z!!MCg1VE6;>nMUCQ6LtL#-p)VEDm63B8eswsU&~` zl}G_N_8*SnD2@_%3d1W1oW#=rnaxyC86r&p6qUuPY&J_~Ffx-SNs=PcIf~5zbdIJ- zn#$2&0T`BMNt)vrI>#^!Tfwm`&+eGO6#2;RlEJ-5#k$hQZBqEOQe(IN~2A?>Y!LjY1>YIy?{ED@X!|SGt zsj9UHNJrP$q(?EZf7AHwQjgMEIK6!8@u9xC_C%o2zw;7%r|S&4@#mk#14PkYQm#&q kY#xWd4Q(;U@14`!EsN?}Z`5MXoZwtYE>pmsBWJb$0H;Ym8vp=q0KY0HC=j-!49x!*QtF%=B0JW*x zI0(DCJe50OHXhqE1i-fK1AUfG@E6$ac89~^bUIxwm)q_3csyRO*XQ#g2;%qq1A#y= z7z~9%^9zx1I2?&YqS0t97DG`q9*-|!=rV+1%dc<@!*Gbe@fDmPh!u!TC6cLRBAtX% zP&v{NMgB*TREkRFs5D8HAKn$HNW3#zT4q{oFVriOYvLutuFbu=yG8`*%5YO=} z!?PR@7f29!k>Mpt;5k7M#4qnrqkZF3vSi a^lw&NqHVLU*J_*LrNGo_HqLikdH4^P4>>RZ literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_igniter/depends.txt b/mods/moremesecons/moremesecons_igniter/depends.txt new file mode 100644 index 00000000..f95ba130 --- /dev/null +++ b/mods/moremesecons/moremesecons_igniter/depends.txt @@ -0,0 +1,2 @@ +mesecons +fire diff --git a/mods/moremesecons/moremesecons_igniter/init.lua b/mods/moremesecons/moremesecons_igniter/init.lua new file mode 100644 index 00000000..82cbbdf7 --- /dev/null +++ b/mods/moremesecons/moremesecons_igniter/init.lua @@ -0,0 +1,48 @@ +local function add_back_igniter(pos) + local name = minetest.get_node(pos).name + + if name == "moremesecons_igniter:igniter" then + -- this should not happen + minetest.log("error", "[moremesecons_igniter] igniter is already back") + return + end + + if name == "ignore" then + -- in case of unloaded chunk + minetest.get_voxel_manip():read_from_map(pos, pos) + name = minetest.get_node(pos).name + end + + if name == "air" + or name == "fire:basic_flame" then + minetest.set_node(pos, {name="moremesecons_igniter:igniter"}) + else + -- drop it as item if something took place there in the 0.8 seconds + pos.y = pos.y+1 + minetest.add_item(pos, "moremesecons_igniter:igniter") + pos.y = pos.y-1 + end +end + +local function igniter_on(pos) + minetest.set_node(pos, {name="fire:basic_flame"}) + minetest.after(0.8, add_back_igniter, pos) +end + +minetest.register_node("moremesecons_igniter:igniter", { + description = "Igniter", + paramtype = "light", + tiles = {"moremesecons_igniter.png"}, + groups = {cracky=3}, + mesecons = { + effector = { + action_on = igniter_on + }} +}) + + +minetest.register_craft({ + output = "moremesecons_igniter:igniter", + recipe = { {"default:torch"}, + {"default:mese_crystal_fragment"},} +}) diff --git a/mods/moremesecons/moremesecons_igniter/textures/moremesecons_igniter.png b/mods/moremesecons/moremesecons_igniter/textures/moremesecons_igniter.png new file mode 100644 index 0000000000000000000000000000000000000000..4c548313a8563b5eaf2649eced3788836be39847 GIT binary patch literal 696 zcmV;p0!RIcP)(7)lrOf(aR2G@=JZgVKZ$>Y;ongEB)g zLWo2tq0DmL0+p_qrj)59I4_$ntzWW%V`x3}a5(4t@jpL4&UXYt@V~3r!-Z9X1c!fL zYV^0asYRa5*#^{Y5xmrFv|*7_d$dvq^SRV>y?MW=aIy%><#smV3h6r9cPS|Japb7f z^{<`OZegWfohe+?AR@cQ_Y7_YSMLN$o=a0pB%6VkE(R6`ajbF@8wN+n5c! z3UlU1+V)kMnM`l=`6>jLgPF?rWA3;YBgyX8K+e{cb8nP{=?p){Qsw5_RH)*k)(r{+ z5fg`%X85x}#XzbOeUYWr{@s>Gn?JjW;baeHvlT2A1zDumc3~(9!B`t@9pg}<3x+E} z&=tn#gA(+)3Nv496ky7~z8*A}hX5q{?MKDz1%k0xoSUSy+E`ph! zSj5bEAGj1^4u8*eW8s0?I<86;i@H#{s~qV_5iC5>z;F_s1%kQ&0n1$qUPr>9)@H_| zWu8pmQA6K;etn6hx50tt3<32~OxK3Pcor?mE{x^vMetrj&rNUWN{3HcC|5Jz5eHMp z;9fYq(Lzr)6E^}`xUOO0VKfb4b`*O$bH>9FaX(tXizJK{YIu~$SdBlX#uS^5iWD*~ ec-XJ`mHz-298F>Ul$PTF0000FK0Bmx!0W-S18f!s3=FTL Wc&ZI+F2w*fGkCiCxvX;M1%8U8aId#1+&6p{3F waSW+oOkN;hFzIaikqPNX0?v21+UGJdu*Wd)%(y-?0;q_=)78&qol`;+09ia5a{vGU literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_jammer/textures/moremesecons_jammer_on.png b/mods/moremesecons/moremesecons_jammer/textures/moremesecons_jammer_on.png new file mode 100644 index 0000000000000000000000000000000000000000..ab02630db00405df7ddf3abc0bcfbff98d290ff3 GIT binary patch literal 112 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJTYyi9>wh3%V0az%d@@i()zif> zq=GS7fz3e4SWrZbIapJ9mSs7F-g{EG!KD>ER52zI|nAo4oV`TXH^*ck`0^FK$h5;)x8^eDl28Ol;n-~ds6~zTPZd(7vm9!Z?fB(kt z=D`i3!V1NJe+>T^{`~vT(6w+YBe8+a!oa}5km8{HUtCq6ftits;p3w#B*hjB0|Ntt oyoMpe^LtkqrtP}HNcUU@0JQ~7SyXN@ng9R*07*qoM6N<$f;Rqss{jB1 literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_playerkiller/depends.txt b/mods/moremesecons/moremesecons_playerkiller/depends.txt new file mode 100644 index 00000000..bc7b0627 --- /dev/null +++ b/mods/moremesecons/moremesecons_playerkiller/depends.txt @@ -0,0 +1,2 @@ +mesecons +mesecons_materials diff --git a/mods/moremesecons/moremesecons_playerkiller/init.lua b/mods/moremesecons/moremesecons_playerkiller/init.lua new file mode 100644 index 00000000..cc340ad8 --- /dev/null +++ b/mods/moremesecons/moremesecons_playerkiller/init.lua @@ -0,0 +1,62 @@ +local kill_nearest_player = function(pos) + local MAX_DISTANCE = 8 -- Use this number to set maximal distance to kill + + -- Search the nearest player + local nearest + local min_distance = MAX_DISTANCE + for index, player in pairs(minetest.get_connected_players()) do + local distance = vector.distance(pos, player:getpos()) + if distance < min_distance then + min_distance = distance + nearest = player + end + end + + if not nearest then + -- no nearby player + return + end + + local owner = minetest.get_meta(pos):get_string("owner") + if not owner then + -- maybe some mod placed it + return + end + + if owner == nearest:get_player_name() then + -- don't kill the owner ! + return + end + + -- And kill him + nearest:set_hp(0) + minetest.log("action", "Player "..owner.." kills player "..nearest.." using a MoreMesecons Player Killer.") +end + +minetest.register_craft({ + output = "moremesecons_playerkiller:playerkiller", + recipe = { {"","default:mese",""}, + {"default:apple","mesecons_detector:object_detector_off","default:apple"}, + {"","default:apple",""}} +}) + +minetest.register_node("moremesecons_playerkiller:playerkiller", { + description = "Player Killer", + tiles = {"moremesecons_playerkiller_top.png", "moremesecons_playerkiller_top.png", "moremesecons_playerkiller_side.png"}, + paramtype = "light", + walkable = true, + groups = {cracky=3}, + mesecons = {effector = { + state = mesecon.state.off, + action_on = kill_nearest_player + }}, + after_place_node = function(pos, placer) + if not placer then + return + end + local meta = minetest.get_meta(pos) + meta:set_string("owner", placer:get_player_name()) + meta:set_string("infotext", "PlayerKiller owned by " .. meta:get_string("owner")) + end, + sounds = default.node_sound_stone_defaults(), +}) diff --git a/mods/moremesecons/moremesecons_playerkiller/textures/moremesecons_playerkiller_side.png b/mods/moremesecons/moremesecons_playerkiller/textures/moremesecons_playerkiller_side.png new file mode 100644 index 0000000000000000000000000000000000000000..4466128932852c44ecad22fd8314a96c2ef2d351 GIT binary patch literal 4013 zcmV;e4^r@nP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya?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mV?d00001 diff --git a/mods/moremesecons/moremesecons_sayer/depends.txt b/mods/moremesecons/moremesecons_sayer/depends.txt new file mode 100644 index 00000000..8bbc6257 --- /dev/null +++ b/mods/moremesecons/moremesecons_sayer/depends.txt @@ -0,0 +1,3 @@ +mesecons +mesecons_noteblock +default diff --git a/mods/moremesecons/moremesecons_sayer/init.lua b/mods/moremesecons/moremesecons_sayer/init.lua new file mode 100644 index 00000000..dc5ea13e --- /dev/null +++ b/mods/moremesecons/moremesecons_sayer/init.lua @@ -0,0 +1,95 @@ +local MAX_DISTANCE = 8 +local use_speech_dispatcher = true + +local sayer_activate +if use_speech_dispatcher +and minetest.is_singleplayer() -- must! executing commands with it and crashes may be possible +and io.popen("if hash spd-say 2>/dev/null; then printf yes; fi"):read("*all") == "yes" then + minetest.log("info", "[moremesecons_sayer] using speech dispatcher") + local tab = { + "spd-say", + nil, + "" + } + local language = minetest.setting_get("language") or "en" + if language ~= "en" then + tab[3] = "-l "..language + end + MAX_DISTANCE = MAX_DISTANCE^2 + function sayer_activate(pos) + local text = minetest.get_meta(pos):get_string("text") + if text == "" then + -- nothing to say + return + end + if string.find(text, '"') then + text = "So, singleplayer, you want to use me to execute commands? Writing quotes is not allowed!" + end + tab[2] = '"'..text..'"' + local ppos = minetest.get_player_by_name("singleplayer"):getpos() + ppos.y = ppos.y+1.625 -- camera position (without bobbing) + -- that here's just 1 volume means that it's mono + local volume = math.floor(-100*( + 1-MAX_DISTANCE/vector.distance(pos, ppos)^2 + +0.5)) + if volume <= -100 then + -- nothing to hear + return + end + if volume > 0 then + --volume = "+"..math.min(100, volume) + -- volume bigger 0 somehow isn't louder, it rather tries to scream + volume = "+"..math.min(100, math.floor(volume/(MAX_DISTANCE-1)+0.5)) + end + if volume == 0 then + tab[4] = nil + else + tab[4] = "-i "..volume + end + os.execute(table.concat(tab, " ")) + end +else + function sayer_activate(pos) + local tab = { + "Sayer at pos", + nil, + "says : "..minetest.get_meta(pos):get_string("text") + } + for _,player in pairs(minetest.get_connected_players()) do + if vector.distance(pos, player:getpos()) <= MAX_DISTANCE then + tab[2] = minetest.pos_to_string(pos) + minetest.chat_send_player(player:get_player_name(), table.concat(tab, " ")) + end + end + end +end + +minetest.register_node("moremesecons_sayer:sayer", { + description = "sayer", + tiles = {"mesecons_noteblock.png", "default_wood.png"}, + drawtype = "nodebox", + paramtype = "light", + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + }, + groups = {dig_immediate = 2}, + on_construct = function(pos) + minetest.get_meta(pos):set_string("formspec", "field[text;text;${text}]") + end, + on_receive_fields = function(pos, _, fields, player) + if fields.text + and not minetest.is_protected(pos, player:get_player_name()) then + minetest.get_meta(pos):set_string("text", fields.text) + end + end, + mesecons = {effector = { + action_on = sayer_activate + }} +}) + +minetest.register_craft({ + output = "moremesecons_sayer:sayer 2", + recipe = {{"mesecons_luacontroller:luacontroller0000", "mesecons_noteblock:noteblock"}, + {"group:wood", "group:wood"}} +}) diff --git a/mods/moremesecons/moremesecons_signalchanger/depends.txt b/mods/moremesecons/moremesecons_signalchanger/depends.txt new file mode 100644 index 00000000..acaa9241 --- /dev/null +++ b/mods/moremesecons/moremesecons_signalchanger/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/moremesecons/moremesecons_signalchanger/init.lua b/mods/moremesecons/moremesecons_signalchanger/init.lua new file mode 100644 index 00000000..61a56278 --- /dev/null +++ b/mods/moremesecons/moremesecons_signalchanger/init.lua @@ -0,0 +1,81 @@ +local nodebox = { + type = "fixed", + fixed = {{-8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }}, +} + +local function signalchanger_get_output_rules(node) + local rules = {{x=1, y=0, z=0}, + {x=-1, y=0, z=0}} + for i = 0, node.param2 do + rules = mesecon.rotate_rules_left(rules) + end + return rules +end + +local function signalchanger_get_input_rules(node) + local rules = {{x=0, y=0, z=1, name="input_on"}, {x=0, y=0, z=-1, name="input_off"}} + for i = 0, node.param2 do + rules = mesecon.rotate_rules_left(rules) + end + return rules +end + +local update = function(pos, node, link, newstate) + local meta = minetest.get_meta(pos) + meta:set_int(link.name, newstate == "on" and 1 or 0) + local input_on = meta:get_int("input_on") == 1 + local input_off = meta:get_int("input_off") == 1 + if input_on then + mesecon.receptor_on(pos, {signalchanger_get_output_rules(node)[1]}) + mesecon.receptor_off(pos, {signalchanger_get_output_rules(node)[2]}) + minetest.swap_node(pos, {name = "moremesecons_signalchanger:signalchanger_on", param2 = node.param2}) + elseif input_off then + mesecon.receptor_off(pos, {signalchanger_get_output_rules(node)[1]}) + mesecon.receptor_on(pos, {signalchanger_get_output_rules(node)[2]}) + minetest.swap_node(pos, {name = "moremesecons_signalchanger:signalchanger_off", param2 = node.param2}) + end +end + +mesecon.register_node("moremesecons_signalchanger:signalchanger", { + description = "Signal Changer", + inventory_image = "moremesecons_signalchanger_off.png", + groups = {dig_immediate = 2}, + paramtype = "light", + paramtype2 = "facedir", + drawtype = "nodebox", + selection_box = nodebox, + node_box = nodebox, +},{ + groups = {dig_immediate = 2}, + mesecons = { + receptor = { + rules = signalchanger_get_output_rules + }, + effector = { + rules = signalchanger_get_input_rules, + action_change = update + }, + }, + tiles = {"moremesecons_signalchanger_off.png"}, + on_construct = function(pos) + local node = minetest.get_node(pos) + mesecon.receptor_on(pos, {signalchanger_get_output_rules(node)[2]}) + end +},{ + groups = {dig_immediate = 2, not_in_creative_inventory = 1}, + mesecons = { + receptor = { + rules = signalchanger_get_output_rules, + }, + effector = { + rules = signalchanger_get_input_rules, + action_change = update, + }, + }, + tiles = {"moremesecons_signalchanger_on.png"}, +}) + +minetest.register_craft({ + output = "moremesecons_signalchanger:signalchanger_off", + recipe = {{"group:mesecon_conductor_craftable","moremesecons_switchtorch:switchtorch_on","group:mesecon_conductor_craftable"}} +}) diff --git a/mods/moremesecons/moremesecons_signalchanger/textures/moremesecons_signalchanger_off.png b/mods/moremesecons/moremesecons_signalchanger/textures/moremesecons_signalchanger_off.png new file mode 100644 index 0000000000000000000000000000000000000000..a6583bea04cf0218b219d3d0a74f0e4de2158a57 GIT binary patch literal 109 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!D3?x-;bCrM;TYyi9>w*Of{{R2q*vYW~D5B)) z;uyjqo1Bo5;NZsU%fl#eg)K?sOJmARc>@DE2JK`9hVQev5z7ju|NsB*s5e;w6jAbY zaSY**P5u#ozMDxd#wUT)1Bdj{6WqKz*W)v^IqGkCiCxvXVMly7U_qsY-L(PkjQ%3wNKvZ}RzawE_L22WQ% Jmvv4FO#rij9>V|t literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_switchtorch/textures/moremesecons_switchtorch_off_side.png b/mods/moremesecons/moremesecons_switchtorch/textures/moremesecons_switchtorch_off_side.png new file mode 100644 index 0000000000000000000000000000000000000000..4bb79f5e2955f9f27fde90b2aa34a2bc6cc0d257 GIT binary patch literal 110 zcmeAS@N?(olHy`uVBq!ia0vp^0zfRt!3HF+tk*dLq)a_s978G?lO?_-h-55}_|u+f zWU5@SW&Pv&+`@DJS26Yc5B(|mU;C5Mzv<5se)#Xjv*C{$r7g$L{{wG^2dK8 zqk+v5UdM*y=(NAfEfSRftkEz(a{lIoBIl-|!S3j3^P6f3$QI_V9?p2 MAX_TELEPORTATION_DISTANCE then + newpos = {} + end + end + if not newpos.x then + newpos = {x=pos.x, y=pos.y+1, z=pos.z} -- If newpos doesn't exist, teleport on the actual teleporter. + end + nearest:moveto(newpos) + minetest.log("action", "Player "..nearest:get_player_name().." was teleport with a MoreMesecons Teleporter.") +end + +minetest.register_craft({ + output = "moremesecons_teleporter:teleporter 2", + recipe = {{"default:diamond","default:stick","default:mese"}} +}) +minetest.register_node("moremesecons_teleporter:teleporter", { + tiles = {"moremesecons_teleporter.png"}, + paramtype = "light", + walkable = true, + groups = {cracky=3}, + description="Teleporter", + mesecons = {effector = { + state = mesecon.state.off, + action_on = teleport_nearest + }}, + sounds = default.node_sound_stone_defaults(), + on_construct = register, + on_destruct = function(pos) + local RID = vector.get_data_from_pos(teleporters_rids, pos.z,pos.y,pos.x) + if RID then + table.remove(teleporters, RID) + vector.remove_data_from_pos(teleporters_rids, pos.z,pos.y,pos.x) + end + end, +}) + + +minetest.register_lbm({ + name = "moremesecons_teleporter:add_teleporter", + nodenames = {"moremesecons_teleporter:teleporter"}, + run_at_every_load = true, + action = register +}) diff --git a/mods/moremesecons/moremesecons_teleporter/textures/moremesecons_teleporter.png b/mods/moremesecons/moremesecons_teleporter/textures/moremesecons_teleporter.png new file mode 100644 index 0000000000000000000000000000000000000000..cd9140a32767678f831e9388143f52d3377a48e6 GIT binary patch literal 513 zcmV+c0{;DpP)4IFv!R*z`!lLyD!4RH{#+j#>OnT zxGJ!)DXFO`t*tD#w=c!TDW|6;nwle$k|K|fC775frKK;&$1~E>G0e;)l$0NXgB^Ew zB$bsZtgJ4+zBJm}B94w6c6JzMW*BE@9CUOci;E|rp)9txFv-aqa&j1AVi#aw8*gtQ zhlee^yeO!sBax9FetsKnZW?ZG9eH^pkB=v$q%q3MFT}(vwY4Ulogf`THA zjU}6#DzULH!ooG%+bE`{CZ3)rqM|Lmy))F*E3~vOzrQuv**4+fFR(Aq0002MNklPuPtF4fz#&pT=+j-yQQ6O>K+(1v0M+CUL2d4jjB5^rCq_g4;00000NkvXXu0mjf DjVt5+ literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_temporarygate/depends.txt b/mods/moremesecons/moremesecons_temporarygate/depends.txt new file mode 100644 index 00000000..acaa9241 --- /dev/null +++ b/mods/moremesecons/moremesecons_temporarygate/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/moremesecons/moremesecons_temporarygate/init.lua b/mods/moremesecons/moremesecons_temporarygate/init.lua new file mode 100644 index 00000000..96678bfd --- /dev/null +++ b/mods/moremesecons/moremesecons_temporarygate/init.lua @@ -0,0 +1,124 @@ +local temporarygate_get_output_rules = function(node) + local rules = {{x = 0, y = 0, z = 1}} + for i = 0, node.param2 do + rules = mesecon.rotate_rules_left(rules) + end + return rules +end + +local temporarygate_get_input_rules = function(node) + local rules = {{x = 0, y = 0, z = -1}} + for i = 0, node.param2 do + rules = mesecon.rotate_rules_left(rules) + end + return rules +end + +-- Functions that are called after the delay time + +local function temporarygate_activate(pos, node) + -- using a meta string allows writing the time in hexadecimals + local time = tonumber(minetest.get_meta(pos):get_string("time")) + if not time then + return + end + node.name = "moremesecons_temporarygate:temporarygate_on" + minetest.swap_node(pos, node) + mesecon.receptor_on(pos) + minetest.after(time, function(pos, node) + mesecon.receptor_off(pos) + node.name = "moremesecons_temporarygate:temporarygate_off" + minetest.swap_node(pos, node) + end, pos, node) +end + +boxes = {{ -6/16, -8/16, -6/16, 6/16, -7/16, 6/16 }, -- the main slab + + { -2/16, -7/16, -4/16, 2/16, -26/64, -3/16 }, -- the jeweled "on" indicator + { -3/16, -7/16, -3/16, 3/16, -26/64, -2/16 }, + { -4/16, -7/16, -2/16, 4/16, -26/64, 2/16 }, + { -3/16, -7/16, 2/16, 3/16, -26/64, 3/16 }, + { -2/16, -7/16, 3/16, 2/16, -26/64, 4/16 }, + + { -6/16, -7/16, -6/16, -4/16, -27/64, -4/16 }, -- the timer indicator + { -8/16, -8/16, -1/16, -6/16, -7/16, 1/16 }, -- the two wire stubs + { 6/16, -8/16, -1/16, 8/16, -7/16, 1/16 }} + +mesecon.register_node("moremesecons_temporarygate:temporarygate", { + description = "Temporary Gate", + drawtype = "nodebox", + inventory_image = "moremesecons_temporarygate_off.png", + wield_image = "moremesecons_temporarygate_off.png", + walkable = true, + selection_box = { + type = "fixed", + fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 }, + }, + node_box = { + type = "fixed", + fixed = boxes + }, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + is_ground_content = true, + sounds = default.node_sound_stone_defaults(), + on_construct = function(pos) + minetest.get_meta(pos):set_string("formspec", "field[time;time;${time}]") + end, + on_receive_fields = function(pos, _, fields, player) + if fields.time + and not minetest.is_protected(pos, player:get_player_name()) then + minetest.get_meta(pos):set_string("time", fields.time) + end + end +},{ + tiles = { + "moremesecons_temporarygate_off.png", + "moremesecons_temporarygate_bottom.png", + "moremesecons_temporarygate_ends_off.png", + "moremesecons_temporarygate_ends_off.png", + "moremesecons_temporarygate_sides_off.png", + "moremesecons_temporarygate_sides_off.png" + }, + groups = {bendy=2,snappy=1,dig_immediate=2}, + mesecons = { + receptor = + { + state = mesecon.state.off, + rules = temporarygate_get_output_rules + }, + effector = + { + rules = temporarygate_get_input_rules, + action_on = temporarygate_activate + } + }, +},{ + tiles = { + "moremesecons_temporarygate_on.png", + "moremesecons_temporarygate_bottom.png", + "moremesecons_temporarygate_ends_on.png", + "moremesecons_temporarygate_ends_on.png", + "moremesecons_temporarygate_sides_on.png", + "moremesecons_temporarygate_sides_on.png" + }, + groups = {bendy=2,snappy=1,dig_immediate=2, not_in_creative_inventory=1}, + mesecons = { + receptor = { + state = mesecon.state.on, + rules = temporarygate_get_output_rules + }, + effector = { + rules = temporarygate_get_input_rules, + } + }, +}) + +minetest.register_craft({ + output = "moremesecons_temporarygate:temporarygate_off 2", + recipe = { + {"group:mesecon_conductor_craftable", "mesecons_delayer:delayer_off_1", "group:mesecon_conductor_craftable"}, + {"default:wood","default:wood", "default:wood"}, + } +}) diff --git a/mods/moremesecons/moremesecons_temporarygate/textures/moremesecons_temporarygate_bottom.png b/mods/moremesecons/moremesecons_temporarygate/textures/moremesecons_temporarygate_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..5f2b67a00f9b815a87b0c3e19980b3f9853c9d03 GIT binary patch literal 261 zcmeAS@N?(olHy`uVBq!ia0vp^0wBx*Bp9q_EZ7UAI14-?iy0Vr{1_Oxg&9kAckTxY zvX^-Jy0YKl;9=lopQEuR9VoQK)5S4FLX!2MW6%)?9%cv6Zz+}^v*S+pE}E8dY}<=x z;&bF)c~o7R`19QC$@{N=J9Kt?T3*Omt23Qh>FbW~5h%OKdD?mf)3w$ad?^=MZ8+WD zgo=rYf64k$@;HFG^pK)Ta?uk;?H)F-lL2PY_1jKHNMspYV&(i|+0Der&?cX9?wV=y zi;Ne-1;*YpE_HsLSEHozM$q#ee`(B&KgU*Pd(XK3jQ`Y&zd(v*>6$I*PXqqFmGes1pH_}H~S=PT|HcvxTA z`t1LB>Ar-gY_Uz_tFc5LQ&!*`6 zZR6&^?;AE4NVn8H7nF8o71fb_>BVH#?CSUVUBCNGpJ)0$#k`uT63GwdEMClQd-r~B zW_9hAOy!maL$=?6&21YGYzo_O%}KLWfN4%~rojC5(UQAg1i#zce$DFX@tY4APl$Ny U?u(mt2538jr>mdKI;Vst00uNc0RR91 literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_temporarygate/textures/moremesecons_temporarygate_off.png b/mods/moremesecons/moremesecons_temporarygate/textures/moremesecons_temporarygate_off.png new file mode 100644 index 0000000000000000000000000000000000000000..b371d38f2506e2daf3372118c413d5a3a6c9c7db GIT binary patch literal 361 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbK}V}MVHE0ES@2r^`dG-XIMV+eL* zV8~-Qo|l)GpPygIaHg=3p|G&9nBjbJad8R5#gY<+l9G~AhRda;rDbJh<>loS6&010 zl~q+$)z#HCH4HU1HMO-2wY9Z%bqsZNb@lZO_4V})4GoQr42_MAO-)VB&CM+>Ev>Ds zZEbBG9UWa=U8}q_!-0-qED7=pW^j0RBMr!z=IP=XA|cs(kWs8jL4ftZ`K~ExPiKh= z<_fHM`IrC3W45yo|#>8c-}wM(91%k!&~EMKU*Db9%_1bL~t$6*fY!Cn63hQ?t+vP9l@Mwj85;+HSA%mx@pUXO@geCwH CN{s^m literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_temporarygate/textures/moremesecons_temporarygate_on.png b/mods/moremesecons/moremesecons_temporarygate/textures/moremesecons_temporarygate_on.png new file mode 100644 index 0000000000000000000000000000000000000000..7c0193526a4a9ea9902d14d40de1b5752d78af92 GIT binary patch literal 364 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbK}OMp*^E08w7#*oRdKab&fUS3{) zetuzLVG+am;^N{GhP@>vC8edMWo2dM<>eI>6_u5hRaI5h)zvjMHMO<1b#-<1_4N%6 z4UG&h8XFs%nwpv!-ZnQkx3sjhGJI%lZEa)t)YjJ4&hWLPqob>`^{; zO!fG2l@lkFPn=LWb4I1^`8+nDI~YrX{DK)Ap4~_Ta;AB@IEF|__8#PvYElqjyAZ!j z$;3Dz;6UoF>%Z@>@0b1|cdestkFH{jxSYC3=icHsw+(KI9X(s6=DX_q!-k}dK9gKu zypR?-sV&*_q|wis;rsKeLHlMzwp4tsd-#3k9I=_bhDXkRXH>A9^?8D8Nc>`p+bdkt z0u8Td2o2`b5(%WyhM?B=u(dF)lG@Umc=t2fhS3j3^ HP6o`g9 zlAt0Nm)OF^DNJ+pLpV}DIu{=05UHG0y6^K$tGVamEp8|s<5()vV;GTf+(%k1YJc_R zXG<4voi_h-(SjLlcg|}xewRDb6U0???osyIB5p;Ksh*mO;_TnV^bK|E0E^pH1UH)GVwat=OVW8HCdn~(A|hXZ?4!?@2zTu!r@ zc`HLcgO|OL`(V_(id(*Gmah>%m~qW3{eTJ28)<9v8_)M0+qmqX-o}ISRi7CiNvynK Q2(*O3)78&qol`;+02;(ObN~PV literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_wireless/textures/moremesecons_jammer_side_off.png b/mods/moremesecons/moremesecons_wireless/textures/moremesecons_jammer_side_off.png new file mode 100644 index 0000000000000000000000000000000000000000..0c1fe1d32bcd1cbd59c649c52106d5855dce4f9b GIT binary patch literal 138 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6BuiW)N}Tg^b5rw57@Uhz6H8K4 z6v{J8G8EiBeFMT9`NV;WbUa-gLp07OCrGfSH2&xLAIK^ZsIsxcIBBBG#N;E2oZ&}Y i7D2`eGHzielF{r5}E*v#3&H} literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_wireless/textures/moremesecons_jammer_side_on.png b/mods/moremesecons/moremesecons_wireless/textures/moremesecons_jammer_side_on.png new file mode 100644 index 0000000000000000000000000000000000000000..4d54e2ce7c772a7b13b63fcadea46cdb4919f754 GIT binary patch literal 163 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6BuiW)N}Tg^b5rw57@Uhz6H8K4 z6v{J8G8EiBeFMT9`NV;WTs>VJLp07O|2f|vZ(tY@$@sYb*ngE-2bxaBZe@&RoYZ-u z?SHz;EiM!DwQ=VU2uO9fGAd8|&=lb;sx9%+<#@f@skI6m3;~H^x%$ENKY<1^c)I$z JtaD0e0ss@1H8TJJ literal 0 HcmV?d00001 diff --git a/mods/moremesecons/moremesecons_wireless/textures/moremesecons_jammer_top.png b/mods/moremesecons/moremesecons_wireless/textures/moremesecons_jammer_top.png new file mode 100644 index 0000000000000000000000000000000000000000..0adf8024406dfeb40b3cca3868dd69478ad8afcd GIT binary patch literal 160 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!93?!50ihlx9JOMr-u0VR`%$YzE2qYcij{zy> zk|4ie1_swZ2MP}YxelH#jv*Yf$vl7SFEnmE)$-gp`BKLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2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