Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Faro

Members
  • Joined

  • Last visited

  1. how do I render my model?
  2. ok and how can I change the model there?
  3. I want to replace the Player Model with a new one.
  4. Ok thank you I made it like this and it works. @SubscribeEvent @OnlyIn(Dist.CLIENT) public static void RenderHUD(final RenderGameOverlayEvent event){ if (isRampage){ int screenColor = 0xfff00000; Minecraft mc = Minecraft.getInstance(); MatrixStack stack = event.getMatrixStack(); stack.pushPose(); int w = (mc.getWindow().getGuiScaledWidth()); int h = (mc.getWindow().getGuiScaledHeight()); float r = (float) (screenColor >> 16 & 255) / 255.0F; float g = (float) (screenColor >> 8 & 255) / 255.0F; float b = (float) (screenColor & 255) / 255.0F; float a = (1/ 100f) * (screenColor >> 24 & 255) / 255F; RenderSystem.disableTexture(); RenderSystem.enableBlend(); RenderSystem.disableAlphaTest(); RenderSystem.blendFuncSeparate(770, 771, 1, 0); RenderSystem.shadeModel(7425); Tessellator tessellator = Tessellator.getInstance(); Matrix4f matrix = stack.last().pose(); BufferBuilder worldrenderer = tessellator.getBuilder(); worldrenderer.begin(7, DefaultVertexFormats.POSITION_COLOR); worldrenderer.vertex(matrix, 0, h, mc.gui.getBlitOffset()).color(r, g, b, a).endVertex(); worldrenderer.vertex(matrix, w, h, mc.gui.getBlitOffset()).color(r, g, b, a).endVertex(); worldrenderer.vertex(matrix, w, 0, mc.gui.getBlitOffset()).color(r, g, b, a).endVertex(); worldrenderer.vertex(matrix, 0, 0, mc.gui.getBlitOffset()).color(r, g, b, a).endVertex(); tessellator.end(); RenderSystem.shadeModel(7424); RenderSystem.disableBlend(); RenderSystem.enableAlphaTest(); RenderSystem.enableTexture(); } }
  5. yeah but to use this code I need to make custom GUI and I don t know when to register it or when to call its methods
  6. I want to make a custom screen overlay. So when a boolean is true, I want that the screen to have a red overlay. I looked up in the IngameGui class and the renderPortalOverlay method but I don t know how to make a custom GUI
  7. My Block texture/model doesent get displayed. public static final RegistryObject<MjoelnirBlock> MJOELNIR_BLOCK = registerNoItem("mjoelnir_block",()-> new MjoelnirBlock(AbstractBlock.Properties.of(Material.HEAVY_METAL).strength(50,1200).noDrops())); my path is: src\main\resources\assets\farosvikingsmod\models\block and this is my json file: { "texture_size": [32, 32], "textures": { "0": "farosvikingsmod:block/mjoelnir_block", "particle": "farosvikingsmod:block/mjoelnir_block" }, "elements": [ { "name": "Box1", "from": [5.3, 3.875, 5.55], "to": [10.3, 6.4, 9.55], "faces": { "north": {"uv": [0, 0, 3, 2.75], "rotation": 180, "texture": "#0"}, "east": {"uv": [0, 0, 1.5, 1.5], "rotation": 270, "texture": "#0"}, "south": {"uv": [0, 0, 3, 2.75], "texture": "#0"}, "west": {"uv": [0, 0, 2.75, 3], "rotation": 90, "texture": "#0"}, "up": {"uv": [0, 0, 3, 3], "rotation": 180, "texture": "#0"}, "down": {"uv": [0, 0, 3, 3], "texture": "#0"} } }, { "name": "Box1", "from": [1.175, 1.5, 4.675], "to": [14.825, 5.5, 10.325], "faces": { "north": {"uv": [0, 0.5, 16, 7.5], "texture": "#0"}, "east": {"uv": [10.5, 0.5, 16, 7.5], "rotation": 90, "texture": "#0"}, "south": {"uv": [0, 0.5, 16, 7.5], "texture": "#0"}, "west": {"uv": [10.5, 0.5, 16, 7.5], "rotation": 270, "texture": "#0"}, "up": {"uv": [0, 0, 16, 2], "texture": "#0"}, "down": {"uv": [0, 6, 16, 8], "texture": "#0"} } }, { "name": "Box1", "from": [2, 1, 3.675], "to": [14, 6, 11.325], "faces": { "north": {"uv": [0, 0, 16, 1], "texture": "#0"}, "east": {"uv": [0, 0, 16, 8], "rotation": 90, "texture": "#0"}, "south": {"uv": [0, 4, 16, 8], "texture": "#0"}, "west": {"uv": [0, 0, 16, 8], "rotation": 270, "texture": "#0"}, "up": {"uv": [0, 0, 16, 6.5], "texture": "#0"}, "down": {"uv": [0, 0, 16, 6.5], "texture": "#0"} } }, { "name": "Box1", "from": [6.25, 6, 6.05], "to": [9.25, 15, 9.05], "faces": { "north": {"uv": [0, 8, 2.5, 15], "texture": "#0"}, "east": {"uv": [10, 8, 13, 15], "rotation": 90, "texture": "#0"}, "south": {"uv": [13, 8, 16, 15], "texture": "#0"}, "west": {"uv": [5, 8, 8, 15], "rotation": 270, "texture": "#0"}, "up": {"uv": [0, 8, 3, 15], "texture": "#0"}, "down": {"uv": [0, 15, 3, 8], "texture": "#0"} } }, { "name": "Box1", "from": [6, 14.5, 5.95], "to": [9.5, 16, 9.19], "faces": { "north": {"uv": [0, 0, 8, 5], "texture": "#0"}, "east": {"uv": [0, 0, 6.5, 3.5], "rotation": 90, "texture": "#0"}, "south": {"uv": [0, 0, 5, 4.5], "texture": "#0"}, "west": {"uv": [0, 0, 7, 3.5], "rotation": 270, "texture": "#0"}, "up": {"uv": [0, 5, 7, 8], "texture": "#0"}, "down": {"uv": [0, 0, 10.5, 4.5], "texture": "#0"} } }, { "name": "Box2", "from": [6, 13, 5.775], "to": [9.5, 13.5, 9.275], "faces": { "north": {"uv": [0, 15, 16, 16], "texture": "#0"}, "east": {"uv": [0, 15, 16, 16], "rotation": 90, "texture": "#0"}, "south": {"uv": [0, 15, 16, 16], "texture": "#0"}, "west": {"uv": [0, 15, 16, 16], "rotation": 270, "texture": "#0"}, "up": {"uv": [0, 15, 7, 16], "texture": "#0"}, "down": {"uv": [0, 15, 10, 16], "texture": "#0"} } }, { "name": "Box3", "from": [6, 11.5, 5.775], "to": [9.5, 12, 9.275], "faces": { "north": {"uv": [0, 15, 16, 16], "texture": "#0"}, "east": {"uv": [0, 15, 16, 16], "rotation": 90, "texture": "#0"}, "south": {"uv": [0, 15, 16, 16], "texture": "#0"}, "west": {"uv": [0, 15, 16, 16], "rotation": 270, "texture": "#0"}, "up": {"uv": [0, 15, 7, 16], "texture": "#0"}, "down": {"uv": [0, 15, 10, 16], "texture": "#0"} } }, { "name": "Box4", "from": [6, 10, 5.775], "to": [9.5, 10.5, 9.275], "faces": { "north": {"uv": [0, 15, 16, 16], "texture": "#0"}, "east": {"uv": [0, 15, 16, 16], "rotation": 90, "texture": "#0"}, "south": {"uv": [0, 15, 16, 16], "texture": "#0"}, "west": {"uv": [0, 15, 16, 16], "rotation": 270, "texture": "#0"}, "up": {"uv": [0, 15, 7, 16], "texture": "#0"}, "down": {"uv": [0, 15, 10, 16], "texture": "#0"} } }, { "name": "Box5", "from": [6, 8.5, 5.775], "to": [9.5, 9, 9.275], "faces": { "north": {"uv": [0, 15, 16, 16], "texture": "#0"}, "east": {"uv": [0, 15, 16, 16], "rotation": 90, "texture": "#0"}, "south": {"uv": [0, 15, 16, 16], "texture": "#0"}, "west": {"uv": [0, 15, 16, 16], "rotation": 270, "texture": "#0"}, "up": {"uv": [0, 15, 7, 16], "texture": "#0"}, "down": {"uv": [0, 15, 10, 16], "texture": "#0"} } }, { "name": "Box6", "from": [6, 7, 5.775], "to": [9.5, 7.5, 9.275], "faces": { "north": {"uv": [0, 15, 16, 16], "texture": "#0"}, "east": {"uv": [0, 15, 16, 16], "rotation": 90, "texture": "#0"}, "south": {"uv": [0, 15, 16, 16], "texture": "#0"}, "west": {"uv": [0, 15, 16, 16], "rotation": 270, "texture": "#0"}, "up": {"uv": [0, 15, 7, 16], "texture": "#0"}, "down": {"uv": [0, 15, 10, 16], "texture": "#0"} } }, { "from": [0, 0, 0], "to": [16, 1, 16], "color": 7, "faces": { "north": {"uv": [0, 0, 8, 0.5], "texture": "#missing"}, "east": {"uv": [0, 0, 8, 0.5], "texture": "#missing"}, "south": {"uv": [0, 0, 8, 0.5], "texture": "#missing"}, "west": {"uv": [0, 0, 8, 0.5], "texture": "#missing"}, "up": {"uv": [0, 0, 8, 8], "texture": "#missing"}, "down": {"uv": [0, 0, 8, 8], "texture": "#missing"} } } ], "groups": [ { "name": "hammer", "origin": [8, 8, 8], "color": 0, "children": [0, 1, 2] }, { "name": "stiel", "origin": [8, 8, 8], "color": 0, "children": [3, 4, 5, 6, 7, 8, 9] }, 10 ] }
  8. bruh this was a line that I forgot to comment out ok now it works
  9. [04Aug2021 18:40:29.126] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 36.1.0, --version, MOD_DEV, --assetIndex, 1.16, --assetsDir, C:\Users\Faro\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ????????, --userProperties, {}] [04Aug2021 18:40:29.132] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_291 by Oracle Corporation [04Aug2021 18:40:29.682] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [04Aug2021 18:40:29.723] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/C:/Users/Faro/.gradle/caches/modules-2/files-2.1/org.spongepowered/mixin/0.8.2/1cf212283d26f706fd3074318870bebd14d2a9ed/mixin-0.8.2.jar Service=ModLauncher Env=CLIENT [04Aug2021 18:40:31.531] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmluserdevclient' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\Faro\.gradle\caches\forge_gradle\assets, --assetIndex, 1.16, --username, Dev, --accessToken, ????????, --userProperties, {}] [04Aug2021 18:40:37.017] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [04Aug2021 18:40:37.701] [Render thread/ERROR] [net.minecraft.client.Minecraft/]: Failed to verify authentication com.mojang.authlib.exceptions.AuthenticationUnavailableException: null at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.checkPrivileges(YggdrasilSocialInteractionsService.java:97) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.<init>(YggdrasilSocialInteractionsService.java:40) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.createSocialInteractionsService(YggdrasilAuthenticationService.java:152) ~[authlib-2.1.28.jar:?] at net.minecraft.client.Minecraft.createSocialInteractions(Minecraft.java:551) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] at net.minecraft.client.Minecraft.<init>(Minecraft.java:383) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] at net.minecraft.client.main.Main.main(Main.java:149) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_291] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_291] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291] at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] [04Aug2021 18:40:37.709] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Dev [04Aug2021 18:40:37.804] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Backend library: LWJGL version 3.2.2 build 10 [04Aug2021 18:40:38.446] [modloading-worker-2/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 36.1.0, for MC 1.16.5 with MCP 20210115.111550 [04Aug2021 18:40:38.447] [modloading-worker-2/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v36.1.0 Initialized [04Aug2021 18:40:39.903] [Render thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded [04Aug2021 18:40:39.968] [Render thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, Mod Resources [04Aug2021 18:40:40.053] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [04Aug2021 18:40:40.436] [Render thread/WARN] [net.minecraftforge.common.ForgeHooks/]: Called deprecated GlobalEntityTypeAttributes#put for farosvikingsmod:freyr, use EntityAttributeCreationEvent instead. [04Aug2021 18:40:41.093] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Found status: OUTDATED Current: 36.1.0 Target: 36.2.0 [04Aug2021 18:40:42.605] [Worker-Main-11/INFO] [net.Faro.farosvikingsmod.FarosVikingsMod/]: Got game settings net.minecraft.client.GameSettings@4850a7a8 [04Aug2021 18:40:44.867] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'minecraft:brew_kettle' referenced from: farosvikingsmod:brew_kettle#facing=north: java.io.FileNotFoundException: minecraft:models/brew_kettle.json [04Aug2021 18:40:46.680] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'farosvikingsmod:freyr_spawn_egg#inventory' referenced from: farosvikingsmod:freyr_spawn_egg#inventory: java.io.FileNotFoundException: farosvikingsmod:models/item/freyr_spawn_egg.json [04Aug2021 18:40:46.693] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'minecraft:models/item/shield' referenced from: farosvikingsmod:copper_shield#inventory: java.io.FileNotFoundException: minecraft:models/models/item/shield.json [04Aug2021 18:40:46.694] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'farosvikingsmod:copper_pickaxe#inventory' referenced from: farosvikingsmod:copper_pickaxe#inventory: java.io.FileNotFoundException: farosvikingsmod:models/item/copper_pickaxe.json [04Aug2021 18:40:46.695] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'farosvikingsmod:copper_shovel#inventory' referenced from: farosvikingsmod:copper_shovel#inventory: java.io.FileNotFoundException: farosvikingsmod:models/item/copper_shovel.json [04Aug2021 18:40:46.699] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'minecraft:trident' referenced from: farosvikingsmod:mjoelnir#inventory: java.io.FileNotFoundException: minecraft:models/trident.json [04Aug2021 18:40:46.711] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'minecraft:hofund' referenced from: farosvikingsmod:hofund#inventory: java.io.FileNotFoundException: minecraft:models/hofund.json [04Aug2021 18:40:46.961] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to resolve texture reference: #missing in farosvikingsmod:item/hofund [04Aug2021 18:40:48.147] [Worker-Main-12/INFO] [net.Faro.farosvikingsmod.FarosVikingsMod/]: Hello world from the MDK [04Aug2021 18:40:48.147] [Worker-Main-12/INFO] [net.Faro.farosvikingsmod.FarosVikingsMod/]: Got IMC [Hello world] [04Aug2021 18:40:49.576] [Render thread/INFO] [net.minecraft.client.audio.SoundSystem/]: OpenAL initialized. [04Aug2021 18:40:49.577] [Render thread/INFO] [net.minecraft.client.audio.SoundEngine/SOUNDS]: Sound engine started [04Aug2021 18:40:49.891] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 jei:textures/atlas/gui.png-atlas [04Aug2021 18:40:49.893] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 2048x2048x0 minecraft:textures/atlas/blocks.png-atlas [04Aug2021 18:40:49.931] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x128x0 minecraft:textures/atlas/signs.png-atlas [04Aug2021 18:40:49.931] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x0 minecraft:textures/atlas/banner_patterns.png-atlas [04Aug2021 18:40:49.932] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x0 minecraft:textures/atlas/shield_patterns.png-atlas [04Aug2021 18:40:49.950] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/chest.png-atlas [04Aug2021 18:40:49.951] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x0 minecraft:textures/atlas/beds.png-atlas [04Aug2021 18:40:49.951] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x0 minecraft:textures/atlas/shulker_boxes.png-atlas [04Aug2021 18:40:50.625] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas [04Aug2021 18:40:50.627] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas [04Aug2021 18:40:50.627] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x128x0 minecraft:textures/atlas/mob_effects.png-atlas [04Aug2021 18:40:51.193] [Realms Notification Availability checker #1/INFO] [com.mojang.realmsclient.client.RealmsClient/]: Could not authorize you against Realms server: Invalid session id [04Aug2021 18:41:27.404] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498] [04Aug2021 18:41:27.405] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [04Aug2021 18:41:27.405] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0] [04Aug2021 18:41:27.406] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498] [04Aug2021 18:41:27.407] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [04Aug2021 18:41:27.410] [Render thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar, main, jei-1.16.3-7.+_mapped_official_1.16.5.jar [04Aug2021 18:41:28.267] [Render thread/INFO] [net.minecraft.item.crafting.RecipeManager/]: Loaded 7 recipes [04Aug2021 18:41:29.001] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 942 advancements [04Aug2021 18:41:29.548] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [04Aug2021 18:41:29.573] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Starting integrated minecraft server version 1.16.5 [04Aug2021 18:41:29.573] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Generating keypair [04Aug2021 18:41:29.658] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Configuration file .\saves\New World (63)\serverconfig\forge-server.toml is not correct. Correcting [04Aug2021 18:41:29.659] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server was corrected from null to its default, SimpleCommentedConfig:{}. [04Aug2021 18:41:29.659] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.removeErroringEntities was corrected from null to its default, false. [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.removeErroringTileEntities was corrected from null to its default, false. [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.fullBoundingBoxLadders was corrected from null to its default, false. [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.zombieBaseSummonChance was corrected from null to its default, 0.1. [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.zombieBabyChance was corrected from null to its default, 0.05. [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.logCascadingWorldGeneration was corrected from null to its default, true. [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.fixVanillaCascading was corrected from null to its default, false. [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.dimensionUnloadQueueDelay was corrected from null to its default, 0. [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.treatEmptyTagsAsAir was corrected from null to its default, false. [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.fixAdvancementLoading was corrected from null to its default, true. [04Aug2021 18:41:33.505] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Preparing start region for dimension minecraft:overworld [04Aug2021 18:41:33.569] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0% [04Aug2021 18:41:34.017] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0% [04Aug2021 18:41:34.531] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 2% [04Aug2021 18:41:35.023] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 6% [04Aug2021 18:41:35.526] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 9% [04Aug2021 18:41:36.021] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 12% [04Aug2021 18:41:36.518] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 16% [04Aug2021 18:41:37.023] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 19% [04Aug2021 18:41:37.522] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 20% [04Aug2021 18:41:38.021] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 26% [04Aug2021 18:41:38.521] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 29% [04Aug2021 18:41:39.016] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 33% [04Aug2021 18:41:39.516] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 36% [04Aug2021 18:41:40.015] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 40% [04Aug2021 18:41:40.521] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 43% [04Aug2021 18:41:41.016] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 48% [04Aug2021 18:41:41.514] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 51% [04Aug2021 18:41:42.031] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 56% [04Aug2021 18:41:42.527] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 59% [04Aug2021 18:41:43.022] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 64% [04Aug2021 18:41:43.538] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 68% [04Aug2021 18:41:44.013] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 72% [04Aug2021 18:41:44.565] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 76% [04Aug2021 18:41:45.021] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 81% [04Aug2021 18:41:45.516] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 85% [04Aug2021 18:41:46.029] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 88% [04Aug2021 18:41:46.542] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 93% [04Aug2021 18:41:47.018] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 97% [04Aug2021 18:41:47.221] [Server thread/INFO] [net.Faro.farosvikingsmod.FarosVikingsMod/]: HELLO from server starting [04Aug2021 18:41:47.228] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Time elapsed: 13716 ms [04Aug2021 18:41:47.406] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Changing view distance to 24, from 10 [04Aug2021 18:41:48.877] [Netty Local Client IO #0/INFO] [net.minecraftforge.fml.network.NetworkHooks/]: Connected to a modded server. [04Aug2021 18:41:48.892] [Server thread/INFO] [net.minecraftforge.common.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.advancements.PlayerAdvancements@b717c7e [04Aug2021 18:41:48.904] [Server thread/INFO] [net.minecraft.server.management.PlayerList/]: Dev[local:E:208e25df] logged in with entity id 120 at (210.5, 64.0, -107.5) [04Aug2021 18:41:48.930] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev joined the game [04Aug2021 18:41:49.236] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Starting JEI... [04Aug2021 18:41:49.431] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building ingredient list... [04Aug2021 18:41:49.436] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building ingredient list took 4.750 ms [04Aug2021 18:41:49.436] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building ingredient filter... [04Aug2021 18:41:49.585] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building ingredient filter took 149.2 ms [04Aug2021 18:41:49.585] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building bookmarks... [04Aug2021 18:41:49.586] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building bookmarks took 984.6 ?s [04Aug2021 18:41:49.586] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building recipe registry... [04Aug2021 18:41:49.624] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building recipe registry took 38.00 ms [04Aug2021 18:41:49.631] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building runtime... [04Aug2021 18:41:49.668] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building runtime took 36.96 ms [04Aug2021 18:41:49.679] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Starting JEI took 443.8 ms [04Aug2021 18:41:49.778] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 0 advancements [04Aug2021 18:41:50.017] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game... [04Aug2021 18:41:50.032] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld [04Aug2021 18:41:52.619] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether [04Aug2021 18:41:52.621] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end [04Aug2021 18:41:52.651] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 3579ms or 71 ticks behind [04Aug2021 18:42:06.968] [Render thread/FATAL] [net.minecraftforge.common.ForgeMod/]: Preparing crash report with UUID 69a2ce1c-d3b9-482d-97ca-30743f1b50f0 [04Aug2021 18:42:06.971] [Render thread/FATAL] [net.minecraft.client.Minecraft/]: Unreported exception thrown! java.lang.ClassCastException: net.minecraft.client.world.ClientWorld cannot be cast to net.minecraft.world.server.ServerWorld at net.Faro.farosvikingsmod.setup.Tools.HofundSword.use(HofundSword.java:26) ~[main/:?] at net.minecraft.item.ItemStack.use(ItemStack.java:217) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] at net.minecraft.client.multiplayer.PlayerController.useItem(PlayerController.java:328) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] at net.minecraft.client.Minecraft.startUseItem(Minecraft.java:1389) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] at net.minecraft.client.Minecraft.handleKeybinds(Minecraft.java:1645) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] at net.minecraft.client.Minecraft.tick(Minecraft.java:1460) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:953) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] at net.minecraft.client.Minecraft.run(Minecraft.java:607) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_291] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_291] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291] at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] [04Aug2021 18:42:08.137] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev has made the advancement [We Need to Go Deeper] [04Aug2021 18:42:08.232] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Stopping server [04Aug2021 18:42:08.233] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving players [04Aug2021 18:42:08.239] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler/]: Dev lost connection: Disconnected [04Aug2021 18:42:08.239] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev left the game [04Aug2021 18:42:08.246] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler/]: Stopping singleplayer server as player logged out [04Aug2021 18:42:08.246] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving worlds [04Aug2021 18:42:08.246] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld [04Aug2021 18:42:10.046] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (New World (63)): All chunks are saved [04Aug2021 18:42:10.046] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether [04Aug2021 18:42:10.066] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved [04Aug2021 18:42:10.066] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end [04Aug2021 18:42:10.068] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved [04Aug2021 18:42:10.084] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (New World (63)): All chunks are saved [04Aug2021 18:42:10.102] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved [04Aug2021 18:42:10.104] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved [04Aug2021 18:42:11.913] [Render thread/INFO] [STDOUT/]: [net.minecraft.util.registry.Bootstrap:realStdoutPrintln:123]: ---- Minecraft Crash Report ---- // Surprise! Haha. Well, this is awkward. Time: 04.08.21 18:42 Description: Unexpected error java.lang.ClassCastException: net.minecraft.client.world.ClientWorld cannot be cast to net.minecraft.world.server.ServerWorld at net.Faro.farosvikingsmod.setup.Tools.HofundSword.use(HofundSword.java:26) ~[main/:?] {re:classloading} at net.minecraft.item.ItemStack.use(ItemStack.java:217) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,xf:fml:forge:filled_map.4,xf:fml:forge:itemstack} at net.minecraft.client.multiplayer.PlayerController.useItem(PlayerController.java:328) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.startUseItem(Minecraft.java:1389) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.handleKeybinds(Minecraft.java:1645) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.tick(Minecraft.java:1460) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.runTick(Minecraft.java:953) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.run(Minecraft.java:607) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_291] {} at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_291] {} at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291] {} at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291] {} at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {} at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace: at net.Faro.farosvikingsmod.setup.Tools.HofundSword.use(HofundSword.java:26) ~[?:?] {re:classloading} at net.minecraft.item.ItemStack.use(ItemStack.java:217) ~[forge:?] {re:classloading,xf:fml:forge:filled_map.4,xf:fml:forge:itemstack} at net.minecraft.client.multiplayer.PlayerController.useItem(PlayerController.java:328) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.startUseItem(Minecraft.java:1389) ~[forge:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.handleKeybinds(Minecraft.java:1645) ~[forge:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} -- Affected level -- Details: All players: 1 total; [ClientPlayerEntity['Dev'/120, l='ClientLevel', x=214.05, y=65.00, z=-106.75]] Chunk stats: Client Chunk Cache: 3025, 779 Level dimension: minecraft:overworld Level spawn location: World: (208,64,-111), Chunk: (at 0,4,1 in 13,-7; contains blocks 208,0,-112 to 223,255,-97), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1) Level time: 322 game time, 322 day time Server brand: forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.world.ClientWorld.fillReportDetails(ClientWorld.java:447) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.fillReport(Minecraft.java:2029) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.run(Minecraft.java:628) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_291] {} at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_291] {} at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291] {} at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291] {} at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {} at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {} -- System Details -- Details: Minecraft Version: 1.16.5 Minecraft Version ID: 1.16.5 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_291, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 721832248 bytes (688 MB) / 2007498752 bytes (1914 MB) up to 3806855168 bytes (3630 MB) CPUs: 12 JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump ModLauncher: 8.0.9+86+master.3cf110c ModLauncher launch target: fmluserdevclient ModLauncher naming: mcp ModLauncher services: /mixin-0.8.2.jar mixin PLUGINSERVICE /eventbus-4.0.0.jar eventbus PLUGINSERVICE /forge-1.16.5-36.1.0_mapped_official_1.16.5-launcher.jar object_holder_definalize PLUGINSERVICE /forge-1.16.5-36.1.0_mapped_official_1.16.5-launcher.jar runtime_enum_extender PLUGINSERVICE /accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE /forge-1.16.5-36.1.0_mapped_official_1.16.5-launcher.jar capability_inject_definalize PLUGINSERVICE /forge-1.16.5-36.1.0_mapped_official_1.16.5-launcher.jar runtimedistcleaner PLUGINSERVICE /mixin-0.8.2.jar mixin TRANSFORMATIONSERVICE /forge-1.16.5-36.1.0_mapped_official_1.16.5-launcher.jar fml TRANSFORMATIONSERVICE FML: 36.1 Forge: net.minecraftforge:36.1.0 FML Language Providers: [email protected] minecraft@1 Mod List: client-extra.jar |Minecraft |minecraft |1.16.5 |DONE |a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.|Forge |forge |36.1.0 |DONE |NOSIGNATURE main |Faros Vikings Mod |farosvikingsmod |NONE |DONE |NOSIGNATURE jei-1.16.3-7.+_mapped_official_1.16.5.jar |Just Enough Items |jei |7.6.0.50 |DONE |NOSIGNATURE Crash Report UUID: 69a2ce1c-d3b9-482d-97ca-30743f1b50f0 Launched Version: MOD_DEV Backend library: LWJGL version 3.2.2 build 10 Backend API: GeForce GTX 980/PCIe/SSE2 GL version 4.6.0 NVIDIA 461.92, NVIDIA Corporation GL Caps: Using framebuffer using OpenGL 3.0 Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'forge' Type: Client (map_client.txt) Graphics mode: fast Resource Packs: Current Language: English (US) CPU: 12x AMD Ryzen 5 2600 Six-Core Processor [04Aug2021 18:42:11.916] [Render thread/INFO] [STDOUT/]: [net.minecraft.util.registry.Bootstrap:realStdoutPrintln:123]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Faro\Desktop\Faros-Vikings-Mod-1.16.5\Faros-Vikings-Mod-1.16.x\run\.\crash-reports\crash-2021-08-04_18.42.11-client.txt
  10. Unreported exception thrown! java.lang.ClassCastException: net.minecraft.client.world.ClientWorld cannot be cast to net.minecraft.world.server.ServerWorld But I looked it up in the EndPortal class and its done the same way
  11. Each time I am using my item, the game crashes. Thats my code: @Override public ActionResult<ItemStack> use(World world, PlayerEntity player, Hand hand) { if (!world.isClientSide() && !player.isPassenger() && !player.isVehicle() && player.canChangeDimensions()) { RegistryKey<World> registrykey = world.dimension() == World.NETHER ? World.OVERWORLD : World.NETHER; ServerWorld serverworld = world.getServer().getLevel(registrykey); if (serverworld != null) { player.handleInsidePortal(player.blockPosition()); player.changeDimension(serverworld,teleporter); return ActionResult.success(player.getItemInHand(hand)); } } return ActionResult.fail(player.getItemInHand(hand)); }
  12. okay but weight has to be an int so I cannot make it smaller than 1 and if I change it to 1 its still 5x bigger than it should
  13. @Mod.EventBusSubscriber(modid = FarosVikingsMod.modID, bus = Mod.EventBusSubscriber.Bus.MOD) public class BiomeInit { public static final RegistryObject<Biome> FJORD_BEACH_BIOME = Registration.BIOMES.register("fjord_beach_biome", FjordBeachBiome::fjordBeachBiome); public static final RegistryObject<Biome> FJORD_BIOME = Registration.BIOMES.register("fjord_biome",FjordBiome::FjBiome); public static void register(){ } @SubscribeEvent public static void setupBiomes(FMLCommonSetupEvent event) { event.enqueueWork(() -> setupBiome(FJORD_BIOME.get(), BiomeManager.BiomeType.COOL, 100000, BiomeDictionary.Type.OVERWORLD, BiomeDictionary.Type.COLD, BiomeDictionary.Type.MOUNTAIN, BiomeDictionary.Type.HILLS) ); event.enqueueWork(()-> setupBiome(FJORD_BEACH_BIOME.get(),BiomeManager.BiomeType.WARM, 10000, BiomeDictionary.Type.OVERWORLD, BiomeDictionary.Type.BEACH) ); } private static void setupBiome(Biome biome, BiomeManager.BiomeType type, int weight, BiomeDictionary.Type... types) { RegistryKey<Biome> key = RegistryKey.create( ForgeRegistries.Keys.BIOMES, Objects.requireNonNull(ForgeRegistries.BIOMES.getKey(biome)) ); BiomeDictionary.addTypes(key, types); BiomeManager.addBiome(type, new BiomeManager.BiomeEntry(key, weight)); } } And this is the DeferredRegister: public static final DeferredRegister<Biome> BIOMES = DeferredRegister.create(ForgeRegistries.BIOMES, FarosVikingsMod.modID); public static void register(){ IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); BIOMES.register(modEventBus);
  14. I have trouble with creating a biome that is as big or a little bit bigger than a Beach Biome. And I have put the .scale to 0.00f but it is still very big. Here is my Biome class: public class FjordBeachBiome { public static Biome fjordBeachBiome(){ BiomeGenerationSettings generationSettings = new BiomeGenerationSettings.Builder() .surfaceBuilder(SurfaceBuilder.DEFAULT.configured(SurfaceBuilder.CONFIG_GRASS)) .addCarver(GenerationStage.Carving.AIR, ConfiguredCarvers.CAVE) .addFeature(GenerationStage.Decoration.LAKES, Features.LAKE_WATER) .addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Features.ORE_COAL) .addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Features.ORE_IRON) .addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Features.ORE_GOLD) .addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Features.ORE_REDSTONE) .addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Features.ORE_DIAMOND) .addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Features.ORE_LAPIS) .addStructureStart(StructureFeatures.MINESHAFT) .addStructureStart(StructureFeatures.STRONGHOLD) .addFeature(GenerationStage.Decoration.SURFACE_STRUCTURES, Features.WELL) // .addFeature(GenerationStage.Decoration.VEGETAL_DECORATION,Features.PATCH_GRASS_TAIGA) //.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Features.TAIGA_VEGETATION) // .addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Features.TREES_GIANT_SPRUCE) .build(); MobSpawnInfo mobSpawnInfo = new MobSpawnInfo.Builder() .addSpawn(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(ModEntities.FREYR.get(), 10, 2, 4)) .addSpawn(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(EntityType.COW,5, 2, 5)) .addSpawn(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(EntityType.SHEEP, 5,2,5)) .addSpawn(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(EntityType.PIG, 5,2,5)) .addSpawn(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(EntityType.CHICKEN,5 , 2,3)) .addSpawn(EntityClassification.WATER_CREATURE, new MobSpawnInfo.Spawners(EntityType.COD, 15, 3 ,5)) .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.SPIDER, 100, 4, 4)) .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.ZOMBIE, 100, 4, 4)) .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.ZOMBIE_VILLAGER, 5, 1, 1)) .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.SKELETON, 100, 4, 4)) .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.CREEPER, 100, 4, 4)) .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.SLIME, 100, 4, 4)) .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.ENDERMAN, 10, 1, 4)) .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.WITCH, 5, 1, 1)) . build(); BiomeAmbience ambience = new BiomeAmbience.Builder() .waterColor(0x169c9d) .waterFogColor(0x169c9d) .fogColor(0xf7f7f7) .skyColor(0x4085f5) .build(); return new Biome.Builder() .generationSettings(generationSettings) .specialEffects(ambience) .mobSpawnSettings(mobSpawnInfo) .biomeCategory(Biome.Category.BEACH) .temperatureAdjustment(Biome.TemperatureModifier.NONE) .depth(0.12f) .scale(0.00f) .precipitation(Biome.RainType.RAIN) .temperature(0.5f) .downfall(0.4f) .build(); } }
  15. Ok Thanks it worked.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.