Date: 2015/03/07 18:46:26 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
MyWorldGuard:
type: world
debug: false
events:
on player teleports:
- playsound <player.location> effect:portal_travel volume:2.0 pitch:2
on player breaks block in msborder:
- if <player.has_flag[MSFlowerFetchCount]> && <context.material> == m@blue_orchid && <player.location.is_within[<cu@mshill>]> {
- ^determine i@MistyShoresBlueOrchid }
else if !<player.is_op> {
- ^determine cancelled }
on player places block in msborder:
- if !<player.is_op> {
- ^determine cancelled }
on player changes sign in msborder:
- if !<player.is_op> {
- ^determine cancelled }
on player places hanging:
- if <context.location.is_within[cu@msborder]> {
- ^determine cancelled }
# on player opens inventory:
# - if <context.inventory.location.is_within[cu@msborder]> {
# - ^determine }
# on potion splash:
# - determine
on block spreads:
- if <context.location.is_within[cu@msborder]> {
- announce "<context.material> spread in Misty Shores!" }
on liquid spreads:
- if <context.location.is_within[cu@msborder]> {
- determine cancelled }
on block burns:
- if <context.location.is_within[cu@msborder]> {
- determine cancelled }
on entity changes block in msborder:
- determine cancelled
on entity explodes:
- if <context.entity.location.is_within[cu@msborder]> {
- determine cancelled }
on entity spawns in mistyshores:
- if <context.entity.entity_type> == MUSHROOM_COW || <context.entity.entity_type> == HORSE {
- determine cancelled }
- if !<global.has_flag[MSZombieHorde]> && !<context.entity.location.is_within[<cu@mschurchcrypt>]> && !<context.entity.location.is_within[<cu@mslowercrypt>]> {
- if <context.entity.entity_type> == ZOMBIE || <context.entity.entity_type> == CREEPER || <context.entity.entity_type> == SKELETON || <context.entity.entity_type> == ENDERMAN || <context.entity.entity_type> == SPIDER || <context.entity.entity_type> == WITCH {
- determine cancelled }
}