Get entity ID or spawn egg

Started by ezhgamer173 on

Topic category: Feature requests and ideas for MCreator

Active 1 year ago
Joined Nov 2021
Points:
564

User statistics:

  • Modifications: 7
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
Get entity ID or spawn egg

I'm trying to make a capture mod, and I can't find a way to get the ID of an entity, for example skeletons return "minecraft:skeleton". Another nice block would be get entity spawn egg.

Active 2 years ago
Joined Mar 2021
Points:
656

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 190
get entitys at position {x,y…
Tue, 12/28/2021 - 16:24

get entitys at position {x,y,z of entity {insert capture entitiy/entities}} if !null && !minecraft:item then get trigger entity type if trigger entity type = mod:AdminBallEntity

get entitys at position {x,y,z of entity {insert capture entitiy/entities}} choose random number get for each entity at position {x,y,z of entity {insert capture entitiy/entities}} iterator ran(0 : (entity iterators -1)}}) get type of entity iterators give throw entity Admin ball caputured{held entity:{entity iterator} entityNBT:[{contains all NBT information from the entity}]}

that is complicated and slightly summarized

Active 1 year ago
Joined Nov 2021
Points:
564

User statistics:

  • Modifications: 7
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
Let me try that  
Sun, 01/02/2022 - 13:22

Let me try that

 

Active 1 year ago
Joined Nov 2021
Points:
564

User statistics:

  • Modifications: 7
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
Is this something I can…
Sun, 01/02/2022 - 13:26

Is this something I can paste into my files?

Because I can't find get entity type.

 

Active 1 year ago
Joined Jul 2020
Points:
635

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
I am quite confused if there…
Mon, 05/02/2022 - 05:49

I am quite confused if there is a way one could get a spawn egg from whatever entity the player is right-clicking, by using procedures specifically