DeadlyDisasters
  • ⚙️Custom Disasters
    • How To Make A Custom Disaster
    • Skeleton Body
    • Core Body
    • Actions
      • Disaster Action
        • Disaster Modifiers
      • Broadcast Action
      • Fill Action
      • Summon Action
      • Particle Action
      • Sound Action
    • Custom Items
    • Custom Entities
    • Catalog Body
    • Publishing Your Disaster!
    • Resources
  • 👋Community
    • Discord
    • Challenge Packs (Coming Soon)
  • 🔌Developers
    • API
      • Creating Disasters
      • Listening For Disasters
      • Custom Items
      • Custom Entities (Coming Soon)
      • Extra Features
    • Source
Powered by GitBook
On this page
  1. Custom Disasters
  2. Actions

Sound Action

The sound action plays a sound in the world. Here is an example, this will play the anvil sound near all players every 3 seconds 5 times repeated:

# This is placed inside an event just like any other action is
sound 1:
    # * The name of the sound that will be played (refer to resources for list of all sounds)
    type: 'block_anvil_land'
    # The target for this action, this will play for all players in the world
    target: 'all'
    volume: 0.5
    pitch: 0.5
    # Amount of times the sound will be repeated
    repeat: 5
    # Delay in ticks between repeats (20 ticks = 1 second)
    intervalTicks: 60
    # The location relative to the targets position so this will play for each player 5 blocks away from them on the X and Z axis
    location:
        x: ~5
        y: ~0
        z: ~5
PreviousParticle ActionNextCustom Items

Last updated 2 years ago

⚙️