Date: 2017/02/08 22:58:59 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
lockpicks:
type: world
events:
on player right clicks chest with lockpick:
- if !<global.flag[lockedchest].contains.context.location> {
}
else {
- flag player lockpicking
- bossbar create playerlockpick lockpin
}
on player walks:
- if !<player.has_flag[lockpicking]> {
}
- else {
- bossbar update playerlockpick <context.player.location.pitch>
}
locked chest:
type: world
events:
on player right clicks chest with lock:
- flag global lockedchest:->:<context.location>
- flag player lockedchestlist:->:<context.location>
Locked chest access:
type: world
events:
on player right clicks chest:
- if <global.flag[lockedchest].contains.context.location> && <player.flag[lockedchestlist].contains.context.location> {
queue clear
}
else {
- determine cancelled
}
lockpick:
type: item
material: name_tag
title: lock pick
chest lock:
type: item
material: flint_and_steel
title: lock