Skip to content

Instantly share code, notes, and snippets.

View Unh0lyTigg's full-sized avatar

Robert Allen Unh0lyTigg

View GitHub Profile
import java.nio.file.Files
import java.nio.file.Paths
def trymkdir(folder) {
def f = new File(project.projectDir, folder)
if (!f.exists()) {
f.mkdirs()
f.mkdir()
}
}
...
apply from: 'lwjgl3.gradle'
...
eclipse.classpath.file.withXml {
def node = it.asNode()
attachLwjglNightlyEclipse(node, '3.0.0', 'NydilikGame')
}
buildscript {
repositories {
jcenter()
maven {
name 'forge'
url 'http://files.minecraftforge.net/maven'
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
}
@Unh0lyTigg
Unh0lyTigg / OreDictionary.java
Last active April 23, 2017 23:17
Potential changes
/*
* Minecraft Forge
* Copyright (c) 2016.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation version 2.1
* of the License.
*
* This library is distributed in the hope that it will be useful,
finding with input: {minecraft:coal,40,coal} , {minecraft:sand,36,red_sand}
checking recipe input: {minecraft:coal,8,coal}
---- iiewtw: A (recipe stack) vs B (inventory stack)
---- iiewtw: delegatename: minecraft:coal vs minecraft:coal
---- iiewtw: metadata: 0 vs 0
---- iiewtw: count: 8 vs 40
---- iiewtw: tagdata: null vs null
-------- result true
-------- rc after = -32
---- iiewtw: A (recipe stack) vs B (inventory stack)