-
Notifications
You must be signed in to change notification settings - Fork 1
/
ore_overrides.lua
48 lines (45 loc) · 1.58 KB
/
ore_overrides.lua
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
--Ore overrides to clear unneeded ores.
local lead_to_use = core.settings:get("lead_used") or "both"
if lead_to_use == "technic" then
core.register_abm({
nodenames = {"elepower_dynamics:stone_with_lead"}, -- replace with the name of the ore
interval = 1, -- runs every 1 second
chance = 1, -- always fires
action = function(pos)
core.swap_node(pos, {name = "default:stone"})
end,
})
elseif lead_to_use == "elepower" then
core.register_abm({
nodenames = {"technic:mineral_lead"}, -- replace with the name of the ore
interval = 1, -- runs every 1 second
chance = 1, -- always fires
action = function(pos)
core.swap_node(pos, {name = "default:stone"})
end,
})
elseif lead_to_use == "both" then
return false
end
local zinc_to_use = core.settings:get("zinc_used") or "both"
if zinc_to_use == "technic" then
core.register_abm({
nodenames = {"elepower_dynamics:stone_with_zinc"}, -- replace with the name of the ore
interval = 1, -- runs every 1 second
chance = 1, -- always fires
action = function(pos)
core.swap_node(pos, {name = "default:stone"})
end,
})
elseif zinc_to_use == "elepower" then
core.register_abm({
nodenames = {"technic:mineral_zinc"}, -- replace with the name of the ore
interval = 1, -- runs every 1 second
chance = 1, -- always fires
action = function(pos)
core.swap_node(pos, {name = "default:stone"})
end,
})
elseif zinc_to_use == "both" then
return false
end