Skip to content

1.16.3 Documentation

Tyler Hancock edited this page Aug 30, 2021 · 2 revisions

This documentation is for Minecraft 1.16.3 and potentially future versions as well.

Adding a Tip

Resource Packs

New tips can be defined through resource packs. If you are making a Modpack then Open Loader can be used to load your resource pack. If you are making a mod your mod's resource directory is already treated as a resource pack. To create a new tip create a json file in the assets/your_id/tips folder. This file is responsible for defining all the properties if your tip. You can find examples here.

Tip Body / Text

The text for a tip is defined using the tip property in your json file. Tips use the Raw JSON text format to define their text and other properties. This allows you to change things like the styling, color, and even the font used by your text. Here is what an example tip would look like.

{
  "tip": {
    "text": "This is an example tip."
  }
}
{
  "tip": {
    "text": "This tip is green and bold.",
    "bold": true,
    "color": "green"
  }
}

If you want your tip to support other languages you should use the "translate" content type instead of the "text" type. When using the translate option it will pull text from the correct language file in assets/your_id/lang. It is highly recommended that modded tips should use the translate option.

{
  "tip": {
    "translate": "your_id.tip.the_tip_id"
  }
}

Custom Titles

By default all tips will use the standard title which says TIP in bold and yellow. You can change this tip by defining the title property. Titles use the Raw JSON Text Format to define their text and other properties.

{
  "title": {
    "text": "Custom Title",
    "bold": true,
    "color": "green"
  },
  "tip": {
    "text": "This tip is an example tip."
  }
}

Conditions

In some cases you may not want your tip file to be loaded. For example a tip that is specific to one mod should only be loaded if that mod is installed. Using conditions you can specify when the file should be loaded.

{
  "conditions": [
    {
      "type": "forge:mod_loaded",
      "modid": "botania"
    }
  ],
  "tip": {
    "text": "This tip is only shown when Botania is loaded."
  }
}

Clone this wiki locally