Created
July 28, 2012 22:59
-
-
Save ecto/3195116 to your computer and use it in GitHub Desktop.
Minecraft strobe light
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Minecraft = require('minecraft'); | |
| var mc = new Minecraft({ | |
| user: 'hello', | |
| pass: 'world', | |
| salt: 'salty' | |
| }); | |
| var day = true; | |
| setInterval(function () { | |
| mc.setWorldTime(['worldName', day ? 4000 : 14000]); | |
| day = !day; | |
| }, 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment