Minr Docs
Tutorial
What is MSC?
Script Types
Script Operators
Managing Scripts
Creating a Script
Viewing or Removing a Script
Using paste.minr.org
Color Codes
Example: NPC Dialogue
Expressions
Variables
Defining Variables
Modifying Variables
Using Variables in Messages
Namespaces
Creating Namespace Variables
Using a Namespace in Scripts
Relative Variables
Branching with @if
Example: Collectible Egg
Chat Input with @prompt
@return
Next Steps
1. Introduction
1.1. History
1.2. Structure
1.2.1. Signposted Sections
1.3. Notation
2. Namespaces
2.1. What is a Namespace?
2.2. The Local Namespace
2.3. Persistent Namespaces
2.4. Using Namespaces in Scripts
2.5. Shadowing
2.6. Function Namespaces
2.7. Command Reference
3. Variables
3.1. Names and Types
3.2. Literals
3.3. Defining Variables
3.4. Modifying Variables
3.5. Qualifiers
3.6. Null
3.7. Accessing Other Players’ Relative Variables
3.8. Command Reference
4. Expressions
4.1. What is an Expression?
4.2. The {{ }} Syntax
4.3. Operators
4.3.1. Arithmetic Operators
4.3.2. Comparison Operators
4.3.3. Logical Operators
4.3.4. Assignment Operators
4.3.5. Incorrect Operators
4.4. Operator Precedence
4.5. Short-Circuit Evaluation
4.6. Type Behavior
5. Lists
5.1. Creating Lists
5.2. Accessing Elements
5.3. List Methods
5.4. For Loops
6. Scripts
6.1. Script Types
6.1.1. Script Variables
6.2. Script Operators
6.2.1. Command Operators
6.2.2. Branching Operators
6.2.3. Control Operators
6.2.4. Variable Operators
6.2.5. Loop Operators
6.2.6. Chat Operators
6.3. Paste.minr.org
6.4. Command Reference
6.4.1. Type Parameters
7. Functions
7.1. Defining Functions
7.2. Parameters
7.2.1. Pass-by-Sharing
7.3. Return Types
7.4. Calling Functions
7.5. Methods
7.6. Control Flow in Functions
7.7. Functions and Chatscripts
7.8. Command Reference
8. Types
8.1. What is a Type?
8.2. Built-in Types
8.2.1. Primitive Types
8.2.2. Complex Types
8.3. Constructors
8.4. Methods
8.5. Working with Built-in Types
8.5.1. Player
8.5.2. Block
8.5.3. Location and Position
8.5.4. Region
8.6. User-Defined Types
8.6.1. Creating a Type
8.7. Fields
8.8. Methods
8.9. The
this
Keyword
8.10. Constructors
8.10.1. Multiple Constructors
8.10.2. Returning from Constructors
8.11. Putting It All Together
8.12. Command Reference
9. Appendix
9.1. Script Reference
9.1.1. Script Types
9.1.2. Script Operators
9.1.3. Script Actions
9.2. Built-in Namespaces
9.2.1. entity
9.2.2. format
9.2.3. list
9.2.4. material
9.2.5. math
9.2.6. minr
9.2.7. scoreboard
9.2.8. statistic
9.2.9. system
9.2.10. text
9.2.11. timer
9.2.12. util
9.3. Built-in Types
9.3.1. Primitives
9.3.1.1. String
9.3.1.2. Int
9.3.1.3. Long
9.3.1.4. Float
9.3.1.5. Double
9.3.1.6. Boolean
9.3.2. Minecraft Objects
9.3.2.1. Player
9.3.2.2. Entity
9.3.2.3. Block
9.3.2.4. Item
9.3.3. Spatial Types
9.3.3.1. Location
9.3.3.2. BlockLocation
9.3.3.3. Position
9.3.3.4. Vector3
9.3.3.5. BlockVector3
9.3.3.6. Vector2
9.3.3.7. BlockVector2
9.3.3.8. Region
9.3.4. Reference Types
9.3.4.1. entity::EntityType
9.3.4.2. material::Material
9.3.4.3. statistic::Statistic
9.3.4.4. NamespacedKey
9.3.5. Map Types
9.3.5.1. minr::Challenge
9.3.5.2. minr::Map
9.3.5.3. timer::Timer
9.3.6. Text Types
9.3.6.1. format::TextFormat
9.3.6.2. text::TextComponent
9.3.6.3. text::ComponentBuilder
9.4. Operator Reference
9.4.1. Arithmetic Operators
9.4.1.1. Addition (+)
9.4.1.2. Subtraction (-)
9.4.1.3. Multiplication (*)
9.4.1.4. Division (/)
9.4.1.5. Modulo (%)
9.4.2. Comparison Operators
9.4.2.1. Equality (==) and Inequality (!=)
9.4.2.2. Relational (<, >, <=, >=)
9.4.3. Logical Operators
9.4.3.1. AND (&&)
9.4.3.2. OR (||)
9.4.3.3. NOT (!)
9.4.4. Assignment Operators
9.5. General Notes
9.5.1. Time Syntax
9.5.2. Escape Sequences
9.5.3. String Interpolation
9.5.4. Color Codes
9.5.5. Naming Conventions
9.5.6. Type Literals
9.6. Command Reference
9.6.1. Commands by Category
9.6.1.1. Script Commands
9.6.1.2. Namespace Commands
9.6.1.3. Variable Commands
9.6.1.4. Function Commands
9.6.1.5. Type Commands
9.6.2. All Commands at a Glance
Version History/Changelog
2.4.7
2.4.6
2.4.5
2.4.4
2.4.3
2.4.2
2.4.1
2.4.0
2.3.4
2.3.3
2.3.2
2.3.0
2.2.2
2.2.1
2.2.0
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0
Minr Docs
MSC 2.0
View page source
MSC 2.0
Tutorial
Tutorial
Contents
1. Introduction
1.1. History
1.2. Structure
1.2.1. Signposted Sections
1.3. Notation
2. Namespaces
2.1. What is a Namespace?
2.2. The Local Namespace
2.3. Persistent Namespaces
2.4. Using Namespaces in Scripts
2.5. Shadowing
2.6. Function Namespaces
2.7. Command Reference
3. Variables
3.1. Names and Types
3.2. Literals
3.3. Defining Variables
3.4. Modifying Variables
3.5. Qualifiers
3.6. Null
3.7. Accessing Other Players’ Relative Variables
3.8. Command Reference
4. Expressions
4.1. What is an Expression?
4.2. The {{ }} Syntax
4.3. Operators
4.3.1. Arithmetic Operators
4.3.2. Comparison Operators
4.3.3. Logical Operators
4.3.4. Assignment Operators
4.3.5. Incorrect Operators
4.4. Operator Precedence
4.5. Short-Circuit Evaluation
4.6. Type Behavior
5. Lists
5.1. Creating Lists
5.2. Accessing Elements
5.3. List Methods
5.4. For Loops
6. Scripts
6.1. Script Types
6.1.1. Script Variables
6.2. Script Operators
6.2.1. Command Operators
6.2.2. Branching Operators
6.2.3. Control Operators
6.2.4. Variable Operators
6.2.5. Loop Operators
6.2.6. Chat Operators
6.3. Paste.minr.org
6.4. Command Reference
6.4.1. Type Parameters
7. Functions
7.1. Defining Functions
7.2. Parameters
7.2.1. Pass-by-Sharing
7.3. Return Types
7.4. Calling Functions
7.5. Methods
7.6. Control Flow in Functions
7.7. Functions and Chatscripts
7.8. Command Reference
8. Types
8.1. What is a Type?
8.2. Built-in Types
8.2.1. Primitive Types
8.2.2. Complex Types
8.3. Constructors
8.4. Methods
8.5. Working with Built-in Types
8.5.1. Player
8.5.2. Block
8.5.3. Location and Position
8.5.4. Region
8.6. User-Defined Types
8.6.1. Creating a Type
8.7. Fields
8.8. Methods
8.9. The
this
Keyword
8.10. Constructors
8.10.1. Multiple Constructors
8.10.2. Returning from Constructors
8.11. Putting It All Together
8.12. Command Reference
9. Appendix
Changelog/Version History
Version History/Changelog