Paste #131681: Unnamed Denizen Script Paste

Date: 2025/03/10 15:10:46 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


server_menu:
    type: inventory
    inventory: chest
    title: <&8>Server Settings Menu
    gui: true
    slots:
    - [] [] [] [] [] [] [] [] []
    - [] [] [] [] [damage_indicator_off_item] [] [] [] []
    - [] [] [] [] [] [] [] [] []

damage_indicator_off_item:
    type: item
    material: firework_rocket
    display name: <&c>Damage Indicator
    lore:
    - <&7>Click here to <&c>dissable<&7> damage indicators
    mechanisms:
        hides: ALL

damage_indicator_on_item:
    type: item
    material: firework_rocket
    display name: <&c>Damage Indicator
    lore:
    - <&7>Click here to <&a>enable<&7> damage indicators
    mechanisms:
        hides: ALL

server_menu_world:
    type: world
    events:
        after player clicks damage_indicator_off_item in server_menu:
            - ratelimit <player> 5t
            - narrate <context.slot>
            - playsound sound:block.note_block.pling <player> pitch:2
            - inventory set slot:<context.slot> d:server_menu o:damage_indicator_on_item
            - stop