Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
alienfreak10

since i suck at coding i am here

Question

okay i am trying to think of a way to automate botania thermalilies, because they have a 5 min cooldown before they can take lava again, and if they get lava before then the timer resets on them (no mana made) so im trying to figure out how to automate this with a redstone signal. i dont know opencomputers for shit (never messed with it or computercraft much) so basically i want it to emit a redstone signal for say.. 30 seconds every 6 minutes give or take, i imagine this is probably really simple but i don't know how lol. (or if anyone automated them better a different way im open to ideas, this is project ozone 2 im doing this on)

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi, for a basic timer you can use this:

local com = require "component"
local rs = com.redstone

while true do
rs.setOutput(1,0)
os.sleep(360)
rs.setOutput(1,15)
os.sleep(30)
end

However, you should check to see if you can use an adapter with the thermalilies as a way to pull weather they are ready for more lava or not, thus eliminating the need for a timer.  

To check whether it's a valid component type "components" to get a list of connected components (after you place an adapter next to it).  Then you can use this Pastebin program I wrote to check its API, http://pastebin.com/xVKqv7GE if you still need help from there post the results you get for its API and I'll see if I can write something up for you as a starting point. GL

 

-Peanut

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.