My friends and I are making a arena minigame where you fight to the death. I want to make it so that after thirty seconds (600 ticks), you get an ender pearl, and once you use the ender pearl, the timer goes back down to zero and you get another one after another thirty seconds. However, I have gotten stuck at the part where the player gets the ender pearl. Here's what I'm doing so far:
scoreboard objectives add Natan dummy
scoreboard objectives add NatanSuper dummy
scoreboard players add @a NatanSuper 1
execute if score 321nathango Natan >= 1 and if score 321nathango NatanSuper >= 600 NatanSuper run give 321nathango ender_pearl{display:{Name:'{"text":"Natan Super - Ender Pearl","color":"gold","bold":true,"italic":true}'},Enchantments:[{}]} 1
Note: Natan
is intended to be an objective name, not a scoreholder. This is because Natan is a pickable role from a list of different characters, each having their own abilities and timers, hence having different objectives.
I am trying to make it so that it only gives it to you after the 600 ticks pass AND you have the 'Natan' scoreboard greater than or equal to 1. By the way, 321nathango
is my username that I am using for testing. It appears that even manually setting my scores to 1 and 600, nothing is happening.
Does anyone know what might be wrong?