Date: 2020/11/13 11:42:18 UTC-08: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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
###########
## ITEMS ##
###########
profile_item:
type: item
material: player_head[skull_skin=<player.skull_skin>]
mechanisms:
nbt: profile/true
display name: <&b>Your Profile <&7>(Right-Click)
lore:
- <&3>Manage or settings your profile
soon:
type: item
material: barrier
display name: <&c>Comingsoon..
settings:
type: item
material: COMPARATOR
display name: <&f><&l>Settings
lore:
- <&7>Click here to settings
notification:
type: item
material: bell
display name: <&f><&l>Notification
lore:
- <&7>Click here to settings
############
## EVENTS ##
############
profile_inventory:
type: world
debug: false
events:
on player joins:
- take scriptname:profile_item quantity:1 slot:9
- give profile_item quantity:1 slot:9
on player clicks profile_item in inventory:
- determine passively cancelled
- wait 1t
- ratelimit <player> 1t
- run profile_task
on player right clicks block with:profile_item:
- determine passively cancelled
- wait 1t
- run profile_task
on entity damaged by player with:profile_item:
- determine cancelled
on player drops profile_item:
- determine cancelled
on player swaps items offhand:profile_item:
- determine cancelled
on player clicks in profile_gui:
- determine cancelled
# Open: Notification Menu
on player clicks notification in profile_gui:
- inventory open destination:notification_gui
on player clicks settings in profile_gui:
- inventory open destination:gui_setting
###########
## TASKS ##
###########
profile_task:
type: task
debug: false
script:
- inventory open d:profile_gui
- playsound <player> sound:BLOCK_LEVER_CLICK pitch:1.2
#########
## GUI ##
#########
profile_gui:
type: inventory
inventory: CHEST
title: <player.name>'s Profile
size: 45
slots:
- [] [] [] [] [] [] [] [] []
- [] [notification] [] [] [settings] [] [] [soon] []
- [] [] [] [] [] [] [] [] []
- [] [soon] [] [] [soon] [] [] [soon] []
- [] [] [] [] [] [] [] [] []