How do I get the entity type of a certain entity?

Started by Thundertide on

Topic category: Help with MCreator software

Active 3 years ago
Joined Jul 2021
Points:
562

User statistics:

  • Modifications: 1
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
How do I get the entity type of a certain entity?

I am trying to make a mob "capture device" and the only variable I cannot find for the life of me is the entityType. I do not want to go through all 100 or so entities to test for it as that seems like a lot more work then it should be. I am ok if I have to write forge code for it, I just cannot find anything online talking about it.

Active 3 years ago
Joined Jul 2021
Points:
562

User statistics:

  • Modifications: 1
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
I sound like an idiot when I…
Wed, 07/14/2021 - 09:24

I sound like an idiot when I say forge code, I meant java code.

Active 3 years ago
Joined Jul 2021
Points:
595

User statistics:

  • Modifications: 1
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 32
Just Choose Search In The…
Wed, 07/14/2021 - 15:05

Just Choose Search In The Procedures "is subtype of" and scroll down, until you find it

Active 3 years ago
Joined Jul 2021
Points:
562

User statistics:

  • Modifications: 1
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
i feel like you didn't read…
Wed, 07/14/2021 - 20:42

i feel like you didn't read what I said. I want a string. Not a boolean of whether or not it is X mob.

Active 3 years ago
Joined Jan 2022
Points:
482

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Why exactly are you trying…
Tue, 01/04/2022 - 20:59

Why exactly are you trying to get the entity type. Sorry for the awfully late response.