ItemComponent - Tooltip Style Component Apply (Section) — SkBee

Addon: SkBee · Category: Section · Since: 3.11.0

Syntax

apply tooltip display [component] to %itemstacks/itemtypes/slots%

Description

Apply a tooltip style component to any item allowing you to hide the tooltip or specific components. You will also require a `consumable` component to actually make the item consumable. Requires Paper 1.21.5+ See [**Tooltip Style Component**](https://minecraft.wiki/w/Data_component_format#tooltip_style) on McWiki for more details.

**Entries/Sections**: - `hide_tooltip` = If true, the item will have no tooltip when hovered (optional, boolean). - `hidden_components` = The tooltips provided by any component in this list will be hidden. If that component provides no tooltip, it will have no effect (optional, data component types).

Examples

apply tooltip display component to {_i}:
	hide_tooltip: false
	hidden_components: minecraft:attribute_modifiers, minecraft:enchantments
apply tooltip display component to {_i}:
	hide_tooltip: true

View source