https://github.com/brecert/timetools-datapack
https://github.com/brecert/timetools-datapack
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/brecert/timetools-datapack
- Owner: brecert
- Created: 2018-09-01T11:30:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-06T02:40:35.000Z (over 7 years ago)
- Last Synced: 2025-11-13T19:29:04.408Z (7 months ago)
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TimeTools Datapack
> A single tool to deal with time and get the day of the week
## Example
```
execute if score server tt.weekday matches 0 run say It's sunday!
```
## Objectives
`tt.day : time query day`
```
tt.day is essentially the same as running time query day
```
`tt.WEEK : dummy = 7`
```
The length of the week, this value isn't modified after being created.
However if you wanted to change how long weeks are, that is perfectly fine.
```
`tt.weekday : dummy`
```
The current day of the week
```
## Functions
`tt:setup : minecraft:load`
```
sets up all of the objectives
```
`tt:update_day`
```
updates the tt.day objective
```
`tt:update_weekday`
```
update the tt.weekday objective
```
`tt:clock : minecraft:tick`
```
runs tt:update_day and tt:update_weekend every tick
```