(Note: I generally just play in the MCreator pool, because coding always frustrates me, but I *have* coded from the ground up a bit. So please assume my understanding of Java is wildly inconsistent, being okay here and blank over there, because it is.)
So. I can make block A do things on a regular "when it ticks" (that's just 'tick'), like:
@Override public void tick(BlockState state, World world, BlockPos pos, Random random) { super.tick(state, world, pos, random);
I can make block A do things on a random tick (by using 'animateTick') with this:
@Override
public void animateTick(BlockState state, World world, BlockPos pos, Random random) {
super.animateTick(state, world, pos, random);
And I can get a *different* block (block B ) to schedule a tick for another block (including block A), using scheduleTick. And if I target a repeater with this, it triggers, so that's working.
But... trying to get block A to do things on a tick scheduled in this way, by swapping out animateTick with scheduleTick... Doesn't compile. I assume that either it needs to be handled differently or that the terms are different?
Any idea here? My goal is that Block B will schedule ticks for Block A, in a multi-block-machine kind of arrangement.
(Note: I generally just play in the MCreator pool, because coding always frustrates me, but I *have* coded from the ground up a bit. So please assume my understanding of Java is wildly inconsistent, being okay here and blank over there, because it is.)
So. I can make block A do things on a regular "when it ticks" (that's just 'tick'), like:
I can make block A do things on a random tick (by using 'animateTick') with this:
And I can get a *different* block (block B ) to schedule a tick for another block (including block A), using scheduleTick. And if I target a repeater with this, it triggers, so that's working.
But... trying to get block A to do things on a tick scheduled in this way, by swapping out animateTick with scheduleTick... Doesn't compile. I assume that either it needs to be handled differently or that the terms are different?
Any idea here? My goal is that Block B will schedule ticks for Block A, in a multi-block-machine kind of arrangement.