Skip 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.

warjort

Members
  • Joined

  • Last visited

Everything posted by warjort

  1. https://forge.gemwire.uk/wiki/Main_Page Specifically, the "handling information" section.
  2. private static final Map<ArmorMaterial, Supplier<MobEffectInstance>> MATERIAL_TO_EFFECT_MAP = (new ImmutableMap.Builder<ArmorMaterial, MobEffectInstance>()) .put(ModArmourMaterials.PRISMARITE, () -> new MobEffectInstance(ModEffects.PRISMARITE_SPEED.get(), 200, 1, true, true)).build(); You should change it to something like the above. And change the other code accordingly. I assume the map is only used at runtime? That way it defers the registration retrieval and construction until you need it. And calling get() for the supplier in the map gives you a new MobEffectInstance every time.
  3. Look at uses of MoveToBlockGoal, e.g. the RemoveBlock or ZombieAttackTurtleEgg goal
  4. https://github.com/Nyancatpig/Modest-Mining/blob/68c1007d97165b93673d76c46a39578ab7ace747/src/main/java/com/ncpbails/modestmining/item/custom/ModArmorItem.java#L18 You are initialising this map during classloading/mod initialisation. Registration hasn't happened yet so using get() returns that error. It's even worse. The whole point of the MobEffectInstance is that it represents individual applications of the effect to different entities and players. You are sharing the same object for every one.
  5. https://github.com/sp614x/optifine/issues/7127
  6. https://forge.gemwire.uk/wiki/Custom_Item_Animations
  7. The broken config file is in the config folder. If you don't have a backup of the file, you can delete it and it should be recreated with default values.
  8. Why do you keep asking questions that are answered in links to docs that have already been posted? https://forge.gemwire.uk/wiki/Capabilities/Attaching#Synchronizing_Data_with_Clients It makes me think I am wasting my time being your search engine, if you don't read the links I give you. 🙂 Your question has also been answered maybe a hundred times in this forum in various forms depending upon the use case.
  9. You should not be posting compiler errors in this forum. This is not a java teaching/support forum. PRISMARITE_SPEED.get() gets you the real object of type MobEffect. https://forge.gemwire.uk/wiki/Registration
  10. Issue with the flywheel mod. Check you have the latest version the contact the mod author.
  11. Looks like you have something that references an item that does not exist? Probably a recipe. Ask the byg mod authors.
  12. At resource pack loading Minecraft stiches those InputStreams into a big image, the TextureAtlas(es). That is what the code I told you to look at does. Your original question was how to get the source file. Which is complicated, if not impossible, since it doesn't necessarily exist.
  13. Look at TextureAtlas.load() - the private method not the simple one - for how it uses the name in the TextureAtlasSprite(Info) It isn't necessarily a file. All that is required is the resource pack implementation provides an InputStream. See the subclasses of PackResources for all the different ways it creates that InputStream. e.g. zip/jar, files, classpath, the assets subfolder with its index, etc. There are some mods that generate images dynamically so the InputStream could be from bytes in memory.
  14. What it is trying to do is open for the file for writes. In case it needs to add new config options added recently by the mod. It's likely something with your file system is stopping this happening which java is interpreting as a file lock. Try moving your curseforge installation to a different folder or even a new partition/disk.
  15. Well, you need to find out what the other process is. Maybe something like this will help you find it? https://learn.microsoft.com/en-gb/sysinternals/downloads/handle Or maybe there is some other problem, e.g. with the file system/disk, and java is misreporting the error as a file lock?
  16. That shows you have optifine (a client side only mod) on the server?
  17. Your log is private and it needs to be the debug.log anyway for us to see which mods you are using. The error means you have mods that want a different version of forge. e.g. trying to use 1.19 mods with 1.18 or trying to use forge 40.1.0 with mods like create that wants forge 40.1.60 or after
  18. Did you (re)run the genItellijRuns gradle task? You need to run it again when you change your build.gradle in a significant way. Otherwise maybe? https://forge.gemwire.uk/wiki/Mods.toml
  19. In general no. You can get the list of widgets from Screen.renderables AbstractWidget has an isHovered(), but it isn't guaranteed all your renderables are AbstractWidgets.
  20. Please don't hijack other people's threads. Yours is not the same error. This crash does not identify what is causing your problem. It doesn't mention your video driver. You should try the latest of openjdk, currently 17.0.5 https://adoptium.net/ If that doesn't fix it, report the problem using the link in the crash log:

Important Information

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

Account

Navigation

Search

Search

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.