Skip to content

Instantly share code, notes, and snippets.

View shadowfacts's full-sized avatar
🖕
stop turning github into a social network, micro$oft

Shadowfacts shadowfacts

🖕
stop turning github into a social network, micro$oft
View GitHub Profile
package net.minecraftforge.test;
import net.minecraft.util.text.TextComponentString;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.ServerSendChatEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
/**
{
"blocks": [
[
[
{
"id": "minecraft:chest",
"properties": {
"facing": "south"
}
},
{
"data": [
[
[
"minecraft:chest:4"
]
]
],
"loot": [],
"inventories": [
{
"data": [
[
[
"minecraft:stone_brick_stairs",
"minecraft:stone_brick_stairs",
"minecraft:stone_brick_stairs",
"minecraft:stone_brick_stairs",
"minecraft:stone_brick_stairs"
],
@shadowfacts
shadowfacts / test2.json
Created March 19, 2016 20:00
EM structure generation system example
{
"data": [
[
[
"minecraft:oak_stairs",
"minecraft:oak_stairs",
"minecraft:oak_stairs",
"minecraft:oak_stairs",
"minecraft:oak_stairs"
],
@shadowfacts
shadowfacts / DiscordChat.cfg
Created March 6, 2016 17:43
DiscordChat example configuration file
# Configuration file
discord {
# Channels that should be forwarded to MC/MC be forwarded to.
# (Without the # at the beginning) [default: ]
S:channels <
general
>
# The email used to login to Discord.
@shadowfacts
shadowfacts / gist:68d2d72265140d1867ea
Last active January 30, 2016 16:42
What If? Markov sentence generator
How big would there would be! And since I sat on the mountain's base disappear?
I stay safely at our Twitter timelines (tweets by 1cm every virus in a rope to heat left over 2 minutes. In the world expanded by the average composition of 1 inch?
What’s the Sun, or spiders?
What would float?
What would it take up (assuming regulated air in a lunar ("holar"?) eclipse look like if all the cumulative energy to read them all the money in the top of the SAT guessed on the longest possible sunset you had a laser pointer at the earth stood as close could expect to warm me up and surprised and hitting golf balls from the legal and say "hotter than the rope to get its history were to my main motivation is proportional to the cumulative energy from the most expensive music video and hitting a nuclear fuel pool?
If so, how much damage would be! If you suddenly began rising steadily at some giant dome or spiders?
How much damage would be able to stir it be used?
How strong, compared to build the Moon and the trees were str
import net.minecraft.util.ChatComponentText;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.ServerSendChatEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
@Mod(modid = "ServerSendChatTest", version = "1.0")
public class ServerSendChatTest {
@shadowfacts
shadowfacts / YeOldeTanks.cfg
Created October 11, 2015 14:12
Default YeOldeTanks config file
# Configuration file
general {
# Automatically output to the bottom [default: true]
B:autoOutputBottom=true
# The capacity of the barrel in milibuckets [range: 0 ~ 2147483647, default: 55000]
I:barrelCapacity=55000
# Can the barrel be drained from any side.
@shadowfacts
shadowfacts / Events.js
Last active August 29, 2015 14:28
ShadowJS examples
// Events.BreakBlock
EventRegistry.registerHandler(Events.BreakBlock, function(event) {
print("Break block event handler called");
print("(X: " + event.getX() + ", Y: " + event.getY() + ", Z: " + event.getZ() + ")");
event.getWorld().setBlock(event.getX(), event.getY() - 1, event.getZ(), Blocks.get("stone"));
});
// Events.PlaceBlock
EventRegistry.registerHandler(Events.PlaceBlock, function(event) {