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

Started by timmyt on

Topic category: Advanced modding

Last seen on 19:57, 24. Aug 2024
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

Last seen on 17:20, 17. Oct 2024
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

Last seen on 17:20, 17. Oct 2024
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

Last seen on 19:57, 24. Aug 2024
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

Last seen on 17:20, 17. Oct 2024
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 

Last seen on 19:57, 24. Aug 2024
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

Last seen on 17:20, 17. Oct 2024
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

Last seen on 19:57, 24. Aug 2024
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

Last seen on 17:20, 17. Oct 2024
Joined Apr 2024
Points:

User statistics:

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

Alright 

Last seen on 19:57, 24. Aug 2024
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

Last seen on 19:57, 24. Aug 2024
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

Last seen on 19:57, 24. Aug 2024
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

Last seen on 19:57, 24. Aug 2024
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

Last seen on 17:20, 17. Oct 2024
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