Resource icon

Time Checker 1.0

Requirements:
- Placeholder API
- Player Placeholder Expansion
- Math Placeholder Expansion

At this example, the activator activates if the time is between 13000 to 23000

Detailed Explanation:
- Gets the time value of the world then divides it by 24000. The quotient is then rounded off with the FLOOR math function.

FLOOR(expression)Rounds the value down to the nearest integer
After getting the equation, it gets multiplied by 24000 again then once the formula for removing the excess time value is obtained, that equation is used to reduce the actual time value to get the 0-24k value



Equation:

({player_time})-(24000*(FLOOR({player_time}/24000)))

Use the world condition ifWorldTime
Top