Posted April 20, 20196 yr Hello, so after my last post I succesfully created a void dimension, only problem is that if I try to teleport to it (Using an item that has an onItemRightClick event that executes player.ChangeDimension(2)) the game freezes in the loading screen and gives me an NullPointerException. However if I were to restart the game I'd appear in the dimension totally fine! Here is the error: com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:79) ~[YggdrasilAuthenticationService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) [YggdrasilMinecraftSessionService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) [YggdrasilMinecraftSessionService$1.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) [YggdrasilMinecraftSessionService$1.class:?] at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716) [guava-21.0.jar:?] at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424) [guava-21.0.jar:?] at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298) [guava-21.0.jar:?] at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211) [guava-21.0.jar:?] at com.google.common.cache.LocalCache.get(LocalCache.java:4154) [guava-21.0.jar:?] at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158) [guava-21.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147) [guava-21.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153) [guava-21.0.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) [YggdrasilMinecraftSessionService.class:?] at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3181) [Minecraft.class:?] at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:138) [SkinManager$3.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_131] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131] [20:08:11] [main/INFO] [STDOUT]: [com.linesix.akhaten.items.gadgets.VortexManipulator:onItemRightClick:25]: VortexManipulater used by player EntityPlayerSP['Player320'/161, l='MpServer', x=-268.00, y=57.00, z=278.00] [20:08:12] [Server thread/INFO] [STDOUT]: [com.linesix.akhaten.items.gadgets.VortexManipulator:onItemRightClick:25]: VortexManipulater used by player EntityPlayerMP['Player320'/161, l='Test', x=-268.00, y=57.00, z=278.00] [20:08:13] [Server thread/FATAL] [minecraft/MinecraftServer]: Error executing task java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_131] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_131] at net.minecraft.util.Util.runTask(Util.java:54) [Util.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:798) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:743) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:192) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:592) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131] Caused by: java.lang.NullPointerException at net.minecraft.world.Teleporter.placeInExistingPortal(Teleporter.java:136) ~[Teleporter.class:?] at net.minecraft.world.Teleporter.placeInPortal(Teleporter.java:36) ~[Teleporter.class:?] at net.minecraft.world.Teleporter.placeEntity(Teleporter.java:443) ~[Teleporter.class:?] at net.minecraft.server.management.PlayerList.transferEntityToWorld(PlayerList.java:762) ~[PlayerList.class:?] at net.minecraft.server.management.PlayerList.transferPlayerToDimension(PlayerList.java:662) ~[PlayerList.class:?] at net.minecraft.entity.player.EntityPlayerMP.changeDimension(EntityPlayerMP.java:745) ~[EntityPlayerMP.class:?] at net.minecraft.entity.Entity.changeDimension(Entity.java:2911) ~[Entity.class:?] at com.linesix.akhaten.items.gadgets.VortexManipulator.onItemRightClick(VortexManipulator.java:30) ~[VortexManipulator.class:?] at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:234) ~[ItemStack.class:?] at net.minecraft.server.management.PlayerInteractionManager.processRightClick(PlayerInteractionManager.java:384) ~[PlayerInteractionManager.class:?] at net.minecraft.network.NetHandlerPlayServer.processTryUseItem(NetHandlerPlayServer.java:796) ~[NetHandlerPlayServer.class:?] at net.minecraft.network.play.client.CPacketPlayerTryUseItem.processPacket(CPacketPlayerTryUseItem.java:43) ~[CPacketPlayerTryUseItem.class:?] at net.minecraft.network.play.client.CPacketPlayerTryUseItem.processPacket(CPacketPlayerTryUseItem.java:9) ~[CPacketPlayerTryUseItem.class:?] at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:21) ~[PacketThreadUtil$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_131] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_131] at net.minecraft.util.Util.runTask(Util.java:53) ~[Util.class:?] ... 5 more And my registry code package com.linesix.akhaten.dimensions; import com.linesix.akhaten.Reference; import com.linesix.akhaten.dimensions.worldproviders.WorldProviderTardis; import com.linesix.akhaten.dimensions.worldtypes.WorldTypeTardis; import net.minecraft.world.DimensionType; import net.minecraft.world.WorldType; import net.minecraft.world.biome.Biome; import net.minecraft.world.gen.ChunkGeneratorEnd; import net.minecraft.world.gen.ChunkGeneratorHell; import net.minecraftforge.common.DimensionManager; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import java.util.ArrayList; import java.util.List; @Mod.EventBusSubscriber(modid = Reference.MODID) public class Dimensions { public static int ID_TARDIS = 2; public static final String TARDIS_NAME = "tardis"; public static DimensionType TARDIS_DIM = DimensionType.register(TARDIS_NAME, "_"+TARDIS_NAME, ID_TARDIS, WorldProviderTardis.class, true); public static WorldType WT_TARDIS = new WorldTypeTardis(); private static List<Biome> BIOMES = new ArrayList<>(); public static final void registerDimensions() { DimensionManager.registerDimension(ID_TARDIS, TARDIS_DIM); } }
April 21, 20196 yr Author Sorry for the late reply, but heres the line in the VortexManipulatorClass player.changeDimension(Dimensions.ID_TARDIS);
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.