The createtrap command is used to spawn a trap on a block.
"then(createtrap,relative x, relative y, angle)"
| Argument |
Function |
| relative x |
The x position of the trap relative to the block. |
| relative y |
The y position of the trap relative to the block. |
| angle |
The angle that the spawned trap will be facing |
And example of the createtrap command used in a script is as follows...
The following script has a 1 in 4 chance of creating a random trap facing upwards.
if(create) and if(compare,rand(0,4),=,1)
{
then(createtrap,rand(0,64),0,90)
}
|
|