How to check an entity's variant?

Started by teny on

Topic category: Help with MCreator software

Last seen on 10:51, 2. Dec 2023
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check an entity's variant?

Hi, I've been making a mod which allows you to pick up small animals into buckets, like you can with axolotls. But now, I ran into a problem, because I don't know how to check which variant an entity, for example rabbit is and which bucket should be chosen. How do I check that?

Last seen on 19:20, 25. Jun 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could make a custom tag…
Fri, 12/31/2021 - 05:16

You could make a custom tag that adds in certain entities, like the small ones you want, and then when the player wants to pick one up, you could check if it's tagged in that tag

Last seen on 10:51, 2. Dec 2023
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But to give a brown rabbit a…
Tue, 02/15/2022 - 14:12

But to give a brown rabbit a brown_rabbit tag I would have to check if the rabbit's variant is the brown variant, right?