Flying entity only at night

Started by Igor Tuteja on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Flying entity only at night

Hi, 

i want to make owl, and make her AI to fly only at night. I tried to do this updatetick procedure, but it was not working... 

(i set entity to fly around with speed 0.8) 

Any suggestions ? 

 

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Replace the true statement…
Sat, 05/20/2023 - 17:25

Replace the true statement in the entity fly block with the condition you want.

Hopefuly this helps!

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you for your answer…
Sun, 05/28/2023 - 22:13

Thank you for your answer. Unfortunately, it didn't work at all... But I solved the problem and if anyone is wondering how? The answer is below:

 

In the end I made two owl creatures, one flying owl, the other non-flying. When it is night, the non-flying becomes flying, but when it is noon, flying becomes non-flying...

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do you have the procedure…
Fri, 01/05/2024 - 23:13

Do you have the procedure for how you did it? or do you remember? I try to do something like that but with a werewolf

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make 2 entities - 1 fly 1…
Sat, 01/06/2024 - 10:24

make 2 entities - 1 fly 1 not - make procedure 'when not daytime' (on the entity tick) then despawn-> spawn the other

then make a procedures with local var/NBT to transfer the Current HP of the entity, 

hope it helps