Skip to content
This repository was archived by the owner on Apr 9, 2026. It is now read-only.

Commit 3f6eb3c

Browse files
authored
Create get_time.mcfunction
1 parent e90b78a commit 3f6eb3c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# ─────────────────────────────────────────────────────────────────
2+
# macro:world/get_time
3+
# 26.1+ World Clocks uyumlu (minecraft:overworld)
4+
#
5+
# OUTPUT:
6+
# macro:output.daytime → gün içi zaman (0-23999)
7+
# macro:output.total → toplam dünya yaşı (gametime)
8+
# macro:output.day → mevcut gün sayısı
9+
# ─────────────────────────────────────────────────────────────────
10+
11+
execute store result storage macro:output daytime int 1 run time of minecraft:overworld query day
12+
execute store result storage macro:output total int 1 run time query gametime
13+
execute store result storage macro:output day int 1 run time of minecraft:overworld query day repetition
14+
15+
# Debug (isteğe bağlı)
16+
tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"world/get_time ","color":"aqua"},{"text":"day=","color":"gray"},{"storage":"macro:output","nbt":"day","color":"green"},{"text":" daytime=","color":"gray"},{"storage":"macro:output","nbt":"daytime","color":"green"},{"text":" total=","color":"gray"},{"storage":"macro:output","nbt":"total","color":"green"}]

0 commit comments

Comments
 (0)