Let me first say I love command blocks! There is so much cool stuff you can do with them! Among other things I have noticed they lean a little bit towards programming and as such I think they should just make a slight nudge closer with the following ideas:
-OR functions. This could be something simple like,
/testfor @p[score_objective1=1||score_objective2=1]
Explanation
The output is on when either, not both, objective is true
-EXACT value being expressed differently.
/testfor @p[score_objective1==1]
Explanation
As opposed to the current situation where in order to make an exact value you need to do the following:
-Conditions of objectives based on other objectives
/testfor @p[score_objective1=score_objective2]
Explanation
One objective is dependant on the other. If one equals the other then the output is on. This would be even better when combined with the idea below
-Less than, Greater than, etc. (expressed differently to current)
/testfor @p[score_objective1<5] (etc)
Explanation
The output is on when the objective, in the example, is less than 5. Would be cool to implement this with respect to the above scenario (EG, when one objective is less than the other).
I am aware that the _min function is essentially a 'less than' function and the score_objective1=1 is kinda a greater than, but it would be nicer if they were modified to use the recognised signs so there is little confusion and maybe a change to the current situation such that an exact value doesn't need both '_min' and 'greater than' in the same line of code
Just a few simple ideas, I don't need FOR loops or WHILE loops really, but to have these three simple things would be monumental! (Loops can be made with clocks and the score_x_min function so I'm not overly phased)
Well for your first suggestion you can do that by building a physical OR gate. The second could be a possibility to shorten code a bit.
I like your third one but I can't think of a good use for it. The fourth one could be used in the future hopefully, but might not happen since its pretty much already there.
I fully support your suggestions. I have done some programming in the past and to not be able to do the things that you just suggested seems a bit odd. I would also like to add to your suggestions as well. There should be things like the Less than or equal to (a.k.a. <= ), the Greater than or equal to ( >= ) and the AND conditional, where it requires both conditions to be true.
Rollback Post to RevisionRollBack
Come visit my Scroll on Dragon Cave here: My DC Scroll
Support! Also it would be cool is there was a testfor statement to detect if a block is in a specific region.
Rollback Post to RevisionRollBack
Warning: reading the above post has been known to cause the following side effects: Uncontrollable rage, urge to smash your computer, screaming like an angry gorilla, desire to hire a gang of monkeys to hurl banana peels at Jdman1699.
I fully support your suggestions. I have done some programming in the past and to not be able to do the things that you just suggested seems a bit odd. I would also like to add to your suggestions as well. There should be things like the Less than or equal to (a.k.a. <= ), the Greater than or equal to ( >= ) and the AND conditional, where it requires both conditions to be true.
Yeah it really does, the equal to or greater than etc are good suggestions, didn't really elaborate did I?
I wish there was some way we could actually 'suggest' these things to mojang rather than make a post about it...
Well for your first suggestion you can do that by building a physical OR gate. The second could be a possibility to shorten code a bit.
I like your third one but I can't think of a good use for it. The fourth one could be used in the future hopefully, but might not happen since its pretty much already there.
The one where you can have one objective equal another allows for a customizable length to an array, like, if we were counting laps of a race and say we wanted to be able to allocate the number of laps we wanted. The command could be the number of times you cross the finish line.
Just a simple example
Rollback Post to RevisionRollBack
Click this link to check out my website for cool redstone creations and Tutorials
Support!
I would also like to see this command : /testfor @m <Specific Mobs> [r=20]
To see if the mobs in range of 20 is still there. It would be good for adventure maps
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
-OR functions. This could be something simple like,
/testfor @p[score_objective1=1||score_objective2=1]
Explanation
/testfor @p[score_objective1==1]
Explanation
/testfor @p[score_objective1=1,score_objective1_min=1]
-Conditions of objectives based on other objectives
Explanation
Explanation
I am aware that the _min function is essentially a 'less than' function and the score_objective1=1 is kinda a greater than, but it would be nicer if they were modified to use the recognised signs so there is little confusion and maybe a change to the current situation such that an exact value doesn't need both '_min' and 'greater than' in the same line of code
Just a few simple ideas, I don't need FOR loops or WHILE loops really, but to have these three simple things would be monumental! (Loops can be made with clocks and the score_x_min function so I'm not overly phased)
Thoughs?
I like your third one but I can't think of a good use for it. The fourth one could be used in the future hopefully, but might not happen since its pretty much already there.
Yeah it really does, the equal to or greater than etc are good suggestions, didn't really elaborate did I?
I wish there was some way we could actually 'suggest' these things to mojang rather than make a post about it...
I know right, it just seems silly that we can't do some of this stuff.
The one where you can have one objective equal another allows for a customizable length to an array, like, if we were counting laps of a race and say we wanted to be able to allocate the number of laps we wanted. The command could be the number of times you cross the finish line.
Just a simple example
I would also like to see this command :
/testfor @m <Specific Mobs> [r=20]
To see if the mobs in range of 20 is still there. It would be good for adventure maps