Skip to content

Instantly share code, notes, and snippets.

View cocona20xx's full-sized avatar
🛏️
always a bit sleepy

Cocona cocona20xx

🛏️
always a bit sleepy
View GitHub Profile
@cocona20xx
cocona20xx / instructions.md
Last active July 5, 2022 04:29
Make Jitpack behave properly for Minecraft Modding on versions that need Java 17

Okay so to use this thing, you need to add it to all branches and all tags of your project that you want downloadable via jitpack.

For tags, this means you'll likely need to rerelease said tags with the jitpack.yml file added, this can be a bit tricky, so here's the steps.

  1. Get yourself the Github CLI tools: https://cli.github.com/, and authenticate your account with said tools. Instructions on how to use the Github CLI can be found here: https://cli.github.com/manual/
  2. Clone your repository (or a fork of it, if it isn't your project) into a local directory, and create a branch for each tag you need to update that is NOT up-to-date with the current main branch/branch for that minecraft version.
  3. For each brach corrisponding to a specific tag: a: run git checkout BRANCH_NAME_HERE, with BRANCH_NAME_HERE replaced with the name of the branch b: run git reset --hard TAG_NAME_HERE with TAG_NAME_HERE replaced with the name of the tag c: run git push -f origin BRANCH_NAME_HERE
@cocona20xx
cocona20xx / autocrafter.zs
Created December 7, 2019 03:46
Small bit of stuff done to add autocrafting to the Crucial Modpack
//Cocona's crafter tweaks
import mods.jei.JEI;
//Remove
recipes.remove(<charset:compression_crafter>);
mods.jei.JEI.removeAndHide(<charset:barrelcart:*>);
mods.jei.JEI.removeAndHide(<charset:barrel:*>);
mods.jei.JEI.removeAndHide(<charset:pockettable>);
//Add
recipes.addShaped(<charset:barrel>.withTag({log: "minecraft:log;0", slab: "minecraft:wooden_slab;0"}), [[null, <ore:ingotBrickNether>, null],[<ore:logWood>, <minecraftfuture:barrel>, <ore:logWood>], [null, <ore:ingotBrickNether>, null]]);