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
@shadowfacts
shadowfacts / .md
Last active July 17, 2016 14:26
DiscordChat Setup Instructions
public static void GuiScreen create(InventoryPlayer playerInv) {
UIFixedView view = new UIFixedView(176, 166);
UIImage texture = new UIImage(new ResourceLocation("modtest:textures/gui/test.png"), 176, 166);
view.add(texture);
UIFixedView topPanel = new UIFixedView(176, 166 / 2);
topPanel.setStyle(VERTICAL_LAYOUT, TOP);
UIListView list = new UIListView(topPanel.width - 10, topPanel.height - 10);
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 {