๐Ÿ” custom_blocks_ticking#

Calls the tick and second functions of custom blocks.

beet_default(ctx: Context)[source]#

Main entry point for the custom blocks ticking plugin. This plugin sets up custom blocks ticks and second functions calls.

It will seek for โ€œsecond.mcfunctionโ€, โ€œtick.mcfunctionโ€, and more files in the custom_blocks folder Then it will generate all functions to lead to the execution of these files by adding tags.

Parameters:

ctx โ€“ The beet context.

blocks_with_function(
custom_blocks_prefix: str,
ticking: str,
) → list[str][source]#

The custom blocks that have a function of this name, <custom blocks folder>/<block>/<ticking>.

write_ticking(
ns: str,
ticking: str,
custom_blocks_tick: list[str],
) → None[source]#

Tag each custom block running a function every ticking when placed, and dispatch to them from the ticking function.

silent#