Tips

Tips

53M Downloads

[QUESTION] How to disable the default tips and only show my own tips.

szunakabeats opened this issue ยท 4 comments

commented

Question

Hey im using mc 1.21.1 on neoforge.

i already made a resourcepack with some of my own tips and im trying to ignore the default tips by putting the namespace "tipsmod" in the config file. i attached my folder structure here.

Image

and heres a example of some tips for EMI. im trying to theme them. in this case "Quality of Life"

[
    {
      "title": {
        "text": "Quality of Life",
        "bold": true,
        "color": "aqua"
      },
      "tip": {
        "text": "Did you know? Press 'R' to view the recipe of an item, or 'U' to see where it's used."
      }
    },
    {
      "title": {
        "text": "Quality of Life",
        "bold": true,
        "color": "aqua"
      },
      "tip": {
        "text": "Use the search bar to quickly find items or recipes. Just type the name or part of it."
      }
    },
    {
      "title": {
        "text": "Quality of Life",
        "bold": true,
        "color": "aqua"
      },
      "tip": {
        "text": "EMI displays complex recipes as a tree structure. See all steps at a glance."
      }
    },
    {
      "title": {
        "text": "Quality of Life",
        "bold": true,
        "color": "aqua"
      },
      "tip": {
        "text": "You can save frequently used recipes as favorites for quick access. Press A over an item to safe it."
      }
    },
      {
      "title": {
        "text": "Quality of Life",
        "bold": true,
        "color": "aqua"
      },
      "tip": {
        "text": "Use the crafting mode to gather all needed ressources for complex recepies."
      }
    }
  ]
commented

You can disable all of them just typing namespace of the mod in config.

"ignoredNamespaces": [tipsmod],

However, I tried disabling just some of them and I was unsuccesful.

commented

Did you ever solve how to disable only some of them?

commented

Did you ever solve how to disable only some of them?

unfortunately no, but the solution may be if you copy the ones you want into the datapack.

commented

@szunakabeats Your original issue is caused by the file format you are using. Each tip must be its own file, you can't just use an array like that. There should have been an error message warning you why it wasn't loading your tips.

@LughtMon That's the right way to go about disabling the built-in tips, although your example does not include quotes around the namespace which will cause issues for anyone following your advice directly. Here is how it should look in the config file.

  "ignored_namespaces": {
    "//": "Tips from an ignored namespace will not be displayed in game.",
    "value": ["tipsmod"]
  },

In the future I will add a simple true/false option to disable built-in tips that will also disable tips added by mods, assuming they add them correctly. I thought the namespace option would give users more power, but it's pretty confusing and can be hard to use if you have many mods adding tips.

@onjulraz @LughtMon Yes it is possible to disable specific tips, you just need to work out their full tip ID and put them in the ignored_tip_ids section. For example if you want to block the zombie armor tip you can disable it like this.

  "ignored_tip_ids": {
    "//": "Adding a tip ID here will prevent it from being displayed.",
    "value": ["tipsmod:zombie_armor"]
  },

The original poster asked about 1.21.1 so all of my examples match that version. Older versions have slightly different formats but follow the same ideas.