... | ... | @@ -84,4 +84,15 @@ Variables can also be nested indefinitely: if this is done, the innermost variab |
|
|
- setvariable{var=caster.example_name;type=STRING;val=Hello There!} @self
|
|
|
- message{m="<caster.var.<caster.var.hello>>"} @PIR{r=10}
|
|
|
```
|
|
|
> In this example, the message would spell "Hello there!" |
|
|
\ No newline at end of file |
|
|
> In this example, the message would spell "Hello there!"
|
|
|
|
|
|
# [Mob Variables](/Mobs/Mobs#variables)
|
|
|
Mobs can have some variable be already set once they spawn thanks to the [Mob Variables](/Mobs/Mobs#variables) field.
|
|
|
```yaml
|
|
|
VariableZombie:
|
|
|
Type: ZOMBIE
|
|
|
Variables:
|
|
|
SomeVariable: something
|
|
|
AnIntVariable: int/2
|
|
|
AFloatVariable: float/420.69
|
|
|
``` |
|
|
\ No newline at end of file |