(Re-)add nodes from MTG (#536)

Adds fire, flowers, vessels, walls, and xpanes
This commit is contained in:
ANAND 2020-04-22 07:32:23 +05:30 committed by GitHub
parent e68fe87ea2
commit 96054843a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
88 changed files with 1247 additions and 0 deletions

View 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
View 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())

View 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

View file

@ -0,0 +1,4 @@
# textdomain: walls
Cobblestone Wall=
Mossy Cobblestone Wall=
Desert Cobblestone Wall=

View file

@ -0,0 +1,4 @@
# textdomain: walls
Cobblestone Wall=Kopfsteinpflastermauer
Mossy Cobblestone Wall=Mosige Kopfsteinpflastermauer
Desert Cobblestone Wall=Wüstenkopfsteinpflastermauer

View 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

View 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

View 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

View 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

View file

@ -0,0 +1,4 @@
# textdomain: walls
Cobblestone Wall=Булыжниковая Ограда
Mossy Cobblestone Wall=Мшистая Булыжниковая Ограда
Desert Cobblestone Wall=Ограда Из Пустынного Булыжника

View 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
View file

@ -0,0 +1,3 @@
name = walls
description = Minetest Game mod: walls
depends = default