So let's say I have a score of 4 out of 5. How can I use /testfor to detect I have 4 points. I know how to use /testfor @p[score_Points_min=5. If I take out the min I get this: /testfor @p[score_Points=4] You know, to detect that I have 4 points. This should work right? No, it still activates when I have 2 points. I want this to tell me I have 4 points. I've tried every single command that would possibly work. However it STILL consists of activating no matter what score I have. How can I get this to work? For any more info ask me!
57
What if I want to make a command like this:  execute @e[score_A=10] ~ ~ ~ summon Creeper   So that the entity must have a score of 10 (not less, not more)?  Does it even exist that or a [score_A_max=] argument?  I know about scoreboard players test, but i guess it is not the case to use it.
9484
I found the /testfor command today in Minecraft, but when I use it in a command block it says     Usage: /testfor &lt;player>   and when I do that it then says     /testfor must be used by command blocks with an analog output.   What does that mean and how can I use the command?
27797
I'm not the most experienced person when it comes to commands. I worked out how to do stuff like when holding x you have y effect. I wanted to think of something that gave other people an effect when hit. Here is what I came up with but I got stuck when it said it couldn't execute the command.  /scoreboard objective add nokill dummy  /scoreboard objective add poi dummy  /scoreboard players set [player] nokill 1  /scoreboard players add @a poi 1 {SelectedItem:{id:minecraft:diamond_sword,display:{Name:{Poison sword}}}}  /execute @a[score_poi_min=1] ~ ~ ~ /effect @p[score_nokill_max=1,r=5] {HurtTime:1} minecraft:poison 10 1
37435
Call $P(k): k!&lt;k^k$, for $k\geq 2$ Test it out with 2, and it's true ($2&lt;4$).   Assume that $P(k)$ is true for some $k\geq2$.  Then show that $P(k+1)$ is true.   $P(k+1): (k+1)!&lt;(k+1)^{k+1}$  Ministep: $(k+1)!=k!(k+1)$ Ministep: $(k+1)^{k+1}=(k+1)^{k}(k+1)$    $k!(k+1)&lt;(k+1)^{k}(k+1)$  Can I just pull out that (k+1) and call it a day? That will make $k!&lt;(k+1)^{k}$.   We're already assuming that $k!&lt;k^k$, for some integer $k\geq 2$, and I don't think I need to prove that $k^{k}&lt;(k+1)^{k}$. I mean, I guess I could go prove that as well, but let's assume for the moment that I don't have to. Since we're assuming the original $P(k)$ is true, I should be able to write $k!&lt;k^{k}&lt;(k+1)^{k}$ right? That would prove the $k+1$ case. Is this the correct way to go about things? It seems too easy, but makes sense.  Thanks for confirmation and/or pointing out mistakes!
79646
Can I place more than 2 midoffs or 3-4 silly points in cricket? I have seen no match with such fieldings? But there are no rules against it.
41787
Basically, I'm trying to recreate the Faction plugins /f map in my single-player without mods as my PC doesn't run them very well. (I know it sounds strange.) I am trying to use the /testfor to test if I have written '/f map' in chat, and if I have, it would show me a custom generated map. I don't know how to word this better xD Essentially what I want is for it to test if I have written a command in chat, and if I have, display something.
66234
I want to see who has the highest score in a specific tag (for example c#) in my country. Is there any query or script for that? I've found , but it doesn't work. Can any one take a look at it and see what's its problem? I also have found  which does similar, however gets users which only have a tag badge.
5095
I downloaded the points2one plugin and tried many times to connect points to a line, but it never works.  Is there something that I set wrong?      I tried the answer,but it has been running 10 mins, and does nothing, so should I wait for it?
34247
The  states that:      The scores are created by comparing the word in the list in step 2* with all the 3-letter words. By using the scoring matrix (substitution matrix) to score the comparison of each residue pair, there are 203 possible match scores for a 3-letter word. For example, the score obtained by comparing PQG with PEG and PQA is 15 and 12, respectively with the BLOSUM62 weighting scheme.   I do not understand how they got a score of 15 for PQG v. PEG. What is a scoring matrix, how is it computed, and how is it used?      Step 2 on that page is Make a k-letter word list of the query sequence: “Take k=3 for example, we list the words of length 3 in the query protein sequence (k is usually 11 for a DNA sequence) sequentially, until the last letter of the query sequence is included”.
119913
I understand commands but I am fairly new to the 1.13 changes.  I am trying to make an AFK system within vanilla Minecraft.  I want to use the /execute command to execute once. I want to detect when a scoreboard objective is a certain value and print  [Player] has gone AFK   in the chat only once. This is my command at the moment,  execute as @a[scores={afk=1..}] at @s run tellraw @a {"text":"","color":"red","extra":[{"selector":"@s"},{"text":" has gone AFK.","color":"yellow"}]}   It keeps printing until the scoreboard value is reset.
22391
I'm interested in negating fall damage with command blocks by giving players Resistance as they're falling. How can I use /testfor to tell whether a player is on the ground or in the air?
3774
I am trying to test for any player that is on Y level 118.  Here is the command I am using:  /testfor @a[y=118]   The problem is, the command isn't working as expected. In my chat when I type this command, it reads:  Found Boomcrasc078    The problem is, I am not on y=118 when I run this command. What could be the problem?  I have also tested with a space:  /testfor @a [y=118]   but it still doesn't work.
96828
Request I know that , but I would like it to be a standard feature on the user page. Rationale The candidate score is more to me than just, well, the candidate score. It represents how active and involved a user is. It represents how good a user one is. Would it be possible to show the candidate score as a metric on the user page? The element already exists, as it is shown for mod candidates, so could that same element be shown on one's user page? Like a comment reads, this could be a privilege to be earned with a decent amount of rep (since every k of rep is 1 point of the score, up to half of the total score, it would be a depressingly low score any way).
11723
Right now  is fairly broken -- it's a simple descending sort by views. As Joel said , it is &quot;a self-fulfilling prophecy.&quot; But this is not intentional, it's only because we haven't had time to improve it yet! As I sit down to write a better algorithm, I thought you guys might have some insight into what would make a good formula to determine the &quot;hot&quot; questions -- over the last 24 hours, the last week, the last month, and all time. Here are the variables we have to work with:  Votes [aka Score] Views Answers Answer Votes [aka Score] Whether the question has an accepted answer or not Time question was originally asked Time of last activity on question Reputation of asker Reputation(s) of answerers  Joel cited the reddit formula as an example, but I think our site is a little different than just a basic link submission site. Plus, we have more variables and data to work with. I found a  describing a few formulas: Y Combinator Hacker News  (p - 1) / (t + 2)^1.5 p = votes (points) from users t = time since submission in hours  Reddit  t = (time of entry post) - (Dec 8, 2005) x = upvotes - downvotes y = {1 if x &gt; 0, 0 if x = 0, -1 if x &lt; 0) z = {1 if x &lt; 0, otherwise x} log(z) + (y * t)/45000  Thoughts? Ideas? I don't want to overthink this; I just want the &quot;hot&quot; questions to be relevant and useful to us. So the simpler the algorithm the better! Based on my analysis of the above and the comments so far, here's the second version of what I have implemented so far. This might suck. I don't know:  (log(Qviews)*4) + ((Qanswers * Qscore)/5) + sum(Ascores) -------------------------------------------------------- ((QageInHours+1) - ((QageInHours - Qupdated)/2)) ^ 1.5  Note that accepted answers weight not at all in hotness. This is intentional, as I feel accepted answers are a fine social contract, but not a good data point for question or answer quality. This algorithm will heavily favor questions with LOTS of answers, as the sum(Ascores) are now included -- one assumes if there are lots of answers, there will be a lot more voting on the answers, too. Update: Note that this formula is what is used on the  linked from the homepage of each site. It is not the formula used to determine the  list. See .
30993
I need to calculate the average score of a list of userId.  I have a table user_place_score:  (user_id, place_id, score)   Sometimes I do not have the score (no row for (user_id,place_id) in the table) so I need to fetch a "default" score from the table default_place_score:  (place_id, score)   Is is possible in PostgreSQL to do this in one query? For a given list of users and one place_id, select all their scores in the user_place_score and if no row is found then take the score found if the default_place_score table?  Basically I want to avoid doing this kind of stuff:  for (Integer userId : userIds) {   score = (query to fetch the score for this userId)   if (score == null)     defaultScore = (query to fetch the default score for this PlaceId)    total = total + defaultScore }  //return the average return total/numberOfUser
85934
I've been making a map for 1.10 and it's going great, but 1.11 shows great mobs to use for it. However, most things have channged in command syntax. For example, /kill @e[type=ArmorStand,r=6] is now /kill @e[type=Armor_Stand,r=6]  What about /testfor? I can't find a way to testfor a player to stand on a block and give them an effect.   What's is going on in this image is that a redstone clock is running into this command /testfor @a[1117,20,507,r=1] (if I was to stand on them cords the comparator would turn on and power that command block), but it only works in 1.10... from 1.11 snapshots, I've seen some errors of it, like it now needs to have {} at the beginning and end of it. (e.g. /testfor @a{[1117,20,507,r=1]})   It's still not working, though, so does anyone know how to get it to work?
26001
In Minecraft 1.16.1, I’m trying to make a system thats detects when one of several fake players doesnt have a specific score. Here is my first attempt: execute unless score sticks_have page-2 matches 2.. unless score plank_have page-2 matches 1.. run ...  After trying this, I realized that all scores need to be in the correct range before it runs the command! But I want it to run the command when any of the scores are in range. I thought of using the following command, but it doesn’t detect fake players: execute unless entity @a[scores={sticks_have=2..,plank_have=1..}] run...  I know I can use multiple command blocks, but I would rather not, just do I can conserve space. What can I do?