Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local user = "skitelpapi"
- local m = peripheral.find "neuralInterface"
- local item = "minecraft:arrow"
- function fire(y, p)
- return pcall(m.fire, y, p, 4)
- end
- while true do
- local meta = m.getMetaByName(user)
- if meta and meta.heldItem and meta.heldItem.getMetadata().name == item then
- fire(meta.yaw, meta.pitch)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement