djmattyg007

ComputerCraft Peripheral Utils

Mar 23rd, 2024 (edited)
814
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.19 KB | Gaming | 0 0
  1. require("./lib/string_util")
  2.  
  3. function find(pType)
  4.     return { peripheral.find(pType, function(name, thing)
  5.         return name:startswith(pType)
  6.     end) }
  7. end
  8.  
  9. return { find = find }
Advertisement
Add Comment
Please, Sign In to add comment