Skip to content

Tags

Rebar's language files make use of the MiniMessage format. MiniMessage has many tags already built in, but Rebar adds new tags on top of that.

See tutorial 3 for a much more in-depth explanation of tags and how to use them.

List of tags that Rebar adds

Tag Description Example Example result
<arrow>
<arrow:[COLOR]>
Inserts a right arrow (→) with the specified color (default: 0x666666) <arrow> Watermelon arrow
<guidearrow> Shorthand for <arrow:0x3a293>; used in the Rebar guide <guidearrow> Watermelon guidearrow
<diamond>
<diamond:[COLOR]>
Inserts a diamond (◆) with the specified color (default: 0x666666) <diamond> Watermelon diamond
<star>
<star:[COLOR]>
Inserts a star (★) with the specified color (default: NamedTextColor.BLUE) <star> Watermelon star
<insn></insn> Applies a yellow styling (0xf9d104), used for instructions <insn>Right click</insn> insn
<guideinsn></guideinsn> Applies a purple styling (0xc907f4), used for guide instructions <guideinsn>Right click</guideinsn> guideinsn
<attr></attr> Applies a cyan styling (0xa9d9e8), used for attributes <attr>Watermelons:</attr> 5 attr
<unit:[unit]></unit>
<unit:[prefix]:[unit]></unit>
Formats a constant number as a unit, with an optional metric prefix <unit:seconds>1000</unit> unit
<nbsp></nbsp> Replaces spaces with non-breaking spaces, preventing line breaks <nbsp>Watermelon</nbsp> nbsp
<item:[item_name]> Renders the translated name of a vanilla/rebar item <item:pylon:bandage> item
<entity:[entity_type]> Renders the translated name of an entity type <entity:creeper> enitity
<effect:[effect_type]> Renders the translated name of a potion effect <effect:speed> effect
<enchant:[enchant_name]> Renders the translated name of an enchantment <enchant:sharpness> enchant
<biome:[biome_name]> Renders the translated name of a biome <biome:plains> biome