Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Faro

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by Faro

  1. bruh this was a line that I forgot to comment out ok now it works
  2. [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: javafml@36.1 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
  3. 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
  4. 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)); }
  5. 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
  6. @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);
  7. 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(); } }
  8. I am very sorry for being so dumb but I cannot find the wright fields. I tried with getHead but it didnt change anything and for the other like getBody ...
  9. Body = this.body; Body.setPos(0.0F, -24.0F, 0.0F); Loki.addChild(Body); Body.texOffs(16, 16).addBox(-4.0F, 0.0F, -2.0F, 8.0F, 12.0F, 4.0F, 1.01F, false); Like this?
  10. I don t know what this means or what I should do now
  11. So in my getArmorModel I only should write LokiModel model = new LokiModel(1.0f); and return (A) model ? And in my Model class I should remove the if statements?
  12. It references the RightArm So the ModelRenderer RightArm of the code
  13. public LokiModel(float p_i1148_1_) { super(p_i1148_1_); texWidth = 64; texHeight = 64; Loki = new ModelRenderer(this); Loki.setPos(0.0F, 24.0F, 0.0F); cube_r1 = new ModelRenderer(this); cube_r1.setPos(0.0F, 0.0F, 0.0F); Loki.addChild(cube_r1); setRotationAngle(cube_r1, 0.3054F, 0.0F, 0.0F); cube_r1.texOffs(34, 38).addBox(-5.0F, -23.0F, 10.0F, 10.0F, 15.0F, 1.0F, 0.0F, false); Head = new ModelRenderer(this); Head.setPos(0.0F, -24.0F, 0.0F); Loki.addChild(Head); Head.texOffs(0, 0).addBox(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, 1.0F, false); Head.texOffs(32, 0).addBox(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, 1.5F, false); hornV1 = new ModelRenderer(this); hornV1.setPos(2.0F, 26.0F, 0.0F); Head.addChild(hornV1); setRotationAngle(hornV1, -3.1416F, -1.309F, 3.1416F); hornV1.texOffs(9, 0).addBox(-3.5F, -36.0F, -2.0F, 3.0F, 1.0F, 3.0F, 0.0F, false); cube_r2 = new ModelRenderer(this); cube_r2.setPos(3.2132F, -39.5353F, -0.5F); hornV1.addChild(cube_r2); setRotationAngle(cube_r2, 0.0F, -0.5672F, -0.6981F); cube_r2.texOffs(9, 0).addBox(-6.5F, -7.0F, 2.25F, 2.0F, 7.0F, 1.0F, 0.0F, false); cube_r2.texOffs(9, 0).addBox(-6.5F, -7.0F, 4.0F, 2.0F, 7.0F, 1.0F, 0.0F, false); cube_r3 = new ModelRenderer(this); cube_r3.setPos(3.075F, -40.311F, -0.5F); hornV1.addChild(cube_r3); setRotationAngle(cube_r3, 0.0F, 0.0F, 0.7854F); cube_r3.texOffs(9, 0).addBox(-8.875F, -1.25F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false); cube_r4 = new ModelRenderer(this); cube_r4.setPos(3.1719F, -40.3345F, -0.5F); hornV1.addChild(cube_r4); setRotationAngle(cube_r4, 0.0F, 0.0F, 0.3491F); cube_r4.texOffs(9, 0).addBox(-9.5F, -0.75F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false); cube_r5 = new ModelRenderer(this); cube_r5.setPos(3.2132F, -39.5353F, -0.5F); hornV1.addChild(cube_r5); setRotationAngle(cube_r5, 0.0F, 0.0F, -0.6981F); cube_r5.texOffs(9, 0).addBox(-7.5F, -7.0F, -1.0F, 2.0F, 7.0F, 2.0F, 0.0F, false); hornV2 = new ModelRenderer(this); hornV2.setPos(-3.0F, 26.0F, 0.0F); Head.addChild(hornV2); setRotationAngle(hornV2, 0.0F, -1.1781F, 0.0F); hornV2.texOffs(11, 0).addBox(-3.5F, -36.0F, -2.0F, 3.0F, 1.0F, 3.0F, 0.0F, false); cube_r6 = new ModelRenderer(this); cube_r6.setPos(3.2132F, -39.5353F, -0.5F); hornV2.addChild(cube_r6); setRotationAngle(cube_r6, 0.0F, -0.5672F, -0.6981F); cube_r6.texOffs(11, 0).addBox(-6.5F, -7.0F, 2.25F, 2.0F, 7.0F, 1.0F, 0.0F, false); cube_r6.texOffs(11, 0).addBox(-6.5F, -7.0F, 4.0F, 2.0F, 7.0F, 1.0F, 0.0F, false); cube_r7 = new ModelRenderer(this); cube_r7.setPos(3.075F, -40.311F, -0.5F); hornV2.addChild(cube_r7); setRotationAngle(cube_r7, 0.0F, 0.0F, 0.7854F); cube_r7.texOffs(11, 0).addBox(-8.875F, -1.25F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false); cube_r8 = new ModelRenderer(this); cube_r8.setPos(3.1719F, -40.3345F, -0.5F); hornV2.addChild(cube_r8); setRotationAngle(cube_r8, 0.0F, 0.0F, 0.3491F); cube_r8.texOffs(11, 0).addBox(-9.5F, -0.75F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false); cube_r9 = new ModelRenderer(this); cube_r9.setPos(3.2132F, -39.5353F, -0.5F); hornV2.addChild(cube_r9); setRotationAngle(cube_r9, 0.0F, 0.0F, -0.6981F); cube_r9.texOffs(11, 0).addBox(-7.5F, -7.0F, -1.0F, 2.0F, 7.0F, 2.0F, 0.0F, false); LeftLeg = new ModelRenderer(this); LeftLeg.setPos(1.9F, -12.0F, 0.0F); Loki.addChild(LeftLeg); LeftLeg.texOffs(0, 16).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, true); RightLeg = new ModelRenderer(this); RightLeg.setPos(-1.9F, -12.0F, 0.0F); Loki.addChild(RightLeg); RightLeg.texOffs(0, 16).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, false); LeftArm = new ModelRenderer(this); LeftArm.setPos(5.0F, -22.0F, 0.0F); Loki.addChild(LeftArm); LeftArm.texOffs(40, 15).addBox(-1.0F, -2.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, true); RightArm = new ModelRenderer(this); RightArm.setPos(-5.0F, -22.0F, 0.0F); Loki.addChild(RightArm); RightArm.texOffs(40, 15).addBox(-3.0F, -2.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, false); Body = new ModelRenderer(this); Body.setPos(0.0F, -24.0F, 0.0F); Loki.addChild(Body); Body.texOffs(16, 16).addBox(-4.0F, 0.0F, -2.0F, 8.0F, 12.0F, 4.0F, 1.01F, false); if (LokiBootsArmorItem.Head) { Head.visible = true; } else { Head.visible = false; } if (LokiBootsArmorItem.Body) { Body.visible = true; RightArm.visible = true; LeftArm.visible = true; } else{ Body.visible = false; RightArm.visible = false; LeftArm.visible = false; } if (LokiBootsArmorItem.Leggings){ LeftLeg.visible = true; RightLeg.visible = true; }else { LeftLeg.visible = false; RightLeg.visible = false; } }
  14. I am using the existing ones. the second code is of the main class of my Model so I am not using Lokimodel.body, I am using the original Body of my model. And for the @OnlyIn, where should I put it, because you said that declaring my model would break servers...
  15. ok so I fixed this error in a bit stupid way I think... but it works. But there is still the error with the rotation and animation stuff public static boolean Head; public static boolean Body; public static boolean Leggings; @SuppressWarnings("unchecked") @OnlyIn(Dist.CLIENT) @Override public <A extends BipedModel<?>> A getArmorModel(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlotType armorSlot, A _default) { LokiModel model = new LokiModel(1.0f); switch(slot) { case HEAD: Head = true; Body = false; Leggings = false; break; case CHEST: Head = false; Body = true; Leggings = false; break; case LEGS: Head = false; Leggings = true; Body = false; break; case FEET: Head = false; Body = false; Leggings = true; } model.young = _default.young; model.crouching = _default.crouching; model.riding = _default.riding; model.rightArmPose = _default.rightArmPose; model.leftArmPose = _default.leftArmPose; return (A) model; } and I put this in my model class: if (LokiBootsArmorItem.Head) { Head.visible = true; } else { Head.visible = false; } if (LokiBootsArmorItem.Body) { Body.visible = true; RightArm.visible = true; LeftArm.visible = true; } else{ Body.visible = false; RightArm.visible = false; LeftArm.visible = false; } if (LokiBootsArmorItem.Leggings){ LeftLeg.visible = true; RightLeg.visible = true; }else { LeftLeg.visible = false; RightLeg.visible = false; }
  16. What is the proper field for model visibilities in ArmorItem?
  17. But I have still the same problem as before. The Model is fully rendered also if I only put one item in my slot...
  18. Ok I removed all the model visibillities settings. Could I replace "LokiModel model = new LokiModel(1f);" with "BipedModel model = new LokiModel(1f);" ?
  19. I am not sure what you meant with your first point but I changed this things and it didn t change anything. public class LokiArmorItem extends ArmorItem{ LokiModel model = new LokiModel(1f); private static final String TEXTURE = FarosVikingsMod.modID + ":textures/armor/loki.png"; public LokiArmorItem(IArmorMaterial p_i48534_1_, EquipmentSlotType slot, Properties p_i48534_3_) { super(p_i48534_1_, slot, p_i48534_3_); } @SuppressWarnings("unchecked") @Nullable @Override public <A extends BipedModel<?>> A getArmorModel(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlotType slot, A _default) { model.setAllVisible(false); switch(slot) { case HEAD: model.head.visible = true; model.hat.visible = true; break; case CHEST: model.body.visible = true; model.rightArm.visible = true; model.leftArm.visible = true; break; case LEGS: model.body.visible = true; model.rightLeg.visible = true; model.leftLeg.visible = true; break; case FEET: model.rightLeg.visible = true; model.leftLeg.visible = true; } model.young = _default.young; model.riding = _default.riding; model.crouching = _default.crouching; model.rightArmPose = _default.rightArmPose; model.leftArmPose = _default.leftArmPose; return (A) model; } @Override public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType slot, String type) { return TEXTURE; } }
  20. I have some trouble with redering my ArmorModel. It renderes my whole armor, also if there is only one item in my armorslot. And my armor doesen t react on basic animation like hit somethink or walk. Also if the player turns his head, the armor doesn t turn with him. Here is my code: ArmorItem: public class LokiArmorItem extends ArmorItem{ private static final String TEXTURE = FarosVikingsMod.modID + ":textures/armor/loki.png"; public LokiArmorItem(IArmorMaterial p_i48534_1_, EquipmentSlotType p_i48534_2_, Properties p_i48534_3_) { super(p_i48534_1_, p_i48534_2_, p_i48534_3_); } @SuppressWarnings("unchecked") @Nullable @Override public <A extends BipedModel<?>> A getArmorModel(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlotType slot, A _default) { LokiModel model = (slot == EquipmentSlotType.LEGS ? new LokiModel(0.5f) : new LokiModel(1f)); model.head.visible = slot == EquipmentSlotType.HEAD; model.hat.visible = slot == EquipmentSlotType.HEAD; model.body.visible = (slot == EquipmentSlotType.CHEST); model.rightArm.visible = slot == EquipmentSlotType.CHEST; model.leftArm.visible = slot == EquipmentSlotType.CHEST; model.rightLeg.visible = (slot == EquipmentSlotType.LEGS) || (slot == EquipmentSlotType.FEET); model.leftLeg.visible = (slot == EquipmentSlotType.LEGS) || (slot == EquipmentSlotType.FEET); model.young = _default.young; model.crouching = _default.crouching; model.riding = _default.riding; model.rightArmPose = _default.rightArmPose; model.leftArmPose = _default.leftArmPose; return (A) model; } @Override public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType slot, String type) { return TEXTURE; } } ArmorModel: @OnlyIn(Dist.CLIENT) public class LokiModel extends BipedModel<LivingEntity>{ private final ModelRenderer Loki; private final ModelRenderer cube_r1; private final ModelRenderer Head; private final ModelRenderer hornV1; private final ModelRenderer cube_r2; private final ModelRenderer cube_r3; private final ModelRenderer cube_r4; private final ModelRenderer cube_r5; private final ModelRenderer hornV2; private final ModelRenderer cube_r6; private final ModelRenderer cube_r7; private final ModelRenderer cube_r8; private final ModelRenderer cube_r9; private final ModelRenderer LeftLeg; private final ModelRenderer RightLeg; private final ModelRenderer LeftArm; private final ModelRenderer RightArm; private final ModelRenderer Body; public LokiModel(float p_i1148_1_) { super(p_i1148_1_); texWidth = 64; texHeight = 64; Loki = new ModelRenderer(this); Loki.setPos(0.0F, 24.0F, 0.0F); cube_r1 = new ModelRenderer(this); cube_r1.setPos(0.0F, 0.0F, 0.0F); Loki.addChild(cube_r1); setRotationAngle(cube_r1, 0.3054F, 0.0F, 0.0F); cube_r1.texOffs(34, 38).addBox(-5.0F, -23.0F, 10.0F, 10.0F, 15.0F, 1.0F, 0.0F, false); Head = new ModelRenderer(this); Head.setPos(0.0F, -24.0F, 0.0F); Loki.addChild(Head); Head.texOffs(0, 0).addBox(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, 1.0F, false); Head.texOffs(32, 0).addBox(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, 1.5F, false); hornV1 = new ModelRenderer(this); hornV1.setPos(2.0F, 26.0F, 0.0F); Head.addChild(hornV1); setRotationAngle(hornV1, -3.1416F, -1.309F, 3.1416F); hornV1.texOffs(9, 0).addBox(-3.5F, -36.0F, -2.0F, 3.0F, 1.0F, 3.0F, 0.0F, false); cube_r2 = new ModelRenderer(this); cube_r2.setPos(3.2132F, -39.5353F, -0.5F); hornV1.addChild(cube_r2); setRotationAngle(cube_r2, 0.0F, -0.5672F, -0.6981F); cube_r2.texOffs(9, 0).addBox(-6.5F, -7.0F, 2.25F, 2.0F, 7.0F, 1.0F, 0.0F, false); cube_r2.texOffs(9, 0).addBox(-6.5F, -7.0F, 4.0F, 2.0F, 7.0F, 1.0F, 0.0F, false); cube_r3 = new ModelRenderer(this); cube_r3.setPos(3.075F, -40.311F, -0.5F); hornV1.addChild(cube_r3); setRotationAngle(cube_r3, 0.0F, 0.0F, 0.7854F); cube_r3.texOffs(9, 0).addBox(-8.875F, -1.25F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false); cube_r4 = new ModelRenderer(this); cube_r4.setPos(3.1719F, -40.3345F, -0.5F); hornV1.addChild(cube_r4); setRotationAngle(cube_r4, 0.0F, 0.0F, 0.3491F); cube_r4.texOffs(9, 0).addBox(-9.5F, -0.75F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false); cube_r5 = new ModelRenderer(this); cube_r5.setPos(3.2132F, -39.5353F, -0.5F); hornV1.addChild(cube_r5); setRotationAngle(cube_r5, 0.0F, 0.0F, -0.6981F); cube_r5.texOffs(9, 0).addBox(-7.5F, -7.0F, -1.0F, 2.0F, 7.0F, 2.0F, 0.0F, false); hornV2 = new ModelRenderer(this); hornV2.setPos(-3.0F, 26.0F, 0.0F); Head.addChild(hornV2); setRotationAngle(hornV2, 0.0F, -1.1781F, 0.0F); hornV2.texOffs(11, 0).addBox(-3.5F, -36.0F, -2.0F, 3.0F, 1.0F, 3.0F, 0.0F, false); cube_r6 = new ModelRenderer(this); cube_r6.setPos(3.2132F, -39.5353F, -0.5F); hornV2.addChild(cube_r6); setRotationAngle(cube_r6, 0.0F, -0.5672F, -0.6981F); cube_r6.texOffs(11, 0).addBox(-6.5F, -7.0F, 2.25F, 2.0F, 7.0F, 1.0F, 0.0F, false); cube_r6.texOffs(11, 0).addBox(-6.5F, -7.0F, 4.0F, 2.0F, 7.0F, 1.0F, 0.0F, false); cube_r7 = new ModelRenderer(this); cube_r7.setPos(3.075F, -40.311F, -0.5F); hornV2.addChild(cube_r7); setRotationAngle(cube_r7, 0.0F, 0.0F, 0.7854F); cube_r7.texOffs(11, 0).addBox(-8.875F, -1.25F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false); cube_r8 = new ModelRenderer(this); cube_r8.setPos(3.1719F, -40.3345F, -0.5F); hornV2.addChild(cube_r8); setRotationAngle(cube_r8, 0.0F, 0.0F, 0.3491F); cube_r8.texOffs(11, 0).addBox(-9.5F, -0.75F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false); cube_r9 = new ModelRenderer(this); cube_r9.setPos(3.2132F, -39.5353F, -0.5F); hornV2.addChild(cube_r9); setRotationAngle(cube_r9, 0.0F, 0.0F, -0.6981F); cube_r9.texOffs(11, 0).addBox(-7.5F, -7.0F, -1.0F, 2.0F, 7.0F, 2.0F, 0.0F, false); LeftLeg = new ModelRenderer(this); LeftLeg.setPos(1.9F, -12.0F, 0.0F); Loki.addChild(LeftLeg); LeftLeg.texOffs(0, 16).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, true); RightLeg = new ModelRenderer(this); RightLeg.setPos(-1.9F, -12.0F, 0.0F); Loki.addChild(RightLeg); RightLeg.texOffs(0, 16).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, false); LeftArm = new ModelRenderer(this); LeftArm.setPos(5.0F, -22.0F, 0.0F); Loki.addChild(LeftArm); LeftArm.texOffs(40, 15).addBox(-1.0F, -2.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, true); RightArm = new ModelRenderer(this); RightArm.setPos(-5.0F, -22.0F, 0.0F); Loki.addChild(RightArm); RightArm.texOffs(40, 15).addBox(-3.0F, -2.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, false); Body = new ModelRenderer(this); Body.setPos(0.0F, -24.0F, 0.0F); Loki.addChild(Body); Body.texOffs(16, 16).addBox(-4.0F, 0.0F, -2.0F, 8.0F, 12.0F, 4.0F, 1.01F, false); } @Override public void renderToBuffer(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha){ Loki.render(matrixStack, buffer, packedLight, packedOverlay); } public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) { modelRenderer.xRot = x; modelRenderer.yRot = y; modelRenderer.zRot = z; } } for the armormaterial I tried both an Enum ArmorMaterial and a class that extends my ArmorItem with an AmorMaterial in it: public enum LokiArmor implements IArmorMaterial { LOKI_ARMOR("loki", 7, new int[]{7, 9, 10, 6}, 17, SoundEvents.ARMOR_EQUIP_LEATHER,2f, 0.1f,()-> Ingredient.of(ModItems.COPPER_INGOT.get())); private static final int[] baseDurability = {128, 144, 160, 112}; private final String name; private final int durability; private final int[] armorVal; private final int enchantability; private final SoundEvent equipSound; private final float toughniss; private final float knockBackResistance; private final Ingredient repairMaterial; LokiArmor(String name, int durability, int[] armorVal, int enchantability, SoundEvent equipSound, float toughniss, float knockBackResistance, Supplier<Ingredient> repairMaterial) { this.name = name; this.durability = durability; this.armorVal = armorVal; this.enchantability = enchantability; this.equipSound = equipSound; this.toughniss = toughniss; this.knockBackResistance = knockBackResistance; this.repairMaterial = repairMaterial.get(); } @Override public int getDurabilityForSlot(EquipmentSlotType slot) { return this.baseDurability[slot.getIndex() ]* this.durability ; } @Override public int getDefenseForSlot(EquipmentSlotType slot) { return this.armorVal[slot.getIndex()]; } @Override public int getEnchantmentValue() { return this.enchantability; } @Override public SoundEvent getEquipSound() { return this.equipSound; } @Override public Ingredient getRepairIngredient() { return this.repairMaterial; } @Override public String getName() { return this.name; } @Override public float getToughness() { return this.toughniss; } @Override public float getKnockbackResistance() { return this.knockBackResistance; } } public class DLokiArmor extends LokiArmorItem{ public DLokiArmor(IArmorMaterial p_i48534_1_, EquipmentSlotType p_i48534_2_, Properties p_i48534_3_) { super(p_i48534_1_, p_i48534_2_, p_i48534_3_); } public static final IArmorMaterial LOKI = new IArmorMaterial() { private final int[] damageReduction = {7, 9, 10, 6}; @Override public int getDurabilityForSlot(EquipmentSlotType slotType) { return 7000; } @Override public int getDefenseForSlot(EquipmentSlotType slotType) { return damageReduction[slotType.getIndex()]; } @Override public int getEnchantmentValue() { return 17; } @Override public SoundEvent getEquipSound() { return SoundEvents.ARMOR_EQUIP_DIAMOND; } @Override public Ingredient getRepairIngredient() { Item item = ForgeRegistries.ITEMS.getValue(new ResourceLocation("minecraft", "diamond")); return Ingredient.of(item); } @Override public String getName() { return "loki_armor"; } @Override public float getToughness() { return 3; } @Override public float getKnockbackResistance() { return 0; } }; @Override public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType slot, String type) { if(stack.getItem() == ModItems.LOKI_LEGGINGS.get()) { return FarosVikingsMod.modID + ":" + "/textures/armor/loki.png" ; } else if(stack.getItem() == ModItems.LOKI_HELMET.get() || stack.getItem() == ModItems.LOKI_CHEST.get() || stack.getItem() == ModItems.LOKI_BOOTS.get()) { return FarosVikingsMod.modID + ":" + "/textures/armor/loki.png" ; } return null; } }
  21. Ok. But now I have the problem that my armor is fully rendered, also if I have only one item in my armorslot. And if I turn my armor doesn t turn with my charakter. Here is my code: ArmorItem public class LokiArmorItem extends ArmorItem{ private static final String TEXTURE = FarosVikingsMod.modID + ":textures/armor/loki.png"; public LokiArmorItem(IArmorMaterial p_i48534_1_, EquipmentSlotType p_i48534_2_, Properties p_i48534_3_) { super(p_i48534_1_, p_i48534_2_, p_i48534_3_); } @SuppressWarnings("unchecked") @Nullable @Override public <A extends BipedModel<?>> A getArmorModel(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlotType slot, A _default) { LokiModel model = (slot == EquipmentSlotType.LEGS ? new LokiModel(0.5f) : new LokiModel(1f)); model.head.visible = slot == EquipmentSlotType.HEAD; model.hat.visible = slot == EquipmentSlotType.HEAD; model.body.visible = (slot == EquipmentSlotType.CHEST); model.rightArm.visible = slot == EquipmentSlotType.CHEST; model.leftArm.visible = slot == EquipmentSlotType.CHEST; model.rightLeg.visible = (slot == EquipmentSlotType.LEGS) || (slot == EquipmentSlotType.FEET); model.leftLeg.visible = (slot == EquipmentSlotType.LEGS) || (slot == EquipmentSlotType.FEET); model.young = _default.young; model.crouching = _default.crouching; model.riding = _default.riding; model.rightArmPose = _default.rightArmPose; model.leftArmPose = _default.leftArmPose; return (A) model; } @Override public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType slot, String type) { return TEXTURE; } } Model: @OnlyIn(Dist.CLIENT) public class LokiModel extends BipedModel<LivingEntity>{ private final ModelRenderer Loki; private final ModelRenderer cube_r1; private final ModelRenderer Head; private final ModelRenderer hornV1; private final ModelRenderer cube_r2; private final ModelRenderer cube_r3; private final ModelRenderer cube_r4; private final ModelRenderer cube_r5; private final ModelRenderer hornV2; private final ModelRenderer cube_r6; private final ModelRenderer cube_r7; private final ModelRenderer cube_r8; private final ModelRenderer cube_r9; private final ModelRenderer LeftLeg; private final ModelRenderer RightLeg; private final ModelRenderer LeftArm; private final ModelRenderer RightArm; private final ModelRenderer Body; public LokiModel(float p_i1148_1_) { super(p_i1148_1_); texWidth = 64; texHeight = 64; Loki = new ModelRenderer(this); Loki.setPos(0.0F, 24.0F, 0.0F); cube_r1 = new ModelRenderer(this); cube_r1.setPos(0.0F, 0.0F, 0.0F); Loki.addChild(cube_r1); setRotationAngle(cube_r1, 0.3054F, 0.0F, 0.0F); cube_r1.texOffs(34, 38).addBox(-5.0F, -23.0F, 10.0F, 10.0F, 15.0F, 1.0F, 0.0F, false); Head = new ModelRenderer(this); Head.setPos(0.0F, -24.0F, 0.0F); Loki.addChild(Head); Head.texOffs(0, 0).addBox(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, 1.0F, false); Head.texOffs(32, 0).addBox(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, 1.5F, false); hornV1 = new ModelRenderer(this); hornV1.setPos(2.0F, 26.0F, 0.0F); Head.addChild(hornV1); setRotationAngle(hornV1, -3.1416F, -1.309F, 3.1416F); hornV1.texOffs(9, 0).addBox(-3.5F, -36.0F, -2.0F, 3.0F, 1.0F, 3.0F, 0.0F, false); cube_r2 = new ModelRenderer(this); cube_r2.setPos(3.2132F, -39.5353F, -0.5F); hornV1.addChild(cube_r2); setRotationAngle(cube_r2, 0.0F, -0.5672F, -0.6981F); cube_r2.texOffs(9, 0).addBox(-6.5F, -7.0F, 2.25F, 2.0F, 7.0F, 1.0F, 0.0F, false); cube_r2.texOffs(9, 0).addBox(-6.5F, -7.0F, 4.0F, 2.0F, 7.0F, 1.0F, 0.0F, false); cube_r3 = new ModelRenderer(this); cube_r3.setPos(3.075F, -40.311F, -0.5F); hornV1.addChild(cube_r3); setRotationAngle(cube_r3, 0.0F, 0.0F, 0.7854F); cube_r3.texOffs(9, 0).addBox(-8.875F, -1.25F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false); cube_r4 = new ModelRenderer(this); cube_r4.setPos(3.1719F, -40.3345F, -0.5F); hornV1.addChild(cube_r4); setRotationAngle(cube_r4, 0.0F, 0.0F, 0.3491F); cube_r4.texOffs(9, 0).addBox(-9.5F, -0.75F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false); cube_r5 = new ModelRenderer(this); cube_r5.setPos(3.2132F, -39.5353F, -0.5F); hornV1.addChild(cube_r5); setRotationAngle(cube_r5, 0.0F, 0.0F, -0.6981F); cube_r5.texOffs(9, 0).addBox(-7.5F, -7.0F, -1.0F, 2.0F, 7.0F, 2.0F, 0.0F, false); hornV2 = new ModelRenderer(this); hornV2.setPos(-3.0F, 26.0F, 0.0F); Head.addChild(hornV2); setRotationAngle(hornV2, 0.0F, -1.1781F, 0.0F); hornV2.texOffs(11, 0).addBox(-3.5F, -36.0F, -2.0F, 3.0F, 1.0F, 3.0F, 0.0F, false); cube_r6 = new ModelRenderer(this); cube_r6.setPos(3.2132F, -39.5353F, -0.5F); hornV2.addChild(cube_r6); setRotationAngle(cube_r6, 0.0F, -0.5672F, -0.6981F); cube_r6.texOffs(11, 0).addBox(-6.5F, -7.0F, 2.25F, 2.0F, 7.0F, 1.0F, 0.0F, false); cube_r6.texOffs(11, 0).addBox(-6.5F, -7.0F, 4.0F, 2.0F, 7.0F, 1.0F, 0.0F, false); cube_r7 = new ModelRenderer(this); cube_r7.setPos(3.075F, -40.311F, -0.5F); hornV2.addChild(cube_r7); setRotationAngle(cube_r7, 0.0F, 0.0F, 0.7854F); cube_r7.texOffs(11, 0).addBox(-8.875F, -1.25F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false); cube_r8 = new ModelRenderer(this); cube_r8.setPos(3.1719F, -40.3345F, -0.5F); hornV2.addChild(cube_r8); setRotationAngle(cube_r8, 0.0F, 0.0F, 0.3491F); cube_r8.texOffs(11, 0).addBox(-9.5F, -0.75F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false); cube_r9 = new ModelRenderer(this); cube_r9.setPos(3.2132F, -39.5353F, -0.5F); hornV2.addChild(cube_r9); setRotationAngle(cube_r9, 0.0F, 0.0F, -0.6981F); cube_r9.texOffs(11, 0).addBox(-7.5F, -7.0F, -1.0F, 2.0F, 7.0F, 2.0F, 0.0F, false); LeftLeg = new ModelRenderer(this); LeftLeg.setPos(1.9F, -12.0F, 0.0F); Loki.addChild(LeftLeg); LeftLeg.texOffs(0, 16).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, true); RightLeg = new ModelRenderer(this); RightLeg.setPos(-1.9F, -12.0F, 0.0F); Loki.addChild(RightLeg); RightLeg.texOffs(0, 16).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, false); LeftArm = new ModelRenderer(this); LeftArm.setPos(5.0F, -22.0F, 0.0F); Loki.addChild(LeftArm); LeftArm.texOffs(40, 15).addBox(-1.0F, -2.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, true); RightArm = new ModelRenderer(this); RightArm.setPos(-5.0F, -22.0F, 0.0F); Loki.addChild(RightArm); RightArm.texOffs(40, 15).addBox(-3.0F, -2.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, false); Body = new ModelRenderer(this); Body.setPos(0.0F, -24.0F, 0.0F); Loki.addChild(Body); Body.texOffs(16, 16).addBox(-4.0F, 0.0F, -2.0F, 8.0F, 12.0F, 4.0F, 1.01F, false); } @Override public void renderToBuffer(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha){ Loki.render(matrixStack, buffer, packedLight, packedOverlay); } public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) { modelRenderer.xRot = x; modelRenderer.yRot = y; modelRenderer.zRot = z; } } for the armormaterial I tried both an Enum ArmorMaterial and a class that extends my ArmorItem with an AmorMaterial in it: public class DLokiArmor extends LokiArmorItem{ public DLokiArmor(IArmorMaterial p_i48534_1_, EquipmentSlotType p_i48534_2_, Properties p_i48534_3_) { super(p_i48534_1_, p_i48534_2_, p_i48534_3_); } public static final IArmorMaterial LOKI = new IArmorMaterial() { private final int[] damageReduction = {7, 9, 10, 6}; @Override public int getDurabilityForSlot(EquipmentSlotType slotType) { return 7000; } @Override public int getDefenseForSlot(EquipmentSlotType slotType) { return damageReduction[slotType.getIndex()]; } @Override public int getEnchantmentValue() { return 17; } @Override public SoundEvent getEquipSound() { return SoundEvents.ARMOR_EQUIP_DIAMOND; } @Override public Ingredient getRepairIngredient() { Item item = ForgeRegistries.ITEMS.getValue(new ResourceLocation("minecraft", "diamond")); return Ingredient.of(item); } @Override public String getName() { return "loki_armor"; } @Override public float getToughness() { return 3; } @Override public float getKnockbackResistance() { return 0; } }; @Override public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType slot, String type) { if(stack.getItem() == ModItems.LOKI_LEGGINGS.get()) { return FarosVikingsMod.modID + ":" + "/textures/armor/loki.png" ; } else if(stack.getItem() == ModItems.LOKI_HELMET.get() || stack.getItem() == ModItems.LOKI_CHEST.get() || stack.getItem() == ModItems.LOKI_BOOTS.get()) { return FarosVikingsMod.modID + ":" + "/textures/armor/loki.png" ; } return null; } } public enum LokiArmor implements IArmorMaterial { LOKI_ARMOR("loki", 7, new int[]{7, 9, 10, 6}, 17, SoundEvents.ARMOR_EQUIP_LEATHER,2f, 0.1f,()-> Ingredient.of(ModItems.COPPER_INGOT.get())); private static final int[] baseDurability = {128, 144, 160, 112}; private final String name; private final int durability; private final int[] armorVal; private final int enchantability; private final SoundEvent equipSound; private final float toughniss; private final float knockBackResistance; private final Ingredient repairMaterial; LokiArmor(String name, int durability, int[] armorVal, int enchantability, SoundEvent equipSound, float toughniss, float knockBackResistance, Supplier<Ingredient> repairMaterial) { this.name = name; this.durability = durability; this.armorVal = armorVal; this.enchantability = enchantability; this.equipSound = equipSound; this.toughniss = toughniss; this.knockBackResistance = knockBackResistance; this.repairMaterial = repairMaterial.get(); } @Override public int getDurabilityForSlot(EquipmentSlotType slot) { return this.baseDurability[slot.getIndex() ]* this.durability ; } @Override public int getDefenseForSlot(EquipmentSlotType slot) { return this.armorVal[slot.getIndex()]; } @Override public int getEnchantmentValue() { return this.enchantability; } @Override public SoundEvent getEquipSound() { return this.equipSound; } @Override public Ingredient getRepairIngredient() { return this.repairMaterial; } @Override public String getName() { return this.name; } @Override public float getToughness() { return this.toughniss; } @Override public float getKnockbackResistance() { return this.knockBackResistance; } }
  22. @Valtiel In your ClientProxy code you are implementing IProxy but in 1.16.5 we have now the MojangMappings, so do you know what IProxy is in 1.16.5?
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.