How to make a non-fixed spawn with a time reference aka Cron Tab

Deazer

Разработчик
Staff member
#1
How to make a non-fixed spawn in the CronTab format

Format for non-fixed spawn for Grand bosses config / bosses.properties
and edit the RespawnTimePattern - CronTab format

Code:
Example:
ValakasRespawnTimePattern = ~ 180: 0 20 5 * *
In this example, Valakas will spawn with a spread from 0 to 180 minutes (~180:) from the starting point at 20:00 (0 20) on Friday (5)
If you want to bind not to the day of the week, but from the time of the murder + how many days

Example:
ValakasRespawnTimePattern = ~ 180: 0 20 +5: * * *
Valakas will spawn with a spread of 0 to 180 minutes  (~180:) at 20:00 (0 20) +5 days (+5:)
Option 2 for datapack. Path: data / spawn - Zaken / Orfen / AQ / Core
for data / spawn, exactly the same scheme works:
If we want, for example, Queen Ant to spawn every day at 20:00 with a spread of 2 hours then:
Basic looks like:
Code:
   <spawn name="[queenant_room]">
        <npc id="29001" count="1" respawn="129600" respawn_rand="61200" pos="-21610 181594 -5720 0" />
    </spawn>
WE CHANGE FOR:
Code:
   <spawn name="[queenant_room]">
     <npc id="29001" count="1" respawn_cron="~120:0 20 +1:* * *" pos="-21610 181594 -5720 0" />
   </spawn>
Где:
~120:0 Our spread of time
20 - Clock time - EIGHT HOURS OF THE EVENING
+1 - Plus how many days
 
Top