CommandBlocksJS allows you to translate Javascript code to Minecraft Commandblocks