So, I made this structure that when assembled by the player it performs a continuous action. First I would just check for its existence every tick or once every tick, but i still tought it was a shitty solution, so I just added a TileEntity to every Block that was a part of the structure with
world.addTileEntity()
and use the remove() method of these "structural tile entities" as a way to refer to the "central" TileEntity and remove it. But I found that I could only register TileEntityTypes assigned to a block, which i wouldn't want to do, even though it wouldn't actually be assigned to the block in the sense that when adding the block to the world it would never create a tile entity unless I explicit tell it to do so on the Block class, so registering it with a block seems strange.
Is there any way to register a TileEntity without beeing assigned to a Block? Or it just doesn't matter? Or, I can just create a dummy block?????
All this is based on my understanding of what i saw in the code and that is that I can add any TileEntity to the world to any Block, but if the TileEntity isn't registered it won't add it.
Generally,
Is there any way to make an on demand one for all TileEntity?