Skip to content

Instantly share code, notes, and snippets.

Avatar
🐲
🐲

quaternary quat1024

🐲
🐲
View GitHub Profile
@quat1024
quat1024 / mod mod things.md
Last active Jan 19, 2020
Minecraft Modding Resources
View mod mod things.md

Eventually I'll get a blog set up, and when that happens, I'll replace this page with a link to it.

In the mean time, I've wanted some space to collect Minecraft-related writings, so here they are. A bit sparse at the moment, hey.

Tooling

Documentation

@quat1024
quat1024 / fix it.md
Last active Jan 19, 2020
Fix stuff being broke in IntelliJ.
View fix it.md

What

When compiling mods in recent versions of IntelliJ, weird things start happening:

  • With ForgeGradle 2 (1.12-), none of the assets show up in-game (language keys, models, textures etc)
  • Broken hotswapping.
  • Potentially other Bad, Terrible Things that are yet to be discovered.

How

@quat1024
quat1024 / index.html
Last active May 24, 2020
new incarnation of the start page...
View index.html
<html>
<head>
<title>Start</title>
<link rel="stylesheet" type="text/css" href="./style.css" />
</head>
<body>
<div class="grid">
<div class="square new">
<div>New Tab.</div>
</div>
@quat1024
quat1024 / we out here reloadin.md
Last active Jan 19, 2020
Probably Very Wrong Overview of Resource Reloading in 1.14.4/Fabric
View we out here reloadin.md

TL;DR

If you want to load some resources or data in Fabric 1.14 or 1.15, do this:

ResourceManagerHelper.get(ResourceType.ASSETS).registerReloadListener(new SimpleResourceReloadListener<MyResource>() {
  @Override
  public Identifier getFabricId() {
    return new Identifier("some_identifier", "that_describes_this_task");
  }
@quat1024
quat1024 / results.csv
Created Aug 29, 2019
minecraft 1.14.4 OctavePerlinNoiseSampler range test
View results.csv
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 Feb 12, 2019
matching nbt tags w/ recipe items
View a.java
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 Jan 7, 2019
Multiplicity (PuzzleScript Script)
View readme.txt
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
View barrel.json
{
"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],
View gist:8878c8135d57265ae83dccdfbc8aa4e9
Something with Facades and failing to generate one for a certain Aether block
View gist:b93b52947486e57e90797275fbc57e7e
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
You can’t perform that action at this time.