Skip to content

Instantly share code, notes, and snippets.

View jwulf's full-sized avatar
:octocat:
Coding on Halmak

Josh Wulf jwulf

:octocat:
Coding on Halmak
View GitHub Profile
var magik = magikcraft.io;
function es7() {
const names = ["Josh", "the", "Legend"];
names.map((name) => magik.dixit(`Yo ${name}!`));
}
// filename: ambient-declarations
declare namespace magikcraft.io {
export function getPlugin(): any;
export function getSender(): any;
export function setTimeout(fn: Function, ms: number): number
export function clearTimeout(handle: number);
export function doNTimes(fn: Function, numberOfTimes: number, callbackFn?: Function, delayms?: number);
}
declare namespace template {
const magik = magikcraft.io;
function glow(name) {
magik.radiatum(name);
}
const magik = magikcraft.io;
/**
* Record your path in Minecraft into the global variable _path
*/
if (typeof _path === "undefined") {
var __magikcraft-sitapati-path = [];
}
function record(frames = 100, delayms = 100) {
const magik = magikcraft.io;
/**
* @method replay - replay the Magikcraft Camera Path
* Yo, this spell written by the Legendary Josh Wulf
* Twitter: @sitapati on Twitter
* GitHub: https://github.com/jwulf
*
*/
function replay() {
// filename: ambient_sitapati
declare namespace sitapati {
export function test(): void;
export function jump(): void;
}
const magik = magikcraft.io;
function tf() {
magik.dixit('Hello')
}
const magik = magikcraft.io;
function spell(){
We need to put the babel transpiler in a webworker.
a
}
}
const magik = magikcraft.io;
function spell(){
We need to put the babel transpiler in a webworker.
a
}
}
const magik = magikcraft.io;
function spell(){
We need to put the babel transpiler in a webworker.
a
}
}