Entity ID?

Started by AtlanticSpamHammer on Sat, 09/29/2018 - 07:10

Topic category: Help with modding (Java Edition)

Last seen on 17:57, 8. Aug 2019
Joined Sep 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Entity ID?
Sat, 09/29/2018 - 07:10

I've got a silly question. How can I test what type of entity a given entity is? For example, if I wanted to do something *only* when a zombie spawns, how can I determine that the entity spawned is, in fact, a zombie and not a pig, or a cow, or so on?

I've included a picture of my dilemma below. Basically, I'm asking what I should put in the "if" portion.

Thanks :)

Last seen on 16:30, 26. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
This feature is not yet…
Sat, 09/29/2018 - 20:03

This feature is not yet supported but is planned for the future updates, most likely in 1.8.1