Events erstellen
Diese Anleitung ist fuer EliteMobs 10 und spaeter
Was sind benutzerdefinierte Events?
Custom Events here refer to events that occur randomly in-game, whether based on player actions or having a timed trigger. The plugin comes preloaded with a number of Custom Events, such as the Balrog event, the Kraken event and the Treasure Goblin events, to name a few.
This system is called Custom Events because the events can not only be customized but created from scratch. What follows is a guide on how to create and customize your own events.
Eigene benutzerdefinierte Events erstellen
Custom event configuration files should be created in:
plugins/EliteMobs/customevents/
Files must use the .yml format. The filename (without .yml extension) becomes the event identifier.
Example: my_cool_event.yml is referenced as my_cool_event
Allgemeine Konfigurationseinstellungen
The following settings can/should be used for both action and timed events.
isEnabled
Sets if the event is enabled.
| Key | Values | Default |
|---|---|---|
isEnabled | Boolean | true |
Beispiel
isEnabled: true
eventType
Sets the type of event.
| Key | Values | Default |
|---|---|---|
eventType | DEFAULT / BREAK_BLOCK / FISH / TILL_SOIL / TIMED | none |
Note that BREAK_BLOCK, FISH and TILL_SOIL are Action Events and TIMED is Timed Events. DEFAULT is for events triggered by other means or special conditions.
Beispiel
eventType: BREAK_BLOCK
bossFilenames
Sets the list of bosses which will be spawned. Mandatory!
| Key | Values | Default |
|---|---|---|
bossFilenames | String List | none |
Beispiel
bossFilenames:
- balrog.yml
- my_event_boss.yml
announcementPriority
Sets the announcement priority.
| Key | Values | Default |
|---|---|---|
announcementPriority | Integer | 0 |
Beispiel
announcementPriority: 1
startMessage
Sets the message sent at the start of the event.
| Key | Values | Default |
|---|---|---|
startMessage | String | none |
Beispiel
startMessage: An event has started!
![]()
endMessage
Sets the message sent at the end of the event.
| Key | Values | Default |
|---|---|---|
endMessage | String | none |
Beispiel
endMessage: An event has ended!
eventStartCommands
Sets the commands that run at the start of the event.
| Key | Values | Default |
|---|---|---|
eventStartCommands | String List | none |
Beispiel
eventStartCommands:
- say The event now starts!!
- "$chance=0.5$ say What a spawn!"

eventEndCommands
Sets the commands that run at the end of the event.
| Key | Values | Default |
|---|---|---|
eventEndCommands | String List | none |
Beispiel
eventEndCommands:
- say The event ends, so sad.
- "$chance=0.5$ say Too slow bud!"

Event-Konfigurationsbeispiel
isEnabled: true
bossFilenames:
- "cool_boss.yml"
- "other_cool_boss.yml"
announcementPriority: 3
startMessage: "Cool event is starting!"
endMessage: "Cool event is ending!"
eventStartCommands:
- say The event started!
eventEndCommands:
- say The event ended!
Vollstaendiges Beispiel fuer zeitgesteuertes Event
isEnabled: true
eventType: TIMED
bossFilenames:
- "my_timed_boss.yml"
announcementPriority: 3
startMessage: "A timed event has started!"
endMessage: "The timed event has ended!"
eventStartCommands:
- say The timed event began!
eventEndCommands:
- say The timed event concluded!
spawnType: "my_spawn_location.yml"
localCooldown: 120
globalCooldown: 30
weight: 100
eventDuration: 15
endEventWithBossDeath: true
minimumPlayerCount: 1
Aktionsevents
Events that have a chance of running when a specific action, such as breaking a block or fishing, happen.
Note: Action events automatically apply a 60-minute cooldown per player to prevent the same player from repeatedly triggering events.
chance
Sets the chance of the event happening when the action happens.
| Key | Values | Default |
|---|---|---|
chance | Value between 0.0 and 1.0 | 0 |
Beispiel
chance: 0.001
breakableMaterials
Sets the list of materials to check if the action is set to BREAK_BLOCK.
| Key | Values | Default |
|---|---|---|
breakableMaterials | List of materials | none |
Beispiel
breakableMaterials:
- BEEHIVE
- BIRCH_WOOD
Event-Konfigurationsbeispiel
chance: 0.001
breakableMaterials:
- COAL_ORE
Sets a 0.1% chance of running the event when a coal ore block is broken, assuming that the event type is BREAK_BLOCK.
Vollstaendiges Beispiel fuer Aktionsevent
isEnabled: true
eventType: BREAK_BLOCK
bossFilenames:
- "mining_boss.yml"
announcementPriority: 2
startMessage: "You've awakened something..."
chance: 0.001
breakableMaterials:
- DIAMOND_ORE
- EMERALD_ORE
Zeitgesteuerte Events
Timed Events are events that happen at configurable time intervals. Once the cooldown for a timed event is over, a random timed event is picked from the list of timed events based on the weight of the event.
spawnType
Sets the Custom Spawn used by the event, which defines where the boss can spawn.
| Key | Values | Default |
|---|---|---|
spawnType | Filename | none |
Beispiel
spawnType: nether_spawn.yml
localCooldown
Sets the amount of time, in minutes, before this event can be picked again.
| Key | Values | Default |
|---|---|---|
localCooldown | Double | 0 |
Beispiel
localCooldown: 120
globalCooldown
Sets the amount of time, in minutes, before the next event will be picked.
| Key | Values | Default |
|---|---|---|
globalCooldown | Double | 0 |
Beispiel
globalCooldown: 60
weight
Sets the weight of the event, affecting the chance that it will be picked over other events. Recommended: 100.
The weight system determines relative probability of event selection. For example:
- Event A with weight 100 vs Event B with weight 50 = Event A is twice as likely to be selected
- Higher weight = higher chance of being picked
- Events are evaluated approximately every 5 minutes
| Key | Values | Default |
|---|---|---|
weight | Double | 0 |
Beispiel
weight: 60.5
eventDuration
Sets the maximum duration of the event, in minutes.
| Key | Values | Default |
|---|---|---|
eventDuration | Double | 0 |
Beispiel
eventDuration: 30
endEventWithBossDeath
Sets if the event ends with the boss death.
| Key | Values | Default |
|---|---|---|
endEventWithBossDeath | Boolean | true |
Beispiel
endEventWithBossDeath: true
eventEndTime
Sets the in-game time (in ticks) when the event ends. Use Minecraft's time system where 0=dawn, 6000=noon, 12000=dusk, 18000=midnight, 23000=late night. Set to -1 to disable time-based ending.
| Key | Values | Default |
|---|---|---|
eventEndTime | Integer (0-24000, -1 to disable) | -1 |
Beispiel
eventEndTime: 23000
minimumPlayerCount
Sets the minimum amount of online players before the event will start.
| Key | Values | Default |
|---|---|---|
minimumPlayerCount | Integer | 1 |
Beispiel
minimumPlayerCount: 5
Note that events get queued, meaning they will only start once the conditions defined in the spawnType are met.
Event-Konfigurationsbeispiel
isEnabled: true
bossFilenames:
- "cool_boss.yml"
- "other_cool_boss.yml"
announcementPriority: 3
startMessage: "Cool event is starting!"
endMessage: "Cool event is ending!"
eventStartCommands:
- say The event started!
eventEndCommands:
- say The event ended!
spawnType: "myCoolSpawn.yml"
localCooldown: 30
globalCooldown: 15
weight: 100
eventDuration: 20
endEventWithBossDeath: true
eventEndTime: 10000
minimumPlayerCount: 5
