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.

MarsKittenPro

Members
  • Joined

  • Last visited

  1. I looked at the Javadocs it still says that its deprecated when I follow it. Javadocs: private static final DeferredRegister BLOCKS = new DeferredRegister<>(ForgeRegistries.BLOCKS, MODID); My code: private static final DeferredRegister BLOCKS = new DeferredRegister<>(ForgeRegistries.BLOCKS, Main.MODID);
  2. Hello, I have recently seen Deferred Registering in the docs so I went I read about how its the new way of registering stuff so I switch my registering to this. But whenever I try to use it it give me a warning - The constructor DeferredRegister<Block>(IForgeRegistry<Block>, String) is deprecated And this is all the code I wrote: import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraftforge.fml.RegistryObject; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; public class ModEventSubsciber { private static final DeferredRegister<Block> BLOCKS = new DeferredRegister<Block>(ForgeRegistries.BLOCKS, null); public static final RegistryObject<Block> ROCK_BLOCK = BLOCKS.register("rock", () -> new Block(Block.Properties.create(Material.ROCK))); public ModEventSubsciber() { BLOCKS.register(FMLJavaModLoadingContext.get().getModEventBus()); } } Thank you for reading!!!
  3. Ok I found this to fix the problem on Mac of .DS_Stores navigate to the project folder and then type this command: defaults write com.apple.desktopservices DSDontWriteNetworkStores true then type this very carefully: find . -name ".DS_Store" -depth -exec rm {} \; Basically it disables .DS_Store creation and then deletes all the .DS_Store creation. don't get rid of the -name ".DS_Store" flag or it will delete things you don't want deleted. https://osxdaily.com/2012/07/05/delete-all-ds-store-files-from-mac-os-x/ https://osxdaily.com/2010/02/03/how-to-prevent-ds_store-file-creation/
  4. ok I will look at the forum thank you so much!!
  5. I just started modding and I have run into a forge crash. Forge version: 31.2.31 ---- Minecraft Crash Report ---- // This doesn't make any sense! Time: 18/7/20, 11:02 am Description: Rendering overlay net.minecraft.util.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: .DS_Store:sounds.json at net.minecraft.util.ResourceLocation.<init>(ResourceLocation.java:28) ~[?:?] {re:classloading} at net.minecraft.util.ResourceLocation.<init>(ResourceLocation.java:39) ~[?:?] {re:classloading} at net.minecraft.client.audio.SoundHandler.prepare(SoundHandler.java:71) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.audio.SoundHandler.prepare(SoundHandler.java:35) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.resources.ReloadListener.lambda$reload$0(ReloadListener.java:12) ~[?:?] {re:classloading} at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?] {} at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756) ~[?:?] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) ~[?:?] {} at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?] {} at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?] {} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?] {} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177) ~[?:?] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace: at net.minecraft.client.renderer.GameRenderer.updateCameraAndRender(GameRenderer.java:484) -- Overlay render details -- Details: Overlay name: net.minecraft.client.gui.ResourceLoadProgressGui Stacktrace: at net.minecraft.client.renderer.GameRenderer.updateCameraAndRender(GameRenderer.java:484) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:961) at net.minecraft.client.Minecraft.run(Minecraft.java:558) at net.minecraft.client.main.Main.main(Main.java:177) 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.15.2 Minecraft Version ID: 1.15.2 Operating System: Mac OS X (x86_64) version 10.15.4 Java Version: 14.0.1, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation Memory: 445228032 bytes (424 MB) / 667942912 bytes (637 MB) up to 2147483648 bytes (2048 MB) CPUs: 4 JVM Flags: 1 total; -Xss1M ModLauncher: 5.1.0+69+master.79f13f7 ModLauncher launch target: fmluserdevclient ModLauncher naming: mcp ModLauncher services: /eventbus-2.2.0-service.jar eventbus PLUGINSERVICE /forge-1.15.2-31.2.31_mapped_snapshot_20200514-1.15.1-launcher.jar object_holder_definalize PLUGINSERVICE /forge-1.15.2-31.2.31_mapped_snapshot_20200514-1.15.1-launcher.jar runtime_enum_extender PLUGINSERVICE /forge-1.15.2-31.2.31_mapped_snapshot_20200514-1.15.1-launcher.jar capability_inject_definalize PLUGINSERVICE /accesstransformers-2.1.3-shadowed.jar accesstransformer PLUGINSERVICE /forge-1.15.2-31.2.31_mapped_snapshot_20200514-1.15.1-launcher.jar runtimedistcleaner PLUGINSERVICE /forge-1.15.2-31.2.31_mapped_snapshot_20200514-1.15.1-launcher.jar fml TRANSFORMATIONSERVICE FML: 31.2 Forge: net.minecraftforge:31.2.31 FML Language Providers: [email protected] minecraft@1 Mod List: client-extra.jar Minecraft {[email protected] ENQUEUE_IMC} forge-1.15.2-31.2.31_mapped_snapshot_20200514-1.15.1-recomp.jar Forge {[email protected] ENQUEUE_IMC} main Magic craft {[email protected] ENQUEUE_IMC} Launched Version: MOD_DEV Backend library: LWJGL version 3.2.1 build 12 Backend API: Intel(R) HD Graphics 6000 GL version 2.1 INTEL-14.5.22, Intel Inc. GL Caps: Using framebuffer using ARB_framebuffer_object extension Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'forge' Type: Client (map_client.txt) Resource Packs: Current Language: ~~ERROR~~ NullPointerException: null CPU: 4x Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz Thank you!!

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.