-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprevent.sk
167 lines (125 loc) · 3.49 KB
/
prevent.sk
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
on command:
if command is "sit":
if {level::%uuid of player%} is 0:
cancel event
if command is "crawl":
if {level::%uuid of player%} is 0:
cancel event
if command is "lay":
if {level::%uuid of player%} is 0:
cancel event
#every 10 ticks:
#execute console command "/minecraft:kill @e[type=minecraft:villager]"
on break of item frame:
if player's world is "campus":
if player is not op:
if "%item of event-entity%" contains "air":
cancel event
else:
cancel event
on damage:
if damager's world is "campus":
if damager is not op:
if victim is item frame:
cancel event
on rightclick:
if player's world is "campus":
if player is not op:
if event-entity is item frame:
cancel event
on break of painting:
if player is not set:
cancel event
else:
if distance between player and event-entity > 3:
cancel event
on damage:
if victim is item frame:
if "%damage cause%" is not "attack":
cancel event
if victim is armor stand:
if "%damage cause%" is not "attack":
cancel event
# 자원월드 주민 죽이는 커맨드
# rg info 해당 월드 flag 로 스폰은 막음 -> 기존에 존재하는 주민 및 좀비주민 제거
every 10 ticks:
loop all entities:
if loop-entity's world is "recourcemyland":
if loop-entity is villager:
kill loop-entity
else if loop-entity is zombie villager:
kill loop-entity
else if loop-entity's world is "world":
if loop-entity is villager:
kill loop-entity
else if loop-entity is zombie villager:
kill loop-entity
#on shoot:
#if shooter's chestplate is elytra:
#if shooter is not op:
#message "&c■ 겉날개를 입은 채로 폭죽이나 화살을 사용할 수 없습니다." to shooter
#cancel event
#if shooter' world is "flat":
#cancel event
on consume of chorus fruit:
cancel event
on spawn of zombie:
if name of event-entity contains "villager":
cancel event
on spawn of chicken:
if event-entity's world is "campus":
cancel event
on spawn of wither:
if event-entity's world is "campus":
cancel event
if event-entity's world is "world":
cancel event
if event-entity's world is "recourcemyland":
cancel event
on spawn of wandering trader:
cancel event
on spawn of phantom:
cancel event
on explode:
cancel event
#every 1 ticks:
#loop all players:
#if "%loop-player's world%" contains "end":
#if loop-player is not op:
#teleport loop-player to spawn of "world"
#message "&c■ 아직 엔더 월드에 입장하실 수 없습니다." to loop-player
on command "/plugins":
if player is not op:
if player is not console:
cancel event
on command "/bukkit:plugins":
cancel event
on command "/?":
cancel event
on command "/bukkit:?":
cancel event
on command "/bukkit:pl":
cancel event
on command "/bukkit:plugin":
cancel event
on command "/plugin":
cancel event
on command "/bukkit:pl":
cancel event
on command "/pl":
cancel event
on inventory click:
if "%name of player's current inventory% " contains "Repair":
if "%name of player's current inventory% " contains "Name":
set {_i0} to slot 0 of player's current inventory
set {_i2} to slot 2 of player's current inventory
if clicked slot is 2:
if {_i2} is clicked item:
if "%{_i0}%" is not "%{_i2}%":
if clicked item is not nametag:
message "&c■ 아이템 이름 변경은 이름표만 가능합니다." to player
cancel event
on rightclick with any dye:
if event-block is any sign:
if custom model data of player's tool is not 0:
cancel event