Error code · a mistake in the document
dt::stack
A tile or a definition has one stack.
What the program says
dt::stack
× a definition has one stack
╭─[example.dtile:4:5]
3 │ stack { dirt }
4 │ stack { grass }
· ──┬──
· ╰── a second stack
5 │ }
╰────
help: put every entry in the first `stack { … }`
explain: https://shawn-vincent.github.io/dharmatiles/e/stack
offline: dharmatiles explain dt::stack
What to do
Merge the stacks into one, listing the elements in the order they are built.
Broken, then fixed
dt::stackdharmatiles version="1.0.0"
tile size="1x1" {
stack { dirt }
stack { grass }
}dharmatiles version="1.0.0"
tile size="1x1" {
stack { dirt; grass }
}The rule
A tile document is one
.dtilefile holding exactly onetilenode, after a header line. The tile has a size and a seed, and a body with (its file name is its name:tiletakes none):
Read it in context: The tile document · A tile document is one tile after a header