Jump to content




Bombing Run


  • You cannot reply to this topic
No replies to this topic

#1 Vovix

  • New Members
  • 1 posts

Posted 26 February 2012 - 11:08 PM

I have created the bombing run script seen in the 1.3 trailer, with arguments for the slot number and frequency of dropped TNT. Credit obvously goes to Dan for the idea and making the mod.

local tArgs = { ... }
if #tArgs ~= 2 then
print( "Usage: bomb <slot number> <frequency>" )
return
end
local slotNum = tonumber(tArgs[1])
local freq = tonumber(tArgs[2])
turtle.select(slotNum)
while turtle.getItemCount(slotNum) ~= 0 do
for n=1,freq
do
turtle.forward()
end
turtle.placeDown()
redstone.setOutput("bottom",true)
sleep(0.5)
redstone.setOutput("bottom",false)
end






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users