diff --git a/core/etc/apps.db b/core/etc/apps.db index a691ab2..72cfd27 100644 --- a/core/etc/apps.db +++ b/core/etc/apps.db @@ -99,7 +99,7 @@ Needs work \030 \031f\030f\031e\139\030e\128\030f\159\129\0314\130\131\131\129", run = "recorder.lua", }, - [ "4486006f811b88cacd5f211fd579717e29b600cd" ] = { + [ "swarm" ] = { title = "Swarm", category = "Turtle", icon = " \0315\\\030 \031 \ diff --git a/milo/apis/miniAdapter.lua b/milo/apis/miniAdapter.lua index 595fd38..72b958b 100644 --- a/milo/apis/miniAdapter.lua +++ b/milo/apis/miniAdapter.lua @@ -33,6 +33,10 @@ function Adapter:listItems(throttle) 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 end diff --git a/miners/etc/apps.db b/miners/etc/apps.db index 9bf870e..7f40823 100644 --- a/miners/etc/apps.db +++ b/miners/etc/apps.db @@ -8,7 +8,7 @@ run = "simpleMiner.lua", requires = 'turtle', }, - [ "4486006f811b88cacd5f211fd579717e29b600cd" ] = { + [ "scanningMiner" ] = { title = "Scanning", category = "Mining", icon = " \0315\\\030 \031 \ diff --git a/miners/findSwarm.lua b/miners/findSwarm.lua index 9881aa8..441c4a0 100644 --- a/miners/findSwarm.lua +++ b/miners/findSwarm.lua @@ -113,6 +113,8 @@ local function run(member) end os.sleep(.5) if os.clock() - c > 3 then + Sound.play('entity.villager.no') + print('stuck: ' .. member.id) turtle.set({ status = 'Stuck' }) end end