How to get the data of an entity created using Spawn entity at x,y,z?

Started by Darknessay on

Topic category: Help with MCreator software

Last seen on 23:12, 10. Jan 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get the data of an entity created using Spawn entity at x,y,z?
Sat, 12/02/2023 - 09:02 (edited)

Let's say I'm making an item that summons a defender mob. I create it using "Spawn entity", but how can I access only the created entity by other procedures? How can I write it into a variable or something?

Edited by Darknessay on Sat, 12/02/2023 - 09:02
Last seen on 03:47, 13. May 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use a "global variable…
Sat, 12/02/2023 - 16:09

Use a "global variable"

Variables [Tab] >> Add new variable >> Variable scope >> Global_Map

Last seen on 23:12, 10. Jan 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No, it's not a solution…
Wed, 12/06/2023 - 13:41

No, it's not a solution. Solution is:
Set variable (get nearest entity in cube)