#combining functions

1 messages · Page 1 of 1 (latest)

gusty thornBOT
#
**Someone will come and help soon!**

💬 While you wait, take this time to provide more context and details. What are you trying to achieve overall - maybe there's an easier way to solve this problem

🙇 If it's been 30 minutes and you're still waiting for someone to help, hit the Summon Helpers button to call the official helpers here

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

eternal thicket
#

what do you mean by once per life?

obsidian stump
#

basically it give health boost 1 infinnitely but you would loose the effect on death which is ok but i want it to only be used once until you die

#

also is there a way to implement if and else

eternal thicket
eternal thicket
obsidian stump
#

yeah but it also produces particles and sounds

eternal thicket
#

You can use the statistics scoreboard that counts the deaths. If it's 0 and you click you will get a tag. As long as you have that tag it will not give you the effect again. In the tick function, it will check if the death score is 1 or higher and will remove the tag then. (the death score also has to be reset)

obsidian stump
#

how do i give the tag?

eternal thicket
#

tag @s add <tag name>

gusty thornBOT
#
:white_check_mark: Closed Question

Closed the channel and marled it as resolved!
If you have more questions feel free to ask them in a new channel!

gusty thornBOT
#
:white_check_mark: Closed Question

Closed the channel and marled it as resolved!
If you have more questions feel free to ask them in a new channel!