Show
Conditions are all true, now how do we show our tooltip?
Introduction
Once all conditions are true, it's time to decide how we want our tooltip to be shown to the player. There are currently limited amount of options, but even with the ones available interesting behaviours can be achieved.
Show properties are defined inside a presets conditions like so:
Properties
Active
Has a value of either true of false, which determines whether the preset is active or not. Activity here means the time for which the tooltip is shown.
true
The tooltip will be shown as long as all of the conditions are true. This is useful for example when a tooltip has to constantly be shown when looking at a block.
Paired with fade options
false
The tooltip will be shown once using the provided fade options. If no fade options are provided, then the default stay time is 5 seconds (5 * 20 ticks = 100 ticks).
Cooldown
Cooldown is a simple property that is applied to a whole preset. Once a preset has been shown once, it will go on a cooldown before being able to be shown again. This could be used to, for example remind the player every 5 minutes that they have not voted or are located in a region.
The value of cooldown is an integer value of time in ticks. (1 second = 20 minecraft ticks)
Last updated