2020-04-02 19:08:18 -07:00
|
|
|
--[[
|
|
|
|
Mod Cidades for Minetest
|
|
|
|
Copyright (C) 2020 BrunoMine (https://github.com/BrunoMine)
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2020-04-03 11:38:33 -07:00
|
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2020-04-02 19:08:18 -07:00
|
|
|
|
|
|
|
-- Number nodes
|
|
|
|
]]
|
|
|
|
|
2020-04-04 16:50:51 -07:00
|
|
|
local S = cidades.S
|
|
|
|
|
2020-04-02 19:08:18 -07:00
|
|
|
cidades.number_node = {}
|
|
|
|
|
|
|
|
for i=0, 9 do
|
|
|
|
cidades.number_node["cidades:stone_"..i] = i
|
|
|
|
minetest.register_node("cidades:stone_"..i, {
|
2020-04-04 16:50:51 -07:00
|
|
|
description = S("Stone"),
|
2020-04-02 19:08:18 -07:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
place_param2 = 0,
|
|
|
|
tiles = {"default_stone.png"},
|
|
|
|
is_ground_content = false,
|
2020-04-04 16:50:51 -07:00
|
|
|
drop = "default:stone",
|
|
|
|
groups = {cracky = 3, not_in_creative_inventory = 1},
|
2020-04-02 19:08:18 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
|