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.

Featured Replies

Posted

Hi All Im Looking for any references for a conditional recipe that relies on a config value to either allow a recipe to be used or not.

basically what I need is if config value = false then recipe doesn't work but if config value = true then recipe works.

I have tried searching for an answer but I cannot find an answer. any links or basic code is much appreciated.

  • Author

It is for a modular system I am creating within the mod itself

  • Author

a better explanation is like this

some players don't want the decorative features to the mod so they can disable the feature in the toml however I need the recipe to disable aswell to avoid major log spam

  • Author

My bad about the log spam, I was thinking about an older version however I didn't disable the block in registry but once the feature is disabled the blocks can no longer be placed and to prevent accidental crafting of a non usable block I need a conditional recipe to use that will disable if the config value says false

  • Author

As far as im aware you cannot disable or remove blocks from the registry if the config says false as the config loading is done after the blocks are registered. Please do correct me if im wrong.

If you need more information then I'm happy to explain further

Edited by DX12

  • Author
Just now, diesieben07 said:

ICondition

Is There Any documentation about that in the src files or any example I can use as Im pretty new to these topics. Thank you for the validation about dynamic registry

  • Author

@diesieben07Thank you For this, one last question. do i need to register the ICondition and serializer if so what class do i need to use to register the condition and is it under a event that i need to call it at

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.