mirror of
https://github.com/minetest/minetest_game.git
synced 2025-06-30 22:00:22 +02:00
Version MFF.
This commit is contained in:
7
mods/walls/README.txt
Normal file
7
mods/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> (LGPL 2.1)
|
1
mods/walls/depends.txt
Normal file
1
mods/walls/depends.txt
Normal file
@ -0,0 +1 @@
|
||||
default
|
46
mods/walls/init.lua
Normal file
46
mods/walls/init.lua
Normal file
@ -0,0 +1,46 @@
|
||||
walls = {}
|
||||
|
||||
walls.register = function(wall_name, wall_desc, wall_texture, wall_mat, wall_sounds)
|
||||
-- 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}},
|
||||
},
|
||||
connects_to = { "group:wall", "group:stone" },
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
tiles = { wall_texture, },
|
||||
walkable = true,
|
||||
groups = { cracky = 3, wall = 1, stone = 2 },
|
||||
sounds = wall_sounds,
|
||||
})
|
||||
|
||||
-- crafting recipe
|
||||
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", "Cobblestone Wall", "default_cobble.png",
|
||||
"default:cobble", default.node_sound_stone_defaults())
|
||||
|
||||
walls.register("walls:mossycobble", "Mossy Cobblestone Wall", "default_mossycobble.png",
|
||||
"default:mossycobble", default.node_sound_stone_defaults())
|
||||
|
||||
walls.register("walls:desertcobble", "Desert Cobblestone Wall", "default_desert_cobble.png",
|
||||
"default:desert_cobble", default.node_sound_stone_defaults())
|
||||
|
14
mods/walls/license.txt
Normal file
14
mods/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
|
Reference in New Issue
Block a user