Advertisement
osmarks

Untitled

Apr 5th, 2018
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. local user = "skitelpapi"
  2. local m = peripheral.find "neuralInterface"
  3. local item = "minecraft:arrow"
  4.  
  5. function fire(y, p)
  6. return pcall(m.fire, y, p, 4)
  7. end
  8.  
  9. while true do
  10. local meta = m.getMetaByName(user)
  11. if meta and meta.heldItem and meta.heldItem.getMetadata().name == item then
  12. fire(meta.yaw, meta.pitch)
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement