How do i check if a fox is holding an item?

Started by Drawrt on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i check if a fox is holding an item?

I want to be able to test if a fox is holding an item but i don't know if this is already a feature or if it requires code, any help would be appreciated

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Foxes have a built in NBT…
Wed, 08/11/2021 - 15:41

Foxes have a built in NBT tag called "HandItems". HandItems contains what and how many items are being held by the fox.
You can call NBT tags in the procedure editor, although I am not sure how MCreator handles built in NBT tags.
Sources:
https://www.digminecraft.com/data_tags/fox.php
https://mcreator.net/forum/72214/how-get-nbt-tags-player-inventory-and-so