Reference Guide
An overview of all available property types you can use to store data.
Properties can store many different types of data. Choosing the right type is crucial for your game's logic. When you create a new property, you will be asked to select one of these types.
Core Types
These are the most fundamental and commonly used types.
- Number: Stores whole numbers (integers). Perfect for scores, lives, counters, and quantities.
- Decimal: Stores numbers with decimal points. Use this for precise calculations, like damage modifiers or velocity.
- Boolean: Stores a simple
trueorfalsevalue. Ideal for flags, toggles, and on/off states. - Text: Stores a string of text. Useful for custom messages, player names, or descriptive tags.
Game Object Types
These types store references to specific objects within your game.
- Location: Stores a specific XYZ coordinate with yaw and pitch.
- Item: Stores a Minecraft item, including custom items.
- Material: Stores a specific block or item type (e.g.,
DIAMOND_SWORD,OAK_LOG). - Player: Stores a reference to a specific player.
- Entity: Stores a reference to any entity (mob, armor stand, item drop, etc.).
- Region: Stores a reference to one of your created regions.
- Function: Stores a reference to one of your created functions.
- Sound: Stores a specific Minecraft sound effect.
Time-Based Types
These types are designed for tracking time and creating delays.
- Timer: An upward-counting stopwatch. You can start, stop, and reset it.
- Countdown: A downward-counting timer. When it reaches zero, it stops.
- DateTime: Stores a specific point in real-world time. Useful for creating daily or time-based cooldowns.
Advanced Types
- List: A powerful type that can hold a collection of other types (e.g., a list of players, a list of locations).