Proper season and time conditions for fishing
This commit is contained in:
@@ -32,6 +32,8 @@ For work every tick, subscribe to the `tick` event. For work on a block, use a
|
||||
`ctx.world.day` is the number of days since the world started, 0 on the first day, going up at 06:00. Every morning at
|
||||
06:00, blocks' `on_new_day` runs, then the `new_day` event fires. That's the clock crops grow on.
|
||||
|
||||
`ctx.world.hour` is the time on a 24 hour clock, in hours: `14.5` is 14:30.
|
||||
|
||||
`ctx.world.set_time(ticks)` changes the time for everyone. Moving it forward past mornings runs each of them, up to the
|
||||
last 64. Moving it back doesn't repeat mornings.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user