Reply To: What changed?

Home Forums Wayward What changed? Reply To: What changed?

 * 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)


changeTile({type: 'cobblestone'}, player.x, player.y, true);
changeTile({type: 'cobblestone', mindur: 8, maxdur: 12}, player.x, player.y, false);

Hope that helps.


  • This reply was modified 10 years, 3 months ago by Orillian.