write something there

This commit is contained in:
N-Nachtigal 2025-05-04 16:01:41 +02:00
commit b4b6c08f4f
8546 changed files with 309825 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+)

View file

@ -0,0 +1,73 @@
-- 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", "group:wall_connected" },
paramtype = "light",
is_ground_content = false,
tiles = wall_texture_table,
walkable = true,
groups = { cracky = 3, wall = 1, stone = 2 },
sounds = wall_sounds,
})
-- crafting recipe
-- HACK:
-- Walls have no crafts, when register new wall via API from another mod, but in the same namespace (`walls`).
-- So we should remove `":"` at the beginning of the name.
if wall_name:sub(1, 1) == ":" then
wall_name = wall_name:sub(2)
end
minetest.register_craft({
output = wall_name .. " 6",
recipe = {
{ "", "", "" },
{ wall_mat, wall_mat, wall_mat},
{ wall_mat, wall_mat, wall_mat},
}
})
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=Moosige Kopfsteinpflastermauer
Desert Cobblestone Wall=Wüstenkopfsteinpflastermauer

View file

@ -0,0 +1,4 @@
# textdomain: walls
Cobblestone Wall=Pavimŝtona muro
Mossy Cobblestone Wall=Muska pavimŝtona muro
Desert Cobblestone Wall=Dezerta pavimŝtona muro

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=Tembok Bongkahan Batu
Mossy Cobblestone Wall=Tembok Bongkahan Batu Berlumut
Desert Cobblestone Wall=Tembok Bongkahan Batu Gurun

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=丸石の塀
Mossy Cobblestone Wall=苔むした丸石の塀
Desert Cobblestone Wall=砂漠の丸石の塀

View file

@ -0,0 +1,4 @@
# textdomain: walls
Cobblestone Wall=lo lolro'iboi bitmu
Mossy Cobblestone Wall=lo clika lolro'iboi bitmu
Desert Cobblestone Wall=lo cantu'a lolro'iboi bitmu

View file

@ -0,0 +1,4 @@
# textdomain: walls
Cobblestone Wall=Mūrakmens siena
Mossy Cobblestone Wall=Apsūnējuša mūrakmens siena
Desert Cobblestone Wall=Tuksneša mūrakmens siena

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=Brukowa ściana
Mossy Cobblestone Wall=Brukowa ściana z mchem
Desert Cobblestone Wall=Pustynno-brukowa ściana

View file

@ -0,0 +1,4 @@
# textdomain: walls
Cobblestone Wall=Parede de Paralelepípedo
Mossy Cobblestone Wall=Parede de Paralelepípedo com Musgo
Desert Cobblestone Wall=Parede de Paralelepípedo do Deserto

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=Múr z dlažbových kociek
Mossy Cobblestone Wall=Múr z dlažbových kociek obrastených machom
Desert Cobblestone Wall=Múr z púštnych dlažbových kociek

View file

@ -0,0 +1,4 @@
# textdomain: walls
Cobblestone Wall=Kullerstensvägg
Mossy Cobblestone Wall=Mossig kullerstensvägg
Desert Cobblestone Wall=Ökenkullerstensvägg

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=鹅卵石墙
Mossy Cobblestone Wall=苔藓覆盖的鹅卵石墙
Desert Cobblestone Wall=沙漠鹅卵石墙

View file

@ -0,0 +1,4 @@
# textdomain: walls
Cobblestone Wall=鵝卵石牆
Mossy Cobblestone Wall=苔蘚覆蓋的鵝卵石牆
Desert Cobblestone Wall=沙漠鵝卵石牆

View file

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