Skip to content

Instantly share code, notes, and snippets.

@ecto
Created July 28, 2012 22:59
Show Gist options
  • Select an option

  • Save ecto/3195116 to your computer and use it in GitHub Desktop.

Select an option

Save ecto/3195116 to your computer and use it in GitHub Desktop.
Minecraft strobe light
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