So I was working on my 2nd dungeon and had to use scoreboards, I created a scoreboard caleld totalKillCount which obviously, checks how many mob kills you do. I did built a extremely fast repeater where it constantly checks the nearest player's totalKillCount and once it reaches 25 it's sopposed to tp him out, but it doesn't
I did alot of testing and realized that the testfor command isn't working with scoreboards I.E:
I do testfor @p[lm=1] works fine, I do testfor @p[score_totalKillCount_min=3] set my totalKillCount to 5, nothing happens after many tries I realized that it just doesn't work. I am using spigot as it is right now, if anyone knows how to fix this plz post it in the comments thank you
The Meaning of Life, the Universe, and Everything.
Location:
El Paso
Join Date:
4/10/2014
Posts:
50
Member Details
The first thing that pops out to me is that you are using "TotalKillCount" as your objective name. This is usually the criteria when adding TotalKillcount as an objective. The first thing I would do is type this command /scoreboard objectives list. If you named the objective something different, it will show up here. Now if you don't see the objective you are looking for, you may have not added it correctly in the first place. The string should go like this: /scoreboard objectives add <name> totalKillCount [display name...]. The name and display name can be anything you want. Now the third thing I would need to ask is what kind of clock are you using to do a test for? Are you using a clock at all?
The first thing that pops out to me is that you are using "TotalKillCount" as your objective name. This is usually the criteria when adding TotalKillcount as an objective. The first thing I would do is type this command /scoreboard objectives list. If you named the objective something different, it will show up here. Now if you don't see the objective you are looking for, you may have not added it correctly in the first place. The string should go like this: /scoreboard objectives add <name> totalKillCount [display name...]. The name and display name can be anything you want. Now the third thing I would need to ask is what kind of clock are you using to do a test for? Are you using a clock at all?
I can see your concern but no I have named it totalKillCount and it checks the totalKillCount
So I was working on my 2nd dungeon and had to use scoreboards, I created a scoreboard caleld totalKillCount which obviously, checks how many mob kills you do. I did built a extremely fast repeater where it constantly checks the nearest player's totalKillCount and once it reaches 25 it's sopposed to tp him out, but it doesn't
I did alot of testing and realized that the testfor command isn't working with scoreboards I.E:
I do testfor @p[lm=1] works fine, I do testfor @p[score_totalKillCount_min=3] set my totalKillCount to 5, nothing happens after many tries I realized that it just doesn't work. I am using spigot as it is right now, if anyone knows how to fix this plz post it in the comments thank you
I can see your concern but no I have named it totalKillCount and it checks the totalKillCount
In that case, everything is correct and functions as it should in vanilla. Unfortunately it seems to be a problem with Spigot; mods/plugins are known for interfering with how commands and command blocks function. You can try using your mechanism in vanilla to ensure that it works, though I don't have a solution for Spigot (might be worth checking their forums).
In that case, everything is correct and functions as it should in vanilla. Unfortunately it seems to be a problem with Spigot; mods/plugins are known for interfering with how commands and command blocks function. You can try using your mechanism in vanilla to ensure that it works, though I don't have a solution for Spigot (might be worth checking their forums).
I'm not sure what update it was added and if you can use it, but scoreboard has it's own testing command
/scoreboard players test <selector> <objective> <min> <max>
so maybe that's not affected by spigot.
I did alot of testing and realized that the testfor command isn't working with scoreboards I.E:
I do testfor @p[lm=1] works fine, I do testfor @p[score_totalKillCount_min=3] set my totalKillCount to 5, nothing happens after many tries I realized that it just doesn't work. I am using spigot as it is right now, if anyone knows how to fix this plz post it in the comments thank you
I can see your concern but no I have named it totalKillCount and it checks the totalKillCount
In that case, everything is correct and functions as it should in vanilla. Unfortunately it seems to be a problem with Spigot; mods/plugins are known for interfering with how commands and command blocks function. You can try using your mechanism in vanilla to ensure that it works, though I don't have a solution for Spigot (might be worth checking their forums).
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Thank you, I will
I'm not sure what update it was added and if you can use it, but scoreboard has it's own testing command
/scoreboard players test <selector> <objective> <min> <max>
so maybe that's not affected by spigot.