© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
AdmincraftA
Admincraft•10mo ago•
2 replies
jyearyboy

Command Block help

Good afternoon, I'm trying to see if there are any command block experts out there that can help me bring my idea into fruition.

I'm running a completely F2P Cobblemon server, and the way I want to implement ranks is via a scoreboard system that will rank up the player once they achieve a certain score.

I've created a dummy Scoreboard titled "BP" (short for Boss Points) and players will achieve BP by defeating bosses. This will be handled via an external mod, and I already know how I'm going to handle this.

I'm trying to set it up to where, once a players has achieved a certain score, they will rank up in the server, but I'm struggling to figure out a way to only run the command a single time, when a player achieves that score. For testing purposes, I replaced the "rank up" command with giving the player a diamond.

I have a repeating command block set to "always active" to check if the player's score is at a certain amount. In this case, 10 or higher. The command block has the following command:
execute as @a if score @s BP matches 10..
execute as @a if score @s BP matches 10..


I've tried running this into an "impulse" command block that is "always active" and has the following command:
execute as @a run give @s minecraft:diamond 1
execute as @a run give @s minecraft:diamond 1

and it does not give the diamond when the player achieves a BP of 10, but rather it gives it a single time when I place the command block, and that's it.

Changing it to a "Chaining" command block works, but it fives the player a diamond every tick, provided their "BP" score is above 10.

Is there any way I can make it so that once it runs the command ONCE for that player, it does not run it again?
AdmincraftJoin
10,704Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

command block
AdmincraftAAdmincraft / questions
3y ago
command block /spawn
AdmincraftAAdmincraft / questions
3y ago
Teleporting yourself (@s) with a command block. Any help?
AdmincraftAAdmincraft / questions
3y ago
Command Help
AdmincraftAAdmincraft / questions
7mo ago