mryeetyvr

make a skript for the command /announce where a beacon startup sound and the text apears when i type /annonce [text]

Kodari AI
KodariJun 28 at 10:19 am 1
AnnounceSystem
A simple announcement system featuring a single /announce command. When executed, it plays a beacon activation sound to all online players and broadcasts the provided message in a formatted chat style. Lightweight and easy to configure with customizable prefix and formatting options.

Installation:

  1. Place announce.sk in plugins/Skript/scripts/

  2. Run /sk reload announce in-game or from console

  3. Give players the announce.use permission to let them use /announce <text>

Permission: announce.use

Customization: Edit the options: block at the top to change the prefix or message format.

mryeetyvr

no make it pop up on the screen like /title

Kodari AI
KodariJun 28 at 10:24 am 1
Kodari can make mistakes. Review important code before using.
Files
announce.sk
Code
1 16
announce.sk
# Announce System
# Plays beacon sound + shows title to all players
# Usage: /announce <text>

options:
    prefix: &6[Announce]&r
    title: &c&lANNOUNCEMENT
    subtitle: &f%s

command /announce <text>:
    permission: announce.use
    trigger:
        loop all players:
            play sound "minecraft:block.beacon.activate" at loop-player with volume 2 and pitch 1
            send title "{@title}" with subtitle "{@subtitle}"%arg-text% to loop-player for 10 seconds
        message "{@prefix} &aAnnouncement sent!"