36 lines
644 B
Typst
36 lines
644 B
Typst
#let put(x, y, z, ..args) = {
|
|
(
|
|
"p",
|
|
str(x),
|
|
str(y),
|
|
str(z),
|
|
..args.pos().map(str),
|
|
..args.named().pairs().map((u, v) => str(u) + "=" + str(v)),
|
|
).join(" ")
|
|
}
|
|
|
|
#html.html({
|
|
html.head({
|
|
html.link(rel: "stylesheet", href: "./mc-diorama.css")
|
|
html.script(src: "./mc-diorama.mjs", type: "module")
|
|
})
|
|
html.body({
|
|
html.main([
|
|
= hello world
|
|
])
|
|
|
|
html.elem("mc-diorama", {
|
|
html.elem("mc-camera")
|
|
html.elem(
|
|
"mc-world",
|
|
"
|
|
p 0 0 0 stone;
|
|
p 0 0 1 piston facing=up extended=false &
|
|
|
|
p 1 0 0 redstone_block;
|
|
",
|
|
)
|
|
})
|
|
})
|
|
})
|