first commit
|
@ -0,0 +1,121 @@
|
||||||
|
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.
|
|
@ -0,0 +1,13 @@
|
||||||
|
# AluminumZ
|
||||||
|
A new ore and related stuff for Minetest.
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
- default
|
||||||
|
|
||||||
|
optional_depends = doors
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
- Code: GPL v3.0
|
||||||
|
- Textures: CC BY-SA 4.0
|
|
@ -0,0 +1,241 @@
|
||||||
|
-- internationalization boilerplate
|
||||||
|
local S = minetest.get_translator(minetest.get_current_modname())
|
||||||
|
|
||||||
|
----Aluminum Basics
|
||||||
|
|
||||||
|
minetest.register_node("aloz:stone_with_bauxite", {
|
||||||
|
description = S("Bauxite Ore"),
|
||||||
|
tiles = {"default_stone.png^aloz_mineral_bauxite.png"},
|
||||||
|
groups = {cracky = 2, aluminum = 1},
|
||||||
|
drop = "aloz:bauxite_lump 10",
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
function default.register_ores()
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "aloz:stone_with_bauxite",
|
||||||
|
wherein = "default:stone",
|
||||||
|
clust_scarcity = 25 * 25 * 25,
|
||||||
|
clust_num_ores = 3,
|
||||||
|
clust_size = 3,
|
||||||
|
y_max = -48,
|
||||||
|
y_min = -512,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
minetest.register_craftitem("aloz:bauxite_lump", {
|
||||||
|
description = S("Bauxite Lump"),
|
||||||
|
inventory_image = "aloz_bauxite_lump.png"
|
||||||
|
})
|
||||||
|
|
||||||
|
--Aluminum Ingot
|
||||||
|
|
||||||
|
minetest.register_craftitem("aloz:aluminum_ingot", {
|
||||||
|
description = S("Aluminum Ingot"),
|
||||||
|
inventory_image = "aloz_aluminum_ingot.png"
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
output = "aloz:aluminum_ingot",
|
||||||
|
recipe = "aloz:bauxite_lump",
|
||||||
|
cooktime = 10,
|
||||||
|
})
|
||||||
|
|
||||||
|
--Aluminum Block
|
||||||
|
|
||||||
|
minetest.register_node("aloz:aluminum_block", {
|
||||||
|
description = S("Aluminum Block"),
|
||||||
|
tiles = {"aloz_aluminum_block.png"},
|
||||||
|
is_ground_content = false,
|
||||||
|
groups = {cracky = 1, level = 2, aluminum = 1},
|
||||||
|
sounds = default.node_sound_metal_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "default:aluminum_ingot 9",
|
||||||
|
recipe = {
|
||||||
|
{"aloz:aluminum_block"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
--Beam
|
||||||
|
minetest.register_node("aloz:aluminum_beam", {
|
||||||
|
description = S("Aluminum Beam"),
|
||||||
|
tiles = {"aloz_beam_top.png", "aloz_beam_top.png", "aloz_beam_side.png"},
|
||||||
|
groups = {cracky = 3, level= 3, aluminum = 1},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type= "shaped",
|
||||||
|
output = "default:aluminum_beam",
|
||||||
|
recipe = {
|
||||||
|
{"", "aloz:aluminum_block", ""},
|
||||||
|
{"", "aloz:aluminum_block", ""},
|
||||||
|
{"", "aloz:aluminum_block", ""}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
--Doors
|
||||||
|
|
||||||
|
if minetest.get_modpath("doors") ~= nil then
|
||||||
|
doors.register("door_aluminum", {
|
||||||
|
tiles = {{ name = "aloz_door_aluminum.png", backface_culling = true }},
|
||||||
|
description = S("Aluminum Door"),
|
||||||
|
inventory_image = "aloz_door_aluminum_inv.png",
|
||||||
|
groups = {node = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||||
|
recipe = {
|
||||||
|
{"aloz:aluminum_ingot", "xpanes:pane_flat"},
|
||||||
|
{"aloz:aluminum_ingot", "aloz:aluminum_ingot"},
|
||||||
|
{"aloz:aluminum_ingot", "aloz:trapdoor"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
doors.register("door_green_aluminum", {
|
||||||
|
tiles = {{ name = "aloz_door_green_aluminum.png", backface_culling = true }},
|
||||||
|
description = S("Green Aluminum Door"),
|
||||||
|
inventory_image = "aloz_door_green_aluminum_inv.png",
|
||||||
|
groups = {node = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||||
|
recipe = {
|
||||||
|
{"aloz:door_aluminum", "dye:green"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
doors.register("door_red_aluminum", {
|
||||||
|
tiles = {{ name = "aloz_door_red_aluminum.png", backface_culling = true }},
|
||||||
|
description = S("Red Aluminum Door"),
|
||||||
|
inventory_image = "aloz_door_red_aluminum_inv.png",
|
||||||
|
groups = {node = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||||
|
recipe = {
|
||||||
|
{"aloz:door_aluminum", "dye:red"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
doors.register_trapdoor("aloz:trapdoor_aluminum", {
|
||||||
|
description = S("Aluminum Trapdoor"),
|
||||||
|
inventory_image = "aloz_trapdoor_aluminum.png",
|
||||||
|
wield_image = "aloz_trapdoor_aluminum.png",
|
||||||
|
tile_front = "aloz_trapdoor_aluminum.png",
|
||||||
|
tile_side = "aloz_trapdoor_aluminum_side.png",
|
||||||
|
protected = true,
|
||||||
|
sounds = default.node_sound_metal_defaults(),
|
||||||
|
sound_open = "doors_steel_door_open",
|
||||||
|
sound_close = "doors_steel_door_close",
|
||||||
|
gain_open = 0.2,
|
||||||
|
gain_close = 0.2,
|
||||||
|
groups = {cracky = 1, level = 2, door = 1},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "doors:trapdoor 2",
|
||||||
|
recipe = {
|
||||||
|
{"group:wood", "group:wood", "group:wood"},
|
||||||
|
{"group:wood", "group:wood", "group:wood"},
|
||||||
|
{"", "", ""},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
local function register_pane(name, def)
|
||||||
|
for i = 1, 15 do
|
||||||
|
minetest.register_alias("xpanes:" .. name .. "_" .. i, "xpanes:" .. name .. "_flat")
|
||||||
|
end
|
||||||
|
|
||||||
|
local flatgroups = table.copy(def.groups)
|
||||||
|
flatgroups.pane = 1
|
||||||
|
minetest.register_node(":xpanes:" .. name .. "_flat", {
|
||||||
|
description = def.description,
|
||||||
|
drawtype = "nodebox",
|
||||||
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
inventory_image = def.inventory_image,
|
||||||
|
wield_image = def.wield_image,
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
tiles = {
|
||||||
|
def.textures[3],
|
||||||
|
def.textures[3],
|
||||||
|
def.textures[2],
|
||||||
|
def.textures[2],
|
||||||
|
def.textures[1],
|
||||||
|
def.textures[1]
|
||||||
|
},
|
||||||
|
groups = flatgroups,
|
||||||
|
drop = "xpanes:" .. name .. "_flat",
|
||||||
|
sounds = def.sounds,
|
||||||
|
use_texture_alpha = def.use_texture_alpha and "blend" or "clip",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {{-1/2, -1/2, -1/32, 1/2, 1/2, 1/32}},
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {{-1/2, -1/2, -1/32, 1/2, 1/2, 1/32}},
|
||||||
|
},
|
||||||
|
connect_sides = { "left", "right" },
|
||||||
|
})
|
||||||
|
|
||||||
|
local groups = table.copy(def.groups)
|
||||||
|
groups.pane = 1
|
||||||
|
groups.not_in_creative_inventory = 1
|
||||||
|
minetest.register_node(":xpanes:" .. name, {
|
||||||
|
drawtype = "nodebox",
|
||||||
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
description = def.description,
|
||||||
|
tiles = {
|
||||||
|
def.textures[3],
|
||||||
|
def.textures[2],
|
||||||
|
def.textures[1]
|
||||||
|
},
|
||||||
|
groups = groups,
|
||||||
|
drop = "xpanes:" .. name .. "_flat",
|
||||||
|
sounds = def.sounds,
|
||||||
|
use_texture_alpha = def.use_texture_alpha and "blend" or "clip",
|
||||||
|
node_box = {
|
||||||
|
type = "connected",
|
||||||
|
fixed = {{-1/32, -1/2, -1/32, 1/32, 1/2, 1/32}},
|
||||||
|
connect_front = {{-1/32, -1/2, -1/2, 1/32, 1/2, -1/32}},
|
||||||
|
connect_left = {{-1/2, -1/2, -1/32, -1/32, 1/2, 1/32}},
|
||||||
|
connect_back = {{-1/32, -1/2, 1/32, 1/32, 1/2, 1/2}},
|
||||||
|
connect_right = {{1/32, -1/2, -1/32, 1/2, 1/2, 1/32}},
|
||||||
|
},
|
||||||
|
connects_to = {"group:pane", "group:stone", "group:glass", "group:wood", "group:tree"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "xpanes:" .. name .. "_flat 16",
|
||||||
|
recipe = def.recipe
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
register_pane("aluminum_railing", {
|
||||||
|
description = S("Aluminum Railing"),
|
||||||
|
textures = {"aloz_aluminum_railing.png", "aloz_aluminum_railing_rl.png", "aloz_aluminum_railing_tb.png"},
|
||||||
|
inventory_image = "aloz_aluminum_railing.png",
|
||||||
|
wield_image = "aloz_aluminum_railing.png",
|
||||||
|
groups = {cracky=2},
|
||||||
|
sounds = default.node_sound_metal_defaults(),
|
||||||
|
recipe = {
|
||||||
|
{"aloz:aluminum_ingot", "", "aloz:aluminum_ingot"},
|
||||||
|
{"", "aloz:aluminum_ingot", ""},
|
||||||
|
{"aloz:aluminum_ingot", "", "aloz:aluminum_ingot"}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
register_pane("aluminum_barbed_wire", {
|
||||||
|
description = S("Aluminum Barbed Wire"),
|
||||||
|
textures = {"aloz_barbed_wire.png", "aloz_barbed_wire_rl.png", "aloz_barbed_wire_tb.png"},
|
||||||
|
inventory_image = "aloz_barbed_wire.png",
|
||||||
|
wield_image = "aloz_barbed_wire.png",
|
||||||
|
groups = {cracky=2},
|
||||||
|
sounds = default.node_sound_metal_defaults(),
|
||||||
|
recipe = {
|
||||||
|
{"aloz:aluminum_ingot", "xpanes:aluminum_railing", ""}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
# textdomain: aloz
|
||||||
|
Bauxite Ore=Mineral de bauxita
|
||||||
|
Bauxite Lump=Pepita de bauxita
|
||||||
|
Aluminum Ingot=Lingote de aluminio
|
||||||
|
Aluminum Block=Bloque de aluminio
|
||||||
|
Aluminum Beam=Viga de aluminio
|
||||||
|
Aluminum Door=Puerta de aluminio
|
||||||
|
Green Aluminum Door=Puerta de aluminio verde
|
||||||
|
Red Aluminum Door=Puerta de aluminio roja
|
||||||
|
Aluminum Traapdoor=Trampilla de aluminio
|
||||||
|
Aluminum Railing=Verja de alumninio
|
||||||
|
Aluminum Barbed Wire=Concertina de aluminio
|
|
@ -0,0 +1,4 @@
|
||||||
|
name = aloz
|
||||||
|
description = Aluminium
|
||||||
|
depends = default
|
||||||
|
optional_depends = doors
|
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 7.6 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 6.4 KiB |
After Width: | Height: | Size: 8.2 KiB |
After Width: | Height: | Size: 6.8 KiB |