(Re-)add nodes from MTG (#536)
Adds fire, flowers, vessels, walls, and xpanes
This commit is contained in:
parent
e68fe87ea2
commit
96054843a9
88 changed files with 1247 additions and 0 deletions
7
mods/mtg/walls/README.txt
Normal file
7
mods/mtg/walls/README.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
Minetest Game mod: walls
|
||||
========================
|
||||
See license.txt for license information.
|
||||
|
||||
Authors of source code
|
||||
----------------------
|
||||
Auke Kok <sofar@foo-projects.org> (LGPLv2.1+)
|
56
mods/mtg/walls/init.lua
Normal file
56
mods/mtg/walls/init.lua
Normal file
|
@ -0,0 +1,56 @@
|
|||
-- walls/init.lua
|
||||
|
||||
walls = {}
|
||||
|
||||
local fence_collision_extra = minetest.settings:get_bool("enable_fence_tall") and 3/8 or 0
|
||||
|
||||
-- Load support for MT game translation.
|
||||
local S = minetest.get_translator("walls")
|
||||
|
||||
walls.register = function(wall_name, wall_desc, wall_texture_table, wall_mat, wall_sounds)
|
||||
--make wall_texture_table paramenter backwards compatible for mods passing single texture
|
||||
if type(wall_texture_table) ~= "table" then
|
||||
wall_texture_table = { wall_texture_table }
|
||||
end
|
||||
-- inventory node, and pole-type wall start item
|
||||
minetest.register_node(wall_name, {
|
||||
description = wall_desc,
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "connected",
|
||||
fixed = {-1/4, -1/2, -1/4, 1/4, 1/2, 1/4},
|
||||
-- connect_bottom =
|
||||
connect_front = {-3/16, -1/2, -1/2, 3/16, 3/8, -1/4},
|
||||
connect_left = {-1/2, -1/2, -3/16, -1/4, 3/8, 3/16},
|
||||
connect_back = {-3/16, -1/2, 1/4, 3/16, 3/8, 1/2},
|
||||
connect_right = { 1/4, -1/2, -3/16, 1/2, 3/8, 3/16},
|
||||
},
|
||||
collision_box = {
|
||||
type = "connected",
|
||||
fixed = {-1/4, -1/2, -1/4, 1/4, 1/2 + fence_collision_extra, 1/4},
|
||||
-- connect_top =
|
||||
-- connect_bottom =
|
||||
connect_front = {-1/4,-1/2,-1/2,1/4,1/2 + fence_collision_extra,-1/4},
|
||||
connect_left = {-1/2,-1/2,-1/4,-1/4,1/2 + fence_collision_extra,1/4},
|
||||
connect_back = {-1/4,-1/2,1/4,1/4,1/2 + fence_collision_extra,1/2},
|
||||
connect_right = {1/4,-1/2,-1/4,1/2,1/2 + fence_collision_extra,1/4},
|
||||
},
|
||||
connects_to = { "group:wall", "group:stone", "group:fence" },
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
tiles = wall_texture_table,
|
||||
walkable = true,
|
||||
groups = { cracky = 3, wall = 1, stone = 2 },
|
||||
sounds = wall_sounds,
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
walls.register("walls:cobble", S("Cobblestone Wall"), {"default_cobble.png"},
|
||||
"default:cobble", default.node_sound_stone_defaults())
|
||||
|
||||
walls.register("walls:mossycobble", S("Mossy Cobblestone Wall"), {"default_mossycobble.png"},
|
||||
"default:mossycobble", default.node_sound_stone_defaults())
|
||||
|
||||
walls.register("walls:desertcobble", S("Desert Cobblestone Wall"), {"default_desert_cobble.png"},
|
||||
"default:desert_cobble", default.node_sound_stone_defaults())
|
14
mods/mtg/walls/license.txt
Normal file
14
mods/mtg/walls/license.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
License of source code
|
||||
----------------------
|
||||
|
||||
GNU Lesser General Public License, version 2.1
|
||||
Copyright (C) 2015 Auke Kok <sofar@foo-projects.org>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under the terms
|
||||
of the GNU Lesser General Public License as published by the Free Software Foundation;
|
||||
either version 2.1 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 Lesser General Public License for more details:
|
||||
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
|
4
mods/mtg/walls/locale/template.txt
Normal file
4
mods/mtg/walls/locale/template.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
# textdomain: walls
|
||||
Cobblestone Wall=
|
||||
Mossy Cobblestone Wall=
|
||||
Desert Cobblestone Wall=
|
4
mods/mtg/walls/locale/walls.de.tr
Normal file
4
mods/mtg/walls/locale/walls.de.tr
Normal file
|
@ -0,0 +1,4 @@
|
|||
# textdomain: walls
|
||||
Cobblestone Wall=Kopfsteinpflastermauer
|
||||
Mossy Cobblestone Wall=Mosige Kopfsteinpflastermauer
|
||||
Desert Cobblestone Wall=Wüstenkopfsteinpflastermauer
|
4
mods/mtg/walls/locale/walls.es.tr
Normal file
4
mods/mtg/walls/locale/walls.es.tr
Normal file
|
@ -0,0 +1,4 @@
|
|||
# textdomain: walls
|
||||
Cobblestone Wall=Pared de adoquines
|
||||
Mossy Cobblestone Wall=Pared de adoquines musgosos
|
||||
Desert Cobblestone Wall=Pared de adoquines desérticos
|
4
mods/mtg/walls/locale/walls.fr.tr
Normal file
4
mods/mtg/walls/locale/walls.fr.tr
Normal file
|
@ -0,0 +1,4 @@
|
|||
# textdomain: walls
|
||||
Cobblestone Wall=Mur en pavé
|
||||
Mossy Cobblestone Wall=Mur en pavé moussu
|
||||
Desert Cobblestone Wall=Mur en pavé du désert
|
4
mods/mtg/walls/locale/walls.it.tr
Normal file
4
mods/mtg/walls/locale/walls.it.tr
Normal file
|
@ -0,0 +1,4 @@
|
|||
# textdomain: walls
|
||||
Cobblestone Wall=Muro di ciottoli
|
||||
Mossy Cobblestone Wall=Muro di ciottoli muschiosi
|
||||
Desert Cobblestone Wall=Muro di ciottoli del deserto
|
4
mods/mtg/walls/locale/walls.ms.tr
Normal file
4
mods/mtg/walls/locale/walls.ms.tr
Normal file
|
@ -0,0 +1,4 @@
|
|||
# textdomain: walls
|
||||
Cobblestone Wall=Pagar Batu Buntar
|
||||
Mossy Cobblestone Wall=Pagar Batu Buntar Berlumut
|
||||
Desert Cobblestone Wall=Pagar Batu Buntar Gurun
|
4
mods/mtg/walls/locale/walls.ru.tr
Normal file
4
mods/mtg/walls/locale/walls.ru.tr
Normal file
|
@ -0,0 +1,4 @@
|
|||
# textdomain: walls
|
||||
Cobblestone Wall=Булыжниковая Ограда
|
||||
Mossy Cobblestone Wall=Мшистая Булыжниковая Ограда
|
||||
Desert Cobblestone Wall=Ограда Из Пустынного Булыжника
|
4
mods/mtg/walls/locale/walls.se.tr
Normal file
4
mods/mtg/walls/locale/walls.se.tr
Normal file
|
@ -0,0 +1,4 @@
|
|||
# textdomain: walls
|
||||
Cobblestone Wall=Kullerstens Vägg
|
||||
Mossy Cobblestone Wall=Mossig Kullerstens Vägg
|
||||
Desert Cobblestone Wall=Öken Kullerstens Vägg
|
3
mods/mtg/walls/mod.conf
Normal file
3
mods/mtg/walls/mod.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
name = walls
|
||||
description = Minetest Game mod: walls
|
||||
depends = default
|
Loading…
Add table
Add a link
Reference in a new issue