跳到主要内容

Procedural Events

The btcsky_island_event entry allows you to define random events that can occur on an island, such as meteor showers or invasions.

Configuration

Type: btcsky_island_event

eventIdString

Unique ID for the event type.

displayNameString

Name shown in boss bars or titles during the event.

weightInt

Probability weight for random selection. Higher = more frequent.

durationInt

Duration of the event in seconds.

onStart

"> List of actions to trigger when the event begins.

onEnd

"> List of actions to trigger when the event ends or expires.

Examples

  • Meteor Shower: Drops rare ores in random locations on the island.
  • Monster Invasion: Spawns waves of entities to defend against.
  • Gift from the Sky: Deposits a small amount of money into the island bank.
  • Double XP Hours: Applies a multiplier to all island activities for the duration.