How to make any and all vanilla mob scared of player when a key is pressed

Started by timmyt on

Topic category: Advanced modding

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make any and all vanilla mob scared of player when a key is pressed

How to make any and all mobs scared of player if when a key is pressed

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a key binding, then 3…
Wed, 07/24/2024 - 14:12

make a key binding, then 3 procedures

on key pressed: https://imgur.com/BwWAT2O    

on key released: https://imgur.com/2YTLUnu        

"scary" is a logic global variable of type "player_persistent" with false as initial value

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I sent you the link for the…
Wed, 07/24/2024 - 14:13

I sent you the link for the first procedure in another message because it didn't let me send it in a message with other text for some reason

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I work fine but when I press…
Thu, 07/25/2024 - 05:02

I work fine but when I press it again it doesn’t stop is there a way to fix that

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I made it so that it stops…
Thu, 07/25/2024 - 14:12

I made it so that it stops when you release the key not when you press it again 

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry for taking so long to…
Mon, 07/29/2024 - 04:02

Sorry for taking so long to respond but even when I let the key go it still doesn’t stop

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
maybe you did something…
Mon, 07/29/2024 - 12:44

maybe you did something wrong, because it works for me

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok how about I snap the…
Tue, 07/30/2024 - 05:13

Ok how about I snap the procedures and send it

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alright 
Tue, 07/30/2024 - 11:15

Alright 

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Sat, 08/03/2024 - 04:11

https://imgur.com/a/dlSUHqf.png

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Sat, 08/03/2024 - 04:13

https://imgur.com/a/lF21qY4.png

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so the first one is a…
Sat, 08/03/2024 - 04:14

so the first one is a regular procedure

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
while the other two pictures…
Sat, 08/03/2024 - 04:15

while the other two pictures in the last link are procedures for a keybind

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the first link doesn't work
Sat, 08/03/2024 - 15:12

the first link doesn't work