Fixed CC/OC scripts for mining laser
(2nd parameter was inverted vs the help screen)
This commit is contained in:
parent
a6caea126f
commit
0611016533
2 changed files with 13 additions and 33 deletions
|
@ -15,12 +15,12 @@ end
|
|||
|
||||
noExit = true
|
||||
layerOffset = 1
|
||||
mineAll = true
|
||||
onlyOres = false
|
||||
silktouch = false
|
||||
args = {...}
|
||||
if #args > 0 then
|
||||
if args[1] == "help" or args[1] == "?" then
|
||||
print("Usage: mine <layerOffset> <oreOnly> <silktouch>")
|
||||
print("Usage: mine <layerOffset> <onlyOres> <silktouch>")
|
||||
print()
|
||||
print("Miner always mine below it, down to bedrock.")
|
||||
print("Set layerOffset to define starting level.")
|
||||
|
@ -35,8 +35,8 @@ if #args > 0 then
|
|||
end
|
||||
|
||||
if #args > 1 then
|
||||
if args[2] == "false" or args[2] == "0" then
|
||||
mineAll = false
|
||||
if args[2] == "true" or args[2] == "1" then
|
||||
onlyOres = true
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -59,18 +59,8 @@ if noExit then
|
|||
statusString, isActive = mininglaser.state()
|
||||
if not isActive then
|
||||
mininglaser.offset(layerOffset)
|
||||
|
||||
if mineAll then
|
||||
mininglaser.onlyOres(false)
|
||||
else
|
||||
mininglaser.onlyOres(true)
|
||||
end
|
||||
|
||||
if silktouch then
|
||||
mininglaser.onlyOres(onlyOres)
|
||||
mininglaser.silktouch(silktouch)
|
||||
else
|
||||
mininglaser.silktouch(false)
|
||||
end
|
||||
|
||||
mininglaser.start()
|
||||
end
|
||||
|
|
|
@ -28,12 +28,12 @@ end
|
|||
|
||||
noExit = true
|
||||
layerOffset = 1
|
||||
mineAll = true
|
||||
onlyOres = true
|
||||
silktouch = false
|
||||
args = {...}
|
||||
if #args > 0 then
|
||||
if args[1] == "help" or args[1] == "?" then
|
||||
print("Usage: mine <layerOffset> <oreOnly> <silktouch>")
|
||||
print("Usage: mine <layerOffset> <onlyOres> <silktouch>")
|
||||
print()
|
||||
print("Miner always mine below it, down to bedrock.")
|
||||
print("Set layerOffset to define starting level.")
|
||||
|
@ -48,8 +48,8 @@ if #args > 0 then
|
|||
end
|
||||
|
||||
if #args > 1 then
|
||||
if args[2] == "false" or args[2] == "0" then
|
||||
mineAll = false
|
||||
if args[2] == "true" or args[2] == "1" then
|
||||
onlyOres = true
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -70,18 +70,8 @@ if noExit then
|
|||
statusString, isActive = mininglaser.state()
|
||||
if not isActive then
|
||||
mininglaser.offset(layerOffset)
|
||||
|
||||
if mineAll then
|
||||
mininglaser.onlyOres(false)
|
||||
else
|
||||
mininglaser.onlyOres(true)
|
||||
end
|
||||
|
||||
if silktouch then
|
||||
mininglaser.onlyOres(onlyOres)
|
||||
mininglaser.silktouch(silktouch)
|
||||
else
|
||||
mininglaser.silktouch(false)
|
||||
end
|
||||
|
||||
mininglaser.start()
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue