Skip to content

Instantly share code, notes, and snippets.

View colebob9's full-sized avatar
:octocat:

colebob9

:octocat:
View GitHub Profile
@colebob9
colebob9 / MobAI.md
Last active October 20, 2015 02:04 — forked from asibs121/MobAI.md

Hostiles

[Level 1 Field Mouse]

/setblock ~ ~ ~ minecraft:mob_spawner 0 replace {EntityId:Silverfish,SpawnData:{CustomName:"Field Mouse [Lvl. 1]",CustomNameVisible:1}}

[Level 2 Rat]

/setblock ~ ~ ~ minecraft:mob_spawner 0 replace {EntityId:Silverfish,SpawnData:{CustomName:"Rat [Lvl. 1]",CustomNameVisible:1},Delay:500}
@colebob9
colebob9 / permissions.yml
Created August 24, 2016 00:54
Example permissions.yml
groups:
Default: # The group
options:
default: true # Keep this true if you want it to be the one everyone gets.
prefix: '&8[&2Default&8]' # What shows up before your username in chat. (Needs a Chat plugin like EssentialsChat to show up however.)
permissions: # Where the permissions start.
- bukkit.command.time.* # The permission
- bukkit.command.list # Another one!
AnotherGroup: # Another Group!
- modifyworld.* # Just another permission
@colebob9
colebob9 / backupall.sh
Created April 2, 2017 01:36
Backup all servers using CraftyBackupScript
#!/bin/bash
python3 CBS-Backup-Bungee.py
sleep 5s
python3 CBS-Backup-Creative.py
sleep 5s
python3 CBS-Backup-Hub.py
sleep 5s
python3 CBS-Backup-SkyBlock.py
sleep 5s
python3 CBS-Backup-Survival.py
@colebob9
colebob9 / changeprefix.sk
Created April 24, 2017 17:46
Skript to change PermissionsEx prefix
command /changeprefix <text>:
description: Changes your own PermissionEx prefix.
usage: /changeprefix &2Example
permission: changeprefix.allow
executable by: players
trigger:
set {_player} to player
execute console command "/pex user %{_player}% prefix %arg 1%"
send "Changed prefix to %arg 1%"
@colebob9
colebob9 / rewards.yml
Created April 30, 2017 22:08
playerpoints part of ontime rewards.yml
commands:
- giveonepoint:'points give [player] 1'
@colebob9
colebob9 / MacInstallForge.sh
Last active September 1, 2017 04:59
Helps with the installation of Minecraft Forge on a Mac using the Minecraft included Java runtime
#!/bin/bash
# MacInstallForge v1
# Used to install Minecraft Forge on a Mac using the included Java runtime
# colebob9
# Steps:
# Download and run Minecraft at least once
# Download script from page
# Must be placed in same folder with Minecraft Application
@colebob9
colebob9 / InstallQEMUOnMac.sh
Last active May 1, 2020 12:10
Installs QEMU on a Mac, doesn't need admin
# InstallQEMUOnMac v1
# colebob9
# Installs QEMU using homebrew and downloads Ubuntu on a Mac
# Execute `chmod +x InstallQEMUOnMac.sh` before using.
echo "This will install QEMU on your Mac. Please note that this will take about 40 minutes to get through. Go watch some YouTube videos or something cause you're going to be here for a while. This script will take care of everything."
echo "Please make sure you have your charger plugged in, and a lot of patience."
echo "Do not *at any point* exit out of this Terminal window, even if it looks stuck. It's not."
echo "It is also recommended to have the Mac apps \"Amphetamine\" or \"Caffeine\" installed and enabled now, so your Mac doesn't sleep. Do not close your lid either."
@colebob9
colebob9 / FindMCJava.sh
Created September 22, 2017 12:58
Find Minecraft mac java runtime
# Find Java runtime
cd Minecraft.app
cd Contents/runtime/jre-x64/
JAVAVERSION="$(ls -1v | head -1)"
echo "Latest Java runtime version (from Minecraft): ${JAVAVERSION}"
cd ${JAVAVERSION}
cd bin
JAVALOCATION="$(pwd)"
echo ${JAVALOCATION}
@colebob9
colebob9 / MacBuildTools.sh
Created September 22, 2017 13:14
Spigot BuildTools mac script
# Put java location in variable below (get from FindMCJava.sh)
JAVALOCATION=""
curl -o BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
export MAVEN_OPTS="-Xmx2G"
${JAVALOCATION}java -Xmx2G -jar BuildTools.jar --rev 1.12.2
@colebob9
colebob9 / backwardsbot.py
Last active October 13, 2017 13:15
Discord bot for taking any message and replying with it backwards
import discord
import asyncio
client = discord.Client()
@client.event
async def on_ready():
print('------')
print('Logged in as')
print(client.user.name)