Advertisement
Guest User

spawn

a guest
Jan 26th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. -- Mob Farm Controller
  2.  
  3. local mob = {...}
  4. local c = 0
  5.  
  6. if mob[1] == "blaze" then
  7.   c = 1
  8. elseif mob[1] == "wither" then
  9.   c = 2
  10. elseif mob[1] == "enderman" then
  11.   c = 4
  12. elseif mob[1] == "creeper" then
  13.   c = 8
  14. elseif mob[1] == "witch" then
  15.   c = 16
  16. elseif mob[1] == "stop" or mob[1] == "close" then
  17.   c = 0
  18. elseif mob[1] == "open" then
  19.   c = -512
  20. else
  21.   print("Invalid mob name")
  22.   return
  23. end
  24. c = c + 512
  25. rs.setBundledOutput("back", c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement