repeater
Create a repeater signal block. You choose the direction it faces and the signal delay time. The delay time is a number of game ticks.
blocks.repeater(WEST, 1);
Parameters
- direction: the direction in which the repeater is facing
- delay: the delay time for the repeater, in game ticks
The Minecraft wiki has more information about the values for repeater direction and delay time.
Example
Place a repeater near the player facing North. Give it a tick delay of 3
.
blocks.place(blocks.repeater(NORTH, 3), pos(1, 0, 0));