How to send a title in Forge 1.12.1

806 Views Asked by At

My current way of sending titles to the Player is by placing a redstone torch next to a command block (which contains the title commands), but even that does not work:

BlockPos blockPos = new BlockPos(675, 236, 457);
IBlockState iBlockState = world.getBlockState(blockPos);
Material material = iBlockState.getMaterial();

world.setBlockState(blockPos, Blocks.REDSTONE_TORCH.getDefaultState(), 1);
0

There are 0 best solutions below