This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying myself: My Bitcoin username is +draco18s. https://onename.io/draco18s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--************************ CustomOreGen Minecraft Ores Module **************** | |
:set ai et ts=4 sw=4 | |
* | |
* This file contains Presets, Options, and Distributions for the 7 | |
* vanilla minecraft ores: | |
* Coal, Iron, Gold, Redstone, Diamond, Lapis Lazuli, and Emerald. | |
* | |
******************************************************************************--> | |
<ConfigSection> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.draco18s.hazards.block; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Random; | |
import com.draco18s.hardlib.HashUtils; | |
import com.draco18s.hazards.StoneRegistry; | |
import com.draco18s.hazards.block.helper.UnstableStoneHelper; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class GameObjectExtensions { | |
public static bool IsVisibleFrom(this GameObject obj, Camera camera) { | |
Bounds b = obj.GetComponent<Collider>().bounds; | |
b.Expand(0.5f); | |
Plane[] planes = GeometryUtility.CalculateFrustumPlanes(camera); | |
return GeometryUtility.TestPlanesAABB(planes, b); | |
} | |
public static bool IsVisibleFrom(this GameObject obj, Plane[] planes) { | |
Bounds b = obj.GetComponent<Collider>().bounds; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void setupDir(Configuration config) { | |
RECIPE_DIR = null; | |
if (RECIPE_DIR == null) { | |
RECIPE_DIR = config.getConfigFile().toPath().resolve("../recipes/").toFile(); | |
ADVANCE_DIR = config.getConfigFile().toPath().resolve("../advancements/").toFile(); | |
String dir = config.getConfigFile().toPath().resolve("../recipes/").toString(); | |
String pattern = "config\\\\(.*)\\.cfg\\\\\\.\\.\\\\recipes"; | |
Pattern p = Pattern.compile(pattern); | |
Matcher matcher = p.matcher(dir); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018-06-10 14:10:06,452 main WARN Disabling terminal, you're running in an unsupported environment. | |
[14:10:06] [main/INFO] [GradleStart]: Extra: [] | |
[14:10:06] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Gamer/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] | |
[14:10:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker | |
[14:10:06] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker | |
[14:10:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker | |
[14:10:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker | |
[14:10:06] [main/INFO] [FML]: Forge Mod Loader version 14.23.4.2705 for Min |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Unlit/UI_ShaderFixes" { | |
Properties { | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_Color("Color Multiplier", Color) = (1, 1, 1, 1) // color | |
_Cutoff ("Cutoff", Range(0,1)) = 0.5 | |
[HideInInspector]_StencilComp("Stencil Comparison", Float) = 8 | |
[HideInInspector]_Stencil("Stencil ID", Float) = 1 | |
[HideInInspector]_StencilOp("Stencil Operation", Float) = 0 | |
[HideInInspector]_StencilWriteMask("Stencil Write Mask", Float) = 255 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.draco18s.runic.client.gui; | |
import java.util.ArrayList; | |
import org.lwjgl.input.Mouse; | |
import com.google.common.base.Predicate; | |
import com.google.common.base.Predicates; | |
import net.minecraft.client.Minecraft; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Copy and paste bot functions here: | |
function justFarm(me, others){ | |
return farm(); | |
} | |
function undyableBot(me, others, storage){ | |
if(me.hp < 100 - (me.levels.heal + 5)*2){ | |
return heal() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///Spend fuel and accelerate in direction | |
private void Thrust(Vector3 dir, float draw, float seconds) { | |
o.Normalize(); | |
float change = GetVelocityFromBurn(this, draw * seconds); | |
DrawFuelFromTanks(); | |
velocity += change*dir; | |
} | |
///Determine the number of seconds in order to reach velocity (assuming no friction) | |
public static float CalculateBurnTimeToReachVelocity(Spaceship ship, float vel, float draw) { |
OlderNewer