How to give potion effects when only running?

Started by wibonsue on

Topic category: Help with Minecraft modding (Java Edition)

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?

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. 

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