Started by
kryr
on
Topic category: Help with MCreator software
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?
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.