help with killed/death
alright, so basically i have a system that happens when you killed someone, it gives you a tag, and when you die, you gain a tag, so basically, it does this command,
Continue to help postscoreboard players operation @a[tag=Kill] OtherRunes = @a[tag=Died] Runes
which would in my mind, put Died runes score, into Kill Otherrunes score, then we focus on Kill, died isnt important anymore,
then, this command, which is below, will if they have the tag kill, will add to the KillTimer,
execute as @a[tag=Kill] run scoreboard players add @s KillTimer 1
, then, it is if you have 10 of kill timer it runs a function, killtimer
execute as @a[scores={KillTimer=10..}] run function artifact:killtimer
then, in killtimer function, it does this.
execute as @s[scores={Runes=5..}] run execute as @s[scores={OtherRunes=-4..}] run tag @s add RuneGive execute as @s[scores={Runes=..4}] run execute as @s[scores={OtherRunes=-4..}] run scoreboard players add @s Runes 1 execute as @s[scores={Runes=..4}] run execute as @s[scores={OtherRunes=-4..}] run clear @s emerald[custom_data~{add:1}] 1 execute as @s[scores={OtherRunes=..-5}] run tellraw @s {"color":"green","italic":false,"text":"The Player You Killed Has -5 Runes!"} scoreboard players set @s KillTimer 0 tag @s remove Kill
in theory, in my head you should gain a rune or get given one, in RuneGive, but thats another story, thats not the issue, but, it doesnt add one to your rune, nor anything else, i feel like the issue is in the operation, but not too sure, Died tag is removed, not too sure, any ideas why it isnt working?