realvar
The realvar subcommand, can be used in place of an argument in a normal command.



"realvar(block real variable)"


Argument Function
player variable The built-in player variable to grab.



The realvar command grabs built-in variables used by the game, rather by the object scripting. The value you're grabbing must be specified.

Variable Function
x The block's x position.
y The block's y position.
hp The block's health.