Skip to content

Instantly share code, notes, and snippets.

View Matthew-Burfield's full-sized avatar
🏠
Working from home

Matthew Burfield Matthew-Burfield

🏠
Working from home
View GitHub Profile
const magik = magikcraft.io;
function polarbear() {
const player = magik.getSender();
const loc = player.getEyeLocation()
.toVector()
.add(player.getLocation().getDirection().multiply(10))
.toLocation(player.getWorld(), player.getLocation().getYaw(), player.getLocation().getPitch());
const polarbear = org.bukkit.entity.PolarBear;
player.getWorld().spawn(loc, polarbear.class);
const magik = magikcraft.io;
function clightning(num = 1, time = 100) {
magik.doNTimes(magik.shakti(), num, () => {
magik.dixit('Chain Lightning Is Finished');
}, time);
}
const magik = magikcraft.io;
function setCreative() {
const player = magik.getSender();
player.setGameMode(org.bukkit.GameMode.CREATIVE);
}
const magik = magikcraft.io;
function clightning(num = 10, time = 1000) {
magik.doNTimes(
castLightning,
num,
() => writeMessage(num),
time,
);
}
const magik = magikcraft.io;
function fire(num = 1) {
const playerLoc = magik.getSender().getLocation();
playerLoc.yaw += 10;
magik.ianuae(playerLoc);
magik.infierno();
if (num > 0) {
magik.setTimeout(function () {
fire(num - 1);
const magik = magikcraft.io;
const material = org.bukkit.Material;
const player = magik.getSender();
function generateDungeon() {
const X = "X";
const array = [
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,X,X,X,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,X,X,X,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,X,X,0,0,0,X,X,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
@Matthew-Burfield
Matthew-Burfield / imgur.js
Created April 25, 2017 11:53 — forked from cecilemuller/imgur.js
Search images using the Imgur API
'use strict';
/* global XMLHttpRequest */
/* global process.env.API_IMGUR */
const querystring = require('querystring');
/**
* Fetches a page of results from the Imgur API.
*
* @param {String} options.q Query
@Matthew-Burfield
Matthew-Burfield / flags.html
Created June 10, 2017 00:05
force directed graph flags
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Show National Contiguity With A Force Directed Graph</title>
<link rel="stylesheet" href="flags.css">
<style>
@Matthew-Burfield
Matthew-Burfield / __MAGIKCRAFT__.Matthew-Burfield.magikcraft_spells.md
Last active August 12, 2017 04:02
Magikcraft Spells, by Matthew-Burfield.
" Vim colorscheme template file
" Author: Matthew Burfield <burfie@hotmail.com>
" Maintainer: Matthew Burfield <burfie@hotmail.com>
" Notes: To check the meaning of the highlight groups, :help 'highlight'
" --------------------------------
" set background=dark
" - or ---------------------------
" set background=light
" --------------------------------