Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

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

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

ChromaKey81

Members
  • Joined

  • Last visited

Everything posted by ChromaKey81

  1. How can I get the ConfiguredFeature pointed to by a resource location?
  2. I saw in the changelog that the method to register commands has been changed. How should this be done now, and could you provide an example?
  3. Shoot, actually I'm still having a bit of trouble with that. replace.getSource().getWorld().getTileEntity(BlockPosArgument.getLoadedBlockPos(replace, "sourcePos")).getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) This returns LazyOptional<IItemHandler>. How do I get from there to using the IItemHandler methods?
  4. Thanks so much. I've been looking for an answer to this for a while
  5. So it works with players, thanks. Are entities with armor/hand slots (e.g. zombies) included? I need to be able to pass any entity with slots as a source.
  6. Thank you for the explanation on that. Does this work for entities? If not, what is the method for that?
  7. What's the method for getting an item stack from the slot of either an entity or tile entity? I need to input a slot as an integer and return an ItemStack. To get it from a tile entity, I've been using (IInventory) replace.getSource().getWorld().getTileEntity(sourcePos).getStackInSlot(sourceSlot) which works properly, but someone else told me that IInventory won't work for anything outside of the vanilla game and that I should instead use the "IItemHandler wrapper." Not sure exactly what that is though. However, I still haven't figured out how to do this with mobs, so I could use some help with that. Edit: I suppose I should specify that this is being used for a command (the above code line is in ".executes((replace) -> {})")
  8. I've been having issues with Forge 1.16.1, I'm pretty sure it just isn't 100% stable and done yet. Just realized that you're having the issues on a 1.15.2 version so nevermind my comment. Why can't we delete comments on this forum? What is this madness?
  9. I can't find it from there in IntelliJ IDEA either. Do you know what the usual directory is?
  10. I just need the forge library and I'll be set. Where can I download that? Nvm I found it
  11. how do i delete replies lol
  12. Thank you very much for the help (although now my game is crashing altogether. check repo for crash report) Could you briefly explain what I need to change in the build.gradle (or direct me to some documentation)? By the way, do I need to compile all of my .java files to .class? How would I do that in VSCode?
  13. I updated my stuff with fresh files, and now I have a new error: java.lang.RuntimeException: java.net.MalformedURLException: no protocol: github.com/MinecraftForge/MinecraftForge/issues I'm still confused because I deleted this line in the mods.toml. I uploaded everything to the github repo so there's more info available.
  14. https://github.com/ChromaKey81/devsdream
  15. Done, but I'm still getting the same errors. The log still says minecraftforge.net/versions.json despite that URL never being used in the file, so I have no idea what's happening.
  16. Just switched to the latest Forge version for 1.15.2 and I'm not getting a crash anymore. Now I'm getting a build error described at https://forums.minecraftforge.net/topic/87410-need-help-with-the-modstoml-file/
  17. I think my error might be caused by forge 1.16.1 simply not working, I've seen similar reports about the net.minecraft.util.registry.Registry not initializing on this version. I'll switch over to 1.15.2 and see what happens.
  18. Not sure where I'm going wrong here, could someone help me out? I think it has something to do with the registry but I don't know what. Main.java: package com.chromakey.devsdream; import net.minecraft.block.Block; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.item.BlockItem; import net.minecraft.item.Item; import net.minecraft.util.ResourceLocation; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; import net.minecraftforge.fml.event.server.FMLServerStartingEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @Mod("devsdream") public class Main { public static final String modid = "devsdream"; private static final Logger logger = LogManager.getLogger(modid); public static Main instance; public Main() { instance = this; FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::clientRegistries); MinecraftForge.EVENT_BUS.register(this); } private void setup(final FMLCommonSetupEvent event) { logger.info("Common setup complete"); } private void clientRegistries(final FMLClientSetupEvent event) { logger.info("Successfully set up clientRegistries"); } @Mod.EventBusSubscriber(bus= Mod.EventBusSubscriber.Bus.MOD) public static class events { @SubscribeEvent public static void registerBlocks(final RegistryEvent.Register<Block> event) { event.getRegistry().registerAll( BlockList.blank_slate_stone = new Block(Block.Properties.create(Material.ROCK).sound(SoundType.STONE)).setRegistryName(new ResourceLocation(modid, "blank_slate_stone")) ); logger.info("Successfully registered blocks"); } @SubscribeEvent public static void registerItems(final RegistryEvent.Register<Item> event) { event.getRegistry().registerAll( ItemList.blank_slate_stone = new BlockItem(BlockList.blank_slate_stone, new Item.Properties().maxStackSize(64)).setRegistryName(new ResourceLocation(modid, "blank_slate_stone")) ); logger.info("Successfully registered items"); } @SubscribeEvent public static void onServerStart(final FMLServerStartingEvent event) { logger.info("Successfully set up server start"); event.getCommandDispatcher(); } } } Log: [26Jun2020 11:33:43.506] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20200625.160719, --fml.mcVersion, 1.16.1, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 32.0.16, --version, MOD_DEV, --assetIndex, 1.16, --assetsDir, C:\Users\willi\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ????????, --userProperties, {}] [26Jun2020 11:33:43.518] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 5.1.0+69+master.79f13f7 starting: java version 14.0.1 by AdoptOpenJDK [26Jun2020 11:33:44.225] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [26Jun2020 11:33:46.301] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release [26Jun2020 11:33:47.416] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmluserdevclient' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\willi\.gradle\caches\forge_gradle\assets, --assetIndex, 1.16, --username, Dev, --accessToken, ????????, --userProperties, {}] [26Jun2020 11:33:58.103] [pool-3-thread-1/FATAL] [net.minecraftforge.common.asm.RuntimeEnumExtender/]: Enum has create method with no matching constructor: Enum: Lnet/minecraft/entity/EntityClassification; Candidate: (Ljava/lang/String;Ljava/lang/String;IZZ)Lnet/minecraft/entity/EntityClassification; Target: (Ljava/lang/String;ILjava/lang/String;IZZ)V : (Ljava/lang/String;ILjava/lang/String;IZZI)V [26Jun2020 11:33:59.708] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', name='PROD' [26Jun2020 11:33:59.716] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Dev [26Jun2020 11:34:02.612] [Render thread/INFO] [STDOUT/]: [net.minecraft.util.registry.Bootstrap:printToSYSOUT:127]: ---- Minecraft Crash Report ---- // Why did you do that? Time: 6/26/20, 11:34 AM Description: Initializing game java.lang.NoClassDefFoundError: Could not initialize class net.minecraft.util.registry.Registry at net.minecraft.item.ItemStack.lambda$static$3(ItemStack.java:77) ~[forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-recomp.jar:?] {re:classloading} at com.mojang.serialization.codecs.RecordCodecBuilder.create(RecordCodecBuilder.java:72) ~[datafixerupper-3.0.25.jar:?] {} at net.minecraft.item.ItemStack.<clinit>(ItemStack.java:76) ~[forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-recomp.jar:?] {re:classloading} at net.minecraft.client.settings.HotbarSnapshot.<init>(HotbarSnapshot.java:15) ~[forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.settings.CreativeSettings.<init>(CreativeSettings.java:28) ~[forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.<init>(Minecraft.java:400) ~[forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:149) ~[forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] {} at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {} at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?] {} at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) ~[forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-recomp.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-5.1.0.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-5.1.0.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-5.1.0.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-5.1.0.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-5.1.0.jar:?] {} at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-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.minecraft.item.ItemStack.lambda$static$3(ItemStack.java:77) at com.mojang.serialization.codecs.RecordCodecBuilder.create(RecordCodecBuilder.java:72) at net.minecraft.item.ItemStack.<clinit>(ItemStack.java:76) at net.minecraft.client.settings.HotbarSnapshot.<init>(HotbarSnapshot.java:15) at net.minecraft.client.settings.CreativeSettings.<init>(CreativeSettings.java:28) at net.minecraft.client.Minecraft.<init>(Minecraft.java:400) -- Initialization -- Details: Stacktrace: at net.minecraft.client.main.Main.main(Main.java:149) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) -- System Details -- Details: Minecraft Version: 1.16.1 Minecraft Version ID: 1.16.1 Operating System: Windows 10 (amd64) version 10.0 Java Version: 14.0.1, AdoptOpenJDK Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), AdoptOpenJDK Memory: 174375336 bytes (166 MB) / 315621376 bytes (301 MB) up to 3158310912 bytes (3012 MB) CPUs: 8 JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump Launched Version: MOD_DEV Backend library: LWJGL version 3.2.2 build 10 Backend API: NO CONTEXT GL Caps: Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'forge' Type: Client (map_client.txt) CPU: <unknown> [26Jun2020 11:34:02.643] [Render thread/INFO] [STDOUT/]: [net.minecraft.util.registry.Bootstrap:printToSYSOUT:127]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\willi\Downloads\forge-1.16.1-32.0.16-mdk\run\.\crash-reports\crash-2020-06-26_11.34.02-client.txt Crash report: ---- Minecraft Crash Report ---- // Uh... Did I do that? Time: 6/26/20, 11:34 AM Description: Initializing game java.lang.NoClassDefFoundError: Could not initialize class net.minecraft.util.registry.Registry at net.minecraft.item.ItemStack.lambda$static$3(ItemStack.java:77) ~[forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-recomp.jar:?] {re:classloading} at com.mojang.serialization.codecs.RecordCodecBuilder.create(RecordCodecBuilder.java:72) ~[datafixerupper-3.0.25.jar:?] {} at net.minecraft.item.ItemStack.<clinit>(ItemStack.java:76) ~[forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-recomp.jar:?] {re:classloading} at net.minecraft.client.settings.HotbarSnapshot.<init>(HotbarSnapshot.java:15) ~[forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.settings.CreativeSettings.<init>(CreativeSettings.java:28) ~[forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.<init>(Minecraft.java:400) ~[forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:149) ~[forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] {} at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {} at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?] {} at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) ~[forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-recomp.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-5.1.0.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-5.1.0.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-5.1.0.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-5.1.0.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-5.1.0.jar:?] {} at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.1-32.0.16_mapped_snapshot_20200514-1.16-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.minecraft.item.ItemStack.lambda$static$3(ItemStack.java:77) at com.mojang.serialization.codecs.RecordCodecBuilder.create(RecordCodecBuilder.java:72) at net.minecraft.item.ItemStack.<clinit>(ItemStack.java:76) at net.minecraft.client.settings.HotbarSnapshot.<init>(HotbarSnapshot.java:15) at net.minecraft.client.settings.CreativeSettings.<init>(CreativeSettings.java:28) at net.minecraft.client.Minecraft.<init>(Minecraft.java:400) -- Initialization -- Details: Stacktrace: at net.minecraft.client.main.Main.main(Main.java:149) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) -- System Details -- Details: Minecraft Version: 1.16.1 Minecraft Version ID: 1.16.1 Operating System: Windows 10 (amd64) version 10.0 Java Version: 14.0.1, AdoptOpenJDK Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), AdoptOpenJDK Memory: 174375336 bytes (166 MB) / 315621376 bytes (301 MB) up to 3158310912 bytes (3012 MB) CPUs: 8 JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump Launched Version: MOD_DEV Backend library: LWJGL version 3.2.2 build 10 Backend API: NO CONTEXT GL Caps: Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'forge' Type: Client (map_client.txt) CPU: <unknown>
  19. Figured it out, I think I was using an outdated template Still have not figured it out
  20. Novice modder here. I can't figure out how to get my mods.toml to work; when I run client it fails to build. Latest log: [26Jun2020 12:25:19.671] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20200515.085601, --fml.mcVersion, 1.15.2, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 31.2.0, --version, MOD_DEV, --assetIndex, 1.15, --assetsDir, C:\Users\willi\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ????????, --userProperties, {}] [26Jun2020 12:25:19.683] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 5.1.0+69+master.79f13f7 starting: java version 14.0.1 by AdoptOpenJDK [26Jun2020 12:25:20.423] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [26Jun2020 12:25:22.391] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: java.lang.RuntimeException: java.net.MalformedURLException: no protocol: minecraftforge.net/versions.json [26Jun2020 12:25:22.392] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at net.minecraftforge.fml.loading.StringUtils.toURL(StringUtils.java:51) [26Jun2020 12:25:22.394] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at java.base/java.util.Optional.map(Optional.java:258) [26Jun2020 12:25:22.394] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at net.minecraftforge.fml.loading.moddiscovery.ModInfo.<init>(ModInfo.java:90) [26Jun2020 12:25:22.396] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at net.minecraftforge.fml.loading.moddiscovery.ModFileInfo.lambda$new$2(ModFileInfo.java:70) [26Jun2020 12:25:22.398] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) [26Jun2020 12:25:22.399] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1624) [26Jun2020 12:25:22.400] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) [26Jun2020 12:25:22.400] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) [26Jun2020 12:25:22.401] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) [26Jun2020 12:25:22.402] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [26Jun2020 12:25:22.403] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) [26Jun2020 12:25:22.403] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at net.minecraftforge.fml.loading.moddiscovery.ModFileInfo.<init>(ModFileInfo.java:70) [26Jun2020 12:25:22.404] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at net.minecraftforge.fml.loading.moddiscovery.ModFileParser.loadModFile(ModFileParser.java:59) [26Jun2020 12:25:22.405] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at net.minecraftforge.fml.loading.moddiscovery.ModFileParser.readModList(ModFileParser.java:51) [26Jun2020 12:25:22.405] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at net.minecraftforge.fml.loading.moddiscovery.ModFile.identifyMods(ModFile.java:132) [26Jun2020 12:25:22.406] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.discoverMods(ModDiscoverer.java:116) [26Jun2020 12:25:22.407] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at net.minecraftforge.fml.loading.FMLLoader.beginModScan(FMLLoader.java:211) [26Jun2020 12:25:22.408] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at net.minecraftforge.fml.loading.FMLServiceProvider.runScan(FMLServiceProvider.java:105) [26Jun2020 12:25:22.408] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at cpw.mods.modlauncher.TransformationServiceDecorator.runScan(TransformationServiceDecorator.java:111) [26Jun2020 12:25:22.409] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at cpw.mods.modlauncher.TransformationServicesHandler.lambda$runScanningTransformationServices$8(TransformationServicesHandler.java:115) [26Jun2020 12:25:22.411] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) [26Jun2020 12:25:22.412] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1766) [26Jun2020 12:25:22.413] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) [26Jun2020 12:25:22.414] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) [26Jun2020 12:25:22.415] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) [26Jun2020 12:25:22.415] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [26Jun2020 12:25:22.416] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) [26Jun2020 12:25:22.416] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at cpw.mods.modlauncher.TransformationServicesHandler.runScanningTransformationServices(TransformationServicesHandler.java:116) [26Jun2020 12:25:22.418] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:63) [26Jun2020 12:25:22.418] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at cpw.mods.modlauncher.Launcher.run(Launcher.java:75) [26Jun2020 12:25:22.419] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [26Jun2020 12:25:22.419] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:102) [26Jun2020 12:25:22.420] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]: Caused by: java.net.MalformedURLException: no protocol: minecraftforge.net/versions.json [26Jun2020 12:25:22.420] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]: at java.base/java.net.URL.<init>(URL.java:672) [26Jun2020 12:25:22.421] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]: at java.base/java.net.URL.<init>(URL.java:568) [26Jun2020 12:25:22.421] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]: at java.base/java.net.URL.<init>(URL.java:515) [26Jun2020 12:25:22.422] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]: at net.minecraftforge.fml.loading.StringUtils.toURL(StringUtils.java:47) [26Jun2020 12:25:22.423] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]: ... 31 more Here's my mods.toml file: # This is an example mods.toml file. It contains the data relating to the loading mods. # There are several mandatory fields (#mandatory), and many more that are optional (#optional). # The overall format is standard TOML format, v0.5.0. # Note that there are a couple of TOML lists in this file. # Find more information on toml format here: https://github.com/toml-lang/toml # The name of the mod loader type to load - for regular FML @Mod mods it should be javafml modLoader="javafml" #mandatory # A version range to match for said mod loader - for regular FML @Mod it will be the forge version loaderVersion="[31,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions. # A URL to refer people to when problems occur with this mod issueTrackerURL="http://my.issue.tracker/" #optional # A list of mods - how many allowed here is determined by the individual mod loader [[mods]] #mandatory # The modid of the mod modId="devsdream" #mandatory # The version number of the mod - there's a few well known ${} variables useable here or just hardcode it version="${file.jarVersion}" #mandatory # A display name for the mod displayName="Developer's Dream" #mandatory # A URL to query for updates for this mod. See the JSON update specification <here> updateJSONURL="http://myurl.me/" #optional # A URL for the "homepage" for this mod, displayed in the mod UI displayURL="http://example.com/" #optional # A file name (in the root of the mod JAR) containing a logo for display logoFile="examplemod.png" #optional # A text field displayed in the mod UI credits="Thanks for this example mod goes to Java" #optional # A text field displayed in the mod UI authors="Love, Cheese and small house plants" #optional # The description text for the mod (multi line!) (#mandatory) description=''' This is a long form description of the mod. You can write whatever you want here Have some lorem ipsum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mollis lacinia magna. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed sagittis luctus odio eu tempus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque volutpat ligula eget lacus auctor sagittis. In hac habitasse platea dictumst. Nunc gravida elit vitae sem vehicula efficitur. Donec mattis ipsum et arcu lobortis, eleifend sagittis sem rutrum. Cras pharetra quam eget posuere fermentum. Sed id tincidunt justo. Lorem ipsum dolor sit amet, consectetur adipiscing elit. ''' # A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional. [[dependencies.devsdream]] #optional # the modid of the dependency modId="forge" #mandatory # Does this dependency have to exist - if not, ordering below must be specified mandatory=true #mandatory # The version range of the dependency versionRange="[31,)" #mandatory # An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory ordering="NONE" # Side this dependency is applied on - BOTH, CLIENT or SERVER side="BOTH" # Here's another dependency [[dependencies.devsdream]] modId="minecraft" mandatory=true versionRange="[1.15.2]" ordering="NONE" side="BOTH" My mod id is "devsdream"
  21. You should create an .json item tag containing all raw food items and check for that.
  22. Hey all. I'm on the latest version of Forge and can't figure out how to register my commands. The command is at dev.chroma.devd.command.impl as EffectCommand.java I think I'm almost there, but I don't know what should be in place of the "what goes here?" line. Here's my Main.java: package dev.chroma.devd; import java.lang.System.Logger; import java.util.logging.LogManager; import com.mojang.brigadier.Command; import dev.chroma.devd.command.impl.EffectCommand; import net.minecraft.block.Block; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.item.BlockItem; import net.minecraft.item.Item; import net.minecraft.util.ResourceLocation; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.event.server.FMLServerStartingEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; @Mod("devd") public class Main { public static Main instance; public static final String modid = "devd"; public Main() { instance = this; MinecraftForge.EVENT_BUS.register(this); } @Mod.EventBusSubscriber(bus= Mod.EventBusSubscriber.Bus.MOD) public static class events { @SubscribeEvent public static void registerBlocks(final RegistryEvent.Register<Block> event) { event.getRegistry().registerAll( BlockList.blank_slate_stone = new Block(Block.Properties.create(Material.ROCK).sound(SoundType.STONE)).setRegistryName(new ResourceLocation(modid, "blank_slate_stone")) ); } @SubscribeEvent public static void registerItems(final RegistryEvent.Register<Item> event) { event.getRegistry().registerAll( ItemList.blank_slate_stone = new BlockItem(BlockList.blank_slate_stone, new Item.Properties()).setRegistryName(blank_slate_stone.getRegistryName()) ); } @SubscribeEvent public static void registerCommands(FMLServerStartingEvent event) { What goes here? } } }

Important Information

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

Configure browser push notifications

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