Closed MageFX closed 3 years ago
tick
is available as a global variable in Requirements
, which means how many ticks have been passed since you opened the menu. Here is an example:
Slot0 = [{
# white pane
Item { ItemType = "minecraft:stained_glass_pane", Count = 1, UnsafeDamage = 0 }
Requirements = "tick % 20 < 10"
}, {
# black pane
Item { ItemType = "minecraft:stained_glass_pane", Count = 1, UnsafeDamage = 15 }
Requirements = "tick % 20 >= 10"
}]
Would it be possible to add a feature where 2 ItemTypes can be used on the same Slot but switch between each couple of seconds to show a highlight effect?
Example