Skip to content

Instantly share code, notes, and snippets.

@nshiff
nshiff / stitch.js
Last active January 23, 2017 01:33
This is custom code intended to simplify the creation of custon cross-stitch designs using the interactive Alphabet Generator at http://www.stitchpoint.com/eng/tool/alph/chart_alphabet_amsterdam.php
/*
Use:
- Visit web app and paste code into the Javascript console.
- If you are unfamiliar, this is like a command prompt for a web page.
- Right-click, "Inspect Element." Press Escape to show or hide the console.
- You can run a test command like
alert("Hello!")
- Paste all this code into the console and press Enter to run.
- Use command to create one line of text. To delete, or to add a newline, use the existing interface.
from mcapi import *
me = player('heyandy889')
targetBlock = lookingat(me)
x = targetBlock.x
y = targetBlock.y - 5
z = targetBlock.z