Create Temporally Blocks
public class SpectralBlock extends BlockWithEntity {
public SpectralBlock() {
super(
//ITEM SETTINGS HERE
);
}
}public class SpectralBlock extends BlockWithEntity {
public SpectralBlock() {
super(
//ITEM SETTINGS HERE
);
}
@Nullable
@Override
public BlockEntity createBlockEntity(BlockPos pos, BlockState state) {
BlockEntityTimer blockEntityTimer = new BlockEntityTimer(pos, state);
blockEntityTimer.setMaxTime(1200);
return blockEntityTimer;
}
}Last updated