Skip to content

Instantly share code, notes, and snippets.

@desht
desht / gist:b1f94fb410e578e15bf60e256c15ef64
Last active Jul 7, 2020
Serializing & deserializing a GlobalPos in MC 1.16.1
View gist:b1f94fb410e578e15bf60e256c15ef64
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 Apr 19, 2021
PneumaticCraft: Repressurized 1.14.4+: New and Planned Gameplay Changes
View pncr-1.14.md

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

View gist:1a16a9907f97a5e1f3e6040439eae612
[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