How to target checks towards Player?

Started by kryr on

Topic category: Help with MCreator software

Last seen on 15:54, 23. Sep 2023
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to target checks towards Player?

I'm trying to add an entity to my mod that only spawns when the player's hunger is below a certain value. Is this even possible? I know I need the Get Food Level block but how can I target the check towards the player when using it in a spawning condition?

Last seen on 05:10, 3. Dec 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Best way would be to perform…
Sat, 09/23/2023 - 18:11

Best way would be to perform a check "on player update tick" trigger and then summon your entity. You will need to create a locking system so that it doesn't indefinitely spawn mobs on the player. I would recommend setting up a lock and then a timer, so that the lock auto resets.