So I'm attempting to create a chess game in java that uses tileentities for each piece. I have one block that you place and when you right click it, it creates the board and chess pieces. However, I cannot find out how to bring the chess pieces I made into the world. I know you do worldln.setBlockState() but I can't find out how to access the block i created and set its properties as a tile entity. Any help would be appreciated. Also from a design perspective, one person told me to use the master slave pattern and have my block that creates the board hold all the blocks, but I don't know how to communicate a block back to the original board creator block. Thank you!
Edit: If anyone could give any advice on this it would be extremely helpful. Thank you!!!