SsomarDevSsomarPlugins
T

Time Checker

Example Items

Free
(0)
853 downloads1.4K views

Description

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.

[TABLE]
[TR]
[TD]FLOOR(expression)[/TD]
[TD]Rounds the value down to the nearest integer[/TD]
[/TR]
[/TABLE]
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:

[TABLE]
[TR]
[TD]({player_time})-(24000*(FLOOR({player_time}/24000)))[/TD]
[/TR]
[/TABLE]


Use the world condition ifWorldTime

Version History

v1.0Latest
Jan 5, 2022
853 downloads
Sign in to leave a review.