Closed satoshinm closed 7 years ago
src/main.c "S," command format: (p,q) chunk, (x,y,z) block, face (0-7), text (until end-of-line, nifty sscanf format string specifier [^\n]
)
snprintf(
format, sizeof(format),
"S,%%d,%%d,%%d,%%d,%%d,%%d,%%%d[^\n]", MAX_SIGN_LENGTH - 1);
int face;
char text[MAX_SIGN_LENGTH] = {0};
if (sscanf(line, format,
&bp, &bq, &bx, &by, &bz, &face, text) >= 6)
{
_set_sign(bp, bq, bx, by, bz, face, text, 0);
}
Craft allows writing text on any block (S, command); bridge "signs"