Date: 2020/07/21 18:07:17 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
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
#======================================================#
# Script by Chano
# Zen Bosses
# Boss Spawn Intervals
# July 19, 2020
#======================================================#
########################################################
############## Boss Spawn Interval & Wipe ##############
########################################################
boss_interval:
type: world
debug: false
events:
after system time hourly:
- if <server.flag[boss_count]> < 1:
- narrate "<&c><&l>A Boss is summoning in the WarZone!" targets:<server.online_players>
- playsound <server.online_players> sound:ENTITY_DRAGON_FIREBALL_EXPLODE volume:1 pitch:1
- random:
- mythicspawn RavagerKnight boss1 level:<util.random.int[1].to[16]>
- mythicspawn PeaceKnight boss1 level:<util.random.int[1].to[16]>
- mythicspawn AncientWitch boss1 level:<util.random.int[1].to[16]>
- mythicspawn Chano boss1 level:<util.random.int[1].to[16]>
- flag server boss_count:++
- run boss_wipe
- stop
- else:
- narrate "<&c><&l>There is a Boss in the Warzone!" targets:<server.online_players>
- stop
boss_wipe:
type: task
script:
- if <server.flag[boss_count]> > 1:
- wait 150m
- execute as_server "mm m killall"
- flag server boss_count:--
- stop
- else:
- stop
boss_death:
type: world
debug: false
events:
after mythicmob mob dies:
- narrate "<&c><&l>The Boss was Defeated!" targets:<server.online_players>
- flag server boss_count:--
- stop
########################################################
##################### Boss Items #######################
########################################################
spawn_artifact:
type: item
material: player_head
display name: <&0><&l><&k>ll <&c><bold>Ancient Artifact <&0><&l><&k>ll
lore:
- <&a>Right Click <&c>to Spawn a Boss in the WarZone
mechanisms:
skull_skin: 332316cf-8bbc-4e80-8014-a2321a75eb1f|eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjc4NGI3MTVjMGQyYjE1MGI1NTZmMTZhMjQ2NDBkYWZmMjk3YTRlYzFiZmQ4Nzc1MTk5MDY2MmFjMzZlYjIifX19
spawn_artifacts_click:
type: world
debug: false
events:
after player right clicks with:spawn_artifact:
- if <server.flag[boss_count]> >= 1:
- narrate "<&c><&l>There are already the Maximum anount of Bosses in the WarZone! Try again later!"
- stop
- take iteminhand amount:1
- playsound <player> sound:ENTITY_EXPERIENCE_ORB_PICKUP volume:1 pitch:1
- narrate "<&b><&l><player.name> <&7>Has Used an <&c><&l>Ancient Artifact!" targets:<server.online_players>
- narrate "<&c><&l>A Boss is summoning in the WarZone!" targets:<server.online_players>
- random:
- mythicspawn RavagerKnight boss1 level:<util.random.int[1].to[20]>
- mythicspawn PeaceKnight boss1 level:<util.random.int[1].to[20]>
- mythicspawn AncientWitch boss1 level:<util.random.int[1].to[20]>
- mythicspawn Chano boss1 level:<util.random.int[1].to[20]>
- playsound <server.online_players> sound:ENTITY_DRAGON_FIREBALL_EXPLODE volume:1 pitch:1
- flag server boss_count:++
- stop
########################################################
###################### Commands ########################
########################################################
boss_spawn_cmd:
type: command
name: spawnboss
description: Spawns a Boss Randomly
usage: /spawnboss
aliases:
- zenboss
- bossspawn
permission: zenith.admin
permission message: <&c>Sorry, <&b><player.name>, <&c>You must be staff to use this!
script:
- playsound <player> sound:ENTITY_EXPERIENCE_ORB_PICKUP volume:1 pitch:1
- narrate "<&b><&l><player.name> <&7>Has Used an <&c><&l>Ancient Artifact!" targets:<server.online_players>
- narrate "<&c><&l>A Boss is summoning in the WarZone!" targets:<server.online_players>
- random:
- mythicspawn RavagerKnight boss1 level:<util.random.int[1].to[16]>
- mythicspawn PeaceKnight boss1 level:<util.random.int[1].to[16]>
- mythicspawn AncientWitch boss1 level:<util.random.int[1].to[16]>
- mythicspawn Chano boss1 level:<util.random.int[1].to[16]>
- playsound <server.online_players> sound:ENTITY_DRAGON_FIREBALL_EXPLODE volume:1 pitch:1
- flag server boss_count:++
- stop
give_spawn_artifact:
type: command
name: spawnartifact
usage: /spawnartifact [player] [amount]
description: gives the player a spawnartifact.
permission: zenith.admin
script:
- if <context.args.size> < 2:
- narrate "<red>/spawnartifact [player] [amount]"
- stop
- define target <server.match_player[<context.args.get[1]>]||null>
- if <[target]> == null:
- narrate "<red>Unknown player '<yellow><context.args.get[1]><red>'."
- stop
- define amount <context.args.get[2]>
- if !<[amount].is_decimal>:
- narrate "<red>Invalid amount input (not a number)."
- stop
- if <[amount]> <= 0:
- narrate "<red>Amount must be more than zero."
- stop
- give spawn_artifact player:<[target]> quantity:<[amount]>
- stop
boss_wipe_cmd:
type: command
name: wipebosses
usage: /wipebosses
description: kills all bosses
permission: zenith.admin
script:
- narrate "<&c><&l>Bosses Wiped and Counter Reset!"
- execute as_server "mm m killall"
- flag server boss_count:--
- stop