Trial type spawner not working [SOLVED]

Started by Idk name ig on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Trial type spawner not working [SOLVED]
Mon, 09/22/2025 - 22:52 (edited)

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

Edited by Idk name ig on Mon, 09/22/2025 - 22:52
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you should go back…
Sat, 09/20/2025 - 15:07

I think you should go back to the "store the block's location in the nbt of the entity" idea.

What did you try?

 

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I put the coordinates of the…
Sat, 09/20/2025 - 20:05

I put the coordinates of the block in the entities with tags but it warned me it might not work from times to times and i killed the 3 enemies but it didn't affect the block at all

 

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can ignore the warning…
Sun, 09/21/2025 - 07:25

you can ignore the warning in this case.

how did you set it up? did you do it like how i did it?

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i did the same thing but…
Sun, 09/21/2025 - 15:28

i did the same thing but simpler and the warning is there for a reason it didn't work most of the time

 

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The warning isn't there for…
Sun, 09/21/2025 - 20:00

The warning isn't there for that reason.


This works fine,

 

As a test I just made the block tick randomly but you could easily spawn the entities with an nbt timer on the block instead.

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I use a similar trigger to…
Sun, 09/21/2025 - 23:49

I use a similar trigger to see the remaining entities it stayed at 3 after I killed everything 

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alright so i managed to fix…
Mon, 09/22/2025 - 22:52

Alright so i managed to fix it with nbt tags no idea why it didn't work before

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I assume it's because of the…
Mon, 09/22/2025 - 23:26

I assume it's because of the old trigger I used which was when entity is hurt check if it's not alive then do the thing  but it seemed to cause bugs