Skip to content

Instantly share code, notes, and snippets.

View Caellian's full-sized avatar

Tin Švagelj Caellian

View GitHub Profile
@Caellian
Caellian / tardis.json
Created June 29, 2015 20:07
TARDIS Model
{
"_comment": "Created by Tin Svagelj a.k.a. Feronzed a.k.a. Caellian",
"elements": [
{ "from": [ 0, -15, 0 ],
"to": [ 16, 16, 16 ],
"faces": {
"north": { "uv": [ 0, 0, 8, 16 ], "texture": "#boxdoor"},
"south": { "uv": [ 0, 0, 8, 16 ], "texture": "#boxwindow"},
"west": { "uv": [ 0, 0, 8, 16 ], "texture": "#boxwindow"},
"east": { "uv": [ 0, 0, 8, 16 ], "texture": "#boxwindow"}
@Caellian
Caellian / DnD_Loot.xml
Created June 30, 2015 00:47
Created for testing purposes
<generator>
<lvl1>
<gold>
<low/>
<medium/>
<high/>
</gold>
<magical>
<red>
<watch/>
@Caellian
Caellian / explanation_Mod.java
Last active August 29, 2015 14:24
Explanation for SlotEnum
package com.caellyan.core.explanation;
/**
* Created by Caellian on 3.7.2015., at 22:27.
*/
public class Mod
{
//You can do it this way, so if boots slot changes, you don't have to update your mod.
Slot bootsSlot = SlotHelper.slotMap.get(SlotEnum.BOOTS);
@Caellian
Caellian / GUITextArea.java
Last active August 29, 2015 14:26
TextArea Showcase
package com.caellian.codeBlocks.client.gui;
import com.google.common.collect.Lists;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.Gui;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.WorldRenderer;
@Caellian
Caellian / build.gradle
Last active August 29, 2015 14:26
Cuchaz m3l build script
import groovy.json.JsonSlurper
import java.nio.file.Files
//Project data
String minecraftVersion = "1.8.3",
dirLib = "lib",
dirNatives = "natives/${minecraftVersion}"
//Minecraft data
@Caellian
Caellian / build.gradle
Created August 7, 2015 21:30
Finished?
import groovy.json.JsonSlurper
import java.nio.file.Files
//Project data
String minecraftVersion = "1.8.3",
dirLib = "lib",
dirNatives = "natives/${minecraftVersion}"
//Minecraft data
package com.caellian.codeBlocks.block;
import com.caellian.codeBlocks.lib.Constants;
import com.caellian.codeBlocks.lib.Reference;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.GameRegistry;
@Caellian
Caellian / Property.java
Created July 17, 2016 21:14
Property gist
package xyz.openmodloader.api.flow.data;
import net.minecraft.nbt.NBTBase;
import net.minecraft.nbt.NBTTagCompound;
import xyz.openmodloader.OpenModLoader;
import xyz.openmodloader.nbt.NBTCompatible;
import xyz.openmodloader.nbt.NBTHelper;
/**
* @author Caellian
# Find GLFW 3
#
# GLFW_LIBRARIES
# GLFW_INCLUDE_DIRS.
# GLFW_FOUND
IF(NOT UNIX)
IF(NOT GLFW_ROOT)
MESSAGE("ERROR: GLFW_ROOT must be set!")
ENDIF(NOT GLFW_ROOT)
#include<life>
int main(void) {
while (true) {
try {
if (!live()) {
die();
}
} catch (const life::failiure& failiure) {
LiveState *state = failiure->getLifeState();