Help with tick-based clock

Started by SnakeManvsArbok on

Topic category: Help with modding (Java Edition)

Last seen on 01:09, 11. Aug 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with tick-based clock

Hello there! I'm currently trying to help my friend make code for a potion tick effect. The basic concept is that every half-second or so, you are randomly sent in a direction. 

This code is attached to a variable that advances by 1 each tick. I tested the movement effect on its own using a right-click function, so I know it's the clock that's broken, and not the movement effect. Any help is appreciated!

 

Last seen on 01:09, 11. Aug 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The image doesn't seem to be…
Fri, 08/02/2024 - 03:56

The image doesn't seem to be working in the main post, here's the raw imgur link: https://imgur.com/yXbrdHf