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.
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
Subreddit
Post Details
- Posted
- 10 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/MinecraftIn...