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.

LadyInStem

Members
  • Joined

  • Last visited

Everything posted by LadyInStem

  1. Forgot to include: I am working in 1.19.2 but am planning on back-porting and forward-porting the mod to as many versions as I can wrap my head around.
  2. So let's say that I've set up an differed item register: private static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, OpenResources.MOD_ID); ...and that I have registered a new item item with it: public static final RegistryObject<Item> TEST = ITEMS.register("test", () -> new Item(new Item.Properties().tab(CreativeModeTab.TAB_MATERIALS))); The normal way to include a tag - let's say for example I used the tag "forge:ingots/iron" - I would include a file at the path `<SRC FOLDER>/resources/data/forge/tags/items/ingots/` called "iron.json", and that json would look like this: {"replace": false, "values": ["<MOD_ID>:test"]} This is all to say that I understand how to do this normally. What I don't know how to do, and can't seem to find after looking through the documentation and searches online, is how do add this tag programmatically - meaning from the Java source code itself. I want to do this because I need to dynamically add tags for a mod I am working on. Thanks in advance for any help anyone is willing to provide.

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.