The createitem command is used to spawn an item that can be picked up.
"then(createitem, x position, y position)"
Argument |
Function |
x position |
The x position, relative to the object, where the item will be created. |
y position |
The y position, relative to the object, where the item will be created. |
And example of the createitem command used in a script is as follows...
The following script has a 1 in 5 chance to spawn an object on a block when it is created.
if(create)
if(compare,rand(1,5),=,1)
{
then(createitem,16,16)
}
|
|