-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.zog
63 lines (50 loc) · 1.12 KB
/
main.zog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
namespace harl
# Assets and Resources
include "src/assets"
include "src/resources"
# Dialog System
include "src/dialog"
# Credits
include "src/credits"
# City
include "src/city"
include "src/harlequins"
# Islands
include "src/classic"
include "src/beta"
include "src/release"
include "src/modern"
fn tick() {
classic/_tick()
beta/_tick()
release/_tick()
modern/_tick()
city/_tick()
harlequins/_tick()
}
fn load() {
objectives()
execute unless data storage harl:main {loaded:true} run function harl:setup
tellraw @a "Loaded Harlequins"
}
fn objectives() {
scoreboard objectives add harl.credits dummy
scoreboard objectives add harl.city dummy
scoreboard players set $100 harl.city 100
scoreboard players set $43 harl.city 43
scoreboard players set $-1 harl.city -1
}
fn setup() {
data modify storage harl:main loaded set value true
execute in harl:void run function harl:setup_credits
classic/init()
beta/init()
release/init()
modern/init()
}
fn setup_credits() {
forceload add 0 0 47 47
place template harl:credits/credits_room 0 0 0
forceload remove 0 0 47 47
forceload add 23 23
}