Skip to content

Instantly share code, notes, and snippets.

// you'll need a noise library, this line uses the plugin pxnCommonPluginMC which has the FastNoiseLite library
importClass(Packages.com.poixson.utils.FastNoiseLiteD);
function print(msg) {
context.print(msg);
}
function error(msg) {
#!/bin/bash
clear
# build pxnCommon
pushd pxnCommon/ || exit 1
\mvn install || exit 1
popd
echo
#!/bin/bash
clear
source /usr/bin/shellscripts/common.sh
if [ $USER == "root" ]; then
echo "You cannot run this script as root!"
exit 1
fi
@lorenzop
lorenzop / anihouse.sh
Last active July 21, 2016 17:28
bash animation
#!/bin/bash
# --fast
if [[ ! -z $1 ]] && [[ "$1" == "--fast" ]]; then
FAST=1
fi
if [[ ! -z $1 ]] && [[ "$1" == "--no-loop" ]]; then
NOLOOP=1
@lorenzop
lorenzop / getgc.sh
Last active December 14, 2017 00:32
#!/bin/bash
# ==================================================
# GrowControl - Workspace setup script
#
# This script downloads and prepares the GrowControl
# source code workspace. The project uses the
# pxnCommon library as a source of common code.
#
# http://GrowControl.com
# https://github.com/PoiXson/GrowControl