Date: 2023/07/29 14:41:47 UTC-07:00
Type: Denizen Script
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
64
65
66
mcve_hooks:
type: world
debug: true
events:
after player joins:
- teleport <player> <cuboid[test].center>
- spawn entity_hologram <player.location> save:holo
- flag <player> holo:<entry[holo].spawned_entity>
- mount <entry[holo].spawned_entity>|<player>
on player quits:
- mount <player.flag[holo]> CANCEL
- remove <player.flag[holo]>
on player enters vehicle in:test* priority:-10:
- announce "Player is entering vehicle."
- if <context.vehicle.location.proc[test_proc]>:
- narrate "Yes. <context.vehicle> is a thing."
- narrate "Owner? <player.proc[test_proc2].context[<context.vehicle>]>"
on player enters test:
- announce "We <&a>enter<&f>."
on player exits test:
- announce "We <&c>leave<&f>."
test_cmd:
type: command
name: testing
script:
- mount <player.flag[holo]> CANCEL
- teleport <player> <world[world_nether].spawn_location>
- mount <player.flag[holo]>|<player>
test_proc:
type: procedure
debug: true
definitions: loc
script:
- define loc2 <[loc]>
- determine true
test_proc2:
type: procedure
debug: true
definitions: ply|vehicle
script:
- determine <[vehicle].owner.if_null[NULL].equals[<[ply]>]>
entity_hologram:
type: entity
entity_type: text_display
mechanisms:
text: Hologram Text
pivot: center
see_through: false
text_shadowed: true
entity_playername:
type: entity
entity_type: text_display
mechanisms:
text: Player Name
pivot: center
see_through: false
text_shadowed: true
interpolation_duration: 0s
interpolation_start: 0s
translation: 0,0.5,0