delete_hiking_mod
|
@ -107,7 +107,6 @@ git clone --depth 1 --branch master https://github.com/joe7575/techpack.git
|
||||||
git clone --depth 1 --branch master https://github.com/random-geek/morelights.git
|
git clone --depth 1 --branch master https://github.com/random-geek/morelights.git
|
||||||
git clone --depth 1 --branch master https://repo.or.cz/minetest_mtg_plus.git
|
git clone --depth 1 --branch master https://repo.or.cz/minetest_mtg_plus.git
|
||||||
git clone --depth 1 --branch master https://github.com/minetest-mods/spectator_mode.git
|
git clone --depth 1 --branch master https://github.com/minetest-mods/spectator_mode.git
|
||||||
git clone --depth 1 --branch master https://gitlab.com/h2mm/hiking.git
|
|
||||||
git clone --depth 1 --branch master https://github.com/Extex101/christmas.git
|
git clone --depth 1 --branch master https://github.com/Extex101/christmas.git
|
||||||
git clone --depth 1 --branch master https://gitlab.com/VanessaE/gloopblocks.git
|
git clone --depth 1 --branch master https://gitlab.com/VanessaE/gloopblocks.git
|
||||||
git clone --depth 1 --branch master https://github.com/minetest-mods/mylandscaping.git
|
git clone --depth 1 --branch master https://github.com/minetest-mods/mylandscaping.git
|
||||||
|
|
|
@ -227,7 +227,6 @@ load_mod_constructionarea = true
|
||||||
load_mod_delineator = true
|
load_mod_delineator = true
|
||||||
load_mod_roadsigns = true
|
load_mod_roadsigns = true
|
||||||
load_mod_steelsupport = true
|
load_mod_steelsupport = true
|
||||||
load_mod_hiking = true
|
|
||||||
load_mod_streetlamps = true
|
load_mod_streetlamps = true
|
||||||
load_mod_streetsconcrete = true
|
load_mod_streetsconcrete = true
|
||||||
load_mod_mymazes = true
|
load_mod_mymazes = true
|
||||||
|
|
|
@ -1,122 +0,0 @@
|
||||||
Creative Commons Legal Code
|
|
||||||
|
|
||||||
CC0 1.0 Universal
|
|
||||||
|
|
||||||
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
|
||||||
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
|
||||||
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
|
||||||
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
|
||||||
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
|
||||||
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
|
||||||
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
|
||||||
HEREUNDER.
|
|
||||||
|
|
||||||
Statement of Purpose
|
|
||||||
|
|
||||||
The laws of most jurisdictions throughout the world automatically confer
|
|
||||||
exclusive Copyright and Related Rights (defined below) upon the creator
|
|
||||||
and subsequent owner(s) (each and all, an "owner") of an original work of
|
|
||||||
authorship and/or a database (each, a "Work").
|
|
||||||
|
|
||||||
Certain owners wish to permanently relinquish those rights to a Work for
|
|
||||||
the purpose of contributing to a commons of creative, cultural and
|
|
||||||
scientific works ("Commons") that the public can reliably and without fear
|
|
||||||
of later claims of infringement build upon, modify, incorporate in other
|
|
||||||
works, reuse and redistribute as freely as possible in any form whatsoever
|
|
||||||
and for any purposes, including without limitation commercial purposes.
|
|
||||||
These owners may contribute to the Commons to promote the ideal of a free
|
|
||||||
culture and the further production of creative, cultural and scientific
|
|
||||||
works, or to gain reputation or greater distribution for their Work in
|
|
||||||
part through the use and efforts of others.
|
|
||||||
|
|
||||||
For these and/or other purposes and motivations, and without any
|
|
||||||
expectation of additional consideration or compensation, the person
|
|
||||||
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
|
||||||
is an owner of Copyright and Related Rights in the Work, voluntarily
|
|
||||||
elects to apply CC0 to the Work and publicly distribute the Work under its
|
|
||||||
terms, with knowledge of his or her Copyright and Related Rights in the
|
|
||||||
Work and the meaning and intended legal effect of CC0 on those rights.
|
|
||||||
|
|
||||||
1. Copyright and Related Rights. A Work made available under CC0 may be
|
|
||||||
protected by copyright and related or neighboring rights ("Copyright and
|
|
||||||
Related Rights"). Copyright and Related Rights include, but are not
|
|
||||||
limited to, the following:
|
|
||||||
|
|
||||||
i. the right to reproduce, adapt, distribute, perform, display,
|
|
||||||
communicate, and translate a Work;
|
|
||||||
ii. moral rights retained by the original author(s) and/or performer(s);
|
|
||||||
iii. publicity and privacy rights pertaining to a person's image or
|
|
||||||
likeness depicted in a Work;
|
|
||||||
iv. rights protecting against unfair competition in regards to a Work,
|
|
||||||
subject to the limitations in paragraph 4(a), below;
|
|
||||||
v. rights protecting the extraction, dissemination, use and reuse of data
|
|
||||||
in a Work;
|
|
||||||
vi. database rights (such as those arising under Directive 96/9/EC of the
|
|
||||||
European Parliament and of the Council of 11 March 1996 on the legal
|
|
||||||
protection of databases, and under any national implementation
|
|
||||||
thereof, including any amended or successor version of such
|
|
||||||
directive); and
|
|
||||||
vii. other similar, equivalent or corresponding rights throughout the
|
|
||||||
world based on applicable law or treaty, and any national
|
|
||||||
implementations thereof.
|
|
||||||
|
|
||||||
2. Waiver. To the greatest extent permitted by, but not in contravention
|
|
||||||
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
|
||||||
irrevocably and unconditionally waives, abandons, and surrenders all of
|
|
||||||
Affirmer's Copyright and Related Rights and associated claims and causes
|
|
||||||
of action, whether now known or unknown (including existing as well as
|
|
||||||
future claims and causes of action), in the Work (i) in all territories
|
|
||||||
worldwide, (ii) for the maximum duration provided by applicable law or
|
|
||||||
treaty (including future time extensions), (iii) in any current or future
|
|
||||||
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
|
||||||
including without limitation commercial, advertising or promotional
|
|
||||||
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
|
||||||
member of the public at large and to the detriment of Affirmer's heirs and
|
|
||||||
successors, fully intending that such Waiver shall not be subject to
|
|
||||||
revocation, rescission, cancellation, termination, or any other legal or
|
|
||||||
equitable action to disrupt the quiet enjoyment of the Work by the public
|
|
||||||
as contemplated by Affirmer's express Statement of Purpose.
|
|
||||||
|
|
||||||
3. Public License Fallback. Should any part of the Waiver for any reason
|
|
||||||
be judged legally invalid or ineffective under applicable law, then the
|
|
||||||
Waiver shall be preserved to the maximum extent permitted taking into
|
|
||||||
account Affirmer's express Statement of Purpose. In addition, to the
|
|
||||||
extent the Waiver is so judged Affirmer hereby grants to each affected
|
|
||||||
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
|
||||||
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
|
||||||
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
|
||||||
maximum duration provided by applicable law or treaty (including future
|
|
||||||
time extensions), (iii) in any current or future medium and for any number
|
|
||||||
of copies, and (iv) for any purpose whatsoever, including without
|
|
||||||
limitation commercial, advertising or promotional purposes (the
|
|
||||||
"License"). The License shall be deemed effective as of the date CC0 was
|
|
||||||
applied by Affirmer to the Work. Should any part of the License for any
|
|
||||||
reason be judged legally invalid or ineffective under applicable law, such
|
|
||||||
partial invalidity or ineffectiveness shall not invalidate the remainder
|
|
||||||
of the License, and in such case Affirmer hereby affirms that he or she
|
|
||||||
will not (i) exercise any of his or her remaining Copyright and Related
|
|
||||||
Rights in the Work or (ii) assert any associated claims and causes of
|
|
||||||
action with respect to the Work, in either case contrary to Affirmer's
|
|
||||||
express Statement of Purpose.
|
|
||||||
|
|
||||||
4. Limitations and Disclaimers.
|
|
||||||
|
|
||||||
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
|
||||||
surrendered, licensed or otherwise affected by this document.
|
|
||||||
b. Affirmer offers the Work as-is and makes no representations or
|
|
||||||
warranties of any kind concerning the Work, express, implied,
|
|
||||||
statutory or otherwise, including without limitation warranties of
|
|
||||||
title, merchantability, fitness for a particular purpose, non
|
|
||||||
infringement, or the absence of latent or other defects, accuracy, or
|
|
||||||
the present or absence of errors, whether or not discoverable, all to
|
|
||||||
the greatest extent permissible under applicable law.
|
|
||||||
c. Affirmer disclaims responsibility for clearing rights of other persons
|
|
||||||
that may apply to the Work or any use thereof, including without
|
|
||||||
limitation any person's Copyright and Related Rights in the Work.
|
|
||||||
Further, Affirmer disclaims responsibility for obtaining any necessary
|
|
||||||
consents, permissions or other rights required for any use of the
|
|
||||||
Work.
|
|
||||||
d. Affirmer understands and acknowledges that Creative Commons is not a
|
|
||||||
party to this document and has no duty or obligation with respect to
|
|
||||||
this CC0 or use of the Work.
|
|
||||||
|
|
|
@ -1,236 +0,0 @@
|
||||||
Hiking signs are common where I come from Missing them in minetest.
|
|
||||||
Not any more! :-)
|
|
||||||
|
|
||||||
Signs are applied to rocks, tree trunks, walls. And where there are no objects
|
|
||||||
to apply them to, often poles are used to mark the path. (Very useful in
|
|
||||||
winter.) There are four common colours used: red, blue, yellow and green. Red
|
|
||||||
and blue are mostly used for longer tracks, while yellow and green for local
|
|
||||||
ones or to connect blues and reds.
|
|
||||||
|
|
||||||
|
|
||||||
Signs:
|
|
||||||
|
|
||||||
To craft a sign apply this simple recipe:
|
|
||||||
|
|
||||||
white dye
|
|
||||||
colour dye
|
|
||||||
white dye
|
|
||||||
|
|
||||||
To craft 6 arrows add more of the same colour dye as in:
|
|
||||||
|
|
||||||
sign sign
|
|
||||||
sign sign more dye
|
|
||||||
sign sign
|
|
||||||
|
|
||||||
and:
|
|
||||||
|
|
||||||
sign sign
|
|
||||||
more dye sign sign
|
|
||||||
sign sign
|
|
||||||
|
|
||||||
To craft 2 end signs:
|
|
||||||
|
|
||||||
sign sign
|
|
||||||
|
|
||||||
Three directional signs of the same colour can be recycled back to basic
|
|
||||||
signs when crafting together with a white dye.
|
|
||||||
|
|
||||||
|
|
||||||
Poles:
|
|
||||||
|
|
||||||
To craft a sign that can be put on a pole, craft:
|
|
||||||
|
|
||||||
sign
|
|
||||||
sign
|
|
||||||
|
|
||||||
for a thick pole (cobblestone wall) or for a thin pole (wooden fence) craft:
|
|
||||||
|
|
||||||
sign
|
|
||||||
sign
|
|
||||||
sign
|
|
||||||
|
|
||||||
Then put the result onto the pole and it attaches.
|
|
||||||
This works only for non-directional signs.
|
|
||||||
|
|
||||||
|
|
||||||
Sign variants:
|
|
||||||
|
|
||||||
Educational path
|
|
||||||
|
|
||||||
sign
|
|
||||||
sign
|
|
||||||
|
|
||||||
Local route
|
|
||||||
|
|
||||||
sign sign
|
|
||||||
sign
|
|
||||||
|
|
||||||
Branch towards a castle
|
|
||||||
|
|
||||||
sign
|
|
||||||
sign sign
|
|
||||||
|
|
||||||
Branch towards a touristic curiosity
|
|
||||||
|
|
||||||
sign
|
|
||||||
sign sign sign
|
|
||||||
|
|
||||||
Branch towards a peak
|
|
||||||
|
|
||||||
sign
|
|
||||||
sign
|
|
||||||
sign sign sign
|
|
||||||
|
|
||||||
Branch towards a spring
|
|
||||||
|
|
||||||
sign sign sign
|
|
||||||
sign
|
|
||||||
|
|
||||||
Each variant can be recycled to basic signs.
|
|
||||||
|
|
||||||
|
|
||||||
Describe:
|
|
||||||
|
|
||||||
Oh, and by the way, right clicking the sign one can add a path id. Yes, hiking
|
|
||||||
trails have an id here.
|
|
||||||
|
|
||||||
Privileges:
|
|
||||||
|
|
||||||
If you use this mod on a server, only players with the "hiking" privilege will
|
|
||||||
be able to place or destroy the signs. This is useful so you don't need to
|
|
||||||
create tiny areas around them.
|
|
||||||
|
|
||||||
In singleplayer, you will get this privilege automatically.
|
|
||||||
|
|
||||||
-- Martian
|
|
||||||
|
|
||||||
|
|
||||||
License:
|
|
||||||
Sourcecode: CC0 (see below)
|
|
||||||
Graphics: CC0 (see below)
|
|
||||||
|
|
||||||
See also:
|
|
||||||
http://minetest.net/
|
|
||||||
|
|
||||||
Creative Commons Legal Code
|
|
||||||
|
|
||||||
CC0 1.0 Universal
|
|
||||||
|
|
||||||
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
|
||||||
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
|
||||||
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
|
||||||
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
|
||||||
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
|
||||||
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
|
||||||
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
|
||||||
HEREUNDER.
|
|
||||||
|
|
||||||
Statement of Purpose
|
|
||||||
|
|
||||||
The laws of most jurisdictions throughout the world automatically confer
|
|
||||||
exclusive Copyright and Related Rights (defined below) upon the creator
|
|
||||||
and subsequent owner(s) (each and all, an "owner") of an original work of
|
|
||||||
authorship and/or a database (each, a "Work").
|
|
||||||
|
|
||||||
Certain owners wish to permanently relinquish those rights to a Work for
|
|
||||||
the purpose of contributing to a commons of creative, cultural and
|
|
||||||
scientific works ("Commons") that the public can reliably and without fear
|
|
||||||
of later claims of infringement build upon, modify, incorporate in other
|
|
||||||
works, reuse and redistribute as freely as possible in any form whatsoever
|
|
||||||
and for any purposes, including without limitation commercial purposes.
|
|
||||||
These owners may contribute to the Commons to promote the ideal of a free
|
|
||||||
culture and the further production of creative, cultural and scientific
|
|
||||||
works, or to gain reputation or greater distribution for their Work in
|
|
||||||
part through the use and efforts of others.
|
|
||||||
|
|
||||||
For these and/or other purposes and motivations, and without any
|
|
||||||
expectation of additional consideration or compensation, the person
|
|
||||||
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
|
||||||
is an owner of Copyright and Related Rights in the Work, voluntarily
|
|
||||||
elects to apply CC0 to the Work and publicly distribute the Work under its
|
|
||||||
terms, with knowledge of his or her Copyright and Related Rights in the
|
|
||||||
Work and the meaning and intended legal effect of CC0 on those rights.
|
|
||||||
|
|
||||||
1. Copyright and Related Rights. A Work made available under CC0 may be
|
|
||||||
protected by copyright and related or neighboring rights ("Copyright and
|
|
||||||
Related Rights"). Copyright and Related Rights include, but are not
|
|
||||||
limited to, the following:
|
|
||||||
|
|
||||||
i. the right to reproduce, adapt, distribute, perform, display,
|
|
||||||
communicate, and translate a Work;
|
|
||||||
ii. moral rights retained by the original author(s) and/or performer(s);
|
|
||||||
iii. publicity and privacy rights pertaining to a person's image or
|
|
||||||
likeness depicted in a Work;
|
|
||||||
iv. rights protecting against unfair competition in regards to a Work,
|
|
||||||
subject to the limitations in paragraph 4(a), below;
|
|
||||||
v. rights protecting the extraction, dissemination, use and reuse of data
|
|
||||||
in a Work;
|
|
||||||
vi. database rights (such as those arising under Directive 96/9/EC of the
|
|
||||||
European Parliament and of the Council of 11 March 1996 on the legal
|
|
||||||
protection of databases, and under any national implementation
|
|
||||||
thereof, including any amended or successor version of such
|
|
||||||
directive); and
|
|
||||||
vii. other similar, equivalent or corresponding rights throughout the
|
|
||||||
world based on applicable law or treaty, and any national
|
|
||||||
implementations thereof.
|
|
||||||
|
|
||||||
2. Waiver. To the greatest extent permitted by, but not in contravention
|
|
||||||
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
|
||||||
irrevocably and unconditionally waives, abandons, and surrenders all of
|
|
||||||
Affirmer's Copyright and Related Rights and associated claims and causes
|
|
||||||
of action, whether now known or unknown (including existing as well as
|
|
||||||
future claims and causes of action), in the Work (i) in all territories
|
|
||||||
worldwide, (ii) for the maximum duration provided by applicable law or
|
|
||||||
treaty (including future time extensions), (iii) in any current or future
|
|
||||||
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
|
||||||
including without limitation commercial, advertising or promotional
|
|
||||||
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
|
||||||
member of the public at large and to the detriment of Affirmer's heirs and
|
|
||||||
successors, fully intending that such Waiver shall not be subject to
|
|
||||||
revocation, rescission, cancellation, termination, or any other legal or
|
|
||||||
equitable action to disrupt the quiet enjoyment of the Work by the public
|
|
||||||
as contemplated by Affirmer's express Statement of Purpose.
|
|
||||||
|
|
||||||
3. Public License Fallback. Should any part of the Waiver for any reason
|
|
||||||
be judged legally invalid or ineffective under applicable law, then the
|
|
||||||
Waiver shall be preserved to the maximum extent permitted taking into
|
|
||||||
account Affirmer's express Statement of Purpose. In addition, to the
|
|
||||||
extent the Waiver is so judged Affirmer hereby grants to each affected
|
|
||||||
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
|
||||||
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
|
||||||
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
|
||||||
maximum duration provided by applicable law or treaty (including future
|
|
||||||
time extensions), (iii) in any current or future medium and for any number
|
|
||||||
of copies, and (iv) for any purpose whatsoever, including without
|
|
||||||
limitation commercial, advertising or promotional purposes (the
|
|
||||||
"License"). The License shall be deemed effective as of the date CC0 was
|
|
||||||
applied by Affirmer to the Work. Should any part of the License for any
|
|
||||||
reason be judged legally invalid or ineffective under applicable law, such
|
|
||||||
partial invalidity or ineffectiveness shall not invalidate the remainder
|
|
||||||
of the License, and in such case Affirmer hereby affirms that he or she
|
|
||||||
will not (i) exercise any of his or her remaining Copyright and Related
|
|
||||||
Rights in the Work or (ii) assert any associated claims and causes of
|
|
||||||
action with respect to the Work, in either case contrary to Affirmer's
|
|
||||||
express Statement of Purpose.
|
|
||||||
|
|
||||||
4. Limitations and Disclaimers.
|
|
||||||
|
|
||||||
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
|
||||||
surrendered, licensed or otherwise affected by this document.
|
|
||||||
b. Affirmer offers the Work as-is and makes no representations or
|
|
||||||
warranties of any kind concerning the Work, express, implied,
|
|
||||||
statutory or otherwise, including without limitation warranties of
|
|
||||||
title, merchantability, fitness for a particular purpose, non
|
|
||||||
infringement, or the absence of latent or other defects, accuracy, or
|
|
||||||
the present or absence of errors, whether or not discoverable, all to
|
|
||||||
the greatest extent permissible under applicable law.
|
|
||||||
c. Affirmer disclaims responsibility for clearing rights of other persons
|
|
||||||
that may apply to the Work or any use thereof, including without
|
|
||||||
limitation any person's Copyright and Related Rights in the Work.
|
|
||||||
Further, Affirmer disclaims responsibility for obtaining any necessary
|
|
||||||
consents, permissions or other rights required for any use of the
|
|
||||||
Work.
|
|
||||||
d. Affirmer understands and acknowledges that Creative Commons is not a
|
|
||||||
party to this document and has no duty or obligation with respect to
|
|
||||||
this CC0 or use of the Work.
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
default
|
|
||||||
dye
|
|
|
@ -1,337 +0,0 @@
|
||||||
--Hume2's Hiking mod
|
|
||||||
|
|
||||||
hiking = {}
|
|
||||||
|
|
||||||
hiking.base_material = "dye:white"
|
|
||||||
|
|
||||||
--You can add another colours here.
|
|
||||||
hiking.colours = {
|
|
||||||
{name = "red", colour = "FF0000", material = "dye:red"},
|
|
||||||
{name = "blue", colour = "0000FF", material = "dye:blue"},
|
|
||||||
{name = "green", colour = "00C000", material = "dye:green"},
|
|
||||||
{name = "yellow", colour = "FFFF00", material = "dye:yellow"},
|
|
||||||
--Uncomment this line to add Polish black signs
|
|
||||||
--{name = "black", colour = "000000", material = "dye:black"}
|
|
||||||
}
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
minetest.register_privilege("hiking", {
|
|
||||||
description = "Allows player to place and remove hiking signs and nodes right next to hiking signs.",
|
|
||||||
give_to_singleplayer = true,
|
|
||||||
});
|
|
||||||
|
|
||||||
hiking.sign_box = {
|
|
||||||
type = "wallmounted",
|
|
||||||
wall_top = {-0.4375, 0.4375, -0.3125, 0.4375, 0.5, 0.3125},
|
|
||||||
wall_bottom = {-0.4375, -0.5, -0.3125, 0.4375, -0.4375, 0.3125},
|
|
||||||
wall_side = {-0.5, -0.3125, -0.4375, -0.4375, 0.3125, 0.4375},
|
|
||||||
}
|
|
||||||
|
|
||||||
hiking.basic_properties = {
|
|
||||||
drawtype = "nodebox",
|
|
||||||
paramtype = "light",
|
|
||||||
paramtype2 = "wallmounted",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
is_ground_content = false,
|
|
||||||
walkable = false,
|
|
||||||
node_box = hiking.sign_box,
|
|
||||||
groups = {snappy=1, oddly_breakable_by_hand=2, attached_node=1, nostomp=1, hiking=1},
|
|
||||||
legacy_wallmounted = true,
|
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
|
||||||
local name = placer:get_player_name()
|
|
||||||
if not name then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
if minetest.check_player_privs(name, {protection_bypass = true}) or minetest.check_player_privs(name, {hiking = true}) then
|
|
||||||
return minetest.item_place(itemstack, placer, pointed_thing)
|
|
||||||
else
|
|
||||||
minetest.chat_send_player(name, "Missing privilege: hiking")
|
|
||||||
return itemstack
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
on_construct = function(pos)
|
|
||||||
local meta = minetest.get_meta(pos)
|
|
||||||
meta:set_string("formspec", "field[text;;${text}]")
|
|
||||||
meta:set_string("infotext", "\"\"")
|
|
||||||
end,
|
|
||||||
on_receive_fields = function(pos, formname, fields, sender)
|
|
||||||
if minetest.is_protected(pos, sender:get_player_name()) then
|
|
||||||
minetest.record_protection_violation(pos, sender:get_player_name())
|
|
||||||
return
|
|
||||||
end
|
|
||||||
local meta = minetest.get_meta(pos)
|
|
||||||
if not fields.text then return end
|
|
||||||
minetest.log("action", (sender:get_player_name() or "").." wrote \""..fields.text..
|
|
||||||
"\" to sign at "..minetest.pos_to_string(pos))
|
|
||||||
meta:set_string("text", fields.text)
|
|
||||||
meta:set_string("infotext", '"'..fields.text..'"')
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
|
|
||||||
local function merge(a, b)
|
|
||||||
local c = {}
|
|
||||||
for k, v in pairs(a) do
|
|
||||||
c[k] = v
|
|
||||||
end
|
|
||||||
for k, v in pairs(b) do
|
|
||||||
c[k] = v
|
|
||||||
end
|
|
||||||
return c
|
|
||||||
end
|
|
||||||
|
|
||||||
local function firstToUpper(str)
|
|
||||||
return (str:gsub("^%l", string.upper))
|
|
||||||
end
|
|
||||||
|
|
||||||
function hiking.get_texture(colour, style)
|
|
||||||
return "((hiking_white.png^hiking_noise.png)^[mask:hiking_" .. style.id .. "_white.png)^(((hiking_white.png^[colorize:#" .. colour.colour .. ")^hiking_noise.png)^[mask:hiking_" .. style.id .. "_colour.png)"
|
|
||||||
end
|
|
||||||
|
|
||||||
function hiking.register_sign(colour, style, direction)
|
|
||||||
local inv = hiking.get_texture(colour, style)
|
|
||||||
local inv2 = "hiking_sign_pole.png^" .. inv
|
|
||||||
local desc = firstToUpper(colour.name) .. " " .. style.title
|
|
||||||
local my_groups = {snappy=1, oddly_breakable_by_hand=2, attached_node=1, nostomp=1, hiking=1}
|
|
||||||
if (direction ~= nil) then
|
|
||||||
desc = desc .. " " .. direction
|
|
||||||
my_groups["hiking_turn_" .. colour.name] = 1
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_node("hiking:" .. style.id .. colour.name, merge(hiking.basic_properties, {
|
|
||||||
description = desc,
|
|
||||||
tiles = {inv},
|
|
||||||
inventory_image = inv,
|
|
||||||
wield_image = inv,
|
|
||||||
groups = my_groups
|
|
||||||
}))
|
|
||||||
end
|
|
||||||
|
|
||||||
function hiking.register_pole(colour, style)
|
|
||||||
local inv = hiking.get_texture(colour, style)
|
|
||||||
local desc = firstToUpper(colour.name) .. " " .. style.title
|
|
||||||
local base_id = "hiking:" .. style.id .. colour.name
|
|
||||||
local inv1 = "hiking_sign_pole.png^" .. inv
|
|
||||||
local inv2 = "hiking_sign_pole_thin.png^" .. inv
|
|
||||||
|
|
||||||
minetest.register_node("hiking:pole_" .. style.id .. colour.name, merge(hiking.basic_properties, {
|
|
||||||
description = desc .. " on Pillar",
|
|
||||||
tiles = {inv},
|
|
||||||
inventory_image = inv1,
|
|
||||||
wield_image = inv1,
|
|
||||||
drawtype = "mesh",
|
|
||||||
mesh = "hiking_pole.obj",
|
|
||||||
selection_box = hiking.sign_box
|
|
||||||
}))
|
|
||||||
|
|
||||||
minetest.register_node("hiking:pole2_" .. style.id .. colour.name, merge(hiking.basic_properties, {
|
|
||||||
description = desc .. " on Pole",
|
|
||||||
tiles = {inv},
|
|
||||||
inventory_image = inv2,
|
|
||||||
wield_image = inv2,
|
|
||||||
drawtype = "mesh",
|
|
||||||
mesh = "hiking_pole_thin.obj",
|
|
||||||
selection_box = hiking.sign_box
|
|
||||||
}))
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "hiking:pole_" .. style.id .. colour.name .. " 2",
|
|
||||||
recipe = {{ base_id },
|
|
||||||
{ base_id }}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = base_id,
|
|
||||||
type = "shapeless",
|
|
||||||
recipe = { "hiking:pole_" .. style.id .. colour.name}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "hiking:pole2_" .. style.id .. colour.name .. " 3",
|
|
||||||
recipe = {{ base_id },
|
|
||||||
{ base_id },
|
|
||||||
{ base_id }}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "hiking:" .. style.id .. colour.name,
|
|
||||||
type = "shapeless",
|
|
||||||
recipe = { "hiking:pole2_" .. style.id .. colour.name}
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
function hiking.register_sign_lr(colour, style)
|
|
||||||
hiking.register_sign(colour, style, nil)
|
|
||||||
hiking.register_sign(colour, {id = style.id .. "_left", title = style.title}, "Left")
|
|
||||||
hiking.register_sign(colour, {id = style.id .. "_right", title = style.title}, "Right")
|
|
||||||
hiking.register_pole(colour, style)
|
|
||||||
|
|
||||||
local base_sign = "hiking:" .. style.id .. colour.name
|
|
||||||
local left_sign = "hiking:" .. style.id .. "_left" .. colour.name
|
|
||||||
local right_sign = "hiking:" .. style.id .. "_right" .. colour.name
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = right_sign .. " 6",
|
|
||||||
recipe = {{ base_sign, base_sign, "" },
|
|
||||||
{ base_sign, base_sign, colour.material },
|
|
||||||
{ base_sign, base_sign, "" }}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = left_sign .. " 6",
|
|
||||||
recipe = {{ "", base_sign, base_sign },
|
|
||||||
{ colour.material, base_sign, base_sign },
|
|
||||||
{ "", base_sign, base_sign }}
|
|
||||||
})
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
-------------------------------------
|
|
||||||
|
|
||||||
for _, colour in pairs(hiking.colours) do
|
|
||||||
hiking.register_sign_lr(colour, {id = "sign", title = "Hiking Sign"})
|
|
||||||
hiking.register_sign(colour, {id = "end", title = "End Sign"}, nil)
|
|
||||||
hiking.register_sign_lr(colour, {id = "local", title = "Local Hiking Sign"})
|
|
||||||
hiking.register_sign_lr(colour, {id = "educational", title = "Educational Path"})
|
|
||||||
hiking.register_sign_lr(colour, {id = "castle", title = "Castle Branch"})
|
|
||||||
hiking.register_sign_lr(colour, {id = "curiosity", title = "Curiosity Branch"})
|
|
||||||
hiking.register_sign_lr(colour, {id = "peak", title = "Peak Branch"})
|
|
||||||
hiking.register_sign_lr(colour, {id = "spring", title = "Spring Branch"})
|
|
||||||
|
|
||||||
local base_id = "hiking:sign" .. colour.name
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = base_id .. " 18",
|
|
||||||
recipe = {{ hiking.base_material },
|
|
||||||
{ colour.material },
|
|
||||||
{ hiking.base_material }}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "hiking:end" .. colour.name .. " 2",
|
|
||||||
recipe = {{ base_id, base_id }}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "hiking:local" .. colour.name .. " 3",
|
|
||||||
recipe = {{ base_id, base_id },
|
|
||||||
{ "", base_id }}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "hiking:educational" .. colour.name .. " 2",
|
|
||||||
recipe = {{ base_id, "" },
|
|
||||||
{ "", base_id }}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "hiking:castle" .. colour.name .. " 3",
|
|
||||||
recipe = {{ base_id, "" },
|
|
||||||
{ base_id, base_id }}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "hiking:curiosity" .. colour.name .. " 4",
|
|
||||||
recipe = {{ "", base_id, "" },
|
|
||||||
{ base_id, base_id, base_id }}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "hiking:peak" .. colour.name .. " 5",
|
|
||||||
recipe = {{ "", base_id, "" },
|
|
||||||
{ "", base_id, ""},
|
|
||||||
{ base_id, base_id, base_id }}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "hiking:spring" .. colour.name .. " 4",
|
|
||||||
recipe = {{ base_id, base_id, base_id },
|
|
||||||
{ "", base_id, "" }}
|
|
||||||
})
|
|
||||||
|
|
||||||
--recycling
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = base_id,
|
|
||||||
type = "shapeless",
|
|
||||||
recipe = {"hiking:end" .. colour.name}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = base_id,
|
|
||||||
type = "shapeless",
|
|
||||||
recipe = {"hiking:local" .. colour.name}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = base_id,
|
|
||||||
type = "shapeless",
|
|
||||||
recipe = {"hiking:educational" .. colour.name}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = base_id,
|
|
||||||
type = "shapeless",
|
|
||||||
recipe = {"hiking:castle" .. colour.name}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = base_id,
|
|
||||||
type = "shapeless",
|
|
||||||
recipe = {"hiking:curiosity" .. colour.name}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = base_id,
|
|
||||||
type = "shapeless",
|
|
||||||
recipe = {"hiking:peak" .. colour.name}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = base_id,
|
|
||||||
type = "shapeless",
|
|
||||||
recipe = {"hiking:spring" .. colour.name}
|
|
||||||
})
|
|
||||||
|
|
||||||
local gr = "group:hiking_turn_" .. colour.name
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = base_id .. " 12",
|
|
||||||
type = "shapeless",
|
|
||||||
recipe = {gr, gr, gr, hiking.base_material}
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
local hiking_directions = {
|
|
||||||
[0] = {x=0, y=-1, z=0},
|
|
||||||
[1] = {x=0, y=1, z=0},
|
|
||||||
[2] = {x=-1, y=0, z=0},
|
|
||||||
[3] = {x=1, y=0, z=0},
|
|
||||||
[4] = {x=0, y=0, z=-1},
|
|
||||||
[5] = {x=0, y=0, z=1},
|
|
||||||
}
|
|
||||||
local old_is_protected = minetest.is_protected
|
|
||||||
|
|
||||||
minetest.is_protected = function(pos, pname)
|
|
||||||
if old_is_protected(pos, pname) then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.check_player_privs(pname, {protection_bypass = true}) or minetest.check_player_privs(pname, {hiking = true}) then
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
local node = minetest.get_node(pos)
|
|
||||||
if minetest.get_item_group(node.name, "hiking") > 0 then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
|
|
||||||
for p2, dir in pairs(hiking_directions) do
|
|
||||||
node = minetest.get_node(vector.add(pos, dir))
|
|
||||||
if minetest.get_item_group(node.name, "hiking") > 0 and node.param2 == p2 then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
return false
|
|
||||||
end
|
|
|
@ -1,29 +0,0 @@
|
||||||
o hiking_pole.obj
|
|
||||||
v -0.5 -1.251 -0.5
|
|
||||||
v 0.5 -1.251 -0.5
|
|
||||||
v 0.5 -1.251 0.5
|
|
||||||
v -0.5 -1.251 0.5
|
|
||||||
v 0.251 -1.5 -0.5
|
|
||||||
v 0.251 -0.5 -0.5
|
|
||||||
v 0.251 -0.5 0.5
|
|
||||||
v 0.251 -1.5 0.5
|
|
||||||
v 0.5 -0.749 -0.5
|
|
||||||
v -0.5 -0.749 -0.5
|
|
||||||
v -0.5 -0.749 0.5
|
|
||||||
v 0.5 -0.749 0.5
|
|
||||||
v -0.251 -0.5 -0.5
|
|
||||||
v -0.251 -1.5 -0.5
|
|
||||||
v -0.251 -1.5 0.5
|
|
||||||
v -0.251 -0.5 0.5
|
|
||||||
vt 0 0
|
|
||||||
vt 1 0
|
|
||||||
vt 1 1
|
|
||||||
vt 0 1
|
|
||||||
vn -1 0 0
|
|
||||||
vn 0 1 0
|
|
||||||
vn 1 0 0
|
|
||||||
vn 0 -1 0
|
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
|
||||||
f 5/1/2 6/2/2 7/3/2 8/4/2
|
|
||||||
f 9/1/3 10/2/3 11/3/3 12/4/3
|
|
||||||
f 13/1/4 14/2/4 15/3/4 16/4/4
|
|
|
@ -1,29 +0,0 @@
|
||||||
o hiking_pole.obj
|
|
||||||
v -0.25 -1.1255 -0.5
|
|
||||||
v 0.25 -1.1255 -0.5
|
|
||||||
v 0.25 -1.1255 0.5
|
|
||||||
v -0.25 -1.1255 0.5
|
|
||||||
v 0.1255 -1.25 -0.5
|
|
||||||
v 0.1255 -0.75 -0.5
|
|
||||||
v 0.1255 -0.75 0.5
|
|
||||||
v 0.1255 -1.25 0.5
|
|
||||||
v 0.25 -0.8745 -0.5
|
|
||||||
v -0.25 -0.8745 -0.5
|
|
||||||
v -0.25 -0.8745 0.5
|
|
||||||
v 0.25 -0.8745 0.5
|
|
||||||
v -0.1255 -0.75 -0.5
|
|
||||||
v -0.1255 -1.25 -0.5
|
|
||||||
v -0.1255 -1.25 0.5
|
|
||||||
v -0.1255 -0.75 0.5
|
|
||||||
vt 0 0
|
|
||||||
vt 1 0
|
|
||||||
vt 1 1
|
|
||||||
vt 0 1
|
|
||||||
vn -1 0 0
|
|
||||||
vn 0 1 0
|
|
||||||
vn 1 0 0
|
|
||||||
vn 0 -1 0
|
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
|
||||||
f 5/1/2 6/2/2 7/3/2 8/4/2
|
|
||||||
f 9/1/3 10/2/3 11/3/3 12/4/3
|
|
||||||
f 13/1/4 14/2/4 15/3/4 16/4/4
|
|
Before Width: | Height: | Size: 144 B |
Before Width: | Height: | Size: 160 B |
Before Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 159 B |
Before Width: | Height: | Size: 172 B |
Before Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 145 B |
Before Width: | Height: | Size: 161 B |
Before Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 160 B |
Before Width: | Height: | Size: 161 B |
Before Width: | Height: | Size: 141 B |
Before Width: | Height: | Size: 158 B |
Before Width: | Height: | Size: 165 B |
Before Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 160 B |
Before Width: | Height: | Size: 124 B |
Before Width: | Height: | Size: 149 B |
Before Width: | Height: | Size: 156 B |
Before Width: | Height: | Size: 165 B |
Before Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 142 B |
Before Width: | Height: | Size: 532 B |
Before Width: | Height: | Size: 141 B |
Before Width: | Height: | Size: 161 B |
Before Width: | Height: | Size: 171 B |
Before Width: | Height: | Size: 159 B |
Before Width: | Height: | Size: 174 B |
Before Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 158 B |
Before Width: | Height: | Size: 158 B |
Before Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 160 B |
Before Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 162 B |
Before Width: | Height: | Size: 130 B |
Before Width: | Height: | Size: 141 B |
Before Width: | Height: | Size: 159 B |
Before Width: | Height: | Size: 173 B |
Before Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 123 B |