Topic category: Help with Minecraft modding (Java Edition)
I know a similar question already has been asked and answered but i checked it and it didn't help so here's my problem:
I am working on a dungeon system for a mod i am making and i have a spawner that works the same as a trial spawner the only problem is when i kill an entity i can't find a way to remove from the block's nbt tag as it doesn't notify the block so i tried to use nbt tags in the entities to locate the block but it didn't work most of the time now i use teams to detect the entity and it even worked to change the nbt tag the only problem being that it requires an entity in my block ticking procedure so i either need a new way to link the entities and the block or a way to erase the need for an entity
I think you should go back to the "store the block's location in the nbt of the entity" idea.
What did you try?