Error code · a mistake in the document
dt::unknown-name
Nothing declares or sets that name.
What the program says
dt::unknown-name
× nothing installed `$grundHeight` where this is read
╭─[example.dtile:3:22]
2 │ tile size="1x1" {
3 │ stack { dirt top="$grundHeight" }
· ───────┬──────
· ╰── not in the context
4 │ }
╰────
help: did you mean `$groundHeight`? a `$` name is read from the context of
whoever calls, and the library installs its heights at the root
explain: https://dharmatiles.healtoletgo.com/e/unknown-name
offline: dharmatiles explain dt::unknown-name
What to do
Check the spelling; the message names the nearest name.
Broken, then fixed
dt::unknown-namedharmatiles version="1.0.0"
tile size="1x1" {
stack { dirt top="$grundHeight" }
}dharmatiles version="1.0.0"
tile size="1x1" {
stack { dirt top="$groundHeight" }
}The rule
A height, a
$name or a place that nothing declares or sets is refused, with the nearest name:nothing installed `$groundHeihgt` where this is read, with the helpdid you mean $groundHeight?
Read it in context: Names · A name must be declared or set where it is read