๐ 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,
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],
Tag each custom block running a function every
tickingwhen placed, and dispatch to them from thetickingfunction.