MCPcopy Create free account
hub / github.com/SuperTails/wasmcraft2 / turtle_check

Function turtle_check

mcinterface.h:47–49  ·  view source on GitHub ↗

Returns 1 if the block at the turtle's position matches the argument

Source from the content-addressed store, hash-verified

45
46// Returns 1 if the block at the turtle's position matches the argument
47inline int turtle_check(enum Block block) {
48 return block == turtle_get();
49}
50
51extern int turtle_get_char(void);
52

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected