From 4d080853d42a00735ec5de2143f744abb5a040e4 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 11 May 2021 22:38:17 +0100 Subject: [PATCH] reference: add notes about chances --- Chat-Command-Reference.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Chat-Command-Reference.md b/Chat-Command-Reference.md index 705e8d2..7f0d3aa 100644 --- a/Chat-Command-Reference.md +++ b/Chat-Command-Reference.md @@ -37,6 +37,7 @@ Note also that columns without any air nodes in them at all are also skipped, so //overlay grass_with_dirt 10 dirt //overlay grass_with_dirt 10 dirt 2 sand 1 //overlay sandstone dirt 2 sand 5 +//overlay dirt 90% stone 10% ``` ## `//layers [ []] [ []] ...` @@ -212,12 +213,15 @@ Also optionally takes a chance number. This is the chance that an eligible node For example, a chance number of 2 would mean a 50% chance that any given eligible node will get bonemealed. A chance number of 16 would be a 6.25% chance, and a chance number of 25 would be 2%. +Since WorldEditAdditions v1.12, a percentage chance is also supported. This is denoted by suffixing a number with a percent sign (e.g. `//bonemeal 1 25%`). + ``` //bonemeal //bonemeal 3 25 //bonemeal 4 //bonemeal 1 10 //bonemeal 2 15 +//bonemeal 2 10% ``` ## `//walls ` @@ -350,6 +354,14 @@ If we wanted to put all of the above features together into a single command, th The above replaces 1 in 3 `dirt` nodes with a mix of `sandstone`, `dry_dirt`, and `cobble` nodes in the ratio 10:1:2. Awesome! +Since WorldEditAdditions v1.12, you can also use percentages: + +``` +//replacemix dirt 33% sandstone 75% dry_dirt 10% cobble 15% +``` + +Note though that the percentages are internally converted to a 1-in-N chance and rounded down. + Here are all the above examples together: ```