#how do I create a tick timer using functions?

1 messages · Page 1 of 1 (latest)

valid belfry
#

I’m trying to make an item that when inside your inventory, it gives you an effect after like 5 minutes. Is this possible?

sleek zodiac
#

• Check if the item is in the player inventory.
• It starts a scoreboard timer.
• When the scoreboard reaches a certain value (6000 ticks): Apply your effects
• When the item is gone from the player inventory: stop increasing the scoreboard (or just reset it)

  • You can use hasitem to check if the player has a particular item you want to have.
  • 5 minutes = 6000 ticks