Skip to content

Instantly share code, notes, and snippets.

[11:13:18] [Client thread/FATAL] [minecraft/Minecraft]: Unreported exception thrown!
java.lang.IllegalAccessError: tried to access method net.minecraft.client.renderer.model.BlockPart$Deserializer.<init>()V from class net.minecraftforge.client.model.ModelLoaderRegistry2$ExpandedBlockModelDeserializer
at net.minecraftforge.client.model.ModelLoaderRegistry2$ExpandedBlockModelDeserializer.<clinit>(ModelLoaderRegistry2.java:377) ~[forge-1.14.4-28.1.117-model-system-rework_mapped_snapshot_20190708-1.14.3.jar:?] {re:classloading}
at net.minecraft.client.renderer.model.BlockModel.deserialize(BlockModel.java:59) ~[forge-1.14.4-28.1.117-model-system-rework_mapped_snapshot_20190708-1.14.3.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.renderer.model.BlockModel.deserialize(BlockModel.java:63) ~[forge-1.14.4-28.1.117-model-system-rework_mapped_snapshot_20190708-1.14.3.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.render
@desht
desht / gist:b1f94fb410e578e15bf60e256c15ef64
Last active July 7, 2020 09:22
Serializing & deserializing a GlobalPos in MC 1.16.1
public static CompoundNBT serializeGlobalPos(GlobalPos globalPos) {
CompoundNBT tag = new CompoundNBT();
tag.put("pos", net.minecraft.nbt.NBTUtil.writeBlockPos(globalPos.getPos()));
tag.putString("dim", globalPos.func_239646_a_().func_240901_a_().toString());
return tag;
}
public static GlobalPos deserializeGlobalPos(CompoundNBT tag) {
RegistryKey<World> k = RegistryKey.func_240903_a_(Registry.WORLD_KEY, new ResourceLocation(tag.getString("dim")));
return GlobalPos.func_239648_a_(k, NBTUtil.readBlockPos(tag.getCompound("pos")));
@desht
desht / pncr-1.14.md
Last active April 19, 2021 19:10
PneumaticCraft: Repressurized 1.14.4+: New and Planned Gameplay Changes

PneumaticCraft: Repressurized 1.14+ Gameplay Changes

Some significant player-visible changes are coming in PNC:R 1.14.4+. A lot (not all) of this is based on MineMaarten's document here: https://github.com/TeamPneumatic/pnc-repressurized/blob/redesign/documentation/TechTreeRemarksAndProposal.md (note that some of the points in that doc have already made it into the 1.12.2 release).

1.14.4 and 1.15.2 have releases on Curseforge now, and an alpha for 1.16.1 has just been uploaded. All new development will happen on 1.16.1, but 1.15.2 will be getting critical fixes and easy-backport stuff for a while. But no further development for 1.14.4, sorry. 1.16.1 is where it's at now.

Dev builds are available from https://jenkins.k-4u.nl/job/PneumaticCraft-Repressurized-1.15/ and https://jenkins.k-4u.nl/job/PneumaticCraft-Repressurized-1.16/. Jenkins builds should not considered stable, so seriously: don't include them in any modpack. However, they're there to play with and even provide feedback on if you're feel

@desht
desht / pncr-recipes.zs
Created June 18, 2021 08:54
Example PNC:R 1.16.5 crafttweaker entries
<recipetype:pneumaticcraft:assembly_laser>.addRecipe("slime_to_magma", <tag:items:forge:slimeballs> * 8, <item:minecraft:magma_cream>);
<recipetype:pneumaticcraft:assembly_drill>.addRecipe("glass_to_pane", <item:minecraft:glass>, <item:minecraft:glass_pane> * 4);
<recipetype:pneumaticcraft:refinery>.addRecipe("fun_lava_stuff", <fluid:minecraft:lava> * 50, [<fluid:pneumaticcraft:lpg> * 25, <fluid:pneumaticcraft:lubricant> * 25], 473);
<recipetype:pneumaticcraft:explosion_crafting>.removeAll();
<recipetype:pneumaticcraft:explosion_crafting>.addRecipe("quick_nether_brick", <item:minecraft:netherrack>, [ <item:minecraft:nether_brick> ], 75);
<recipetype:pneumaticcraft:fluid_mixer>.addRecipe("diesel_lava_to_lubricant", <fluid:pneumaticcraft:diesel> * 50, <fluid:minecraft:lava> * 50, <fluid:pneumaticcraft:lubricant> * 100, <item:minecraft:air> * 0, 1.0, 20);
<recipetype:pneumaticcraft:fluid_mixer>.addRecipe("water_plastic_to_sheets", <fluid:pneumaticcraft:plastic> * 1000, <fluid:minecraft:water> * 2000, <fluid:m
@desht
desht / playerglobals.md
Last active August 1, 2021 10:58
PneumaticCraft player-global variables

Player globals

  • Existing prefix "#" for global variables now means "player-global" variables
  • New prefix "%" for global variables means "server-global" variables - shared among all players on a server, like "#" globals used to be
  • GPS Tool, GPS Area Tool and Remote items which have global variable names in their saved NBT will have those saved var names updated with a "#" prefix when first accessed
    • Previously these items just stored an unprefixed variable name
  • GPS Tool and Remote GUI's now allow specification of "#" or "%" as a prefix for global variables where they are entered
  • Player-global and server-global variables can exist with the same name, e.g. #var1 and %var1 can both exist, and are separate variables
  • Existing global variables in a older world will appear as server-global
  • This may cause backwards compat issue with existing programs that refer to a previously-set value for a global variable (since a query for #var1 now references a player-global, which won't exist initially)
WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task
WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here. Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula.
Error getting artifact: curse.maven:theoneprobe-245211:3402
@desht
desht / gist:3c3a2d56ec3ac43288bdbec0c55cbd9a
Created September 1, 2021 09:29
JEI 1.17.x ghost ingredient crash
[10:28:55] [Render thread/INFO]: OpenGL debug message: id=1280, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_ENUM error generated. Cannot enable <cap> in the current profile.'
[10:28:55] [Render thread/INFO]: OpenGL debug message: id=1281, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_VALUE error generated. Operation is not valid from a preview context.'
FATAL ERROR in native method: Thread[Render thread,5,main]: No context is current or a function that is not available in the current context was called. The JVM will abort execution.
at org.lwjgl.opengl.GL11.glBegin(org.lwjgl.opengl/Native Method)
at mezz.jei.gui.ghost.GhostIngredientDrag.drawItem(jei@8.0.0.10/GhostIngredientDrag.java:83)
at mezz.jei.gui.ghost.GhostIngredientDragManager.drawTooltips(jei@8.0.0.10/GhostIngredientDragManager.java:51)
at mezz.jei.gui.overlay.IngredientListOverlay.drawTooltips(jei@8.0.0.10/IngredientListOverlay.java:177)
at mezz.jei.gui.GuiEventHandler.onDrawScreenEventPost(jei@8.0.0.10/GuiEventHand
/usr/lib/jvm/adoptopenjdk-16-hotspot-amd64/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:35555,suspend=y,server=n -Dvisualvm.id=212959982420623 -Dforge.logging.console.level=debug -Dforge.logging.markers=CONFIG -DlegacyClassPath.file=/home/des/forge/1.17.1/ModularRouters/build/classpath/runClient_minecraftClasspath.txt -Dmixin.env.remapRefMap=true -Dmixin.env.refMapRemappingFile=/home/des/forge/1.17.1/ModularRouters/build/createSrgToMcp/output.srg -DignoreList=bootstraplauncher,securejarhandler,asm-commons,asm-util,asm-analysis,asm-tree,asm,client-extra,fmlcore,javafmllanguage,mclanguage,forge- -DnativesDirectory=/home/des/forge/1.17.1/ModularRouters/build/natives -DmergeModules=jna-5.8.0.jar,jna-platform-58.0.jar,java-objc-bridge-1.0.0.jar -p /home/des/.gradle/caches/modules-2/files-2.1/cpw.mods/bootstraplauncher/0.1.17/899fb8e3912bb7d14a6f9611de117f77db710ec3/bootstraplauncher-0.1.17.jar:/home/des/.gradle/caches/modules-2/files-2.1/cpw.mods/securejarhandler/0.9.54/24b670f2c026ec9777e64a2c212
/usr/lib/jvm/adoptopenjdk-16-hotspot-amd64/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:37869,suspend=y,server=n -Dvisualvm.id=214581199618293 -Dforge.logging.console.level=debug -Dforge.logging.markers=SCAN,CONFIG -DlegacyClassPath.file=/home/des/forge/1.17.1/ModularRouters/build/classpath/runClient_minecraftClasspath.txt -Dmixin.env.remapRefMap=true -Dmixin.env.refMapRemappingFile=/home/des/forge/1.17.1/ModularRouters/build/createSrgToMcp/output.srg -DignoreList=bootstraplauncher,securejarhandler,asm-commons,asm-util,asm-analysis,asm-tree,asm,client-extra,fmlcore,javafmllanguage,mclanguage,forge- -DnativesDirectory=/home/des/forge/1.17.1/ModularRouters/build/natives -DmergeModules=jna-5.8.0.jar,jna-platform-58.0.jar,java-objc-bridge-1.0.0.jar -p /home/des/.gradle/caches/modules-2/files-2.1/cpw.mods/bootstraplauncher/0.1.17/899fb8e3912bb7d14a6f9611de117f77db710ec3/bootstraplauncher-0.1.17.jar:/home/des/.gradle/caches/modules-2/files-2.1/cpw.mods/securejarhandler/0.9.54/24b670f2c026ec9777e64a
[26Oct2021 12:34:22.331] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeclientuserdev, --version, MOD_DEV, --assetIndex, 1.17, --assetsDir, /home/des/.gradle/caches/forge_gradle/assets, --gameDir, ., --fml.forgeVersion, 37.0.103, --fml.mcVersion, 1.17.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210706.113038]
[26Oct2021 12:34:22.334] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 9.0.7+91+master.8569cdf starting: java version 16.0.1 by AdoptOpenJDK
[26Oct2021 12:34:22.343] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [fmlclientdev,forgeclient,minecraft,fmlserveruserdev,fmlclient,fmldatauserdev,forgeserverdev,forgeserveruserdev,forgeclientdev,forgeclientuserdev,forgeserver,forgedatadev,fmlserver,fmlclientuserdev,fmlserverdev,forgedatauserdev,testharness]
[26Oct2021 12:34:22.352] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming ser