cleanup
This commit is contained in:
@@ -99,7 +99,7 @@ Needs work
|
|||||||
\030 \031f\030f\031e\139\030e\128\030f\159\129\0314\130\131\131\129",
|
\030 \031f\030f\031e\139\030e\128\030f\159\129\0314\130\131\131\129",
|
||||||
run = "recorder.lua",
|
run = "recorder.lua",
|
||||||
},
|
},
|
||||||
[ "4486006f811b88cacd5f211fd579717e29b600cd" ] = {
|
[ "swarm" ] = {
|
||||||
title = "Swarm",
|
title = "Swarm",
|
||||||
category = "Turtle",
|
category = "Turtle",
|
||||||
icon = " \0315\\\030 \031 \
|
icon = " \0315\\\030 \031 \
|
||||||
|
|||||||
@@ -33,6 +33,10 @@ function Adapter:listItems(throttle)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- TODO: cache number of slots, free slots, used slots
|
||||||
|
-- useful for when inserting into chests
|
||||||
|
-- ie. insert only if chest does not have item and has free slots
|
||||||
|
|
||||||
self.cache = cache
|
self.cache = cache
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
run = "simpleMiner.lua",
|
run = "simpleMiner.lua",
|
||||||
requires = 'turtle',
|
requires = 'turtle',
|
||||||
},
|
},
|
||||||
[ "4486006f811b88cacd5f211fd579717e29b600cd" ] = {
|
[ "scanningMiner" ] = {
|
||||||
title = "Scanning",
|
title = "Scanning",
|
||||||
category = "Mining",
|
category = "Mining",
|
||||||
icon = " \0315\\\030 \031 \
|
icon = " \0315\\\030 \031 \
|
||||||
|
|||||||
@@ -113,6 +113,8 @@ local function run(member)
|
|||||||
end
|
end
|
||||||
os.sleep(.5)
|
os.sleep(.5)
|
||||||
if os.clock() - c > 3 then
|
if os.clock() - c > 3 then
|
||||||
|
Sound.play('entity.villager.no')
|
||||||
|
print('stuck: ' .. member.id)
|
||||||
turtle.set({ status = 'Stuck' })
|
turtle.set({ status = 'Stuck' })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user