How to give potion effects when only running?

Started by wibonsue on

Topic category: Help with modding (Java Edition)

Last seen on 18:00, 2. Aug 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to give potion effects when only running?

Guys im trying to make if you have "Example" advancement you will have infinite speed 20 effect but it will be active when you are only "running"

So im looking like something similiar to "On Entity Running"

or "Entity Sprints"

look at the picture:
https://imgur.com/a/l1tJ0jy

isnt it like have to be in here because im looking like already 1 hours and couldnt see it

or do i have to do something other than looking there?

Last seen on 11:41, 17. May 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a procedure that…
Tue, 07/18/2023 - 02:47

Make a procedure that triggers on player update tick. Have it check if the player is sprinting, and if the player has your advancement. If they do, give them a couple seconds of the speed effect. 

Last seen on 18:00, 2. Aug 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i exactly do that…
Tue, 07/18/2023 - 13:16

How can i exactly do that can you post a screenshot

Last seen on 18:00, 2. Aug 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i tried something like…
Tue, 07/18/2023 - 13:19

i tried something like this
https://imgur.com/a/jLHWcUb

but when i try to run it just crashing my game what should i do ?