Replacing timers with computers

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Cougar281

New Member
Jul 29, 2019
167
0
0
I searched around and couldn't find much info, but I gathered that it would be possible to make a computer work as a timer using a 'simple' program, but my programming skills are...... limited.. Would someone happen to have a program handy to do that, and would using computers instead of timers be better with regards to processor time, lag, etc?
 

Someguy

New Member
Jul 29, 2019
121
0
1
This works quite well:


Code:
while true do
redstone.setOutput("left", true)
sleep(0.1)
redstone.setOutput("false", true)
sleep(0.2)
end


Those sleep times work for me, playing SSP. Adjust for your own needs.
 

panic_more

New Member
Jul 29, 2019
5
0
0
and obviously you can add something like
if rs. getInput(side) ~= true then
code
end
this means you can control it with a lever
 

ratchet freak

Well-Known Member
Nov 11, 2012
1,198
243
79
as for the lag issues... the redstone updates are going to cause lag, you won't have to render the custom model of the timer anymore though so client lag will be less

overall you are better off trying to build without needing timers