> For the complete documentation index, see [llms.txt](https://todepond.gitbook.io/spacetode/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://todepond.gitbook.io/spacetode/mimic.md).

# Mimic

Elements can copy another element's rules (and actions) with the `mimic` keyword.

```
element Snow {
    colour "white"
    change W () => new Water()
    maybe(1/100) @ => W
    mimic(Sand)
}
```

This snow element melts 1% of the time. The rest of the time, it behaves like Sand.
