Skip to content

Instantly share code, notes, and snippets.

View quat1024's full-sized avatar
🐲
rerh!

quaternary quat1024

🐲
rerh!
View GitHub Profile
@quat1024
quat1024 / results.csv
Created August 29, 2019 07:42
minecraft 1.14.4 OctavePerlinNoiseSampler range test
octaves min max
1 -0.9969206357348224 0.9548434333558826
2 -2.467316652344656 2.328985326760562
3 -4.87585625756149 5.042024033453523
4 -10.471273767083549 9.815261877437226
5 -19.49006180243939 20.237465228549873
6 -38.99800348214662 39.152905589627906
7 -77.5585684240792 85.56938743688391
8 -176.25487846647394 162.466075461866
9 -335.0233240038607 319.2838169712373
@quat1024
quat1024 / a.java
Last active February 12, 2019 03:38
matching nbt tags w/ recipe items
private static boolean isTagSubset(@Nullable NBTTagCompound recipeTag, @Nullable NBTTagCompound suppliedTag) {
//check that the user supplied item has, at least, the same nbt tags as the recipe item
//it is OK if the supplied item has *more* tags - however all the tags that *are* specified
//in the recipe item must match
//check easy cases
//if there's no specified recipe nbt tag, anything goes
if(recipeTag == null || recipeTag.isEmpty()) return true;
//if the recipe has nbt but the supplied item doesn't, there's no way it can match
if(suppliedTag == null || suppliedTag.isEmpty()) return false;
@quat1024
quat1024 / readme.txt
Last active January 7, 2019 09:57
Multiplicity (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
{
"credit": "Made with Blockbench, a gratis, modern block model editor by JannisX11",
"textures": {
"particle": "#trim"
},
"parent": "block/block",
"elements": [
{
"name": "frame",
"from": [0, 0, 2],
Something with Facades and failing to generate one for a certain Aether block
MultiMC version: 0.6.1-develop-1213
Minecraft folder is:
E:/Stuff/game/MC/MultiMC/instances/Modjnam Mods/.minecraft
Java path is:
C:/ProgramData/Oracle/Java/javapath/javaw.exe
[17:33:25] [main/INFO] [No Debug 5 You]: ===========================================================
[17:33:25] [main/INFO] [No Debug 5 You]: Beginning dump of class names...
[17:33:25] [main/INFO] [No Debug 5 You]: ===========================================================
[17:33:25] [main/INFO] [No Debug 5 You]: DEBUG:::: Found a net.minecraftforge.fml.common.eventhandler.EventPriority
[17:33:25] [main/INFO] [No Debug 5 You]: DEBUG:::: which is not an asmeventhandler
[17:33:25] [main/INFO] [No Debug 5 You]: DEBUG:::: Found a ASM: class vazkii.botania.client.core.handler.HUDHandler onDrawScreenPre(Lnet/minecraftforge/client/event/RenderGameOverlayEvent$Pre;)V
[17:33:25] [main/INFO] [No Debug 5 You]: DEBUG:::: Somehow this doesnt have the text event idk
[17:33:25] [main/INFO] [No Debug 5 You]: DEBUG:::: Found a net.minecraftforge.fml.common.eventhandler.EventPriority
[17:33:25] [main/INFO] [No Debug 5 You]: DEBUG:::: which is not an asmeventhandler
[17:33:25] [main/INFO] [No Debug 5 You]: DEBUG:::: Found a A
package quaternary.incorporeal.block;
import net.minecraft.block.Block;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumDyeColor;
public class TeRenderWaypointBasic extends TileEntitySpecialRenderer<TeWaypointBasic> {
ResourceLocation logSideTex = new ResourceLocation("minecraft:textures/blocks/log_oak.png");
ResourceLocation logEndTex = new ResourceLocation("minecraft:textures/blocks/log_oak_top");
//HERE WE GO BITCHES
public void renderTileEntityAt(TeWaypointBasic te, double x, double y, double z, float pt, int destroyStage) {
TextureManager textureManager = Minecraft.getMinecraft().renderEngine;
Tessellator tessellator = Tessellator.getInstance();
VertexBuffer buffer = tessellator.getBuffer();
Set run directory to E:\Stuff\game\MC\Lawnchair
Native Launcher Version: 729-stage
Operating System: Windows 7 Home Premium
Application Hash: caa1d7d4865195b916f2b5d2df3ae804637894bc
Application Data directory: C:\Users\New User\AppData\Roaming/.minecraft
Executable Path: Minecraft_staging.exe
App Directory dir: E:\Stuff\game\MC\Lawnchair
Start dir: C:/Users/New User/AppData/Roaming/.minecraft
Launcher dir: E:/Stuff/game/MC/Lawnchair/game
TmpDir dir: E:/Stuff/game/MC/Lawnchair/tmp