mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
docs: update usage guide for MCC instance and note formatting
- Removed unnecessary period from the MCC instance reference. - Reorganized the note section to improve clarity, moving it to a more appropriate location and ensuring consistent formatting for examples involving single and double quotes.
This commit is contained in:
parent
906d66a713
commit
b10e332e31
1 changed files with 7 additions and 9 deletions
|
|
@ -570,7 +570,7 @@ In scripts and remote control, no slash is needed to perform the command, eg. `q
|
|||
|
||||
The condition is always returned as a boolean, so only comparison can be done, if needed cast the expression result to bool.
|
||||
|
||||
Also the instance of MCC is available with `MCC.`.
|
||||
Also the instance of MCC is available with `MCC`.
|
||||
|
||||
<div class="custom-container note"><p class="custom-container-title">Note</p>
|
||||
|
||||
|
|
@ -591,14 +591,6 @@ In scripts and remote control, no slash is needed to perform the command, eg. `q
|
|||
/execif 'test == "Something"' "send Success!"
|
||||
```
|
||||
|
||||
<div class="custom-container note"><p class="custom-container-title">Note</p>
|
||||
|
||||
**You can use single quote (`'`) to wrap your expression if the expression contains double quote (`"`)**
|
||||
|
||||
**Adding back-slash (`\`) before the double quote will also work (`/execif "test == \"Something\"" "send Success!"`)**
|
||||
|
||||
</div>
|
||||
|
||||
```
|
||||
/set test2=1
|
||||
/execif 'test2 == "1"' "send Success 2!"
|
||||
|
|
@ -622,6 +614,12 @@ In scripts and remote control, no slash is needed to perform the command, eg. `q
|
|||
/execif "1 == 1" "execmulti send 1 -> send 2 -> send 3"
|
||||
```
|
||||
|
||||
- **Note**
|
||||
|
||||
**You can use single quote (`'`) to wrap your expression if the expression contains double quote (`"`)**
|
||||
|
||||
**Adding back-slash (`\`) before the double quote will also work (`/execif "test == \"Something\"" "send Success!"`)**
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue