Advertisement
theinsekt

startup enclosed tree farm

Mar 15th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. --get this file: pastebin get ziBBd33L startup
  2.  
  3. --get installer: pastebin run fjSV9kHj
  4. --install: installer installfile Kh5btMAA
  5.  
  6. os.loadAPI("theinsektAPIs/treefarm1")
  7. os.loadAPI("theinsektAPIs/fileHelp")
  8.  
  9. function addWallsFrom(path,wallBlocks)
  10.   if wallBlocks==nil then error("Error: param called wallBlocks are nil",2) end
  11.   local wallBlocks0=fileHelp.loadLines(path)
  12.   for key,value in pairs(wallBlocks0) do
  13.     wallBlocks[value]=true
  14.   end
  15. end
  16.  
  17. print("running startup treefarm1")
  18. local wallBlocks={}
  19. addWallsFrom("wallBlockList",wallBlocks)
  20.  
  21. local limit=20
  22. treefarm1.treeFarm(wallBlocks, 20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement