/**
* Change the current tile
* @param newTile object (object variables: type (required), strength, mindur, maxdur)
* @param changeX int
* @param changeY int
* @param stackTiles boolean <---if you set this to false or leave it off it will overwrite the current tile, true stacks.
*/
function changeTile(newTile, changeX, changeY, stackTiles)
examples:
changeTile({type: 'cobblestone'}, player.x, player.y, true);
changeTile({type: 'cobblestone', mindur: 8, maxdur: 12}, player.x, player.y, false);
Hope that helps.
O.
-
This reply was modified 10 years, 8 months ago by Orillian.