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

FenrisFox86

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by FenrisFox86

  1. After rewriting the fromNetwork method, it now works. I must have forgotten to update it when I changed the recipe type Structure.
  2. Here's the server: [07Aug2021 17:23:38.617] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.2, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge] [07Aug2021 17:23:38.622] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_51 by Oracle Corporation [07Aug2021 17:23:38.649] [main/WARN] [cpw.mods.modlauncher.SecureJarHandler/]: LEGACY JDK DETECTED, SECURED JAR HANDLING DISABLED [07Aug2021 17:23:39.375] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [07Aug2021 17:23:39.423] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/C:/Users/jonas/Documents/001_SERVERS/RpGuild_3/libraries/org/spongepowered/mixin/0.8.2/mixin-0.8.2.jar Service=ModLauncher Env=SERVER [07Aug2021 17:23:41.638] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlserver' with arguments [--gameDir, .] [07Aug2021 17:23:54.065] [modloading-worker-2/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 36.2.2, for MC 1.16.5 with MCP 20210115.111550 [07Aug2021 17:23:54.069] [modloading-worker-2/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v36.2.2 Initialized [07Aug2021 17:23:56.686] [main/WARN] [net.minecraftforge.registries.ForgeRegistry/REGISTRIES]: Registry minecraft:recipe_serializer: The object com.FenrisFox86.fenris_rpg.common.recipes.AbstractConversionRecipe$Serializer@5a95090a has been registered twice for the same name fenris_rpg:crushing. [07Aug2021 17:23:56.753] [main/WARN] [net.minecraftforge.registries.ForgeRegistry/REGISTRIES]: Registry minecraft:recipe_serializer: The object com.FenrisFox86.fenris_rpg.common.recipes.AbstractConversionRecipe$Serializer@5a95090a has been registered twice for the same name fenris_rpg:crushing. [07Aug2021 17:23:58.062] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/net/minecraftforge/forge/promotions_slim.json [07Aug2021 17:23:59.950] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Found status: AHEAD Current: 36.2.2 Target: null [07Aug2021 17:24:00.917] [main/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' [07Aug2021 17:24:02.214] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498] [07Aug2021 17:24:02.366] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [07Aug2021 17:24:02.430] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0] [07Aug2021 17:24:02.465] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498] [07Aug2021 17:24:02.500] [main/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] [07Aug2021 17:24:02.528] [main/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, forge-1.16.5-36.2.2-universal.jar, fenris-rpg-1.16.5-1.1.7.jar [07Aug2021 17:24:03.808] [Worker-Main-10/ERROR] [net.minecraft.item.crafting.RecipeManager/]: Parsing error loading recipe fenris_rpg:bronze_ingot_from_nugget com.google.gson.JsonSyntaxException: Unknown item tag 'forge:nuggets/bronze' at net.minecraft.item.crafting.Ingredient.func_199803_a(Ingredient.java:223) ~[?:?] at net.minecraftforge.common.crafting.VanillaIngredientSerializer.parse(VanillaIngredientSerializer.java:41) ~[?:?] at net.minecraftforge.common.crafting.CraftingHelper.getIngredient(CraftingHelper.java:155) ~[?:?] at net.minecraft.item.crafting.Ingredient.func_199802_a(Ingredient.java:189) ~[?:?] at net.minecraft.item.crafting.ShapedRecipe.func_192408_a(ShapedRecipe.java:252) ~[?:?] at net.minecraft.item.crafting.ShapedRecipe.access$000(ShapedRecipe.java:24) ~[?:?] at net.minecraft.item.crafting.ShapedRecipe$Serializer.func_199425_a_(ShapedRecipe.java:276) ~[?:?] at net.minecraft.item.crafting.ShapedRecipe$Serializer.func_199425_a_(ShapedRecipe.java:272) ~[?:?] at net.minecraft.item.crafting.RecipeManager.func_215377_a(RecipeManager.java:141) ~[?:?] at net.minecraft.item.crafting.RecipeManager.func_212853_a_(RecipeManager.java:61) [?:?] at net.minecraft.item.crafting.RecipeManager.func_212853_a_(RecipeManager.java:38) [?:?] at net.minecraft.client.resources.ReloadListener.func_215269_a(SourceFile:13) [?:?] at net.minecraft.client.resources.ReloadListener$$Lambda$4000/86796021.accept(Unknown Source) [?:?] at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:656) [?:1.8.0_51] at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:632) [?:1.8.0_51] at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442) [?:1.8.0_51] at net.minecraft.resources.AsyncReloader.func_219557_a(SourceFile:71) [?:?] at net.minecraft.resources.AsyncReloader$$Lambda$4033/2110088465.run(Unknown Source) [?:?] at net.minecraft.server.Main$$Lambda$3348/1225909483.execute(Unknown Source) [?:?] at net.minecraft.resources.AsyncReloader.func_219560_a(SourceFile:70) [?:?] at net.minecraft.resources.AsyncReloader$$Lambda$3993/1113045110.execute(Unknown Source) [?:?] at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:529) [?:1.8.0_51] at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:653) [?:1.8.0_51] at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:632) [?:1.8.0_51] at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) [?:1.8.0_51] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1587) [?:1.8.0_51] at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1574) [?:1.8.0_51] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_51] at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_51] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689) [?:1.8.0_51] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_51] [07Aug2021 17:24:04.059] [Worker-Main-10/ERROR] [net.minecraft.item.crafting.RecipeManager/]: Parsing error loading recipe fenris_rpg:slashing_iron com.google.gson.JsonSyntaxException: Invalid or unsupported recipe type 'fenris_rpg:slashing' at net.minecraft.item.crafting.RecipeManager.func_241449_a_(RecipeManager.java:140) ~[?:?] at net.minecraft.item.crafting.RecipeManager$$Lambda$4063/1809017477.get(Unknown Source) ~[?:?] at java.util.Optional.orElseThrow(Optional.java:290) ~[?:1.8.0_51] at net.minecraft.item.crafting.RecipeManager.func_215377_a(RecipeManager.java:139) ~[?:?] at net.minecraft.item.crafting.RecipeManager.func_212853_a_(RecipeManager.java:61) [?:?] at net.minecraft.item.crafting.RecipeManager.func_212853_a_(RecipeManager.java:38) [?:?] at net.minecraft.client.resources.ReloadListener.func_215269_a(SourceFile:13) [?:?] at net.minecraft.client.resources.ReloadListener$$Lambda$4000/86796021.accept(Unknown Source) [?:?] at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:656) [?:1.8.0_51] at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:632) [?:1.8.0_51] at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442) [?:1.8.0_51] at net.minecraft.resources.AsyncReloader.func_219557_a(SourceFile:71) [?:?] at net.minecraft.resources.AsyncReloader$$Lambda$4033/2110088465.run(Unknown Source) [?:?] at net.minecraft.server.Main$$Lambda$3348/1225909483.execute(Unknown Source) [?:?] at net.minecraft.resources.AsyncReloader.func_219560_a(SourceFile:70) [?:?] at net.minecraft.resources.AsyncReloader$$Lambda$3993/1113045110.execute(Unknown Source) [?:?] at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:529) [?:1.8.0_51] at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:653) [?:1.8.0_51] at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:632) [?:1.8.0_51] at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) [?:1.8.0_51] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1587) [?:1.8.0_51] at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1574) [?:1.8.0_51] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_51] at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_51] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689) [?:1.8.0_51] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_51] [07Aug2021 17:24:04.224] [Worker-Main-10/INFO] [net.minecraft.item.crafting.RecipeManager/]: Loaded 8 recipes [07Aug2021 17:24:05.089] [Worker-Main-10/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 927 advancements [07Aug2021 17:24:07.485] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Starting minecraft server version 1.16.5 [07Aug2021 17:24:07.487] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Loading properties [07Aug2021 17:24:07.499] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Default game type: SURVIVAL [07Aug2021 17:24:07.501] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Generating keypair [07Aug2021 17:24:07.560] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Starting Minecraft server on *:25565 [07Aug2021 17:24:07.568] [Server thread/INFO] [net.minecraft.network.NetworkSystem/]: Using default channel type [07Aug2021 17:24:07.823] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Preparing level "world" [07Aug2021 17:24:07.981] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Preparing start region for dimension minecraft:overworld [07Aug2021 17:24:09.125] [Server thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0% [07Aug2021 17:24:09.126] [Server thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0% [07Aug2021 17:24:09.126] [Server thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0% [07Aug2021 17:24:10.703] [Worker-Main-9/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 83% [07Aug2021 17:24:10.706] [Worker-Main-8/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 83% [07Aug2021 17:24:10.707] [Worker-Main-8/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 83% [07Aug2021 17:24:10.988] [Worker-Main-8/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 83% [07Aug2021 17:24:11.638] [Worker-Main-9/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 83% [07Aug2021 17:24:11.987] [Worker-Main-6/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 84% [07Aug2021 17:24:12.483] [Worker-Main-7/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 92% [07Aug2021 17:24:12.757] [Server thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Time elapsed: 4773 ms [07Aug2021 17:24:12.837] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Done (4.955s)! For help, type "help" [07Aug2021 17:24:32.237] [User Authenticator #1/INFO] [net.minecraft.network.login.ServerLoginNetHandler/]: UUID of player Ambjorg is 72a4c192-8f7c-4469-97e3-62e1c14840ec [07Aug2021 17:24:33.528] [Server thread/INFO] [net.minecraftforge.common.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.advancements.PlayerAdvancements@39044e6c [07Aug2021 17:24:33.545] [Server thread/INFO] [net.minecraft.server.management.PlayerList/]: Ambjorg[/127.0.0.1:63958] logged in with entity id 144 at (-55.5, 76.0, -188.5) [07Aug2021 17:24:33.569] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Ambjorg joined the game [07Aug2021 17:24:34.122] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler/]: Ambjorg lost connection: Disconnected [07Aug2021 17:24:34.124] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Ambjorg left the game [07Aug2021 17:26:16.654] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Stopping the server [07Aug2021 17:26:16.702] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Stopping server [07Aug2021 17:26:16.703] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving players [07Aug2021 17:26:16.703] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving worlds [07Aug2021 17:26:16.703] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/minecraft:overworld [07Aug2021 17:26:17.367] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (world): All chunks are saved [07Aug2021 17:26:17.367] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_nether [07Aug2021 17:26:17.368] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved [07Aug2021 17:26:17.369] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_end [07Aug2021 17:26:17.370] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved [07Aug2021 17:26:17.387] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (world): All chunks are saved [07Aug2021 17:26:17.397] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved [07Aug2021 17:26:17.397] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved And that's the client: [07Aug2021 17:23:24.910] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Ambjorg, --version, 1.16.5-forge-36.2.0, --gameDir, C:\Users\jonas\Documents\002_CLIENTS\1.16.5, --assetsDir, C:\Users\jonas\AppData\Roaming\.minecraft\assets, --assetIndex, 1.16, --uuid, 72a4c1928f7c446997e362e1c14840ec, --accessToken, ????????, --userType, mojang, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 36.2.0, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210115.111550] [07Aug2021 17:23:24.913] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_51 by Oracle Corporation [07Aug2021 17:23:24.923] [main/WARN] [cpw.mods.modlauncher.SecureJarHandler/]: LEGACY JDK DETECTED, SECURED JAR HANDLING DISABLED [07Aug2021 17:23:25.104] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [07Aug2021 17:23:25.133] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/C:/Users/jonas/AppData/Roaming/.minecraft/libraries/org/spongepowered/mixin/0.8.2/mixin-0.8.2.jar Service=ModLauncher Env=CLIENT [07Aug2021 17:23:26.598] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlclient' with arguments [--version, 1.16.5-forge-36.2.0, --gameDir, C:\Users\jonas\Documents\002_CLIENTS\1.16.5, --assetsDir, C:\Users\jonas\AppData\Roaming\.minecraft\assets, --uuid, 72a4c1928f7c446997e362e1c14840ec, --username, Ambjorg, --assetIndex, 1.16, --accessToken, ????????, --userType, mojang, --versionType, release] [07Aug2021 17:23:31.961] [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' [07Aug2021 17:23:32.819] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Ambjorg [07Aug2021 17:23:32.962] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Backend library: LWJGL version 3.2.2 build 10 [07Aug2021 17:23:47.884] [modloading-worker-3/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 36.2.0, for MC 1.16.5 with MCP 20210115.111550 [07Aug2021 17:23:47.885] [modloading-worker-3/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v36.2.0 Initialized [07Aug2021 17:23:50.330] [Render thread/WARN] [net.minecraftforge.registries.ForgeRegistry/REGISTRIES]: Registry minecraft:recipe_serializer: The object com.FenrisFox86.fenris_rpg.common.recipes.AbstractConversionRecipe$Serializer@41a374be has been registered twice for the same name fenris_rpg:crushing. [07Aug2021 17:23:50.331] [Render thread/WARN] [net.minecraftforge.registries.ForgeRegistry/REGISTRIES]: Registry minecraft:recipe_serializer: The object com.FenrisFox86.fenris_rpg.common.recipes.AbstractConversionRecipe$Serializer@41a374be has been registered twice for the same name fenris_rpg:crushing. [07Aug2021 17:23:53.816] [Render thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded [07Aug2021 17:23:54.070] [Render thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, Mod Resources [07Aug2021 17:23:54.329] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/net/minecraftforge/forge/promotions_slim.json [07Aug2021 17:23:54.867] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Found status: UP_TO_DATE Current: 36.2.0 Target: null [07Aug2021 17:23:55.059] [Worker-Main-9/WARN] [net.minecraft.client.audio.SoundHandler/]: File fenris_rpg:sounds/block/crusher_crush.ogg does not exist, cannot add it to event fenris_rpg:crusher_crush [07Aug2021 17:24:05.736] [Render thread/WARN] [net.minecraft.client.audio.SoundEngine/]: Missing sound for event: fenris_rpg:blocks/crusher_crush [07Aug2021 17:24:05.994] [Render thread/INFO] [net.minecraft.client.audio.SoundSystem/]: OpenAL initialized. [07Aug2021 17:24:05.996] [Render thread/INFO] [net.minecraft.client.audio.SoundEngine/SOUNDS]: Sound engine started [07Aug2021 17:24:06.277] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas [07Aug2021 17:24:06.307] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x128x4 minecraft:textures/atlas/signs.png-atlas [07Aug2021 17:24:06.308] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas [07Aug2021 17:24:06.309] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas [07Aug2021 17:24:06.309] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas [07Aug2021 17:24:06.311] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas [07Aug2021 17:24:06.311] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas [07Aug2021 17:24:07.211] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas [07Aug2021 17:24:07.213] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas [07Aug2021 17:24:07.214] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas [07Aug2021 17:24:31.227] [Render thread/INFO] [net.minecraft.client.gui.screen.ConnectingScreen/]: Connecting to localhost, 25565 [07Aug2021 17:24:33.505] [Netty Client IO #1/INFO] [net.minecraftforge.fml.network.NetworkHooks/]: Connected to a modded server. [07Aug2021 17:24:34.401] [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' [07Aug2021 17:24:34.453] [Render thread/FATAL] [net.minecraft.util.concurrent.ThreadTaskExecutor/]: Error executing task on Client java.util.NoSuchElementException: packet_handler at io.netty.channel.DefaultChannelPipeline.getContextOrDie(DefaultChannelPipeline.java:1119) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:260) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:249) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] at net.minecraftforge.network.NetworkFilters.lambda$injectIfNecessary$1(NetworkFilters.java:48) ~[?:?] at net.minecraftforge.network.NetworkFilters$$Lambda$4615/46767245.accept(Unknown Source) ~[?:?] at com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:146) ~[guava-21.0.jar:?] at net.minecraftforge.network.NetworkFilters.injectIfNecessary(NetworkFilters.java:44) ~[?:?] at net.minecraftforge.fml.network.NetworkHooks.sendMCRegistryPackets(NetworkHooks.java:121) ~[?:?] at net.minecraft.client.network.play.ClientPlayNetHandler.func_147282_a(ClientPlayNetHandler.java:399) ~[?:?] at net.minecraft.network.play.server.SJoinGamePacket.func_148833_a(SourceFile:110) ~[?:?] at net.minecraft.network.play.server.SJoinGamePacket.func_148833_a(SourceFile:18) ~[?:?] at net.minecraft.network.PacketThreadUtil.func_225383_a(SourceFile:21) ~[?:?] at net.minecraft.network.PacketThreadUtil$$Lambda$4516/309282572.run(Unknown Source) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(SourceFile:144) [?:?] at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) [?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(SourceFile:118) [?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(SourceFile:103) [?:?] at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:947) [?:?] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) [?:?] at net.minecraft.client.main.Main.main(Main.java:184) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.16.5-36.2.0.jar:36.2] at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$437/1472036907.call(Unknown Source) [forge-1.16.5-36.2.0.jar:36.2] 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:?] [07Aug2021 17:24:55.575] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Stopping!
  3. I've been working on my Mod for quite some time now and lately, as I tried to add it to a Forge Server. It seems to work on the server and the client separately but if I try to join the server, It says "root tag must be a named compound tag". I know as much as the mistake is on client side, so here's the error message on the client: [07Aug2021 17:00:43.755] [Render thread/FATAL] [net.minecraft.util.concurrent.ThreadTaskExecutor/]: Error executing task on Client java.util.NoSuchElementException: packet_handler at io.netty.channel.DefaultChannelPipeline.getContextOrDie(DefaultChannelPipeline.java:1119) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:260) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:249) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] at net.minecraftforge.network.NetworkFilters.lambda$injectIfNecessary$1(NetworkFilters.java:48) ~[?:?] at net.minecraftforge.network.NetworkFilters$$Lambda$4593/1929955360.accept(Unknown Source) ~[?:?] at com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:146) ~[guava-21.0.jar:?] at net.minecraftforge.network.NetworkFilters.injectIfNecessary(NetworkFilters.java:44) ~[?:?] at net.minecraftforge.fml.network.NetworkHooks.sendMCRegistryPackets(NetworkHooks.java:121) ~[?:?] at net.minecraft.client.network.play.ClientPlayNetHandler.func_147282_a(ClientPlayNetHandler.java:399) ~[?:?] at net.minecraft.network.play.server.SJoinGamePacket.func_148833_a(SourceFile:110) ~[?:?] at net.minecraft.network.play.server.SJoinGamePacket.func_148833_a(SourceFile:18) ~[?:?] at net.minecraft.network.PacketThreadUtil.func_225383_a(SourceFile:21) ~[?:?] at net.minecraft.network.PacketThreadUtil$$Lambda$4495/1138844038.run(Unknown Source) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(SourceFile:144) [?:?] at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) [?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(SourceFile:118) [?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(SourceFile:103) [?:?] at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:947) [?:?] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) [?:?] at net.minecraft.client.main.Main.main(Main.java:184) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.16.5-36.2.0.jar:36.2] at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$437/1472036907.call(Unknown Source) [forge-1.16.5-36.2.0.jar:36.2] 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:?] Probably I've made a mistake in Client-Server communication but I don't have a Clue where. It'd be very helpful if you could find any more informations in the log or give me a clue about where such mistakes are commonly made. If you need code Snippets, here's my github repository: https://github.com/FenrisFox/FenrisRPG
  4. To get an Item's burn time, call ForgeHooks.getBurnTime(stack) You could check if an item has burn time and if it doesn't, you can prevent it from being placed in the Fuel slot. I recommend checking the AbstractFurnaceTileEntity class fore more information. Also, creating Recipes is pretty difficult to explain in a short text. I recommend you taking a closer look at abstractCookingRecipe as well as CookingRecipe since they work pretty much the way you need. Maybe it'll even be possible to simply create another instance of abstractCookingRecipe and use it in another instance of AbstractFurnaceBlock.
  5. EntityTypeTags uses bind() to create new tags. I don't find any way to get a tag out of my previously created json file.
  6. So I'm creating a silver Set that is supposed to deal more damage to undead. I want to do this using an entity Tag so that modded undead entities also work. So I created a json in data/forge/entities/undead.json: { "replace": false, "values": [ "minecraft:zombie", "minecraft:skeleton", "minecraft:wither_skeleton", "minecraft:husk", "minecraft:stray" ] } Here's the Code that should check if the Target is undead. (Don't mind that my Event's called differently, it does nearly the same as LivingHurtEvent) @Mod.EventBusSubscriber public class ItemTierHandlers { @SubscribeEvent public static void itemHitTierCheck(ItemDamageEvent event) { if (event.getItem().getItem() instanceof TieredItem) { IItemTier tier = ((TieredItem) event.getItem().getItem()).getTier(); if (tier == ModItemTier.SILVER) { //Check for Tag and deal additional damage } } } } Now how do I use the Tag that I created above?
  7. Cy4 made a good video on this topic: I hope this helps you.
  8. Ah thanks! That's even more useful simple customisation options than I expected.
  9. I'm creating a Mod that contains a Lot of new Enchantments, some of which are treasure enchantments. And as everybody knows, Villagers also trade with treasure enchants and that is one of the fastest ways to get your hands on a mending book. Since enchantment generation in the Enchanting Table is automatically done by the game without having to create something like a "enchantment recipe", I started asking myself if my Enchantments are also automatically applied to dungeon loot, Villager Trades and Fishing outputs. That would save me a lot of work.
  10. I now solved it using Attribute Modifiers as Luis_ST suggested. this is my implementation: @SubscribeEvent public static void onLivingArmorEquip(LivingEquipmentChangeEvent event) { if (!event.getEntityLiving().getEntityWorld().isRemote()) { LivingEntity living = event.getEntityLiving(); living.getAttributeManager().createInstanceIfAbsent(Attributes.MOVEMENT_SPEED); ModifiableAttributeInstance attribute = living.getAttribute(Attributes.MOVEMENT_SPEED); for (AttributeModifier modifier : attribute.getModifierListCopy()) { if (modifier.getName().equals("dynamo_speed")) { attribute.removeModifier(modifier); } } for (ItemStack stack : living.getArmorInventoryList()) { if (stack.getItem() instanceof DynamoCoreArmorItem) { attribute.applyNonPersistentModifier( new AttributeModifier("dynamo_speed", 0.2f, AttributeModifier.Operation.MULTIPLY_TOTAL)); } } } } The PlayerEntity#abilities method could've also interferred with other mods so I'm glad that it worked this way.
  11. @OnlyIn(Dist.CLIENT) @SubscribeEvent public static void onPlayerTick(TickEvent.PlayerTickEvent event) { if (event.side == LogicalSide.CLIENT) { event.player.abilities.setWalkSpeed(1f); event.player.sendPlayerAbilities(); } } I already tried this. Just as in the code shown in my second example, the setWalkSpeed method call doesn't work when I add this line of code.
  12. Uhmm... Sorry, but I can't find any method like that. Am I just bein' stupid right now?
  13. I'm trying to make a set of armor that makes the player 50% faster for every armor piece they're wearing. But first I needed to be able to change the player's speed in general. So I made a simple event handler that speeds the player up every tick: @OnlyIn(Dist.CLIENT) @SubscribeEvent public static void onPlayerTick(TickEvent.PlayerTickEvent event) { if (event.side == LogicalSide.CLIENT) { event.player.abilities.setWalkSpeed(1f); } } This works and it gives the player an insane speed boost without any conditions. What's confusing me is that PlayerEntity#abilities#setWalkSpeed() doesn't work anymore as soon as I add any logic to the handler. It doesn't even need to influence the method call. here's an example that doesn't work anymore: @OnlyIn(Dist.CLIENT) @SubscribeEvent public static void onPlayerTick(TickEvent.PlayerTickEvent event) { if (event.side == LogicalSide.CLIENT) { PlayerEntity player = (PlayerEntity) event.player; float walk_speed = player.abilities.getWalkSpeed(); float speed_bonus = 0.1f; for (ItemStack stack : player.getArmorInventoryList()) { if (stack.getItem() instanceof DynamoCoreArmorItem) { speed_bonus += 0.05f; } } System.out.println(speed_bonus); event.player.abilities.setWalkSpeed(1f); } } As you see all I did was add some code before calling PlayerEntity#abilities#setWalkSpeed(). The call itsself is exactly the same as before. But for some reason the second example doesn't work. There are no errors. Can anyone explain this to me?
  14. Solved: Thank you for your patient help. It works now and believe me, the satisfaction of having a diamond pop out of a grass block after hours of making stupid mistakes is way greater than the satisfaction of just finding a Diamond in survival . This is the final class for registry: package com.FenrisFox86.fenriscore.common.events; import ... @Mod.EventBusSubscriber(modid = FenrisCore.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) public class LootModifierEvents { @SubscribeEvent public static void registerModifierSerializers(@Nonnull final RegistryEvent.Register<GlobalLootModifierSerializer<?>> event) { System.out.println("registered"); event.getRegistry().register(new CrusherModifier.Serializer().setRegistryName( new ResourceLocation(FenrisCore.MOD_ID,"crush_drop"))); } }
  15. So I moved that to a new class that is registered to the event bus. The error stays the same. package com.FenrisFox86.fenriscore.common.events; import ... @Mod.EventBusSubscriber public class LootModifierEvents { @SubscribeEvent public void registerModifierSerializers(@Nonnull final RegistryEvent.Register<GlobalLootModifierSerializer<?>> event) { event.getRegistry().register(new CrusherModifier.Serializer().setRegistryName( new ResourceLocation(FenrisCore.MOD_ID,"crush_drop"))); } }
  16. Well here you have it. I'm just not too sure if this is helpful since its just the mod's core class. package com.FenrisFox86.fenriscore; import ... // The value here should match an entry in the META-INF/mods.toml file @Mod("fenriscore") public class FenrisCore { private static final Logger LOGGER = LogManager.getLogger(); public static final String MOD_ID = "fenriscore"; public FenrisCore() { // Register the setup and doClientStuff methods for modloading FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff); ItemInit.ItemInit(); BlockInit.BlockInit(); EnchantmentInit.EnchantmentInit(); // Register for important server and other game events MinecraftForge.EVENT_BUS.register(this); } private void setup(final FMLCommonSetupEvent event) { CapabilityManager.INSTANCE.register(ICombatState.class, new CombatStageStorage(), DefaultCombatState::new); RenderTypeLookup.setRenderLayer(BlockInit.ESSENCE_BLOCK.get(), RenderType.getTranslucent()); } private void doClientStuff(final FMLClientSetupEvent event) { } public static final ItemGroup MOD_TAB = new ItemGroup("basic_material_tab") { @Override public ItemStack createIcon() { return new ItemStack(ItemInit.RUBY.get()); } }; @SubscribeEvent public static void registerModifierSerializers(@Nonnull final RegistryEvent.Register<GlobalLootModifierSerializer<?>> event) { event.getRegistry().register(new CrusherModifier.Serializer().setRegistryName( new ResourceLocation(MOD_ID,"crush_drop"))); } }
  17. So this code snipped here is probably wrong. But how do I register the Serializer if not like this? @SubscribeEvent public static void registerModifierSerializers(@Nonnull final RegistryEvent.Register<GlobalLootModifierSerializer<?>> event) { event.getRegistry().register(new CrusherModifier.Serializer().setRegistryName( new ResourceLocation(MOD_ID,"crush_drop"))); }
  18. Oh, I just found a related Error in the log. It couldn't parse the loot modifier. Does that mean that it didn't find the file at all or that I did something wrong inside the file? I think it's rather less probable that the file itsself is written the wrong way. I pretty much copied it from the docs. [16:45:17] [Render thread/ERROR] [ne.mi.co.lo.LootModifierManager/]: Couldn't parse loot modifier fenriscore:crush_drop java.lang.NullPointerException: null at net.minecraftforge.common.loot.LootModifierManager.deserializeModifier(LootModifierManager.java:139) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraftforge.common.loot.LootModifierManager.lambda$apply$0(LootModifierManager.java:115) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at java.util.ArrayList.forEach(ArrayList.java:1259) ~[?:1.8.0_261] {} at net.minecraftforge.common.loot.LootModifierManager.apply(LootModifierManager.java:113) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraftforge.common.loot.LootModifierManager.apply(LootModifierManager.java:54) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraft.client.resources.ReloadListener.lambda$reload$1(ReloadListener.java:14) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:670) ~[?:1.8.0_261] {} at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:646) ~[?:1.8.0_261] {} at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:456) ~[?:1.8.0_261] {} at net.minecraft.resources.AsyncReloader.lambda$null$3(AsyncReloader.java:66) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraft.util.concurrent.ThreadTaskExecutor.run(ThreadTaskExecutor.java:139) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.concurrent.RecursiveEventLoop.run(RecursiveEventLoop.java:22) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraft.util.concurrent.ThreadTaskExecutor.driveOne(ThreadTaskExecutor.java:109) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.concurrent.ThreadTaskExecutor.driveUntil(ThreadTaskExecutor.java:122) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.client.Minecraft.reloadDatapacks(Minecraft.java:1905) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.loadWorld(Minecraft.java:1758) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.loadWorld(Minecraft.java:1728) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screen.WorldSelectionList$Entry.func_214443_e(WorldSelectionList.java:364) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screen.WorldSelectionList$Entry.func_214438_a(WorldSelectionList.java:273) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screen.WorldSelectionList$Entry.mouseClicked(WorldSelectionList.java:225) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.widget.list.AbstractList.mouseClicked(AbstractList.java:309) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.INestedGuiEventHandler.mouseClicked(INestedGuiEventHandler.java:31) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.MouseHelper.lambda$mouseButtonCallback$0(MouseHelper.java:92) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screen.Screen.wrapScreenError(Screen.java:427) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.MouseHelper.mouseButtonCallback(MouseHelper.java:90) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.MouseHelper.lambda$null$4(MouseHelper.java:185) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.util.concurrent.ThreadTaskExecutor.execute(ThreadTaskExecutor.java:86) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.client.MouseHelper.lambda$registerCallbacks$5(MouseHelper.java:184) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36) ~[lwjgl-glfw-3.2.2.jar:build 10] {} at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.2.2.jar:build 10] {} at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101) ~[lwjgl-glfw-3.2.2.jar:build 10] {} at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:93) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.MainWindow.flipFrame(MainWindow.java:305) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1022) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.run(Minecraft.java:612) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_261] {} at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_261] {} at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_261] {} at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_261] {} at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3-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.4-35.1.37_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {}
  19. Yes, I used shears. And no, I don't actively call the serializer. I thought that the serializer is automatically called when a loot drop is performed.
  20. I'm working on a Mod that introduces quite a couple of new tools to the game and right now I'm working on a Hammer that's pretty similar to the one from Ex Nihilo if this is still a thing. It can destroy the same blocks as a Pickaxe but as soon as it causes a loot drop, it will replace certain Items. Cobblestone will turn into gravel for example. So first I need to understand the basics about Loot Modification. I read the docs and to get an understanding of how it works, I first just copied the code out of the forge docs and tested it. Of course it didn't work. My problem right now is that I don't have clue where the error lies since there are no errors thrown by the game. It just doesn't replace the drops. So below you'll find the relevant code snippets and where in the mod files they're located. for simplicity's sake I removed any too specific code and made the CrusherModifier#doApply method simply add a diamond to any drop that's caused by shears when it finally works. Anyone got a clue what I could've done wrong? maybe the json files' locations? global_loot_modifiers.json at data/forge/loot_modifiers/global_loot_modifiers.json: { "replace": false, "entries": [ "fenriscore:crush_drop" ] } crush.json at data/fenriscore/loot_modifiers/crush_drop.json { "type": "fenriscore:crush_drop", "conditions": [ { "condition": "minecraft:match_tool", "predicate": { "item": "minecraft:shears" } } ] } The CrusherModifier class: package com.FenrisFox86.fenriscore.core.util.tools; import com.google.gson.JsonObject; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.Items; import net.minecraft.loot.LootContext; import net.minecraft.loot.conditions.ILootCondition; import net.minecraft.util.JSONUtils; import net.minecraft.util.ResourceLocation; import net.minecraftforge.common.loot.GlobalLootModifierSerializer; import net.minecraftforge.common.loot.LootModifier; import net.minecraftforge.registries.ForgeRegistries; import javax.annotation.Nonnull; import java.util.List; public class CrusherModifier extends LootModifier { public CrusherModifier(ILootCondition[] conditionsIn) { super(conditionsIn); } @Nonnull @Override public List<ItemStack> doApply(List<ItemStack> generatedLoot, LootContext context) { generatedLoot.add(new ItemStack(Items.DIAMOND, 1)); return generatedLoot; } public static class Serializer extends GlobalLootModifierSerializer<CrusherModifier> { @Override public CrusherModifier read(ResourceLocation name, JsonObject object, ILootCondition[] conditionsIn) { return new CrusherModifier(conditionsIn); } @Override public JsonObject write(CrusherModifier instance) { JsonObject json = makeConditions(instance.conditions); return json; } } } The part of the main mod class where I register the CrusherModifier: @SubscribeEvent public static void registerModifierSerializers(@Nonnull final RegistryEvent.Register<GlobalLootModifierSerializer<?>> event) { event.getRegistry().register(new CrusherModifier.Serializer().setRegistryName( new ResourceLocation(MOD_ID,"crush_drop"))); }
  21. Just something important for people trying to do a similar thing: normalize the vector and then multiply it by a factor you need. Otherways the vector's going to be as long as the player's distance to the block they're facing so the dash won't have a consistent length. Vector3d vector = player.getLookVec().normalize().mul(factor, factor, factor); player.setMotion(vector);
  22. Solved: I made the stupid mistake to handle movement server-side first. That's why the movement never worked. The method Entity#getLookVector returns the correct vector and I simply had to pass it to the Entity#setMotion method.
  23. So I'm creating a mod that adds a bunch of new tool- and weapon types. One of them should make the player dash forward when they charged it. I was able to use some of the bow's code to make the charging work but neither do I know how to get the Horizontal Direction that the player's facing as a 3dVector, nor do I know how to accelerate a LivingEntity in a given direction. So how can I make a player dash in the horizontal direction they're facing?
  24. Solved: So I followed @diesieben07's instructions and created a boolean capabbility for players that checks if their last hand used was the offhand. Enchantments that are hand-based will simply check the OffhandUsed capability and only apply the effect if they're in the correct hand when they're used by players. Sadly Vanilla enchants won't work on the left hand like this but it's the best I could do for now.
  25. My question's if you're able to find the stack that was given as a parameter. Because right now I could also shoot with a bow and then switch to an enchanted sword while the arrow is flying. The effect would be applied since the item that I had in my hand on impact was enchanted. I'm trying to trace the itemstack that was used to initiate the attack.
×
×
  • Create New...

Important Information

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