1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
if minetest.setting_getbool("gloopblocks_lavacooling") ~= false then
--This part comes directly from gloopblocks, just running it here again in case techage changed it
--(it may or may not depending on load order)
default.cool_lava = function(pos, node)
if node.name == "default:lava_source" then
if gloopblocks_search_nearby_nodes(pos,"default:water_source")
or gloopblocks_search_nearby_nodes(pos,"default:water_flowing") then
minetest.set_node(pos, {name="gloopblocks:obsidian_cooled"})
end
else -- Lava flowing
if gloopblocks_search_nearby_nodes(pos,"default:water_source") then
minetest.set_node(pos, {name="gloopblocks:basalt_cooled"})
elseif gloopblocks_search_nearby_nodes(pos,"default:water_flowing") then
minetest.set_node(pos, {name="gloopblocks:pumice_cooled"})
end
end
end
end
minetest.register_alias_force("techage:basalt_stone","gloopblocks:basalt")
for nname,def in pairs(minetest.registered_nodes) do
if type(def.tiles) == "table" then
local tiles = table.copy(def.tiles)
local changed = false
for k,v in ipairs(tiles) do
if v == "default_stone.png^[brighten" then
tiles[k] = "gloopblocks_basalt.png"
changed = true
end
end
if changed then
minetest.override_item(nname,{tiles=tiles})
end
end
if nname == "techage:water_stop" then
def.groups.not_in_creative_inventory = 1
minetest.override_item(nname,{groups=def.groups})
end
end
local unreg = {
"minecart:cart",
"minecart:buffer",
"minecart:cart_pusher",
"minecart:landmark",
"minecart:speed1",
"minecart:speed2",
"minecart:speed4",
"minecart:speed8",
"minecart:terminal",
"techage:chest_cart",
"techage:ta3_cartdetector_off",
"techage:tank_cart",
"techage:ta3_drillbox_pas",
"techage:oil_drillbit",
"techage:ta3_drill_pipe_wrench",
"techage:assembly_tool",
"techage:forceload",
"techage:forceloadtile",
"techage:ta2_quarry_pas",
"techage:ta3_quarry_pas",
"techage:ta4_quarry_pas",
}
for _,item in ipairs(unreg) do minetest.unregister_item(item) end
|