โฑ๏ธ basic_datapack_structure#
Sets up the timed functions of the datapack, run every 2 ticks, second, 5 seconds and minute.
- class Timer(name: str, reset: int, threshold: int)[source]#
Bases:
objectA versioned function the tick function calls every few ticks, counted on a score of its own.
- TIMERS: tuple[Timer, ...] = (Timer(name='tick_2', reset=1, threshold=3), Timer(name='second', reset=0, threshold=20), Timer(name='second_5', reset=-10, threshold=90), Timer(name='minute', reset=1, threshold=1200))[source]#
Every timer, in the order the tick function counts and calls them.
- beet_default(ctx: Context) None[source]#
Main entry point for the basic datapack structure plugin. This plugin sets up basic timing structures for a Minecraft datapack with tick functions for different intervals (tick_2, second, second_5, minute).
- Parameters:
ctx โ The beet context.