Jump to content

Forge is corrupted?


Recommended Posts

I've had trouble downloading the installer of Forge 1.13.2 onto my Windows 10 PC. I downloaded it from chrome, but it said it was corrupted and I couldn't click "I'll take the risk" or whatever the button was. I changed to Firefox, and that downloaded it... but when I clicked the file it wouldn't open the normal launch thing. Instead, it just had an error message. Help?

Link to comment
Share on other sites

Just now, diesieben07 said:

In Chrome you have to actually go to the downloads list (Ctrl-J), where you can choose to keep the file.

That's the thing, it doesn't give me the option to save it. It only says to discard. Is there a way to get past this?

Link to comment
Share on other sites

On 5/12/2019 at 3:38 PM, diesieben07 said:

What launcher are you using? Post logs.

Here's what I did:

 

Installed "installer"  for 1.13.2 and the latest version.

 

I then clicked the jar file and let it install the program. 

 

I went to Minecraft's launcher when you normally select it and chose to play the 1.13.2-forge-25.0204 game.

 

Then I get the picture I uploaded.

 

These are the logs, I don't know what any of it means:

 

[13May2019 20:59:42.861] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher starting: java version 1.8.0_51
[13May2019 20:59:45.486] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[13May2019 20:59:48.173] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlclient' with arguments [--version, 1.13.2-forge-25.0.204, --gameDir, C:\Users\amber\AppData\Roaming\.minecraft, --assetsDir, C:\Users\amber\AppData\Roaming\.minecraft\assets, --username, IrishArtist, --assetIndex, 1.13.1, --uuid, cefb1a5c21a543acbcf1b8ff7d72daa4, --accessToken, ????????, --userType, mojang, --versionType, release]
[13May2019 20:59:51.300] [Client thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: IrishArtist
[13May2019 21:00:01.144] [Client thread/INFO] [net.minecraft.client.Minecraft/]: LWJGL Version: 3.1.6 build 14
[13May2019 21:00:09.885] [Client thread/INFO] [net.minecraftforge.fml.ModLoader/CORE]: Loading Network data for FML net version: FML2
[13May2019 21:00:10.064] [modloading-worker-1/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Failed to create mod instance. ModID: forge, class net.minecraftforge.common.ForgeMod
java.lang.ExceptionInInitializerError: null
    at net.minecraftforge.common.ForgeMod.<init>(ForgeMod.java:89) ~[?:?]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_51]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_51]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_51]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422) ~[?:1.8.0_51]
    at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_51]
    at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:130) [?:?]
    at net.minecraftforge.fml.javafmlmod.FMLModContainer$$Lambda$1300/294436333.accept(Unknown Source) [?:?]
    at java.util.function.Consumer.lambda$andThen$14(Consumer.java:65) [?:1.8.0_51]
    at java.util.function.Consumer$$Lambda$1299/695980401.accept(Unknown Source) [?:1.8.0_51]
    at java.util.function.Consumer.lambda$andThen$14(Consumer.java:65) [?:1.8.0_51]
    at java.util.function.Consumer$$Lambda$1299/695980401.accept(Unknown Source) [?:1.8.0_51]
    at net.minecraftforge.fml.ModContainer.transitionState(ModContainer.java:111) [?:?]
    at net.minecraftforge.fml.ModList.lambda$null$9(ModList.java:120) [?:?]
    at net.minecraftforge.fml.ModList$$Lambda$1344/1436292329.accept(Unknown Source) [?:?]
    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) [?:1.8.0_51]
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) [?:1.8.0_51]
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) [?:1.8.0_51]
    at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291) [?:1.8.0_51]
    at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731) [?:1.8.0_51]
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_51]
    at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:401) [?:1.8.0_51]
    at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:734) [?:1.8.0_51]
    at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160) [?:1.8.0_51]
    at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174) [?:1.8.0_51]
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233) [?:1.8.0_51]
    at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) [?:1.8.0_51]
    at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583) [?:1.8.0_51]
    at net.minecraftforge.fml.ModList.lambda$dispatchParallelEvent$10(ModList.java:120) [?:?]
    at net.minecraftforge.fml.ModList$$Lambda$1343/100782741.run(Unknown Source) [?:?]
    at java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1386) [?:1.8.0_51]
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_51]
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_51]
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689) [?:1.8.0_51]
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_51]
Caused by: java.lang.NullPointerException
    at net.minecraftforge.fml.loading.JarVersionLookupHandler.getImplementationVersion(JarVersionLookupHandler.java:42) ~[forge-1.13.2-25.0.204.jar:25.0]
    at net.minecraftforge.versions.forge.ForgeVersion.<clinit>(ForgeVersion.java:44) ~[?:?]
    ... 35 more
[13May2019 21:00:10.179] [Client thread/FATAL] [net.minecraftforge.fml.ModLoader/LOADING]: Failed to complete lifecycle event CONSTRUCT, 1 errors found
[13May2019 21:00:10.179] [Client thread/FATAL] [net.minecraftforge.eventbus.EventBus/EVENTBUS]: EventBus 0 shutting down - future events will not be posted.
java.lang.Exception: stacktrace
    at net.minecraftforge.eventbus.EventBus.shutdown(EventBus.java:274) [eventbus-0.9.2-service.jar:?]
    at net.minecraftforge.fml.client.ClientModLoader.begin(ClientModLoader.java:65) [?:?]
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:412) [?:?]
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:345) [?:?]
    at net.minecraft.client.main.Main.main(SourceFile:144) [?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51]
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51]
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.13.2-25.0.204.jar:25.0]
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$291/2017797638.call(Unknown Source) [forge-1.13.2-25.0.204.jar:25.0]
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:19) [modlauncher-1.1.1.jar:?]
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:32) [modlauncher-1.1.1.jar:?]
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50) [modlauncher-1.1.1.jar:?]
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:57) [modlauncher-1.1.1.jar:?]
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:43) [modlauncher-1.1.1.jar:?]
[13May2019 21:00:10.212] [Client thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: forge-1.13.2-25.0.204-universal.jar, Default, NaturalRealism Resource Pack1.13.zip
[13May2019 21:00:12.280] [Sound Library Loader/INFO] [net.minecraft.client.audio.SoundManager/]: Starting up SoundSystem version 201809301515...
[13May2019 21:00:12.579] [Thread-5/INFO] [net.minecraft.client.audio.SoundManager/]: Initializing No Sound
[13May2019 21:00:12.579] [Thread-5/INFO] [net.minecraft.client.audio.SoundManager/]: (Silent Mode)
[13May2019 21:00:12.657] [Thread-5/INFO] [net.minecraft.client.audio.SoundManager/]: OpenAL initialized.
[13May2019 21:00:12.883] [Sound Library Loader/INFO] [net.minecraft.client.audio.SoundManager/SOUNDS]: Preloading sound minecraft:sounds/ambient/underwater/underwater_ambience.ogg
[13May2019 21:00:12.884] [Sound Library Loader/INFO] [net.minecraft.client.audio.SoundManager/SOUNDS]: Sound engine started
[13May2019 21:00:14.451] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/cobblestone.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:14.493] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/gravel.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:14.498] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/iron_ore.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:14.501] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/coal_ore.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:14.574] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/lapis_ore.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:14.583] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/sandstone.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:14.585] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/chiseled_sandstone.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:14.734] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/mossy_cobblestone.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:14.902] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/diamond_ore.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:14.997] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/redstone_ore.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:15.299] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/end_stone.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:15.315] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/emerald_ore.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:15.722] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/red_sandstone.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:15.724] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/chiseled_red_sandstone.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:15.775] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/smooth_sandstone.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:15.778] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/smooth_red_sandstone.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:15.867] [Client thread/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'minecraft:blockstates/grass_path.json' in resourcepack: 'NaturalRealism Resource Pack1.13.zip' for variant: 'normal': Unknown blockstate property: 'normal'
[13May2019 21:00:17.061] [Client thread/INFO] [net.minecraft.client.renderer.texture.TextureMap/]: Max texture size: 16384
[13May2019 21:00:18.268] [Client thread/INFO] [net.minecraft.client.renderer.texture.TextureMap/]: Created: 512x512 textures-atlas
[13May2019 21:00:19.566] [Client thread/ERROR] [net.minecraftforge.fml.ModLoader/LOADING]: Skipping lifecycle event ENQUEUE_IMC, 1 errors found.
[13May2019 21:00:19.566] [Client thread/FATAL] [net.minecraftforge.fml.ModLoader/LOADING]: Failed to complete lifecycle event ENQUEUE_IMC, 1 errors found
[13May2019 21:00:19.566] [Client thread/FATAL] [net.minecraftforge.eventbus.EventBus/EVENTBUS]: EventBus 0 shutting down - future events will not be posted.
java.lang.Exception: stacktrace
    at net.minecraftforge.eventbus.EventBus.shutdown(EventBus.java:274) [eventbus-0.9.2-service.jar:?]
    at net.minecraftforge.fml.client.ClientModLoader.end(ClientModLoader.java:76) [?:?]
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:479) [?:?]
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:345) [?:?]
    at net.minecraft.client.main.Main.main(SourceFile:144) [?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51]
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51]
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.13.2-25.0.204.jar:25.0]
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$291/2017797638.call(Unknown Source) [forge-1.13.2-25.0.204.jar:25.0]
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:19) [modlauncher-1.1.1.jar:?]
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:32) [modlauncher-1.1.1.jar:?]
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50) [modlauncher-1.1.1.jar:?]
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:57) [modlauncher-1.1.1.jar:?]
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:43) [modlauncher-1.1.1.jar:?]
[13May2019 21:00:19.638] [Client thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded
 

 

error1.JPG

Link to comment
Share on other sites

On 5/14/2019 at 12:13 AM, LexManos said:

Download the new versions of Forge from our download page: https://files.minecraftforge.net/

I downloaded the 1.13.2 just over the weekend so I could have my shaders working normally (I was using Optifine), and I was the latest version according to the site. But it hasn't been working at all. I've finally been able to actually open the game with Forge launch, but now it's just showing errors and I removed all my mods to see if that was the problem but it wasn't.

 

I already have 1.12 versions installed and I've used them in the past and they've worked fine. I don't know why 1.13.2 isn't working.

Link to comment
Share on other sites

When you say "latest version" understand that that number changes as versions are released. When people ask about it, specify what EXACT version number you're using.

The errors you have been experiancing have been fixed in 205+ So..

Update

 

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

21 hours ago, LexManos said:

When you say "latest version" understand that that number changes as versions are released. When people ask about it, specify what EXACT version number you're using.

The errors you have been experiancing have been fixed in 205+ So..

Update

 

Hey, I'm having the same error here, I've ran the installer for the latest 1.13.2 forge version, but when i run runClient, it starts forge with version 204.

--fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 25.0.204,

 

how can I tell the directory where my mod files are to use the latest version i installed

Edited by rgen
Link to comment
Share on other sites

On 5/15/2019 at 6:15 PM, LexManos said:

When you say "latest version" understand that that number changes as versions are released. When people ask about it, specify what EXACT version number you're using.

The errors you have been experiancing have been fixed in 205+ So..

Update

 

Oh! Thank you! I didn't know that.

 

Everything is working now ^-^

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • They were already updated, and just to double check I even did a cleanup and fresh update from that same page. I'm quite sure drivers are not the problem here. 
    • i tried downloading the drivers but it says no AMD graphics hardware has been detected    
    • Update your AMD/ATI drivers - get the drivers from their website - do not update via system  
    • As the title says i keep on crashing on forge 1.20.1 even without any mods downloaded, i have the latest drivers (nvidia) and vanilla minecraft works perfectly fine for me logs: https://pastebin.com/5UR01yG9
    • Hello everyone, I'm making this post to seek help for my modded block, It's a special block called FrozenBlock supposed to take the place of an old block, then after a set amount of ticks, it's supposed to revert its Block State, Entity, data... to the old block like this :  The problem I have is that the system breaks when handling multi blocks (I tried some fix but none of them worked) :  The bug I have identified is that the function "setOldBlockFields" in the item's "setFrozenBlock" function gets called once for the 1st block of multiblock getting frozen (as it should), but gets called a second time BEFORE creating the first FrozenBlock with the data of the 1st block, hence giving the same data to the two FrozenBlock :   Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=head] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@73681674 BlockEntityData : id:"minecraft:bed",x:3,y:-60,z:-6} Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=3, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=2, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} here is the code inside my custom "freeze" item :    @Override     public @NotNull InteractionResult useOn(@NotNull UseOnContext pContext) {         if (!pContext.getLevel().isClientSide() && pContext.getHand() == InteractionHand.MAIN_HAND) {             BlockPos blockPos = pContext.getClickedPos();             BlockPos secondBlockPos = getMultiblockPos(blockPos, pContext.getLevel().getBlockState(blockPos));             if (secondBlockPos != null) {                 createFrozenBlock(pContext, secondBlockPos);             }             createFrozenBlock(pContext, blockPos);             return InteractionResult.SUCCESS;         }         return super.useOn(pContext);     }     public static void createFrozenBlock(UseOnContext pContext, BlockPos blockPos) {         BlockState oldState = pContext.getLevel().getBlockState(blockPos);         BlockEntity oldBlockEntity = oldState.hasBlockEntity() ? pContext.getLevel().getBlockEntity(blockPos) : null;         CompoundTag oldBlockEntityData = oldState.hasBlockEntity() ? oldBlockEntity.serializeNBT() : null;         if (oldBlockEntity != null) {             pContext.getLevel().removeBlockEntity(blockPos);         }         BlockState FrozenBlock = setFrozenBlock(oldState, oldBlockEntity, oldBlockEntityData);         pContext.getLevel().setBlockAndUpdate(blockPos, FrozenBlock);     }     public static BlockState setFrozenBlock(BlockState blockState, @Nullable BlockEntity blockEntity, @Nullable CompoundTag blockEntityData) {         BlockState FrozenBlock = BlockRegister.FROZEN_BLOCK.get().defaultBlockState();         ((FrozenBlock) FrozenBlock.getBlock()).setOldBlockFields(blockState, blockEntity, blockEntityData);         return FrozenBlock;     }  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.