Skip to content

Instantly share code, notes, and snippets.

@sgnl
Created November 19, 2014 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgnl/981e243a79afda95b233 to your computer and use it in GitHub Desktop.
Save sgnl/981e243a79afda95b233 to your computer and use it in GitHub Desktop.
Scriptcraft - Blocks Follow
var utils = require('utils');
events.on("player.PlayerMoveEvent", function(evt) {
var playerLoc = utils.getPlayerPos(evt.player);
var drone = new Drone(playerLoc);
// console.log(playerLoc);
drone.box(blocks.wood, 1, 1, 1);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment