Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

6
New QueryResults and Gamerule Variables
Post Flair (click to view more posts with a particular flair)
Post Body

You can now set custom gamerules to hold values such as integers and strings. A good example of how this works is variables in coding. You declare the variable name and then the value.

/gamerule NewGamerule 10

This will create a new gamerule called NewGamerule and assign it's value to 10, you can change the value by running the same command with a different number. But this is not very useful on its own but it goes with the new QueryResults in the /stats command. To use this effectively you'll need to create a dummy scoreboard and a fake player. For this example the scoreboard is called 'Test' and the fake player is called 'Test1'.

/stats block ~ ~ ~-2 set QueryResult Test1 Test

The co-ordinates must be targeting a command block. In the command block that the /stats command is targeting should have this command in it

gamerule NewGamerule

This works similarly to CommandStats where it updates a players scoreboard value. Once you have run both command blocks, it will update the fake player (Test1) on the scoreboard to the value you set for the gamerule. So if I set the gamerule value to 100, it would set the fake player to 100.

I know I explained this horribly, here is a video that shows it in action.

No one has tweeted /u/Searge (@Searge) about this yet. This may be the hidden feature of this weeks snapshot

Author
Account Strength
100%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
56,391
Link Karma
51,462
Comment Karma
4,899
Profile updated: 6 days ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
10 years ago