Jump to content




Weather Detector?


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

#1 Alice

  • Members
  • 429 posts
  • LocationBehind you.

Posted 30 July 2013 - 01:03 AM

I'm going to be making an interface called Plastic. It'll be off the theory of Glass. Anyone know how to detect weather, which would be useful to put into Plastic?

#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 30 July 2013 - 01:12 AM

Plastic exists... Think of a new name...

Also just like the existing Plastic program the only way you will be able to do weather is with OpenCCSensors.

#3 GopherAtl

  • Members
  • 888 posts

Posted 30 July 2013 - 01:17 AM

not entirely true! a pair of computers with rednet modems paces just the right distance apart and pinging each other at some regular (but not too spammy-fast) intervals can tell if it's raining or not by whether they can reach each other or not.

2 computers 17 blocks apart at ground level should lose contact during a storm, when ground level rednet range is reduced to only 16.

Not that I recommend this approach, per say, just saying, it is workable.

#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 30 July 2013 - 01:19 AM

View PostGopherAtl, on 30 July 2013 - 01:17 AM, said:

2 computers 17 blocks apart at ground level should lose contact during a storm, when ground level rednet range is reduced to only 16.
Problem is that is server specific... Unlike OCS which is always correct no matter the placement (assuming the server has it installed)...

#5 GopherAtl

  • Members
  • 888 posts

Posted 30 July 2013 - 01:23 AM

I question your logic that something that could change based on a config setting is more server-specific than whether a completely separate add-on mod is installed or not, but it hardly matters since, as I said, I don't actually recommend this approach in any event.

#6 jesusthekiller

  • Banned
  • 562 posts
  • LocationWrocław, Poland

Posted 30 July 2013 - 05:10 AM

os.time() and light sensor :)

Won't work during night tho...

#7 ZagKalidor

  • Members
  • 111 posts

Posted 30 July 2013 - 09:58 AM

Silly question but,

Where does ocs get their data from, that they put in tables?

#8 GopherAtl

  • Members
  • 888 posts

Posted 30 July 2013 - 10:01 AM

Java. Internal minecraft calls. peripherals are full mods, in no way constrained the way CC lua programs are constrained. More specifically, probably world.getRainStrength(), world.isRaining(), and world.isThundering()

#9 ZagKalidor

  • Members
  • 111 posts

Posted 30 July 2013 - 12:14 PM

So, he would have to do a mod to get those calls?

#10 Bubba

    Use Code Tags!

  • Moderators
  • 1,142 posts
  • LocationRHIT

Posted 30 July 2013 - 12:50 PM

View PostZagKalidor, on 30 July 2013 - 12:14 PM, said:

So, he would have to do a mod to get those calls?

Indeed.

Also, I think that a combination of jesusthekiller's and GopherAtl solutions would be the best way to go about this. 1) Because it would be pretty neat to do that without any necessary peripherals and 2) Because why rely on something when it's not completely necessary? Sure on some servers it would be necessary, but then again on most it wouldn't.

#11 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 30 July 2013 - 12:51 PM

View PostZagKalidor, on 30 July 2013 - 12:14 PM, said:

So, he would have to do a mod to get those calls?
OpenCCSensors IS the mod. That then queries Minecraft for the weather information (or whatever it is programmed to scan)...

And since OP is wanting to create a Lua program he can just use OCS to get the information. No need to create his own mod.

#12 ZagKalidor

  • Members
  • 111 posts

Posted 30 July 2013 - 02:33 PM

Quote

And since OP is wanting to create a Lua program he can just use OCS to get the information. No need to create his own mod.

That was not the intention, it was just a question. Just for my personal understanding. Im not as deep in those things than the most of you, especialy not in java.

#13 Alice

  • Members
  • 429 posts
  • LocationBehind you.

Posted 30 July 2013 - 08:39 PM

I like the light detector, the pinging idea, and everyone else's help. I am not getting OCS :P. Now to attempt integration with the real world as a side. And I will be renaming them/it to Transluscent Viewing Device Integrated with Minecraft World Data since Plastic is taken. Can someone think of an acronym (Sorry for the off-topic moment)?

#14 ZagKalidor

  • Members
  • 111 posts

Posted 31 July 2013 - 01:39 AM

Weather.com :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users