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.

Vali_du_68

Members
  • Joined

  • Last visited

  1. Vali_du_68 joined the community
  2. Hello, I am developing a mod for Minecraft 1.16.5 and Forge, and in order to add a functionality, I need to retrieve some information from a json file located at this address: "\Mod Name\src\main\resources\data\modid\equivalencies\item_prices.json". During some tests in an auxiliary test class, which did not require the game to run, I successfully retrieved information from this file using a relative path (directly from the mod folder), but when I implemented this code in the actual mod code, I have a NoSuchFileException. I also have tried to use the relative path of that json file from the location of the actual class that will be using that file, but I still have the same exception. So, I was wondering, where exactly is the starting point for the relative path to the json file, and how to find it? Or, even better, how to read that file the most efficiently? Thank you in advance for your answers. PS: Sorry for my English...

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.