mirror of
git://repo.or.cz/tsm_mines.git
synced 2024-11-16 07:20:36 +01:00
Rename mod to “tsm_mines”
This commit is contained in:
parent
22e18d03a2
commit
1b2604c4e7
8
init.lua
8
init.lua
|
@ -12,7 +12,7 @@ if not MINE_FACTOR then
|
||||||
MINE_FACTOR = 1.5
|
MINE_FACTOR = 1.5
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node("mines:dummy", {
|
minetest.register_node("tsm_mines:dummy", {
|
||||||
description = "Air (you hacker you!)",
|
description = "Air (you hacker you!)",
|
||||||
inventory_image = "unknown_node.png",
|
inventory_image = "unknown_node.png",
|
||||||
wield_image = "unknown_node.png",
|
wield_image = "unknown_node.png",
|
||||||
|
@ -33,7 +33,7 @@ local ids = {
|
||||||
air = minetest.get_content_id("air"),
|
air = minetest.get_content_id("air"),
|
||||||
fence = minetest.get_content_id("default:fence_wood"),
|
fence = minetest.get_content_id("default:fence_wood"),
|
||||||
wood = minetest.get_content_id("default:wood"),
|
wood = minetest.get_content_id("default:wood"),
|
||||||
dummy = minetest.get_content_id("mines:dummy")
|
dummy = minetest.get_content_id("tsm_mines:dummy")
|
||||||
}
|
}
|
||||||
|
|
||||||
local chest_stuff = {
|
local chest_stuff = {
|
||||||
|
@ -51,7 +51,7 @@ local function rotate_torch(pos)
|
||||||
minetest.after(8, function()
|
minetest.after(8, function()
|
||||||
local n = minetest.get_node(pos)
|
local n = minetest.get_node(pos)
|
||||||
if n ~= nil then
|
if n ~= nil then
|
||||||
if n.name == "mines:dummy" then
|
if n.name == "tsm_mines:dummy" then
|
||||||
minetest.set_node(pos, {name="default:torch",param2=1})
|
minetest.set_node(pos, {name="default:torch",param2=1})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -62,7 +62,7 @@ local function fill_chest(pos)
|
||||||
minetest.after(5, function()
|
minetest.after(5, function()
|
||||||
local n = minetest.get_node(pos)
|
local n = minetest.get_node(pos)
|
||||||
if n ~= nil then
|
if n ~= nil then
|
||||||
if n.name == "mines:dummy" then
|
if n.name == "tsm_mines:dummy" then
|
||||||
minetest.set_node(pos, {name="default:chest"})
|
minetest.set_node(pos, {name="default:chest"})
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
--meta:set_string("formspec",default.chest_formspec)
|
--meta:set_string("formspec",default.chest_formspec)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user