#Scoreboard not updating

1 messages · Page 1 of 1 (latest)

calm ospreyBOT
#

I'm making a datapack about Lives [Inspired by DonutSMP] Basically whenever the Deaths get reset it Doesn't remove 1 Lives from the player:

execute as @a[scores={Deaths=1}] run scoreboard players remove @a[scores={Deaths=1}] Lives 1
scoreboard players reset @a[scores={Deaths=1}] Deaths
silk tangleBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1733931891:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

tepid root
#

Well for one, the second @a[...] in that first command can just be @s. You're already executing as all players with a Death score of 1, so you don't need to seek them out again.

For two, you may need to make your score check for Deaths=1.. to check if they have one or more deaths. I know you reset it after, but it could be failing right now while you're testing if your score was already more than 1 before creating this function

willow basalt
#

Alright

#

thanks

willow basalt
#

why can't command blocks detect @s

tepid root
#

Because @s means "the entity executing this command", but command blocks aren't entities. You need to execute as something else first, for that something else to become the new @s

willow basalt
#

👍

silk tangleBOT
# willow basalt 👍
🎗️ Is your question resolved?

If your question is resolved, that's great to hear! Make sure to run /resolve or click the Resolve Question button. Otherwise, feel free to continue asking for help! :D

silk tangleBOT
#
Question Closed

Your question, #1316422955713957941 (Scoreboard not updating), was resolved!

Original Message

#1316422955713957941 message

Duration open

17h50m

silk tangleBOT
#
Closed for inactivity

This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.

#

Re-opened the channel. Make sure to close it again once you're done.

#
Question Closed

Your question, #1316422955713957941 (Scoreboard not updating), was resolved!

Original Message

#1316422955713957941 message

Duration open

3d18h17m

silk tangleBOT
#
Closed for inactivity

This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.

#

Re-opened the channel. Make sure to close it again once you're done.