How i get a spawned entity in Procedure ?

Started by lucascastro on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How i get a spawned entity in Procedure ?

So, I’m trying to create an entity with fake scaling. Basically, I created 3 entities, one for each size, and I want to spawn another entity and despawning the current one to make it look like the entity is getting bigger.

The problem is that I have a local variable of type number that represents the entity’s “hunger level”, and I want that when i spawn the other entity, this “hunger level” value is assigned to another local number variable in the spawned entity, which also represents a hunger level.

In short, I want to get the entity I just spawned and make one of its variables have the same value as my current variable.

How can I do this? I’m using MCreator 2024.4.

 

https://imgur.com/a/env7BUM